From: Gerhard Wiesinger <lists@wiesinger.com>
To: Kevin O'Connor <kevin@koconnor.net>
Cc: Gerd Hoffmann <kraxel@redhat.com>, Gleb Natapov <gleb@redhat.com>,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Boot order problem and disable iPXE/gPXE
Date: Sat, 7 Jan 2012 09:35:55 +0100 (CET) [thread overview]
Message-ID: <alpine.LFD.2.02.1201070851040.23205@bbs.intern> (raw)
In-Reply-To: <20120106020539.GB25140@morn.localdomain>
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
next prev parent reply other threads:[~2012-01-07 8:37 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-04 18:02 [Qemu-devel] Boot order problem and disable iPXE/gPXE Gerhard Wiesinger
2012-01-05 3:03 ` Kevin O'Connor
2012-01-05 7:39 ` Gerhard Wiesinger
2012-01-06 1:42 ` Kevin O'Connor
2012-01-06 8:20 ` Gerhard Wiesinger
2012-01-06 8:59 ` Gerd Hoffmann
2012-01-05 7:50 ` Gleb Natapov
2012-01-05 7:58 ` Gerd Hoffmann
2012-01-05 8:23 ` Gerhard Wiesinger
2012-01-05 8:32 ` Gleb Natapov
2012-01-05 9:09 ` Gerhard Wiesinger
2012-01-05 9:20 ` Gleb Natapov
2012-01-05 9:27 ` Gerhard Wiesinger
2012-01-05 9:29 ` Gleb Natapov
2012-01-05 9:36 ` Gerhard Wiesinger
2012-01-05 9:42 ` Gleb Natapov
2012-01-05 9:56 ` Gerhard Wiesinger
2012-01-05 10:00 ` Gleb Natapov
2012-01-05 9:42 ` Gerd Hoffmann
2012-01-06 2:05 ` Kevin O'Connor
2012-01-06 5:27 ` Gleb Natapov
2012-01-07 1:53 ` Kevin O'Connor
2012-01-07 9:00 ` Gerhard Wiesinger
2012-01-07 16:28 ` Kevin O'Connor
2012-01-07 22:47 ` Gerhard Wiesinger
2012-01-07 22:53 ` Kevin O'Connor
2012-01-08 8:31 ` Gleb Natapov
2012-01-08 14:58 ` Kevin O'Connor
2012-01-08 15:17 ` Gleb Natapov
2012-01-08 15:47 ` Kevin O'Connor
2012-01-25 20:30 ` Gerhard Wiesinger
2012-01-09 9:10 ` Gerd Hoffmann
2012-01-07 8:35 ` Gerhard Wiesinger [this message]
2012-01-07 16:20 ` Kevin O'Connor
2012-01-07 22:46 ` Gerhard Wiesinger
2012-01-07 22:59 ` Gerhard Wiesinger
2012-01-08 11:59 ` Gerhard Wiesinger
2012-01-05 8:57 ` Gerd Hoffmann
2012-01-05 9:24 ` Gerhard Wiesinger
2012-01-05 9:53 ` Gerd Hoffmann
2012-01-05 10:08 ` Gerhard Wiesinger
2012-01-05 10:13 ` Gerd Hoffmann
2012-01-05 11:13 ` Gerhard Wiesinger
2012-01-05 11:16 ` Gleb Natapov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LFD.2.02.1201070851040.23205@bbs.intern \
--to=lists@wiesinger.com \
--cc=gleb@redhat.com \
--cc=kevin@koconnor.net \
--cc=kraxel@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).