QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1146|回复: 3

我的内核编译都没问题,但是在最后。。。

[复制链接]
发表于 2003-5-1 14:47:44 | 显示全部楼层 |阅读模式
初次进行内核编译,编译成功了,但是内核更新。。。帮我看看什么问题。
我的linux 旧内核是 2.2.14-5.0 下载新内核2.2.15来练习内核编译。
我的操作如下:

#cp linux-2.2.15.tar.gz /usr/src
#cd /usr/src

#rm -f linux  去链接
#tar -xzvf linux-2.2.15.tar.gz

#mv linux linux-2.2.15
#ln -s linux-2.2.15 linux 建立链接
#cd /usr/src/linux

#make mrproper
#make menuconfig
# make dep
#make clean
#make modules
#make modules_install
(编译过程中没出现任何错误)

把编译好的文件移到/boot下
#cp /usr/src/linux/System.map /boot/System.map-2.2.15
#cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-2.2.15

修改链接指向新内核
#cd /boot
#rm -f System.map vmlinuz
#ln -s vmlinuz-2.2.15
#ln -s System.map -2.2.15.map
之后修改启动lilo.conf
vi /etc/lilo.conf
改成
image=/boot/vmlinuz(原来是image=/boot/vmlinuz-2.2.14-5.0)

然后我就重启。
但是来了进入的 还是2。2。14。-5。0的内核。

我还少什么步骤?
发表于 2003-5-1 22:34:04 | 显示全部楼层
before 然后我就重启, do u run lilo to make u modification effective?
u need run lilo after modifying lilo.conf, but need not run grub after u modifying grub.conf.
回复

使用道具 举报

发表于 2003-5-4 20:40:04 | 显示全部楼层
lilo -v -v -v,是不时这样
回复

使用道具 举报

发表于 2003-5-4 23:04:34 | 显示全部楼层
[quote:b8f30461ca="gprotection"]lilo -v -v -v,是不时这样[/quote]

-v is to give u more msg. lilo is enough.
but u had better add an entry instead of modifying an entry. once u new kernel fails to boot up, u still can use old one to boot.

be sure to enter u new option name when u see lilo: otherwise it still uses the default one, which usually is u old kernel.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-9-19 18:42 , Processed in 0.041375 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表