參考: http://blog.csdn.net/caspiansea/article/details/12986565
環境介紹
Win7 64 + Vmware 11 + ubuntu14.04 32
u-boot 版本:u-boot-2015-04
Linux kernel版本:linux-3.16.y
busybox版本:1_24_stable
交叉編譯工具鏈:arm-linux-gnueabi-
qemu版本:stable-2.4
下載、編譯u-boot代碼
u-boot從下面的網址獲得:
http://ftp.denx.de/pub/u-boot/
取得是最新的代碼。我使用的是u-boot-2015.05, 解壓后,配置,編譯:
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- vexpress_ca9x4_defconfig make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi-
使用qemu測試
qemu-system-arm -M vexpress-a9 \ -kernel u-boot \ -nographic \ -m 512M
打印出u-boot的啟動信息:
U-Boot 2015.07-rc3-00092-gf3edfd3-dirty (Dec 05 2015 - 22:00:46 -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 Warning: smc911x-0 using MAC address from net device Hit any key to stop autoboot: 0
未完待續,下面介紹如何利用Qemu實現利用u-boot引導linux內核啟動。