public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [edk2-devel] Cannot list all harddisk in boot manager
@ 2023-07-20  6:06 Changqing Li
  2023-07-20 11:06 ` Gerd Hoffmann
  0 siblings, 1 reply; 3+ messages in thread
From: Changqing Li @ 2023-07-20  6:06 UTC (permalink / raw)
  To: devel; +Cc: changqing.li

[-- Attachment #1: Type: text/plain, Size: 2579 bytes --]

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/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



[-- Attachment #2: Type: text/html, Size: 3802 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [edk2-devel] Cannot list all harddisk in boot manager
  2023-07-20  6:06 [edk2-devel] Cannot list all harddisk in boot manager Changqing Li
@ 2023-07-20 11:06 ` Gerd Hoffmann
  2023-07-21  5:50   ` Changqing Li
  0 siblings, 1 reply; 3+ messages in thread
From: Gerd Hoffmann @ 2023-07-20 11:06 UTC (permalink / raw)
  To: devel, changqing.li; +Cc: changqing.li

On Thu, Jul 20, 2023 at 02:06:34PM +0800, Changqing Li wrote:
> 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?

No, this is intentional behavior.

ovmf only connects devices with a boot priority to speed up hardware
initialization.

> -device scsi-hd,drive=hd1 -device scsi-hd,drive=hd2
> -device scsi-hd,drive=hd3

Add bootindex=<priority> (smaller numbers are higher priority) to the
disks you want show up in the menu.  ovmf will and them then, sorted
according to the given priority.

> 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.

Oh, you figured yourself ;)

take care,
  Gerd



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#107098): https://edk2.groups.io/g/devel/message/107098
Mute This Topic: https://groups.io/mt/100253249/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [edk2-devel] Cannot list all harddisk in boot manager
  2023-07-20 11:06 ` Gerd Hoffmann
@ 2023-07-21  5:50   ` Changqing Li
  0 siblings, 0 replies; 3+ messages in thread
From: Changqing Li @ 2023-07-21  5:50 UTC (permalink / raw)
  To: Gerd Hoffmann, devel, changqing.li

Thanks.

//Changqing

On 7/20/23 19:06, Gerd Hoffmann wrote:
> CAUTION: This email comes from a non Wind River email account!
> Do not click links or open attachments unless you recognize the sender and know the content is safe.
>
> On Thu, Jul 20, 2023 at 02:06:34PM +0800, Changqing Li wrote:
>> 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?
> No, this is intentional behavior.
>
> ovmf only connects devices with a boot priority to speed up hardware
> initialization.
>
>> -device scsi-hd,drive=hd1 -device scsi-hd,drive=hd2
>> -device scsi-hd,drive=hd3
> Add bootindex=<priority> (smaller numbers are higher priority) to the
> disks you want show up in the menu.  ovmf will and them then, sorted
> according to the given priority.
>
>> 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.
> Oh, you figured yourself ;)
>
> take care,
>    Gerd
>


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#107123): https://edk2.groups.io/g/devel/message/107123
Mute This Topic: https://groups.io/mt/100253249/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-07-21  5:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-20  6:06 [edk2-devel] Cannot list all harddisk in boot manager Changqing Li
2023-07-20 11:06 ` Gerd Hoffmann
2023-07-21  5:50   ` Changqing Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox