LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 842|回复: 3

安装新内核问题

[复制链接]
发表于 2007-3-25 13:14:26 | 显示全部楼层 |阅读模式
原来的内核是默认的

新装了一个内核 2.6.20.4

make menuconfig
make
make modules_install
make install

编辑grub.conf

  1. gentoo joey # cat /boot/grub/menu.lst
  2. default 0
  3. timeout 30
  4. splashimage=(hd0,2)/grub/splash.xpm.gz
  5. title=Gentoo Linux 2.6.20.4

  6. root (hd0,2)
  7. kernel /kernel-2.6.20 root=/dev/hda8 video=vesafb:1024x768-16@60,mtrr,ywrap splash=silent,fadein,theme:emergence
  8. quiet CONSOLE=/dev/tty1
  9. initrd (hd0,2)/boot/fbsplash-emergence-1024x768

  10. title=winxp

  11. rootnoverify (hd0,0)
  12. chainloader +1
复制代码


启动就出错了,说error 15 :file not found
/boot 是单独分区,内有如下文件或者文件夹
boot           fbsplash-emergence-1024x768  lost+found         vmlinuz
config         grub                         System.map         vmlinuz-2.6.20
config-2.6.20  kernel-2.6.18-suspend2-r1    System.map-2.6.20
发表于 2007-3-25 13:16:55 | 显示全部楼层
kernel /kernel-2.6.20 root=/dev/hda8 video=vesafb:1024x768-16@60,mtrr,ywrap splash=silent,fadein,theme:emergence
quiet CONSOLE=/dev/tty1

目录里是vmlinuz-2.6.20呀
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-3-25 13:53:52 | 显示全部楼层
难道 make install 的结果就是生成一个vmlinuz吗?
如果是cp arch/i386/boot/bzImage /boot/<kernel-verson>
其实是同一个东西,就是名字不同而已,这样说对不?
回复 支持 反对

使用道具 举报

发表于 2007-3-25 13:58:35 | 显示全部楼层
make install是将config-xxxx、system.map-xxxx和vmlinuz-xxxx三个文件copy到了/boot目录下。
cp arch/i386/boot/bzImage /boot/<kernel-verson>的只是vmlinuz-xxxx这个文件。
回复 支持 反对

使用道具 举报

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

本版积分规则

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