iceco 发表于 2003-6-9 12:18:32

内核无法引导到2.4.20

Redhat8.0with kernel2.4.18-14
早上刚重新编译了2.4.20,编译过程没什么问题,只是到了一步修改/boot的
# cd /boot
# rm System.map
# rm vmlinuz
# mv /usr/src/linux-2.4.18-3/System.map System.map
# mv /usr/src/linux-2.4.18-3/arch/i386/boot/bzImage vmlinux
我在linux-2.4.20里找不到那System.map,bzImage,看了2.4.20的README也说得模糊不清:
If you boot Linux from the hard drive, chances are you use LILO which
   uses the kernel image as specified in the file /etc/lilo.conf.The
   kernel image file is usually /vmlinuz, /boot/vmlinuz, /bzImage or
   /boot/bzImage.To use the new kernel, save a copy of the old image
   and copy the new image over the old one.Then, you MUST RERUN LILO
   to update the loading map!! If you don't, you won't be able to boot
   the new kernel image.
我用的是grub,也找不到/vmlinuz,/boot/vmliuz,/bzImage

估计我的问题是无法引导到2.4.20的内核,只能引导到原来2.4.18的内核,这要怎么改?

willnet 发表于 2003-6-9 13:21:52

我也是有同样的问题,请大虾们帮帮我们啊! :x:x:x:oops::oops::oops:

llc 发表于 2003-6-9 13:34:13

编译完毕后,源码目录下make install如何?

黑企鹅 发表于 2003-6-9 15:32:53

Re: 内核无法引导到2.4.20

Redhat8.0with kernel2.4.18-14
早上刚重新编译了2.4.20,编译过程没什么问题,只是到了一步修改/boot的
# cd /boot
# rm System.map
# rm vmlinuz
# mv /usr/src/linux-2.4.18-3/System.map System.map
# mv /usr/src/linux-2.4.18-3/arch/i386/boot/bzImage vmlinux
我在linux-2.4.20里找不到那System.map,bzImage,看了2.4.20的README也说得模糊不清:
If you boot Linux from the hard drive, chances are you use LILO which
   uses the kernel image as specified in the file /etc/lilo.conf.The
   kernel image file is usually /vmlinuz, /boot/vmlinuz, /bzImage or
   /boot/bzImage.To use the new kernel, save a copy of the old image
   and copy the new image over the old one.Then, you MUST RERUN LILO
   to update the loading map!! If you don't, you won't be able to boot
   the new kernel image.
我用的是grub,也找不到/vmlinuz,/boot/vmliuz,/bzImage

估计我的问题是无法引导到2.4.20的内核,只能引导到原来2.4.18的内核,这要怎么改?
安装新内核后(复制新内核到/boot/下等)需要重新运行一下lilo

iceco 发表于 2003-6-9 16:58:13

Re: 内核无法引导到2.4.20


安装新内核后(复制新内核到/boot/下等)需要重新运行一下lilo
但我用grub的怎么办

iceco 发表于 2003-6-9 17:25:35

我也试了一下grub,运行后进入grub>后再quit退出,这样可以吗?

iceco 发表于 2003-6-9 17:53:16

编译完毕后,源码目录下make install如何?
运行后如下:
make: *** Error 1
make: Leaving directory `/usr/src/linux-2.4.20/arch/i386/kernel'
make: *** Error 2
不知是哪里错了

iceco 发表于 2003-6-9 21:44:00

再说明一下:

- In order to boot your new kernel, you'll need to copy the kernel
   image (found in .../linux/arch/i386/boot/bzImage after compilation)
   to the place where your regular bootable kernel is found.
我在那个编译完的linux-2.4.20里面是找不到bzImage的


   If you boot Linux from the hard drive, chances are you use LILO which
   uses the kernel image as specified in the file /etc/lilo.conf.The
kernel image file is usually /vmlinuz, /boot/vmlinuz, /bzImage or
   /boot/bzImage.To use the new kernel, save a copy of the old image
   and copy the new image over the old one.Then, you MUST RERUN LILO
   to update the loading map!! If you don't, you won't be able to boot
   the new kernel image.
我在那个编译完的linux-2.4.20和/boot里面也是找不到/vmlinuz,/boot/vmlinuz,/bzImage,/boot/bzImage的

Dragonfly 发表于 2003-6-9 21:46:51

do u make bzImage ok? if ok, u should be able to find u bzImage from arch/i386/boot

iceco 发表于 2003-6-10 08:42:14

do u make bzImage ok? if ok, u should be able to find u bzImage from arch/i386/boot
应该没问题,不过有问题的话应该和make install的结果一样吧:
make: *** Error 1
make: Leaving directory `/usr/src/linux-2.4.20/arch/i386/kernel'
make: *** Error 2

Dragonfly 发表于 2003-6-10 08:46:36

yes, u make install have such an error.

can u run make bzImage again and see if that is succ?

iceco 发表于 2003-6-10 16:54:49

我又编译了一下,在那步make bzImage的那步和make install一样的结果:
make: *** Error 1
make: Leaving directory `/usr/src/linux-2.4.20/arch/i386/kernel'
make: *** Error 2
怎么样?有没有得救?我应该没缺什么呀

Dragonfly 发表于 2003-6-10 21:15:05

so u make bzImage already wrong.
try to post more error msg here, sth before this error.
or use rh .config. or use a vanilla kernel.
页: [1]
查看完整版本: 内核无法引导到2.4.20