本帖最后由 lee_st 于 2018-6-15 00:31 编辑
在编译Linux内核和设备树,文件系统过程中,会有很多问题,下面列举一二。
1.scripts/kconfig/Makefile:202: recipe for target 'scripts/kconfig/dochecklxdialog' failed
make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
Makefile:548: recipe for target 'menuconfig' failed
解决方法
sudo apt-get install libncursesw5-dev
2.
scripts/Makefile.lib:322: recipe for target 'arch/arm/dts/zynq-zc702.dtb' failed
原因是Ubuntu没有安装device-tree-compiler,用命令apt-get install device-tree-compiler安装即可
sudo apt-get install device-tree-compiler
3.
fatal error: openssl/evp.h: No such file or directory compilation terminated.
安装 sudo apt-get install libssl-dev
4.制作SD分区时,看了陆佳华的大作,误导了很久,走了些弯路
下面提供一个可用的方案
对于SD卡的分区,我们采用的gparted软件,如果没有可以用apt-get安装
sudo apt-get install gparted
启动方式如下
sudo gparted
5.
"mkimage" command not found - U-Boot images will not be built
arch/arm/boot/Makefile:79: recipe for target 'arch/arm/boot/uImage' failed
make[1]: *** [arch/arm/boot/uImage] Error 1
arch/arm/Makefile:336: recipe for target 'uImage' failed
make: *** [uImage] Error 2
解决方法
sudo apt-get install uboot-mkimage
sudo apt-get install u-boot-tools