1、使用qemu模拟开发板移植内核,应该是可以不用u-boot
2、u-boot整体编译过程与linux内核编译过程相似
3、下载u-boot源码
http://ftp.denx.de/pub/u-boot/
4、将tar文件解压缩后进入文件,修改makefile文件
ARCH=arm
CROSS_COMPILE = arm-linux-gnueabi-
5、进行编译,生成默认配置文件,并改相关配置
make vexpress_ca9x4_config
此时可以进入可视化界面对bottcmd、bootargs两个参数进行配置
具体配置视开发板及内核情况而定
6、进行编译
make
7、qemu运行u-boot
qemu-system-arm -M vexpress-a9 -serial stdio -kernel u-boot
8、编译u-boot时,有的ubuntu平台缺少相关库或许会安装一下软件
sudo apt-get install libssl-dev