liang99314106 发表于 2003-5-6 17:46:34

如何真正启动新的内核

:-(
我已经把新的内核编译出来了
文件是bzImage
并且过程中没有任何的错误
请问各位高手如何使它真正启动呢?
我用的引导程序是grub

再者
我怎么知道我已经成功启动了新的内核呢?

liang99314106 发表于 2003-5-6 23:55:52

我自己编译了一个支持IPv6的新内核
但是如何知道已经启动了新的内核?
有没有方法可以知道新的内核已经启动了?

Dragonfly 发表于 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.

QQme 发表于 2003-5-7 06:31:50

uname -a 可以看到内核版本。
但是我有给疑问:
如果内核版本没变,只是加入了IPv6模块。那我如何检查是否是通过新内核引导。只有看lilo.conf和grub.conf的设置吗?
有没有一个命令来查看当前所引导的内核大小来判断是否为新内核引导?

Dragonfly 发表于 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.

Dragonfly 发表于 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.

liang99314106 发表于 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
error 2
leaving directory usr/src/linux-2.4.18-14/drivers/net
error 2
leaving directory usr/src/linux-2.4.18-14/drivers/net
error 2
我编了几次都是这样的错误啊
我不知道怎么样解决啊
班竹大哥你可要 好好帮帮我啊
谢谢啦

Dragonfly 发表于 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.

liang99314106 发表于 2003-5-10 18:25:10

班竹大哥你好啊
你说的
if u have makefile under driver/net/e100.
我不是很明白啊
你能给我再说说吗

linjiang_82 发表于 2003-5-10 22:51:20

我把内核重新编译了一遍,但是发现很多硬件的设备的驱动都不能加载(网卡,声卡,显卡),为什么???
在哪可以设置,我已经把显卡和声卡的驱动重新装上了,而且也可以用了,就是网卡还不能用??怎么办

Dragonfly 发表于 2003-5-11 01:38:53

班竹大哥你好啊
你说的
if u have makefile under driver/net/e100.
我不是很明白啊
你能给我再说说吗

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

Dragonfly 发表于 2003-5-11 01:40:25

我把内核重新编译了一遍,但是发现很多硬件的设备的驱动都不能加载(网卡,声卡,显卡),为什么???
在哪可以设置,我已经把显卡和声卡的驱动重新装上了,而且也可以用了,就是网卡还不能用??怎么办

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.

liang99314106 发表于 2003-5-12 17:42:03

请问班竹
我把内核编译好了
之后是不是一定要自己生成一个新的映像文件(initrd-2.4.18.img)之类的东西才能启动新内核啊
但是我不懂用一个什么命令来生成
是不是用mkinitrd命令啊
怎么用啊?

liang99314106 发表于 2003-5-12 20:31:13

好啊
谢谢啊
不用那个image的文件可以的吗?不会影响的吗?
好了我会认真看书的
希望我能自己解决拉
:mrgreen::mrgreen::mrgreen:

Dragonfly 发表于 2003-5-12 22:02:00

请问班竹
我把内核编译好了
之后是不是一定要自己生成一个新的映像文件(initrd-2.4.18.img)之类的东西才能启动新内核啊
但是我不懂用一个什么命令来生成
是不是用mkinitrd命令啊
怎么用啊?

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

我从不用。。。

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

that is because u do not meet the situations that need it.
页: [1] 2
查看完整版本: 如何真正启动新的内核