编译升级了内核2.6.20以后,启动进度条没了,全黑一片,但是系统一样能进

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
frgr
帖子: 11
注册时间: 2007-01-05 23:56

编译升级了内核2.6.20以后,启动进度条没了,全黑一片,但是系统一样能进

#1

帖子 frgr » 2007-02-18 2:44

怎么让进度条出来呢?
头像
booker
帖子: 116
注册时间: 2006-04-22 10:50
来自: Mito
联系:

#2

帖子 booker » 2007-02-18 12:13

也许跟grub设置有关。

我不太清楚。我用的lilo,每次都是一屏一屏的启动信息。
Ubuntu only now on Dell XPS M1710
zhwlyfx
帖子: 440
注册时间: 2007-01-21 15:44

#3

帖子 zhwlyfx » 2007-02-18 12:35

能进入控制台吗?如果能进,就生成initrd文件就可以了
雕啸长空
帖子: 1897
注册时间: 2006-09-12 14:09

#4

帖子 雕啸长空 » 2007-02-18 14:26

把menu.lst相关内容贴出来看看
Fair winds and following seas !
frgr
帖子: 11
注册时间: 2007-01-05 23:56

#5

帖子 frgr » 2007-02-18 20:48

应该跟grub没关系吧,我启动别的内核都有进度条的。
# 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'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default 0

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

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu

# 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_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=59651003-3855-4601-a3e2-4c6f5eb01430 ro
# kopt_2_6=root=/dev/hda8 ro

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

## 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

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash locale=zh_CN

## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) 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

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## ## End Default Options ##

title Ubuntu, kernel 2.6.20pm
root (hd0,7)
kernel /boot/vmlinuz-2.6.20pm root=/dev/hda8 ro quiet splash locale=zh_CN
initrd /boot/initrd.img-2.6.20pm
quiet
savedefault
boot

title Ubuntu, kernel 2.6.20pm (recovery mode)
root (hd0,7)
kernel /boot/vmlinuz-2.6.20pm root=/dev/hda8 ro single
initrd /boot/initrd.img-2.6.20pm
boot

title Ubuntu, kernel 2.6.17-11-generic
root (hd0,7)
kernel /boot/vmlinuz-2.6.17-11-generic root=/dev/hda8 ro quiet splash locale=zh_CN
initrd /boot/initrd.img-2.6.17-11-generic
quiet
savedefault
boot

title Ubuntu, kernel 2.6.17-11-generic (recovery mode)
root (hd0,7)
kernel /boot/vmlinuz-2.6.17-11-generic root=/dev/hda8 ro single
initrd /boot/initrd.img-2.6.17-11-generic
boot

title Ubuntu, kernel 2.6.17-10-generic
root (hd0,7)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hda8 ro quiet splash locale=zh_CN
initrd /boot/initrd.img-2.6.17-10-generic
quiet
savedefault
boot

title Ubuntu, kernel 2.6.17-10-generic (recovery mode)
root (hd0,7)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hda8 ro single
initrd /boot/initrd.img-2.6.17-10-generic
boot

title Ubuntu, memtest86+
root (hd0,7)
kernel /boot/memtest86+.bin
quiet
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


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda1
title Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1
头像
BigSnake.NET
帖子: 12522
注册时间: 2006-07-02 11:16
来自: 廣州
联系:

#6

帖子 BigSnake.NET » 2007-02-18 21:30

因為那個進度條需要相應版本的內核模塊支持..
^_^ ~~~
要理解递归,首先要理解递归。

地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
雕啸长空
帖子: 1897
注册时间: 2006-09-12 14:09

#7

帖子 雕啸长空 » 2007-02-19 9:38

楼上正解,像是在显卡配置的那一大块里面,比如我以前没有把frame buffer(控台下的显示支持吧)译入内核,就只能以640X480启动,否则跟LZ所碰问题一样

LZ可以先试着把splash删去看文本能不能正常显示
Fair winds and following seas !
bbsboy
帖子: 39
注册时间: 2007-02-05 11:23

#8

帖子 bbsboy » 2007-02-19 17:31

个人估计,原版的内核没有支持Ubuntu开机进度条的模块显示支持,所以没有显示出来,但是Ubuntu的内核有这个模块,而且系统里面安装了相应的包,所以能够正常调用显示和运行,如果把grub里面的kernel /boot/vmlinuz-2.6.20pm root=/dev/hda8 ro quiet splash locale=zh_CN这一行的quiet splash这两个向内核传送的参数去掉,改成这样:
kernel /boot/vmlinuz-2.6.20pm root=/dev/hda8 ro locale=zh_CN
再去掉 quiet 这一行就可以看到文字了,至于显示进度条嘛,这个倒是没有刻意去研究过,不过我发现更新开机进度条的时候都会更新boot下的那个内核deb包,或许楼主应该先重新安装一下进度条的那个包,然后再看看,如果还是不能正常显示的话,那么就说明需要内核里面相应的模块支持了,自己想办法再编译一次吧.
yohu
帖子: 955
注册时间: 2006-12-18 17:04
来自: 福建泉州

#9

帖子 yohu » 2007-02-19 17:35

楼主试试

代码: 全选

