qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] boot arm fedora via u-boot in qemu


From: Gerd Hoffmann
Subject: [Qemu-devel] boot arm fedora via u-boot in qemu
Date: Tue, 21 Oct 2014 15:33:51 +0200

  Hi,

Played around with u-boot a bit, trying to get it work in qemu, so you
don't have to hop through loops copying the kernel+initrd from the disk
image to pass it to qemu on the command line.

Guess why I'm asking here?  No so success so far :(

What I did:  Started with the fedora uboot-tools package, then tried to
adapt vexpress.  Look here:

https://www.kraxel.org/cgit/jenkins/u-boot/tree/

Patches 1-7 come straight from the fedora package.
Patch #8 is a bugfix.
Patch #9 is a debug patch (send logs to console).
Patch #10 adapts vexpress to the distro patches.
Patch #11 makes u-boot pick up the fdt from qemu.

All looks fine, uboot finds the virtual sdcard, loads kernel + initrd,
passes on the fdt.  kernel doesn't boot though, without printing any
helpful clues to the serial console.

Any ideas what this might be?
Any hints how to go on with debugging?

thanks,
  Gerd

--------- [ cut here: log from a boot attempt ] -------------
+ exec qemu-system-arm -nographic -M vexpress-a9 -m 1G \
  -kernel build-vexpress_ca9x4/u-boot \
  -dtb /path/to/vexpress-v2p-ca9.dtb -sd f21.img


U-Boot 2014.10-rc3-00275-g30ed9a4 (Oct 21 2014 - 12:49:54)

DRAM:  1 GiB
WARNING: Caches not enabled
Flash: 128 MiB
MMC:   MMC: 0
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
QEMU: fdt found at 60000000, using it.
Net:   smc911x-0
Warning: smc911x-0 using MAC address from net device

Warning: Your board does not use generic board. Please read
doc/README.generic-board and take action. Boards not
upgraded by the late 2014 may break or be removed.
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
528 bytes read in 34 ms (14.6 KiB/s)
Ignoring unknown command: ui
Ignoring malformed menu command:  autoboot
Ignoring malformed menu command:  hidden
Ignoring unknown command: totaltimeout
Fedora-Minimal-armhfp-21-20140905 Boot Options.
1:      Fedora-Minimal-armhfp-21-20140905 (3.16.1-301.fc21.armv7hl)
Enter choice: 1
1:      Fedora-Minimal-armhfp-21-20140905 (3.16.1-301.fc21.armv7hl)
Retrieving file: /initramfs-3.16.1-301.fc21.armv7hl.img
29202689 bytes read in 3788 ms (7.4 MiB/s)
Retrieving file: /vmlinuz-3.16.1-301.fc21.armv7hl
5460688 bytes read in 762 ms (6.8 MiB/s)
append: ro root=UUID=55c3c475-37c8-41f8-ac34-3c153cde02a2
console=ttyAMA0,115200n8
Kernel image @ 0x80008000 [ 0x000000 - 0x5352d0 ]
## Flattened Device Tree blob at 60000000
   Booting using the fdt blob at 0x60000000
   Loading Ramdisk to 7e307000, end 7fee0901 ... OK
   Loading Device Tree to 7e2f8000, end 7e306339 ... OK

Starting kernel ...





reply via email to

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