[U-Boot] Setting up vexpress u-boot for distro configs and use in virt

Dennis Gilmore dennis at ausil.us
Sun Jun 28 21:05:09 CEST 2015


Hi all,

The attached patches fix up a minor noise issue if a board defines its own
value for CONFIG_BOOTP_VCI_STRING, makes sure we do not hit any noise on
vexpress and port to the distro boot configs while maintaining the existing
boot setup.

I have built and tested for vexpress_ca15_tc2 using qemu-system-arm, however
I hit a snag with an illegal instruction.
U-Boot 2015.07-rc2-00140-gef0f2f5-dirty (Jun 27 2015 - 06:42:35 -0500)

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
Net:   smc911x-0
Warning: smc911x-0 using MAC address from net device

Hit any key to stop autoboot:  0 
MMC Device 1 not found
no mmc device at slot 1
switch to partitions #0, OK
mmc0 is current device
env - environment handling commands

Usage:
env default [-f] -a - [forcibly] reset default environment
env default [-f] var [...] - [forcibly] reset variable(s) to their default values
env delete [-f] var [...] - [forcibly] delete variable(s)
env export [-t | -b | -c] [-s size] addr [var ...] - export environment
env import [-d] [-t [-r] | -b | -c] addr [size] - import environment
env print [-a | name ...] - print environment
env run var [...] - run commands in an environment variable
env save - save environment
env set [-f] name [arg ...]

Scanning mmc 0:1...
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
486 bytes read in 32 ms (14.6 KiB/s)
Ignoring unknown command: ui
Ignoring malformed menu command:  autoboot
Ignoring malformed menu command:  hidden
Ignoring unknown command: totaltimeout
Fedora-Server-armhfp-22-3 Boot Options.
1:      Fedora-Server-armhfp-22-3 (4.0.4-301.fc22.armv7hl)
Enter choice: 1
1:      Fedora-Server-armhfp-22-3 (4.0.4-301.fc22.armv7hl)
Retrieving file: /initramfs-4.0.4-301.fc22.armv7hl.img
38558585 bytes read in 4209 ms (8.7 MiB/s)
Retrieving file: /vmlinuz-4.0.4-301.fc22.armv7hl
5645832 bytes read in 688 ms (7.8 MiB/s)
append: ro root=UUID=fe0fbdbc-e734-4f07-9b1c-7564e3a356b9 console=ttyAMA0,38400n8
Kernel image @ 0xa0008000 [ 0x000000 - 0x562608 ]

Starting kernel ...

undefined instruction
pc : [<9ffac060>]          lr : [<9ff83b24>]
sp : 9fee1be8  ip : a0008000     fp : 9ff83b50
r10: 00000000  r9 : 9fee2f00     r8 : 9fee1ce4
r7 : 00000000  r6 : 0000001a     r5 : 00000131  r4 : 00000000
r3 : 80002000  r2 : 80002000     r1 : 000008e0  r0 : 00000000
Flags: nzcv  IRQs off  FIQs off  Mode UK6_32
Resetting CPU ...

resetting ...


In the end my goal here is to have a u-boot that works with qemu-system-arm so that
the user never needs to extract files out of the system in order to get a booting vm.
The answer may well be to make a virt specific u-boot that can set the amount of ram, 
cpu, etc based on what qemu tells it is there.

Regards 

Dennis



More information about the U-Boot mailing list