下载uboot
下载地址:http://ftp.denx.de/pub/u-boot/
下载最新的代码u-boot-2016.07.tar.bz2
解压
tar jxvf u-boot-2016.07.tar.bz2
进入u-boot源码目录
cd u-boot-2016.07
配置
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- vexpress_ca9x4_defconfig
编译
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi-
qemu运行u-boot, 命令如下
qemu-system-arm -M vexpress-a9 -kernel u-boot -nographic -m 512M
fantasy@fantasy-All-Series:~/my_dev/Embedded_Dev/u-boot-2016.07$ qemu-system-arm -M vexpress-a9 -kernel u-boot -nographic -m 512M audio: Could not init `oss' audio driver U-Boot 2016.07 (Aug 19 2016 - 22:11:00 +0800) DRAM: 512 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