问题由来
交叉编译是嵌入式开发非常重要的(应该说是必须的)一个环节,先配置好编译环境很重要。
首先,选择Ubuntu14.04 LTS Desktop 64-bit操作系统,配置好交叉编译工具版本,正式开始编译的时候,遇到如下问题,Vmlinux和ZImage都可以正常生成,但是UImage无法正常生成,编译报错如下:
11186 Kernel: arch/arm/boot/Image is ready
11187 Kernel: arch/arm/boot/zImage is ready
11188 Image arch/arm/boot/uImage ############
11189 UIMAGE arch/arm/boot/uImage
11190 */linux-3.x/scripts/mkuboot.sh: line 19: /build/linux/../../../../build/uClinux/arm-unknown-eabi/bin/arm-unknown-eabi-mkimage: No such file or directory
11191 make[6]: * [arch/arm/boot/uImage] Error 127
11192 make[5]: * [uImage] Error 2
11193 make[5]: Leaving directory `**/linux-3.x’
但是arm-unknown-eabi-mkimage是存在的,路径也没有问题,具体原因居然是,
arm-unknown-eabi-mkimage: ELF 32-bit LSB