Chinaunix首页 | 论坛 | 博客
  • 博客访问: 356461
  • 博文数量: 34
  • 博客积分: 2236
  • 博客等级: 大尉
  • 技术积分: 476
  • 用 户 组: 普通用户
  • 注册时间: 2006-02-25 14:36
文章分类

全部博文(34)

文章存档

2016年(2)

2014年(1)

2012年(2)

2011年(3)

2010年(3)

2009年(5)

2008年(9)

2007年(3)

2006年(6)

分类: LINUX

2007-12-10 14:25:40

1 下载解压内核:
  wget
  tar -jxvf  
2 生成内核配置信息cd ;cp oka3-all-mostmod.config .config;make oldconfig
3 定制内核make menuconfig
出现错误1:configure: error: C++ preprocessor "/lib/cpp" fails sanity check See `config.log' for more details
是header和gcc没有安装的缘故,
rpm -ivh glibc-headers-2.5-12.i386.rpm
rpm -ivh gcc*即可
  出现错误2:
In file included from scripts/kconfig/lxdialog/checklist.c:24:
scripts/kconfig/lxdialog/dialog.h:32:20: error: curses.h: No such file or directory
In file included from scripts/kconfig/lxdialog/checklist.c:24:
----------
scripts/kconfig/lxdialog/checklist.c:220: error: 'FALSE' undeclared (first use in this  error: 'KEY_RESIZE' undeclared (first use in this function)
make[1]: *** [scripts/kconfig/lxdialog/checklist.o] Error 1
make: *** [menuconfig] Error 2
安装libncurses5-dev即可 
即安装rpm -ivh ncurses-devel-5.5-24.20060715.i386.rpm
  不出错后继续定制内核
4 make all;make modules_install;make install
5 vi /boot/grub/grub.conf修改启动kernel为新内核即可
以下附上内核配置文件做参考:
文件: oka3-all-most-mod.rar
大小: 16KB
下载: 下载
阅读(1666) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~