sudo dpkg-reconfigure usplash
然后重启,注意menu.lst里面要象ls说的要有quiet splash。
再不行就卸载usplash重装试试。
拥有超级牛力的搜索引擎:
http://www.google.com/linux
http://www.google.com/
头像
booker
帖子: 116
注册时间: 2006-04-22 10:50
来自: Mito
联系:

#10

帖子 booker » 2007-02-19 21:45

不知道用lilo启动的,可否支持那个usplash呢?

估计是不行吧。

还是刷文字的比较好。至少确切的知道启动到什么位置了
Ubuntu only now on Dell XPS M1710
frgr
帖子: 11
注册时间: 2007-01-05 23:56

#11

帖子 frgr » 2007-02-20 1:14

谢谢各位的耐心回答,刚刚试了下yohu说的,还是不行,明天重新编译内核试试。
我也不是非要使用那个进度条,只是既然碰到问题,就想要解决它,知道问题的所在。大家一起来解决问题,让新手知道问题的所在,让老手验证自己的知识。这样我们才能在linux上一天天的进步。
接触linux时间不长,之前搜索过,没找到答案,不得已只好求助。

谢谢大家!
frgr
帖子: 11
注册时间: 2007-01-05 23:56

#12

帖子 frgr » 2007-02-20 1:39

frame buffer我也已经编译进内核了,对比原来内核启动(文字启动),发现新内核文字模式下分辨率比较低,我对比两个内核,frame buffer都是已经编译进去了。
今天要睡觉了,明天重新编译内核试试。
我把我的2.6.20配置中关于显卡的放上来,大家帮我看看,谢谢。


# Graphics support
#
CONFIG_FIRMWARE_EDID=y
CONFIG_FB=y
CONFIG_FB_DDC=y
CONFIG_FB_CFB_FILLRECT=y
CONFIG_FB_CFB_COPYAREA=y
CONFIG_FB_CFB_IMAGEBLIT=y
# CONFIG_FB_MACMODES is not set
# CONFIG_FB_BACKLIGHT is not set
CONFIG_FB_MODE_HELPERS=y
# CONFIG_FB_TILEBLITTING is not set
# CONFIG_FB_CIRRUS is not set
# CONFIG_FB_PM2 is not set
# CONFIG_FB_CYBER2000 is not set
# CONFIG_FB_ARC is not set
# CONFIG_FB_ASILIANT is not set
# CONFIG_FB_IMSTT is not set
# CONFIG_FB_VGA16 is not set
# CONFIG_FB_VESA is not set
# CONFIG_FB_HGA is not set
# CONFIG_FB_S1D13XXX is not set
# CONFIG_FB_NVIDIA is not set
# CONFIG_FB_RIVA is not set
# CONFIG_FB_I810 is not set
# CONFIG_FB_INTEL is not set
# CONFIG_FB_MATROX is not set
CONFIG_FB_RADEON=y
CONFIG_FB_RADEON_I2C=y
# CONFIG_FB_RADEON_DEBUG is not set
# CONFIG_FB_ATY128 is not set
# CONFIG_FB_ATY is not set
# CONFIG_FB_SAVAGE is not set
# CONFIG_FB_SIS is not set
# CONFIG_FB_NEOMAGIC is not set
# CONFIG_FB_KYRO is not set
# CONFIG_FB_3DFX is not set
# CONFIG_FB_VOODOO1 is not set
# CONFIG_FB_CYBLA is not set
# CONFIG_FB_TRIDENT is not set
# CONFIG_FB_GEODE is not set
# CONFIG_FB_VIRTUAL is not set

#
# Console display driver support
#
CONFIG_VGA_CONSOLE=y
# CONFIG_VGACON_SOFT_SCROLLBACK is not set
CONFIG_VIDEO_SELECT=y
CONFIG_DUMMY_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE=m
# CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set
# CONFIG_FONTS is not set
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=y

#
# Logo configuration
#
# CONFIG_LOGO is not set
CONFIG_BACKLIGHT_LCD_SUPPORT=y
CONFIG_BACKLIGHT_CLASS_DEVICE=m
CONFIG_BACKLIGHT_DEVICE=y
CONFIG_LCD_CLASS_DEVICE=m
CONFIG_LCD_DEVICE=y
frgr
帖子: 11
注册时间: 2007-01-05 23:56

#13

帖子 frgr » 2007-02-20 1:43

还有内核编译的时候,依赖性怎么去查,就是某个选项依赖另外一些选项,我该怎么去得知具体依赖哪些选项呢?
望各位不吝赐教!
yohu
帖子: 955
注册时间: 2006-12-18 17:04
来自: 福建泉州

#14

帖子 yohu » 2007-02-20 2:35

CONFIG_FRAMEBUFFER_CONSOLE=m

fb不能编译成模块,要直接编译进去。我上次遇到过一次。
拥有超级牛力的搜索引擎:
http://www.google.com/linux
http://www.google.com/
雕啸长空
帖子: 1897
注册时间: 2006-09-12 14:09

#15

帖子 雕啸长空 » 2007-02-20 7:48

frgr 写了:还有内核编译的时候,依赖性怎么去查,就是某个选项依赖另外一些选项,我该怎么去得知具体依赖哪些选项呢?
望各位不吝赐教!
访项的说明里面都会提到依赖性,记得里面有这种依赖性的选项好像不是很多
Fair winds and following seas !
回复