qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Boot order problem and disable iPXE/gPXE


From: Gerhard Wiesinger
Subject: Re: [Qemu-devel] Boot order problem and disable iPXE/gPXE
Date: Sat, 7 Jan 2012 09:35:55 +0100 (CET)
User-agent: Alpine 2.02 (LFD 1266 2009-07-14)

On Thu, 5 Jan 2012, Kevin O'Connor wrote:

On Thu, Jan 05, 2012 at 11:20:37AM +0200, Gleb Natapov wrote:
On Thu, Jan 05, 2012 at 10:09:44AM +0100, Gerhard Wiesinger wrote:
But as far as I remember therefore the option ROM registers through
BIOS for INT 19h booting. So Seabios should know it that this is a
harddisk.
It registers BEV. Otherwise you wouldn't be able to boot at all. In fact
it registers multiple BEVs (one for each attached scsi device). But BIOS
knows nothing about the device behind the BEV. It just jumps to BEV
address to boot from it when INT 19h is called. There may be scsi cdrom
there or even tape.

Gerhard's option rom is actually registering a BCV, and SeaBIOS can
know that is likely a hard drive.  So, I think Gerhard has a point.
SeaBIOS could probably fall back to the harddrive priority if it finds
a BCV without an explicit bootindex priority.

Gerhard - does the patch below improve things for you?

Can confirm, that it works now as expected and boots from SCSI harddisk. (boot order=cad,menu=on). Also boot=dca,menu=on boots from CDROM as expected. Also when legacy option rom is selected boots from harddisk.

Boot menu looks like
1. #18 ID 00 LUN0 QEMU    QEMU HARDDSISK
2. #18 ID 00 LUN1 QEMU    QEMU HARDDSISK
3. #18 ID 00 LUN2 QEMU    QEMU HARDDSISK
4. #18 ID 00 LUN3 QEMU    QEMU HARDDSISK
5. Legacy option rom
6. DVD/CD [ata1-0: QEMU DVD-ROM ATAPI-4 DVD/CD]
7. iPXE (PCI 00:00.0)

But there is still the iPXE ROM there (I think I didn't see iPXE because it is last one displayed and boot screen is fast and will be cleared afterwards). So something must be wrong. @Gerd: any ideas?

command line:
/root/download/qemu/git/qemu-kvm/x86_64-softmmu/qemu-system-x86_64
-drive file=1.img,media=disk,if=scsi,bus=0,unit=0
-drive file=2.img,media=disk,if=scsi,bus=0,unit=1
-drive file=3.img,media=disk,if=scsi,bus=0,unit=2
-drive file=4.img,media=disk,if=scsi,bus=0,unit=3 -cdrom KNOPPIX_V6.2CD-2009-11-18-DE.iso -boot order=cad,menu=on -m 256 -k de -vga vmware -vnc :0 -bios /root/download/seabios/git/seabios/out/bios.bin -option-rom 8xx_64.rom
-device rtl8139,mac=1a:46:0b:ca:bc:7c,vlan=0,romfile=
-net tap,ifname=tap0,script=no,downscript=no,vlan=0
-device pcnet,mac=1a:46:0b:ca:bc:7e,vlan=1,romfile=
-net tap,ifname=tap1,script=no,downscript=no,vlan=1

Relevant logs below.

Ciao,
Gerhard

--
http://www.wiesinger.com/

|0ffdf000| Searching bootorder for: 
/address@hidden/address@hidden,1/address@hidden/address@hidden
|0ffdf000| pmm_malloc zone=0x0ffefe30 handle=ffffffff size=20 align=10 
ret=0x0ffe15b0 (detail=0x0ffe15d0)
|0ffdf000| Registering bootable: DVD/CD [ata1-0: QEMU DVD-ROM ATAPI-4 DVD/CD] 
(type:3 prio:103 data:fd940)
Searching bootorder for: /address@hidden/8xx_64.rom
pmm_malloc zone=0x0ffefe30 handle=ffffffff size=20 align=10 ret=0x0ffe1560 
(detail=0x0ffe1580)
Registering bootable: #18 ID00 LUN0 QEMU     QEMU HARDDISK    (type:129 
prio:101 data:ca003d4e)
Searching bootorder for: /address@hidden/8xx_64.rom:rom1
pmm_malloc zone=0x0ffefe30 handle=ffffffff size=20 align=10 ret=0x0ffe1510 
(detail=0x0ffe1530)
Registering bootable: #18 ID01 LUN0 QEMU     QEMU HARDDISK    (type:129 
prio:101 data:ca003da2)
Searching bootorder for: /address@hidden/8xx_64.rom:rom2
pmm_malloc zone=0x0ffefe30 handle=ffffffff size=20 align=10 ret=0x0ffe14c0 
(detail=0x0ffe14e0)
Registering bootable: #18 ID02 LUN0 QEMU     QEMU HARDDISK    (type:129 
prio:101 data:ca003df6)
Searching bootorder for: /address@hidden/8xx_64.rom:rom3
pmm_malloc zone=0x0ffefe30 handle=ffffffff size=20 align=10 ret=0x0ffe1470 
(detail=0x0ffe1490)
Registering bootable: #18 ID03 LUN0 QEMU     QEMU HARDDISK    (type:129 
prio:101 data:ca003e4a)
Checking rom 0x000ce000 (sig aa55 size 17)
Searching bootorder for: /address@hidden/vapic.bin
pmm_malloc zone=0x0ffefe30 handle=ffffffff size=20 align=10 ret=0x0ffe1420 
(detail=0x0ffe1440)
Registering bootable: Legacy option rom (type:129 prio:101 data:ce000003)
Checking rom 0x000d0800 (sig aa55 size 5)
Searching bootorder for: /address@hidden/pxe-pcnet.rom
pmm_malloc zone=0x0ffefe30 handle=ffffffff size=20 align=10 ret=0x0ffe13d0 
(detail=0x0ffe13f0)
Registering bootable: iPXE (PCI 00:00.0) (type:128 prio:9999 data:d0800372)
Press F12 for boot menu.

Checking for bootsplash



reply via email to

[Prev in Thread] Current Thread [Next in Thread]