zImage可以运行了,再来试试用uboot引导uImage。
首先是编译uImage,命令在QEMU+ARM+Linux(1)中已经给出了:
export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabi-
make vexpress_defconfig
#make zImage -j8
make modules -j8
make LOADADDR=0x60003000 uImage -j8 #设置uImage启动的地址0x60003000
make dtbs
但是出现问题:“mkimage” command not found - U-Boot images will not be built,解决方法是将已编译好的uboot目录下的/tools/mkimage复制到/usr/bin:
cd
sudo cp ./u-boot-2017.05/tools/mkimage /usr/bin
编译uboot则参见使用QEMU调试u-boot。
之后就可以成功编译uImage啦。