<sjg1_>
xypron: OK thanks. Yes you are correct about there being no need to mount as a CDROM. But at present that works with seabios (for example) but not for U-Boot
<xypron>
sjg1_: Do we really want to support optical drives?
<sjg1_>
xypron: Well we already do, it just doesn't work correctly with FAT
<xypron>
sjg1_: I have mounted ubuntu-20.04.6-live-server-amd64.iso as ahci scsi drive in qemu_arm64_defconfig
<xypron>
sjg1_: part list scsi 0 shows partition 2
<xypron>
sjg1_: ls scsi 0:2 shows the efi/ directory
<xypron>
sjg1_: What are you missing?
<xypron>
sjg1_: same works on origin/main qemu-x86_64_defconfig
sakman has quit [Remote host closed the connection]
sakman has joined #u-boot
<sjg1_>
xypron: Yes that is fine. Did you try the example in the docs I sent?
<xypron>
sjg1_: you have been using -cdrom. That does not work.
<xypron>
sjg1_: But why do you care so much about optical drives? My kids think it is last milleniums technology.
<sjg1_>
xypron: Forget that for a minute. If you use the 'part set' command you can see 'dos', 'efi' and 'iso' partition tables, right? With things as they are, we just get whatever is first detected
<xypron>
sjg1_: There is no part set command yet. And I would not implement one
<xypron>
sjg1_: Which user would like to fiddle with such a command?
<sjg1_>
Oh well, I found it useful. It seems like a hole in U-Boot's partition-table stuff actually. It auto-detects and there is no way to set it. But when you look at the code it clearly provides a way to use what is give, rather than auto-detect. I wonder if we lost a feature somewhere along the road?
<xypron>
sjg1_: On Linux there is no way to set it either.
<xypron>
sjg1_: If you want to support CD-ROMs implement an iso9660 driver.
<sjg1_>
xypron: Actually I don't understand the link between partition-table type and CD-ROM?
<xypron>
sjg1_: When you mount the image on Linux it is mounted as iso9660 and shows the complete content.
<xypron>
sjg1_: Mounted as MBR with sector size 512 you only see the EFI directory.
<xypron>
sjg1_: Reading 2048 byte sectors and interpreting them as 512 byte sectors in not standardized anywhere.
<xypron>
sjg1_: Do you see real hardware that has CD-ROM drives used for booting via U-Boot in the future?
thopiekar has quit [Ping timeout: 248 seconds]
<sjg1_>
xypron: OK so U-Boot doesn't support the iso9660 filesystem, only the ISO partition type?
thopiekar has joined #u-boot
<xypron>
sjg1_: Obviously it does not even detect the Torrito disk as being an ISO partition type.
<xypron>
sjg1_: If we could set the block size for host devices, debugging this would be easier.
<sjg1_>
xypron: OK
sakman has quit [Remote host closed the connection]
sakman has joined #u-boot
haritz has quit [Ping timeout: 268 seconds]
haritz has joined #u-boot
haritz has joined #u-boot
haritz has quit [Changing host]
<xypron>
sjg1_: With %s/512/2048/ in drivers/block/host_dev.c part list host 0 shows 2 partitions. The part_iso driver seems to do its job.
<xypron>
sjg1_: the part_dos driver is tested before part_iso. So on an El Torrito disk U-Boot thinks that it is MBR even if the sector size is 2048.
<xypron>
only when part_dos is disabled does it see the iso partition type
Guest4494 has quit [Quit: Client closed]
<xypron>
sjg1_: blk_dread(,16, 1,) fails for the virtual cd-rom drive. It simply returns 0 in iso_dread. It seems that the ide_blk driver does not support the CD-ROM properly.
srk has quit [Ping timeout: 252 seconds]
srk has joined #u-boot
vagrantc has joined #u-boot
stipa_ has joined #u-boot
stipa has quit [Ping timeout: 276 seconds]
stipa_ is now known as stipa
neoXite has quit [Quit: Connection closed for inactivity]
stipa_ has joined #u-boot
<sjg1_>
xypron: Yes, more work to be done, I suppose. But I just did the bits that I ran into
stipa has quit [Ping timeout: 252 seconds]
stipa_ is now known as stipa
stefanro has quit [Quit: Leaving.]
stefanro has joined #u-boot
ikarso has joined #u-boot
vagrantc has quit [Quit: leaving]
gsz has joined #u-boot
stipa_ has joined #u-boot
stipa has quit [Read error: Connection reset by peer]
sakman has quit [Remote host closed the connection]
gsz has quit [Quit: leaving]
<xypron>
sjg1_: Adding support for larger sectors makes sense. As seen on host dos partioning takes pecedence over due to alphabetic sorting of partition drivers. As long as we don't have an iso9660 driver that is fine and we should not need 'part set'.
mncheck has joined #u-boot
mckoan|away is now known as mckoan
ldevulder has joined #u-boot
mncheck has quit [Read error: Connection reset by peer]
sakman has joined #u-boot
vfazio has quit [Read error: Connection reset by peer]
matthias_bgg has joined #u-boot
mncheckm has joined #u-boot
guillaume_g has joined #u-boot
tnovotny has joined #u-boot
sakman has quit [Ping timeout: 268 seconds]
sakman has joined #u-boot
mmu_man has joined #u-boot
sszy has joined #u-boot
<hthiery>
Hi, does anyone know if it is possible to start u-boot on an imx8mmini (nxp-evk) using the nxp UUU tool? we see that only SPL starts and it is not possible to start U-boot.
<hthiery>
it is working when using the sources from NXP e.g. lf_v2021.04 as noted in the NXP documentation.
monstr has joined #u-boot
tnovotny has quit [Ping timeout: 268 seconds]
jaganteki has quit [Quit: Client closed]
d-s-e has joined #u-boot
mmu_man has quit [Ping timeout: 260 seconds]
d-s-e has quit [Quit: Konversation terminated!]
tnovotny has joined #u-boot
mmu_man has joined #u-boot
stipa_ has joined #u-boot
stipa has quit [Read error: Connection reset by peer]
stipa_ is now known as stipa
mckoan is now known as mckoan|away
d-s-e has joined #u-boot
vfazio has joined #u-boot
prabhakarlad has quit [Quit: Client closed]
naoki has quit [Quit: naoki]
mmu_man has quit [Ping timeout: 265 seconds]
camus has quit [Quit: camus]
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #u-boot
mrnuke has quit [Remote host closed the connection]
mrnuke has joined #u-boot
mmu_man has joined #u-boot
tnovotny_ has joined #u-boot
tnovotny has quit [Read error: Connection reset by peer]
tnovotny_ has quit [Client Quit]
prabhakarlad has joined #u-boot
d-s-e has quit [Quit: Konversation terminated!]
ikarso has quit [Quit: Connection closed for inactivity]
ldevulder has quit [Quit: Leaving]
ikarso has joined #u-boot
camus has joined #u-boot
persmule has quit [Remote host closed the connection]
persmule has joined #u-boot
zibolo_ has quit [Ping timeout: 250 seconds]
guillaume_g has quit [Quit: Konversation terminated!]
Guest4494 has joined #u-boot
monstr has quit [Remote host closed the connection]
<sjg1_>
xypron: I think we need 'part set', if only to remove the mystery of how it chooses the partition type. It's great to have it automatic, but sometimes we need to choose
matthias_bgg has quit [Ping timeout: 248 seconds]
matthias_bgg has joined #u-boot
ikarso has quit [Quit: Connection closed for inactivity]
vagrantc has joined #u-boot
aggi has joined #u-boot
Leopold_ has joined #u-boot
Leopold has quit [Ping timeout: 276 seconds]
sakman has quit [Remote host closed the connection]
goliath has quit [Quit: SIGSEGV]
sakman has joined #u-boot
sakman has quit [Remote host closed the connection]
sakman has joined #u-boot
Guest4494 has quit [Quit: Client closed]
goliath has joined #u-boot
mmu_man has joined #u-boot
berte has joined #u-boot
sakman has quit [Remote host closed the connection]