Skip to content

Instantly share code, notes, and snippets.

@mariotpc
Last active August 20, 2020 19:40
Show Gist options
  • Save mariotpc/721f09ff535fa3dc46960e8020d46698 to your computer and use it in GitHub Desktop.
Save mariotpc/721f09ff535fa3dc46960e8020d46698 to your computer and use it in GitHub Desktop.
start u-boot in versatile express ARM
first all,... compile it and get the u-boot binary executable
[mariotpc@fedora31 u-boot]$ make vexpress_ca9x4_defconfig CROSS_COMPILE=~/Downloads/arm/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
YACC scripts/kconfig/zconf.tab.c
LEX scripts/kconfig/zconf.lex.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
#
# configuration written to .config
#
[mariotpc@fedora31 u-boot]$ make CROSS_COMPILE=~/Downloads/arm/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
scripts/kconfig/conf --syncconfig Kconfig
UPD include/config.h
CFG u-boot.cfg
GEN include/autoconf.mk
..
..
OBJCOPY examples/standalone/hello_world.srec
OBJCOPY examples/standalone/hello_world.bin
LDS u-boot.lds
LD u-boot
OBJCOPY u-boot.srec
OBJCOPY u-boot-nodtb.bin
COPY u-boot.bin
SYM u-boot.sym
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡
[mariotpc@fedora31 u-boot]$ qemu-system-arm -machine vexpress-a9 -serial stdio -nographic -no-reboot -kernel u-boot
QEMU 4.1.1 monitor - type 'help' for more information
(qemu) qemu-system-arm: -serial stdio: cannot use stdio by multiple character devices
qemu-system-arm: -serial stdio: could not connect serial device to character backend 'stdio'
[mariotpc@fedora31 u-boot]$ qemu-system-arm -machine vexpress-a9 -nographic -no-reboot -kernel u-boot
pulseaudio: set_sink_input_volume() failed
pulseaudio: Reason: Invalid argument
pulseaudio: set_sink_input_mute() failed
pulseaudio: Reason: Invalid argument
U-Boot 2020.10-rc2-00140-g789bfb5266 (Aug 20 2020 - 12:34:12 -0600)
DRAM: 128 MiB
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
Hit any key to stop autoboot: 0
MMC Device 1 not found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment