LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: 小wing

编译2.6.15.2内核时碰到问题了,请大家帮帮忙(疯了,又失败了!!!)

[复制链接]
发表于 2006-2-8 23:07:53 | 显示全部楼层
看来你没玩过slk
看我的
  1. # grub.conf generated by anaconda
  2. #
  3. # Note that you do not have to rerun grub after making changes to this file
  4. # NOTICE:  You have a /boot partition.  This means that
  5. #          all kernel and initrd paths are relative to /boot/, eg.
  6. #          root (hd0,8)
  7. #          kernel /vmlinuz-version ro root=/dev/hda10
  8. #          initrd /initrd-version.img
  9. #          vga=834 1400x1050  788=1024x768
  10. #boot=/dev/hda
  11. default=1
  12. timeout=3
  13. splashimage=(hd0,6)/grub/debian_blue.xpm.gz
  14. #hiddenmenu
  15. title   Debian (2.6.15-1-686)
  16.         root            (hd0,6)
  17.         kernel          /vmlinuz-2.6.15-1-686 root=/dev/hda5 ro vga=834
  18.         initrd          /initrd.img-2.6.15-1-686
  19. title   Debian (Kernel 2.6 latest) Suspend2 Win4lin
  20.         root (hd0,6)
  21.         kernel           /vmlinuz  ro root=/dev/hda5  resume2=swap:/dev/hda8 vga=834
复制代码
回复 支持 反对

使用道具 举报

发表于 2006-2-8 23:25:57 | 显示全部楼层
Post by lindazhang
我的做法是:
安装deb包以后,再
mkinitrd -o /boot/initrd-2.6.15-2  2.6.15-2
然后,vi /boot/grub/menu.lst
添加
initrd   initrd-2.6.15-2  2.6.15-2


我的做法和这位兄台相同,并且我编译内核是用官方内核的配置文件,改动的地方一般只是将我用的文件系统和硬件直接编进去:)
回复 支持 反对

使用道具 举报

发表于 2006-2-9 01:12:12 | 显示全部楼层
Post by linuxcpp
看来你没玩过slk
看我的


  1. # grub.conf generated by anaconda
  2. #
  3. # Note that you do not have to rerun grub after making changes to this file
  4. # NOTICE:  You have a /boot partition.  This means that
  5. #          all kernel and initrd paths are relative to /boot/, eg.
  6. #          root (hd0,8)
  7. #          kernel /vmlinuz-version ro root=/dev/hda10
  8. #          initrd /initrd-version.img
  9. #          vga=834 1400x1050  788=1024x768
  10. #boot=/dev/hda
  11. default=1
  12. timeout=3
  13. splashimage=(hd0,6)/grub/debian_blue.xpm.gz
  14. #hiddenmenu
  15. title   Debian (2.6.15-1-686)
  16.         root            (hd0,6)
  17.         kernel          /vmlinuz-2.6.15-1-686 root=/dev/hda5 ro vga=834
  18.         initrd          /initrd.img-2.6.15-1-686

  19. title   Debian (Kernel 2.6 latest) Suspend2 Win4lin
  20.         root (hd0,6)
  21.         kernel           /vmlinuz  ro root=/dev/hda5  resume2=swap:/dev/hda8 vga=834


复制代码



slk是什么?不懂
你第二项的是用来玩Win4lin 的吧

一直以来我安装系统和启动安装好的系统都没有少过initrd的,并且Debian 默认安装不是也有这个的吗
回复 支持 反对

使用道具 举报

发表于 2006-2-9 06:25:56 | 显示全部楼层
slk 应该是指 slackware

initrd 并非必要的,关於initrd 的作用,请阅读日月教主的两篇大作:

http://www.linuxsir.cn/bbs/showthread.php?t=184629
http://www.linuxsir.cn/bbs/showthread.php?t=113586
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-9 08:41:06 | 显示全部楼层
Post by d00m3d
我猜可能是有些选项没选对吧,把你的.config 上传来看看 (注:太长了,是上传,不要贴)


我将.config压成了一个gz包上传了,请各位有空的话可以帮我看看。

下一次编译我打算把2.6.12的config文件拿来不改了,看看默认设置能不能通过~~~

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2006-2-9 10:57:39 | 显示全部楼层
Post by d00m3d
slk 应该是指 slackware

initrd 并非必要的,关於initrd 的作用,请阅读日月教主的两篇大作:

