Hi,

I found that ovmf build with edk2-stable202210 is not works well.  It cannot find all the harddisk, and list them in boot manager:

But with edk2-stable2022008, it works well.  I think this is a bug, should I open an issue in bugzilla?


*Here is my command:*

qemu-system-x86_64 -net nic -net user -m 2048 -nographic -drive if=none,id=hd1,file=boot-image-qemu1.hddimg,format=raw -drive if=none,id=hd2,file=boot-image-qemu2.hddimg,format=raw -drive if=none,id=hd3,file=boot-image-qemu3.hddimg,format=raw -device virtio-scsi-pci,id=scsi -device scsi-hd,drive=hd1 -device scsi-hd,drive=hd2 -device scsi-hd,drive=hd3 -cpu Nehalem -drive file=OVMF.fd,format=raw,readonly=on,if=pflash,unit=0 -drive if=pflash,format=raw,unit=1,file=OVMF_VARS.fd


*Expected behavior:*

Boot Manager Menu

UEFI QEMU QEMU HARDDISK

UEFI QEMU QEMU HARDDISK 2

UEFI QEMU QEMU HARDDISK 3


UEFI v2.70 (EDK II, 0x00010000)
Mapping table
FS0: Alias(s):HD0c0b:;BLK3:
PciRoot(0x0)/Pci(0x4,0x0)/Scsi(0x2,0x0)/HD(1,GPT,0B503B15-09F6-4A66-8D65-CA5DA85471D2,0x1394,0xC0800)
BLK0: Alias(s):
PciRoot(0x0)/Pci(0x4,0x0)/Scsi(0x0,0x0)
BLK1: Alias(s):
PciRoot(0x0)/Pci(0x4,0x0)/Scsi(0x1,0x0)
BLK2: Alias(s):
PciRoot(0x0)/Pci(0x4,0x0)/Scsi(0x2,0x0)

Press ESC in 1 seconds to skip startup.nsh or any other key to continue.
Shell>

*Actual behavior:*

Boot Manager Menu

UEFI QEMU QEMU HARDDISK


Mapping table
BLK0: Alias(s):
PciRoot(0x0)/Pci(0x4,0x0)/Scsi(0x0,0x0)
Shell>


And I find that if I add bootindex for the three HD,  it will works well,  all the harddisk will be list in boot manager.

Like:

qemu-system-x86_64 -net nic -net user -m 2048 -nographic \
-drive if=none,id=hd1,file=boot-image-qemu1.hddimg,format=raw \
-drive if=none,id=hd2,file=boot-image-qemu2.hddimg,format=raw \
-drive if=none,id=hd3,file=boot-image-qemu3.hddimg,format=raw \
-device virtio-scsi-pci,id=scsi -device scsi-hd,drive=hd1,bootindex=1 -device scsi-hd,drive=hd2,bootindex=2 -device scsi-hd,drive=hd3,bootindex=3 \
-cpu Nehalem \
-drive file=OVMF.fd,format=raw,readonly=on,if=pflash,unit=0 \
-drive if=pflash,format=raw,unit=1,file=OVMF_VARS.fd


Regards

Changqing


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#107096): https://edk2.groups.io/g/devel/message/107096
Mute This Topic: https://groups.io/mt/100253249/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to