说明:这里的Ubuntu系统版本是16.04或者14.04
uboot编译常见错误
1.uboot编译需要dtc相关命令的支持
LD drivers/usb/ulpi/built-in.o
DTC arch/arm/dts/s5p6818-drone.dtb
/bin/sh: 1: dtc: not found
make[2]: *** [arch/arm/dts/s5p6818-drone.dtb] Error 127
make[1]: *** [arch-dtbs] Error 2
make: *** [dts] Error 2
dtc是device-tree-compiler的缩写,即设备树编译器,说明系统中没有安装这个编译器
问题解决:sudo apt-get install device-tree-compiler
kernel编译常见错误
1.内核编译需要mkimage
Kernel: arch/arm/boot/Image is ready
Kernel: arch/arm/boot/zImage is ready
UIMAGE arch/arm/boot/uImage
"mkimage" command not found - U-Boot images will not be built
kernel/arch/arm/boot/Makefile:101: recipe for target 'arch/arm/boot/uImage' failed
make[1]: *** [arch/arm/boot/uImage] Error 1
kernel/arch/arm/Makefile:294: recipe for target 'uImage' failed
mak