http://www.linuxsir.cn/bbs/showthread.php?t=184629
http://www.linuxsir.cn/bbs/showthread.php?t=113586



如果不是必须的,那编译时要设置什么编译完成启动时才不会要求必须有initrd?
回复 支持 反对

使用道具 举报

发表于 2006-2-9 13:00:35 | 显示全部楼层
Post by nkbai
我编译时也碰到了同样的显示问题,我将ide的驱动支持编译进了内核而不是作为模块
Ata/atapi/mfm/rll/support 一栏中只要是通用的我都是编译进了内核,结果就可以了.哪个问题就消失了,不过由于声卡驱动没有选好,mplayer不能播放电影了,但是bmp可以播放mp3,

好像就是这个问题
以前我在600E上编译2.6.13的时候也遇到过lz的同样问题
好像后来就是用楼上XD的方法解决的
回复 支持 反对

使用道具 举报

发表于 2006-2-11 00:11:47 | 显示全部楼层
我编译的时候没有initrd。。。好象也可以的,但是究竟怎么回事就不清楚了!现在用的2.6.14.3

menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.           
default                0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout                5

# Pretty colours
color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title                Windows 95/98/NT/2000
# root                (hd0,0)
# makeactive
# chainloader        +1
#
# title                Linux
# root                (hd0,1)
# kernel        /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
# kopt=root=/dev/hda3 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,2)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery mode) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## ## End Default Options ##

title                Debian GNU/Linux, kernel 2.6.14.3
root                (hd0,2)
kernel                /boot/vmlinuz root=/dev/hda3 ro
savedefault
boot

title                Debian GNU/Linux, kernel 2.6.14.3  (recovery mode)
root                (hd0,2)
kernel                /boot/vmlinuz root=/dev/hda3 ro single
savedefault
boot

title                Debian GNU/Linux, kernel 2.6.8-2-386
root                (hd0,2)
kernel                /boot/vmlinuz-2.6.8-2-386 root=/dev/hda3 ro
initrd                /boot/initrd.img-2.6.8-2-386
savedefault
boot

title                Debian GNU/Linux, kernel 2.6.8-2-386 (recovery mode)
root                (hd0,2)
kernel                /boot/vmlinuz-2.6.8-2-386 root=/dev/hda3 ro single
initrd                /boot/initrd.img-2.6.8-2-386
savedefault
boot

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title                Other operating systems:
root# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.           
default                0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout                5

# Pretty colours
color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title                Windows 95/98/NT/2000
# root                (hd0,0)
# makeactive
# chainloader        +1
#
# title                Linux
# root                (hd0,1)
# kernel        /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
# kopt=root=/dev/hda3 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,2)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery mode) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## ## End Default Options ##

title                Debian GNU/Linux, kernel 2.6.14.3
root                (hd0,2)
kernel                /boot/vmlinuz root=/dev/hda3 ro
savedefault
boot

title                Debian GNU/Linux, kernel 2.6.14.3  (recovery mode)
root                (hd0,2)
kernel                /boot/vmlinuz root=/dev/hda3 ro single
savedefault
boot

title                Debian GNU/Linux, kernel 2.6.8-2-386
root                (hd0,2)
kernel                /boot/vmlinuz-2.6.8-2-386 root=/dev/hda3 ro
initrd                /boot/initrd.img-2.6.8-2-386
savedefault
boot

title                Debian GNU/Linux, kernel 2.6.8-2-386 (recovery mode)
root                (hd0,2)
kernel                /boot/vmlinuz-2.6.8-2-386 root=/dev/hda3 ro single
initrd                /boot/initrd.img-2.6.8-2-386
savedefault
boot
回复 支持 反对

使用道具 举报

发表于 2006-2-11 06:49:58 | 显示全部楼层
Post by gdxk
如果不是必须的,那编译时要设置什么编译完成启动时才不会要求必须有initrd?
粗略地对比了一下楼主的2.6.15.2的.config及我自己的2.6.12.4的.config发觉2.6.15.2的内容有很多不同,在2.6.12.x有个initrd的选项在2.6.15.2已不存在,要仔细再看看2.6.15.2的精髓
回复 支持 反对

使用道具 举报

发表于 2006-2-11 10:44:19 | 显示全部楼层
现在到4了
估计16快出了
呵呵
我还用15呢
回复 支持 反对

使用道具 举报

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

本版积分规则

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