用Qemu模拟vexpress-a9 (二) --- 搭建u-boot调试环境

参考: 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内核启动。

原文地址:https://www.cnblogs.com/pengdonglin137/p/5023608.html