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 |
下载: |
下载 | |
阅读(1721) | 评论(0) | 转发(0) |