QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 951|回复: 12

内核无法引导到2.4.20

[复制链接]
发表于 2003-6-9 12:18:32 | 显示全部楼层 |阅读模式
Redhat8.0  with 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的内核,这要怎么改?
发表于 2003-6-9 13:21:52 | 显示全部楼层
我也是有同样的问题,请大虾们帮帮我们啊!           
回复

使用道具 举报

发表于 2003-6-9 13:34:13 | 显示全部楼层
编译完毕后,源码目录下make install如何?
回复

使用道具 举报

发表于 2003-6-9 15:32:53 | 显示全部楼层

Re: 内核无法引导到2.4.20

[quote:f8d5464a79="iceco"]Redhat8.0  with 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的内核,这要怎么改?[/quote]
安装新内核后(复制新内核到/boot/下等)需要重新运行一下lilo
回复

使用道具 举报

 楼主| 发表于 2003-6-9 16:58:13 | 显示全部楼层

Re: 内核无法引导到2.4.20

[quote:bd27c2bef6="黑企鹅"]
安装新内核后(复制新内核到/boot/下等)需要重新运行一下lilo[/quote]
但我用grub的怎么办
回复

使用道具 举报

 楼主| 发表于 2003-6-9 17:25:35 | 显示全部楼层
我也试了一下grub,运行后进入grub>后再quit退出,这样可以吗?
回复

使用道具 举报

 楼主| 发表于 2003-6-9 17:53:16 | 显示全部楼层
[quote:84c28f563b="llc"]编译完毕后,源码目录下make install如何?[/quote]
运行后如下:
make[1]: *** [pci-i386.o] Error 1
make[1]: Leaving directory `/usr/src/linux-2.4.20/arch/i386/kernel'
make: *** [_dir_arch/i386/kernel] Error 2
不知是哪里错了
回复

使用道具 举报

 楼主| 发表于 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的
回复

使用道具 举报

发表于 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
回复

使用道具 举报

 楼主| 发表于 2003-6-10 08:42:14 | 显示全部楼层
[quote:5faa69c8be="Dragonfly"]do u make bzImage ok? if ok, u should be able to find u bzImage from arch/i386/boot[/quote]
应该没问题,不过有问题的话应该和make install的结果一样吧:
make[1]: *** [pci-i386.o] Error 1
make[1]: Leaving directory `/usr/src/linux-2.4.20/arch/i386/kernel'
make: *** [_dir_arch/i386/kernel] Error 2
回复

使用道具 举报

发表于 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?
回复

使用道具 举报

 楼主| 发表于 2003-6-10 16:54:49 | 显示全部楼层
我又编译了一下,在那步make bzImage的那步和make install一样的结果:
make[1]: *** [pci-i386.o] Error 1
make[1]: Leaving directory `/usr/src/linux-2.4.20/arch/i386/kernel'
make: *** [_dir_arch/i386/kernel] Error 2
怎么样?有没有得救?我应该没缺什么呀
回复

使用道具 举报

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

使用道具 举报

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

本版积分规则

GMT+8, 2024-9-18 15:41 , Processed in 0.077117 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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