主题:linux-3.0.8内核配置出现的问题总结

系统:Ubuntu 16.04
硬件平台:S5PV210
编译工具:arm-linux-gcc 4.5.1

资料来源:根据友善之臂提供的linux-3.0.8内核压缩包
把内核压缩包解压:tar zxvf linux-3.0.8-20180411.tgz
Step1: 进入linux-3.08目录中
Step2: cp mini210_linux_defconfig .config
Step3: make menuconfig
Step4: make
出现问题一:
*** Unable to find the ncurses libraries or the
 *** required header files.
 *** ‘make menuconfig’ requires the ncurses libraries.
 ***
 *** Install ncurses (ncurses-devel) and try again.
 ***
make[1]: *** [scripts/kconfig/dochecklxdialog] 错误 1
make: *** [menuconfig] 错误 2

解决办法: sudo apt-get install libncurses5-dev 或者:sudo apt-get install ncurses-dev

出现问题二:
Can’t use ‘defined(@array)’ (Maybe you should just omit the defined()?) at kernel/timeconst.pl line 373.
解决办法:将if (!defined(@val)) 改为if (!(@val)),

解决上述两个问题后。最后会在 arch/arm/boot 目录下生成 zImage,将它替换掉 SD 卡 images/Linux/下的 zImage 烧写到开发板即可。

猜你喜欢

转载自blog.csdn.net/weixin_41682169/article/details/85100167