[coreboot] #174: Unable to boot from qemu-kvm -- seems to be a cbfs problem

coreboot svn at coreboot.org
Wed Feb 2 19:32:47 CET 2011


#174: Unable to boot from qemu-kvm -- seems to be a cbfs problem
-------------------------------------+-------------------------------------
    Reporter:  czw[+]660[+]@…        |         Owner:  stepan@…
        Type:  defect                |        Status:  new
    Priority:  major                 |     Milestone:
   Component:  coreboot              |      Keywords:
Dependencies:                        |  Patch Status:  there is no patch
-------------------------------------+-------------------------------------
 Hello,

 I was the opener of ticket 173, so I'm still using gcc 4.4.3, and now
 testing with qemu-kvm version 0.12.5, with (about) the following command:

 [[BR]]
 {{{
 /usr/local/bin/qemu-system-x86_64 -monitor stdio -smp
 1,cores=1,threads=1,sockets=1 -cpu phenom -soundhw ac97 -k it -kvm-shadow-
 memory 1 -m 512 -no-fd-bootchk -show-cursor -drive
 file="/mnt/pdc_a0p1/qemu/disk0",if=scsi,bus=0,unit=0,media=disk -drive
 file="/mnt/pdc_a0p1/qemu/disk1",if=scsi,bus=1,unit=0,media=disk -drive
 file="/mnt/pdc_a0p1/qemu/disk2",if=scsi,bus=2,unit=0,media=disk -net none
 -usb -usbdevice tablet -startdate 2009-01-20T14:30:00 -name "test" -cdrom
 path/to/image.iso -fda /mnt/pdc_a0p1/qemu/fd -hda /mnt/pdc_a0p1/qemu/ide
 -L /mnt/pdc_a0p1/qemu/bios -bios coreboot_version-seabios_version.bin
 -boot order=adc,menu=on -vga cirrus -serial file:path/to/coreboot_version-
 seabios_version.log
 }}}

 (configured from aqemu)

 [[BR]]
 path/to/image.iso is a bootable dvd image with freedos or /dev/cdrom (I
 get similar results with a win xp setup disk/image) - this is also the
 only bootable emulated drive; path/to/coreboot_version-seabios_version.log
 is a log of the serial output of coreboot (see attached files).

 The above works fine with both qemu's bios.bin and pre-built coreboot v2
 r4917 + seabios 9eebe66a9978165cfa91f2266c97fa5d0aa6ef2e, 2009-11-04, as
 retrieved from
 [http://www.coreboot.org/images/6/6a/Qemu_coreboot_seabios.zip] which
 works with both qemu's provided vgabios-cirrus.bin and your patched
 version - from [http://www.coreboot.org/images/0/0d/Vgabios-cirrus.zip] -
 excluding a seabios or qemu-kvm specific problem.

 I can also exclude any problem related to my build environment (as well as
 my qemu-kvm) because I've been able to download, build and boot coreboot
 r4917 + the above seabios version with a correctly modified src/config.h,
 as per

 [[BR]]
 {{{
 #define CONFIG_COREBOOT 1
 #define CONFIG_DEBUG_SERIAL 1
 #define CONFIG_COREBOOT_FLASH 1
 #define CONFIG_OPTIONROMS_DEPLOYED 0
 #define CONFIG_VGAHOOKS 1
 }}}

 [[BR]]
 Now to the core of the problem: when runnig qemu-kvm it hangs after
 displaying a vga specific message (see attached jpeg), and serial log
 files show a message like the following:

 [[BR]]
 {{{
 CBFS:  Could not find file fallback/payload
 Boot failed.
 }}}

 (last message - see attached file for full log)

 [[BR]]
 Of course, fallback/payload is therein (see attached coreboot-layout.txt
 for a cbfstool print result)

 I'm testing both the stable trunk (pre-6321 but correcting the issue from
 ticket 173) and revision 6325 of coreboot, both with latest stable seabios
 (0.6.1.3) and the old one used in your qemu test (v2) build, added as
 external elf payload, with or without lzma compression, all the rest with
 default configuration values (see attached files for full details).

 Regards

-- 
Ticket URL: <https://tracker.coreboot.org/trac/coreboot/ticket/174>
coreboot <http://www.coreboot.org/>



More information about the coreboot mailing list