gec2410 inux2.6.8内核移植
来源:互联网 发布:mac开机怎么切换系统 编辑:程序博客网 时间:2024/05/18 01:51
Target Board: GEC2410 ( 64MRAM
编译环境: ubuntu7.10
交叉编译工具:
内核包:
1.交叉编译工具安装的路径: /usr/local/arm2410/
内核包放在某个地方,自己决定吧!
解压 file.tar.bz2的命令:
2.把交叉编译器路径添加到系统的路径中:
在alias l='ls -CF'后的空白处填上:
PATH=$PATH:/usr/local/arm2410/3.3.2/bin
export PATH
启动新系统路径:
#source /root/.bashrc
显示新系统路径:
# echo $PATH
查看交叉编译器版本号
# arm-linux-gcc -v
3.修改 linux-2.6.8的根目录下的 makfile 文件:
注释掉以下内容:
4.运行 #make menuconfig
出错:scripts/kconfig/mconf.c:91: error: static declaration of‘current_menu’ follows non-static declaration
scripts/kconfig/lkc.h:63: error: previous declaration of‘current_menu’ was here
make[1]: *** [scripts/kconfig/mconf.o] Error 1
make: *** [menuconfig] Error 2
解决办法:
修改 scripts/kconfig/mconf.c文件
static struct termios ios_org;
static int rows = 0, cols = 0;
static struct menu *current_menu;
//struct menu*current_menu;
static int child_count;
注释粗体行并取消其下行代码注释,结果如下
static struct termios ios_org;
static int rows = 0, cols = 0;
//static struct menu*current_menu;
struct menu*current_menu;
static int child_count;
再运行:#make menuconfig
出错:
>>
>>
>> You must install ncurses-devel inorder
>> to use 'make menuconfig'
make[2]: *** [scripts/lxdialog/ncurses] 错误 1
make[1]: *** [menuconfig] 错误 2
make: *** [menuconfig] 错误 2
解决办法: 安装ncurses-dev
#apt-get install ncurses-dev
再运行: #make menuconfig
最后:#
注意:更新 bootloader
< end >
Enjoy it !
注:CROSS-3.3.2
交叉编译工具下载地址:
arm-linux-gcc-3.4.1 http://www.handhelds.org/download/projects/toolchain/arm-linux-gcc-3.4.1.tar.bz2
arm-linux-gcc-3.3.2 http://www.handhelds.org/download/projects/toolchain/arm-linux-gcc-3.3.2.tar.bz2
- gec2410 inux2.6.8内核移植
- linux 2.6.14内核的移植(基于gec2410开发板)
- linux 2.6.14内核的移植(基于gec2410开发板)
- linux 2.6.24.4在S3C2410上的移植(内核配置)(基于GEC2410)
- inux2.6内核中unlikely和like函数的解释
- LCD驱动移植 Linux 2.6.22.19移植到S3C2410(GEC2410)
- linux-2.6.8.1到gec2410开发板的移植
- UBOOT-1.1.6在S3C2410上的移植(基于GEC2410)
- Linux 2.6.22.19移植到S3C2410(gec2410)之:madplay移植[转]
- 内核移植
- 内核移植
- 内核移植
- 内核移植
- 内核移植
- 内核移植
- 内核移植
- 内核移植
- 系统移植-内核移植
- vivi移植的悲喜交集经过
- S3C2410基于nandflash 的Hive-base…
- Ethernet的帧格式
- 解决WINCE无法保存RTC的问题
- 直流电机驱动电路应用
- gec2410 inux2.6.8内核移植
- Linux 获取本机IP地址
- nodejs框架expressJS跨域处理
- 一个点对点的UDP Socket建立过程
- Linux 串口编程
- PCB Layout 个人总结
- 30岁前不要在乎的事
- WinCE中中断的处理过程
- s3c2410裸跑uC/GUI