All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gerhard Wiesinger <lists@wiesinger.com>
To: Kevin O'Connor <kevin@koconnor.net>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Boot order problem and disable iPXE/gPXE
Date: Thu, 5 Jan 2012 08:39:15 +0100 (CET)	[thread overview]
Message-ID: <alpine.LFD.2.02.1201050830580.24519@bbs.intern> (raw)
In-Reply-To: <20120105030353.GA9589@morn.localdomain>

On Wed, 4 Jan 2012, Kevin O'Connor wrote:

> On Wed, Jan 04, 2012 at 07:02:34PM +0100, Gerhard Wiesinger wrote:
> There is a "bootindex" option that can be passed to the "-device"
> parameter of QEMU.  This option give more fine grained control of boot
> order.
>
> However, the default should have been to boot from a harddrive first,
> so I'm not sure why you see the cdrom first.  You could add the
> following to the QEMU command line to see the seabios debugging info:
> -chardev stdio,id=seabios -device isa-debugcon,iobase=0x402,chardev=seabios

|0ffdf000| Searching bootorder for: /pci@i0cf8/*@1,1/drive@1/disk@0
|0ffdf000| Registering bootable: DVD/CD [ata1-0: QEMU DVD-ROM ATAPI-4 DVD/CD] (type:3 prio:9999 data:fd940)
Searching bootorder for: /pci@i0cf8/*@3
Registering bootable: iPXE (PCI 00:03.0) (type:128 prio:9999 data:ca000372)
Searching bootorder for: /rom@genroms/8xx_64.rom
Registering bootable: #28 ID00 LUN0 QEMU     QEMU HARDDISK    (type:129 prio:9999 data:cb003d4e)
Searching bootorder for: /rom@genroms/8xx_64.rom:rom1
Registering bootable: #28 ID01 LUN0 QEMU     QEMU HARDDISK    (type:129 prio:9999 data:cb003da2)
Searching bootorder for: /rom@genroms/8xx_64.rom:rom2
Registering bootable: #28 ID02 LUN0 QEMU     QEMU HARDDISK    (type:129 prio:9999 data:cb003df6)
Searching bootorder for: /rom@genroms/8xx_64.rom:rom3
Registering bootable: #28 ID03 LUN0 QEMU     QEMU HARDDISK    (type:129 prio:9999 data:cb003e4a)
Searching bootorder for: /rom@genroms/vapic.bin
Registering bootable: Legacy option rom (type:129 prio:9999 data:cf000003)
Searching bootorder for: /rom@genroms/pxe-pcnet.rom
Registering bootable: iPXE (PCI 00:00.0) (type:128 prio:9999 data:d1800372)
Booting from DVD/CD...
Booting from 0000:7c00

BTW: I didn't get any answer to the following thread:
https://lists.gnu.org/archive/html/qemu-devel/2011-11/msg00602.html

Thnx.

Ciao,
Gerhard

Full relevant trace:
cat boot_cdrom.log | grep -v a= | grep -v si= | grep -v "enter handle" | grep -v "invalid handle" | grep -v "handle_" | grep -v "pmm_malloc" | grep -v "pmm_free" | grep -v "Read sector" | grep -v "ata_pio_transfer" | grep -v "send_atapi_cmd"
Start bios (version pre-1.6.4-20111228_082807-host)
enabling shadow ram
qemu_cfg_present=1
Find memory size
Add to e820 map: 00000000 10000000 1
Add to e820 map: 00000000 00000000 1
Add to e820 map: fffc0000 00040000 2
Add to e820 map: 000a0000 00050000 -1
Add to e820 map: 000f0000 00010000 2
Add to e820 map: feffc000 00004000 2
Ram Size=0x10000000 (0x0000000000000000 high)
malloc setup
Add to e820 map: 0fff0000 00010000 2
Relocating init from 0x000e31f0 to 0x0ffe1e60 (size 57468)
malloc fixup reloc
init ivt
init bda
Add to e820 map: 0009fc00 00000400 2
init pic
init timer
tsc calibrate start=136992957 end=142144437 diff=5151480
CPU Mhz=3001
math cp init
init mtrr
pci setup
=== PCI bus & bridge init ===
PCI: pci_bios_init_bus_rec bus = 0x0
=== PCI device probing ===
PCI probe
PCI device 00:00.0 (vd=8086:1237 c=0600)
PCI device 00:01.0 (vd=8086:7000 c=0601)
PCI device 00:01.1 (vd=8086:7010 c=0101)
PCI device 00:01.3 (vd=8086:7113 c=0680)
PCI device 00:02.0 (vd=15ad:0405 c=0300)
PCI device 00:03.0 (vd=10ec:8139 c=0200)
PCI device 00:04.0 (vd=1022:2000 c=0200)
PCI device 00:05.0 (vd=1000:0012 c=0100)
Found 8 PCI devices (max PCI bus is 00)
=== PCI new allocation pass #1 ===
PCI: check devices
=== PCI new allocation pass #2 ===
PCI: init bases bus 0 (primary)
   type io max 100 sum 240 base c000
     size      100: 2 bar(s),     c000 ->     c1ff
     size       20: 1 bar(s),     c200 ->     c21f
     size       10: 2 bar(s),     c220 ->     c23f
   type mem max 10000 sum 25000 base febd0000
     size    10000: 2 bar(s), febd0000 -> febeffff
     size     2000: 1 bar(s), febf0000 -> febf1fff
     size     1000: 3 bar(s), febf2000 -> febf4fff
   type prefmem max 1000000 sum 1010000 base fd000000
     size  1000000: 1 bar(s), fd000000 -> fdffffff
     size    10000: 1 bar(s), fe000000 -> fe00ffff
PCI: map device bdf=00:00.0
PCI: map device bdf=00:01.0
PCI: map device bdf=00:01.1
   bar 4, addr c220, size 10 [io]
PCI: map device bdf=00:01.3
PCI: map device bdf=00:02.0
   bar 0, addr c230, size 10 [io]
   bar 1, addr fd000000, size 1000000 [prefmem]
   bar 2, addr fe000000, size 10000 [prefmem]
   bar 6, addr febd0000, size 10000 [mem]
PCI: map device bdf=00:03.0
   bar 0, addr c000, size 100 [io]
   bar 1, addr febf2000, size 100 [mem]
   bar 6, addr febe0000, size 10000 [mem]
PCI: map device bdf=00:04.0
   bar 0, addr c200, size 20 [io]
   bar 1, addr febf3000, size 20 [mem]
PCI: map device bdf=00:05.0
   bar 0, addr c100, size 100 [io]
   bar 1, addr febf4000, size 400 [mem]
   bar 2, addr febf0000, size 2000 [mem]
PCI: init bdf=00:00.0 id=8086:1237
PCI: init bdf=00:01.0 id=8086:7000
PCI: init bdf=00:01.1 id=8086:7010
PCI: init bdf=00:01.3 id=8086:7113
PCI: init bdf=00:02.0 id=15ad:0405
PCI: init bdf=00:03.0 id=10ec:8139
PCI: init bdf=00:04.0 id=1022:2000
PCI: init bdf=00:05.0 id=1000:0012
PIIX3/PIIX4 init: elcr=00 0c
init smm
Found 1 cpu(s) max supported 1 cpu(s)
init bios32
init PMM
init PNPBIOS table
init keyboard
init mouse
init PIR table
init MPTable
MP table addr=0x000fdaf0 MPC table addr=0x000fdb00 size=232
init SMBIOS tables
SMBIOS ptr=0x000fdad0 table=0x000fd9c0 size=263
init ACPI tables
ACPI DSDT=0x0fffe640
ACPI tables: RSDP=0x000fd990 RSDT=0x0fffe600
Scan for VGA option rom
Attempting to init PCI bdf 00:02.0 (vd 15ad:0405)
Attempting to map option rom on dev 00:02.0
Option rom sizing returned febd0000 ffff0000
Inspecting possible rom at 0xfebd0000 (vd=15ad:0405 bdf=00:02.0)
Copying option rom (size 40448) from 0xfebd0000 to c0000
Checking rom 0x000c0000 (sig aa55 size 79)
Running option rom at c000:0003
Turning on vga text mode console

init usb
init ps2port
/0ffe0000\ Start thread
|0ffe0000| i8042_flush
|0ffe0000| i8042_command cmd=1aa
|0ffe0000| i8042_wait_write
|0ffe0000| i8042_wait_read
|0ffe0000| i8042 param=55
|0ffe0000| i8042_command cmd=1ab
|0ffe0000| i8042_wait_write
|0ffe0000| i8042_wait_read
|0ffe0000| i8042 param=0
|0ffe0000| ps2_command aux=0 cmd=2ff
|0ffe0000| i8042 ctr old=30 new=30
|0ffe0000| i8042_command cmd=1060
|0ffe0000| i8042_wait_write
|0ffe0000| i8042_wait_write
init lpt
Found 1 lpt ports
init serial
Found 1 serial ports
init floppy drives
init hard drives
ATA controller 1 at 1f0/3f4/0 (irq 14 dev 9)
/0ffdf000\ Start thread
|0ffdf000| powerup iobase=1f0 st=0
|0ffdf000| powerup iobase=1f0 st=0
|0ffdf000| ata_detect ata0-0: sc=0 sn=0 dh=0
|0ffdf000| powerup iobase=1f0 st=0
|0ffdf000| powerup iobase=1f0 st=0
|0ffdf000| ata_detect ata0-1: sc=0 sn=0 dh=0
\0ffdf000/ End thread
ATA controller 2 at 170/374/0 (irq 15 dev 9)
/0ffdf000\ Start thread
|0ffdf000| powerup iobase=170 st=50
|0ffdf000| powerup iobase=170 st=50
|0ffdf000| ata_detect ata1-0: sc=55 sn=aa dh=a0
|0ffdf000| ata_reset drive=0x0ffdffc4
init virtio-blk
|0ffe0000| i8042_command cmd=1060
|0ffe0000| i8042_wait_write
|0ffe0000| i8042_wait_write
|0ffe0000| ps2_sendbyte aux=0 cmd=ff
|0ffe0000| i8042_kbd_write c=255
|0ffe0000| i8042_wait_write
|0ffe0000| ps2 read fa
|0ffe0000| ps2 read aa
|0ffdf000| ata_reset exit status=0
|0ffdf000| DVD/CD [ata1-0: QEMU DVD-ROM ATAPI-4 DVD/CD]
|0ffdf000| Searching bootorder for: /pci@i0cf8/*@1,1/drive@1/disk@0
|0ffdf000| Registering bootable: DVD/CD [ata1-0: QEMU DVD-ROM ATAPI-4 
DVD/CD] (type:3 prio:9999 data:fd940)
|0ffdf000| ata_detect resetresult=0000
|0ffdf000| powerup iobase=170 st=50
|0ffdf000| powerup iobase=170 st=0
|0ffdf000| ata_detect ata1-1: sc=55 sn=aa dh=b0
|0ffdf000| send_cmd : DRQ not set (status 00)
\0ffdf000/ End thread
|0ffe0000| i8042_command cmd=1060
|0ffe0000| i8042_wait_write
|0ffe0000| i8042_wait_write
|0ffe0000| ps2_command aux=0 cmd=f5
|0ffe0000| i8042 ctr old=30 new=30
|0ffe0000| i8042_command cmd=1060
|0ffe0000| i8042_wait_write
|0ffe0000| i8042_wait_write
|0ffe0000| i8042_command cmd=1060
|0ffe0000| i8042_wait_write
|0ffe0000| i8042_wait_write
|0ffe0000| ps2_sendbyte aux=0 cmd=f5
|0ffe0000| i8042_kbd_write c=245
|0ffe0000| i8042_wait_write
|0ffe0000| ps2 read fa
|0ffe0000| i8042_command cmd=1060
|0ffe0000| i8042_wait_write
|0ffe0000| i8042_wait_write
|0ffe0000| ps2_command aux=0 cmd=10f0
|0ffe0000| i8042 ctr old=30 new=30
|0ffe0000| i8042_command cmd=1060
|0ffe0000| i8042_wait_write
|0ffe0000| i8042_wait_write
|0ffe0000| i8042_command cmd=1060
|0ffe0000| i8042_wait_write
|0ffe0000| i8042_wait_write
|0ffe0000| ps2_sendbyte aux=0 cmd=f0
|0ffe0000| i8042_kbd_write c=240
|0ffe0000| i8042_wait_write
|0ffe0000| ps2 read fa
|0ffe0000| ps2_sendbyte aux=0 cmd=2
|0ffe0000| i8042_kbd_write c=2
|0ffe0000| i8042_wait_write
|0ffe0000| ps2 read fa
|0ffe0000| i8042_command cmd=1060
|0ffe0000| i8042_wait_write
|0ffe0000| i8042_wait_write
|0ffe0000| ps2_command aux=0 cmd=f4
|0ffe0000| i8042 ctr old=61 new=70
|0ffe0000| i8042_command cmd=1060
|0ffe0000| i8042_wait_write
|0ffe0000| i8042_wait_write
|0ffe0000| i8042_command cmd=1060
|0ffe0000| i8042_wait_write
|0ffe0000| i8042_wait_write
|0ffe0000| ps2_sendbyte aux=0 cmd=f4
|0ffe0000| i8042_kbd_write c=244
|0ffe0000| i8042_wait_write
|0ffe0000| ps2 read fa
|0ffe0000| i8042_command cmd=1060
|0ffe0000| i8042_wait_write
|0ffe0000| i8042_wait_write
|0ffe0000| PS2 keyboard initialized
\0ffe0000/ End thread
All threads complete.
Scan for option roms
Attempting to init PCI bdf 00:00.0 (vd 8086:1237)
Attempting to map option rom on dev 00:00.0
Option rom sizing returned 0 0
Attempting to init PCI bdf 00:01.0 (vd 8086:7000)
Attempting to map option rom on dev 00:01.0
Option rom sizing returned 0 0
Attempting to init PCI bdf 00:01.3 (vd 8086:7113)
Attempting to map option rom on dev 00:01.3
Option rom sizing returned 0 0
Attempting to init PCI bdf 00:03.0 (vd 10ec:8139)
Attempting to map option rom on dev 00:03.0
Option rom sizing returned febe0000 ffff0000
Inspecting possible rom at 0xfebe0000 (vd=10ec:8139 bdf=00:03.0)
Copying option rom (size 61440) from 0xfebe0000 to ca000
Checking rom 0x000ca000 (sig aa55 size 120)
Running option rom at ca00:0003
pmm call arg1=1
pmm01: handle=18ae1000
pmm call arg1=0
pmm00: length=f00 handle=18ae1000 flags=2
pmm call arg1=1
pmm01: handle=18ae2004
pmm call arg1=0
pmm00: length=4000 handle=18ae2004 flags=2
Attempting to init PCI bdf 00:04.0 (vd 1022:2000)
Attempting to map option rom on dev 00:04.0
Option rom sizing returned 0 0
Attempting to init PCI bdf 00:05.0 (vd 1000:0012)
Attempting to map option rom on dev 00:05.0
Option rom sizing returned 0 0
Checking rom 0x000cb000 (sig aa55 size 128)
Running option rom at cb00:0003
pmm call arg1=0
pmm00: length=1000 handle=ffffffff flags=5
pnp call arg1=55
pmm call arg1=2
pmm02: buffer=80000
Checking rom 0x000cf000 (sig aa55 size 17)
Checking rom 0x000d1800 (sig aa55 size 120)
Running option rom at d180:0003
pmm call arg1=1
pmm01: handle=18ae1000
pmm call arg1=1
pmm01: handle=18ae1001
pmm call arg1=0
pmm00: length=f00 handle=18ae1001 flags=2
pmm call arg1=1
pmm01: handle=18ae2004
Checking rom 0x000ca000 (sig aa55 size 5)
Searching bootorder for: /pci@i0cf8/*@3
Registering bootable: iPXE (PCI 00:03.0) (type:128 prio:9999 
data:ca000372)
Checking rom 0x000cb000 (sig aa55 size 32)
Searching bootorder for: /rom@genroms/8xx_64.rom
Registering bootable: #28 ID00 LUN0 QEMU     QEMU HARDDISK    (type:129 
prio:9999 data:cb003d4e)
Searching bootorder for: /rom@genroms/8xx_64.rom:rom1
Registering bootable: #28 ID01 LUN0 QEMU     QEMU HARDDISK    (type:129 
prio:9999 data:cb003da2)
Searching bootorder for: /rom@genroms/8xx_64.rom:rom2
Registering bootable: #28 ID02 LUN0 QEMU     QEMU HARDDISK    (type:129 
prio:9999 data:cb003df6)
Searching bootorder for: /rom@genroms/8xx_64.rom:rom3
Registering bootable: #28 ID03 LUN0 QEMU     QEMU HARDDISK    (type:129 
prio:9999 data:cb003e4a)
Checking rom 0x000cf000 (sig aa55 size 17)
Searching bootorder for: /rom@genroms/vapic.bin
Registering bootable: Legacy option rom (type:129 prio:9999 data:cf000003)
Checking rom 0x000d1800 (sig aa55 size 5)
Searching bootorder for: /rom@genroms/pxe-pcnet.rom
Registering bootable: iPXE (PCI 00:00.0) (type:128 prio:9999 
data:d1800372)
Mapping cd drive 0x000fd940
Running option rom at cb00:3d4e
Running option rom at cb00:3da2
Running option rom at cb00:3df6
Running option rom at cb00:3e4a
Running option rom at cf00:0003
ebda moved from 9f000 to 9e800
finalize PMM
malloc finalize
Add to e820 map: 0009e800 00001800 2
Add to e820 map: 0fff0000 0000e000 1
Returned 57344 bytes of ZoneHigh
e820 map has 7 items:
   0: 0000000000000000 - 000000000009e800 = 1 RAM
   1: 000000000009e800 - 00000000000a0000 = 2 RESERVED
   2: 00000000000f0000 - 0000000000100000 = 2 RESERVED
   3: 0000000000100000 - 000000000fffe000 = 1 RAM
   4: 000000000fffe000 - 0000000010000000 = 2 RESERVED
   5: 00000000feffc000 - 00000000ff000000 = 2 RESERVED
   6: 00000000fffc0000 - 0000000100000000 = 2 RESERVED
locking shadow ram
Jump to int19
   NULL
Booting from DVD/CD...
scsi_is_ready (drive=0x000fd940)
test unit ready failed
scsi_is_ready returned -1
Booting from 0000:7c00

  reply	other threads:[~2012-01-05  7:40 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 [this message]
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
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.1201050830580.24519@bbs.intern \
    --to=lists@wiesinger.com \
    --cc=kevin@koconnor.net \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.