QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 887|回复: 3

编译内核后不能起动

[复制链接]
发表于 2003-12-20 12:23:46 | 显示全部楼层 |阅读模式
我用rh9 . xp
我用rh9编译2.6.0-test11的内核总是不成功.
root (hd0,7)
Filesystem type is ext2fs , parition type 0x83
Kernel /vmlinuz-2.6.0-11ro root=LABLE=/ hdc=ide-scsi
显示Error13:
Invalid or unsupported executable format

我的步骤是;make mrproper
           make xconfig
           make dep
           make bzImage
           make modules
           make modules_install

# cp /usr/src/linux/arch/i386/boot/linux.bin /boot/vmlinuz-2.6.0-11
# mkinitrd /boot/initrd-2.6.0-11img 2.6.0-11

在修改grub.conf
加入     title Red Hat Linux (2.6.0-11)
          root (hd0,7)
          kernel /vmlinuz-2.6.0-11 ro root=LABEL=/ hdc=ide-scsi
          initrd /initrd-2.4.19.img
还有我用make dep总是不成功.
显示  make dep ...unnecesssry..
那位大虾帮帮我!
发表于 2003-12-20 13:47:18 | 显示全部楼层
2.6内河不需要 make dep
回复

使用道具 举报

发表于 2003-12-21 14:31:09 | 显示全部楼层
你可能需要修改kernel /vmlinuz-2.6.0-11 ro root=LABEL=/ hdc=ide-scsi
成kernel /vmlinuz-2.6.0-11 ro root=/dev/hdax
x具体是几在grub.conf开头的注释中会有。
回复

使用道具 举报

发表于 2003-12-22 23:03:21 | 显示全部楼层
"# cp /usr/src/linux/arch/i386/boot/linux.bin /boot/vmlinuz-2.6.0-11 "

u should cp bzImage

" make dep ...unnecesssry.. "

already tell u  .unnecesssry..
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-9-14 11:05 , Processed in 0.046044 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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