Linux内核编译步骤与问题/make:&nb…

Linux-2.6.22.6/ arm-linux-gcc-4.4.3

编译uboot和kernel的步骤:

1、下载源码文件(u-boot-xxx.tar.bz2 , linux-xxx.tar.bz2),解压缩,打补丁,修改移植
2、配置
uboot:make xxx_config(如make smdk2410_config)
kernel : make xxx_defconfig   (在arch目录下查看,如make s3c2410_defconfig)
或使用配置好的文件:cp config_ok .config
make menuconfig
3、编译:make / make uImage

参考:http://blog.chinaunix.net/uid-23193900-id-3181496.html

执行make menuconfig时出错:

In file included from scripts/kconfig/lxdialog/checklist.c:24:0: scripts/kconfig/lxdialog/dialog.h:32:20: 致命错误: curses.h:没有那个文件或目录 编译中断。 make[1]: *** [scripts/kconfig/lxdialog/checklist.o] 错误 1
make: *** [menuconfig] 错误 2

解决办法:ubuntu系统中缺少一个套件 ncurses devel ,安装此套件

sudo apt-get install libncurses5-dev

参考:http://xuxd32.blog.163.com/blog/static/4812193320118181242452/

wind
2015,02,12
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值