在本节会介绍如何从头搭建使用qemu + uboot的虚拟开发环境。
1.下载安装 uboot qemu arm-linux-gnu
- uboot : http://www.denx.de/wiki/U-Boot/
- qemu : sudo apt-get install qemu
- arm-linux-gcc : sudo apt-get install gcc-arm-linux-gnueabi 或 https://www.linaro.org/
2. 编译uboot
export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabi-
make vexpress_ca9x4_config
make -j4
3. qemu启动uboot
qemu-system-arm -M vexpress-a9 -m 256M -nographic -kernel u-boot
原文地址 : http://coderdock.com