参考http://balau82.wordpress.com/2010/03/10/u-boot-for-arm-on-qemu/

 

1. 下载uboot

wget ftp://ftp.denx.de/pub/u-boot/u-boot-2010.03.tar.bz2

tar –xjvf u-boot—2010.03

 

2. 编译

cd u-boot-2010.03

make versatilepb_config ARCH=arm CROSS_COMPILE=arm-linux-uclibcgnueabi-

make all ARCH=arm CROSS_COMPILE=arm-linux-uclibcgnueabi-

3.使用qemu启动仿真

qemu-system-arm -M versatilepb -nographic -kernel u-boot.bin

 

4. 结束qemu仿真

hit “Ctrl-a” and then “x” to exit QEMU