QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2738|回复: 29

如何真正启动新的内核

[复制链接]
发表于 2003-5-6 17:46:34 | 显示全部楼层 |阅读模式
:-(
我已经把新的内核编译出来了
文件是bzImage
并且过程中没有任何的错误
请问各位高手如何使它真正启动呢?
我用的引导程序是grub

再者
我怎么知道我已经成功启动了新的内核呢?
 楼主| 发表于 2003-5-6 23:55:52 | 显示全部楼层
我自己编译了一个支持IPv6的新内核
但是如何知道已经启动了新的内核?
有没有方法可以知道新的内核已经启动了?
回复

使用道具 举报

发表于 2003-5-7 01:23:02 | 显示全部楼层
do what Axin suggest, install it, and reboot. use uname -a should be able to see the changed version.
回复

使用道具 举报

发表于 2003-5-7 06:31:50 | 显示全部楼层
uname -a 可以看到内核版本。
但是我有给疑问:
如果内核版本没变,只是加入了IPv6模块。那我如何检查是否是通过新内核引导。只有看lilo.conf和grub.conf的设置吗?
有没有一个命令来查看当前所引导的内核大小来判断是否为新内核引导?
回复

使用道具 举报

发表于 2003-5-7 08:41:47 | 显示全部楼层
linux use the version number to distriguish the kernel version. but if version number is the same, then u have to use other way. for example, u save a copy of old kernel symbol table. and then use the new one to diff with old one, if have problem, then u can know u are using the new one. can check the /proc/ksyms to get the symbol table.
回复

使用道具 举报

发表于 2003-5-7 08:59:09 | 显示全部楼层
another two ways are if u have /proc fs support, or have sysctl support, u will have ipv6 related entries under /proc/net and /proc/sys.
回复

使用道具 举报

 楼主| 发表于 2003-5-9 22:04:20 | 显示全部楼层
cheungming
你好啊
不好意思啊又要麻烦你啦
因为我在上次的编好的内核的启动的问题搞不好所以我又重装了一次linux
但是重装后再编内核的时候就怎么也编不了啊
总是会出错啊
错误信息是这样的:
no rule to make target "e100/0100.o" needed by "net.o" . stop
leaving directory usr/src/linux-2.4.18-14/drivers/net
  [first_rule] error 2
leaving directory usr/src/linux-2.4.18-14/drivers/net
[_subdir_net] error 2
leaving directory usr/src/linux-2.4.18-14/drivers/net
[_dir-drivers] error 2
我编了几次都是这样的错误啊
我不知道怎么样解决啊
班竹大哥你可要 好好帮帮我啊
谢谢啦
回复

使用道具 举报

发表于 2003-5-9 22:24:42 | 显示全部楼层
e100 does not have a 0100.o. should be e100.o
if u have makefile under driver/net/e100. u should have no problem.
回复

使用道具 举报

 楼主| 发表于 2003-5-10 18:25:10 | 显示全部楼层
班竹大哥你好啊
你说的
if u have makefile under driver/net/e100.
我不是很明白啊
你能给我再说说吗
回复

使用道具 举报

发表于 2003-5-10 22:51:20 | 显示全部楼层
我把内核重新编译了一遍,但是发现很多硬件的设备的驱动都不能加载(网卡,声卡,显卡),为什么???
在哪可以设置,我已经把显卡和声卡的驱动重新装上了,而且也可以用了,就是网卡还不能用??怎么办
回复

使用道具 举报

发表于 2003-5-11 01:38:53 | 显示全部楼层
[quote:615d2a5d99="liang99314106"]班竹大哥你好啊
你说的
if u have makefile under driver/net/e100.
我不是很明白啊
你能给我再说说吗[/quote]

check if u have file 'Makefile' under driver/net/e100. u mean e100.o or 0100.o no 0100.x file there.
回复

使用道具 举报

发表于 2003-5-11 01:40:25 | 显示全部楼层
[quote:684a84f5c6="linjiang_82"]我把内核重新编译了一遍,但是发现很多硬件的设备的驱动都不能加载(网卡,声卡,显卡),为什么???
在哪可以设置,我已经把显卡和声卡的驱动重新装上了,而且也可以用了,就是网卡还不能用??怎么办[/quote]

check u network device section when configing the kernel.
if u nic works under u old kernel. then reboot with u old kernel and see which module it use.
which nic u use? i means the chip name.
回复

使用道具 举报

 楼主| 发表于 2003-5-12 17:42:03 | 显示全部楼层
请问班竹
我把内核编译好了
之后是不是一定要自己生成一个新的映像文件(initrd-2.4.18.img)之类的东西才能启动新内核啊
但是我不懂用一个什么命令来生成
是不是用mkinitrd命令啊
怎么用啊?
回复

使用道具 举报

 楼主| 发表于 2003-5-12 20:31:13 | 显示全部楼层
好啊
谢谢啊
不用那个image的文件可以的吗?不会影响的吗?
好了我会认真看书的
希望我能自己解决拉
    
回复

使用道具 举报

发表于 2003-5-12 22:02:00 | 显示全部楼层
[quote:f01ae9f7b0="Axin"][quote:f01ae9f7b0="liang99314106"]请问班竹
我把内核编译好了
之后是不是一定要自己生成一个新的映像文件(initrd-2.4.18.img)之类的东西才能启动新内核啊
但是我不懂用一个什么命令来生成
是不是用mkinitrd命令啊
怎么用啊?[/quote]

对的,是这个命令。其实这个文件对你来说可有可无。。

我从不用。。。

http://www.neweasier.com/article/2002-08-04/1028404364.html希望这个能帮你一点,如果你不熟的话。
问题不能解决的时候,尽量的自己找资料解决问题,再搞不定,大家再一起上。。。[/quote]

that is because u do not meet the situations that need it.
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-5-22 23:02 , Processed in 0.089735 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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