Linux-2.6.22.6/ arm-linux-gcc-4.4.3
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