From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:36773) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RjRmj-0004Ta-Ih for qemu-devel@nongnu.org; Sat, 07 Jan 2012 03:37:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RjRmh-0003Mp-Uu for qemu-devel@nongnu.org; Sat, 07 Jan 2012 03:37:53 -0500 Received: from chello084112167138.7.11.vie.surfer.at ([84.112.167.138]:51052 helo=wiesinger.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RjRmh-0003Jy-Hb for qemu-devel@nongnu.org; Sat, 07 Jan 2012 03:37:51 -0500 Date: Sat, 7 Jan 2012 09:35:55 +0100 (CET) From: Gerhard Wiesinger In-Reply-To: <20120106020539.GB25140@morn.localdomain> Message-ID: References: <4F055827.50202@redhat.com> <20120105083239.GR2072@redhat.com> <20120105092037.GA31206@redhat.com> <20120106020539.GB25140@morn.localdomain> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Re: [Qemu-devel] Boot order problem and disable iPXE/gPXE List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin O'Connor Cc: Gerd Hoffmann , Gleb Natapov , qemu-devel@nongnu.org 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: /pci@i0cf8/*@1,1/drive@1/disk@0 |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: /rom@genroms/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: /rom@genroms/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: /rom@genroms/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: /rom@genroms/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: /rom@genroms/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: /rom@genroms/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