- 论坛徽章:
- 0
|
研究了近一周的bootsplash始终没有进展,特来求助各位达人
----------------------------------------------------------------------
小弟的研究环境如下
- FedoraCore4 Kernel 2.6.11-1.1369_FC4 on an i686
- GCC 3.4.0
- GNU Make 3.80
- Binutils 2.15.94.0.2.2
- module-init-tools 3.1
- tune2fs 1.37
- Kernel Source Linux-2.6.11.1
研究步骤如下:
----------------------------------------------------------------------
[root@HOST /]#ls /usr/src
linux-2.6.11.1
[root@HOST /]# ln -s /usr/src/linux-2.6.11.1 linux
[root@HOST /]# mv /usr/include/asm /usr/include/asm.bak
[root@HOST /]# mv /usr/include/linux /usr/include/linux.bak
[root@HOST /]# mv /usr/include/scsi /usr/include/scsi.bak
[root@HOST /]# ln -s /usr/src/linux/include/asm-i386 /usr/include/asm
[root@HOST /]# ln -s /usr/src/linux/include/linux /usr/include/linux
[root@HOST /]# ln -s /usr/src/linux/include/scsi /usr/include/scsi
[root@HOST /]# cp /bootsplash-3.1.6-2.6.11.diff /usr/src/
[root@HOST /]# cp /boot/config-2.6.11-1.1369_FC4 /usr/src/linux/config-FC4
[root@HOST /]# cd /usr/src/linux
[root@HOST linux]# patch -p1 < ../bootsplash-3.1.6-2.6.11.diff
[root@HOST linux]# make mrproper
[root@HOST linux]# make menuconfig
进入选择界面后
----------------------------------------------------------------------
Load an Alternate Configuration File ---> config-FC4
Code maturity level options --->
[ * ] Prompt for development and/or incomplete code/drivers //原本就为[ * ]
Processor type and features --->
[ * ] MTRR (Memory Type Range Register) support //原本就为[ * ]
Device Drivers --->
Block devices --->
<*> Loopback device support //原本为<M>
<*> RAM disk support //原本就为<*>
(4096) Default RAM disk size (kbytes) //原来为(16384)
[ * ] Initial RAM disk (initrd) support //原本就为[ * ]
Device Drivers --->
Graphics support --->
[ * ] Support for frame buffer devices //原本就为[ * ]
[ * ] VESA VGA graphics support //原本就为[ * ]
Device Drivers --->
Graphics support --->
Console display driver support --->
[ * ] Video mode selection support //原本就为[ * ]
<*> Framebuffer Console support //原本就为<*>
Device Drivers --->
Graphics support --->
Bootsplash configuration --->
[ * ] Bootup splash screen //原本为[ ]
保存为.config后继续
----------------------------------------------------------------------
[root@HOST linux]# make bzImage //成功
[root@HOST linux]# make modules //成功
[root@HOST linux]# make modules_install //成功
[root@HOST linux]# cp arch/i386/boot/bzImage /boot/bzImage-2.6.11.1
[root@HOST linux]# cd /bootsplash-3.1
[root@HOST bootsplash-3.1]# ls
COPYING Documentation Scripts Utilities Dolphin
[root@HOST bootsplash-3.1]# cd Utilities
[root@HOST Utilities]# make all //成功
[root@HOST Utilities]# cp fbresolution fbtruetype fbmngplay splash /sbin/
[root@HOST Utilities]# cd ../../
[root@HOST bootsplash-3.1]# mkdir /etc/bootsplash
[root@HOST bootsplash-3.1]# mkdir /etc/bootsplash/themes
[root@HOST bootsplash-3.1]# cp -r Dolphin /etc/bootsplash/themes/
[root@HOST bootsplash-3.1]# cd /etc/bootsplash/themes/Dolphin/
[root@HOST Dolphin]# ls
animations bootloader config docs images
[root@HOST Dolphin]# cd config
[root@HOST config]# ls
bootsplash-1024x768.cfg
[root@HOST config]# more bootsplash-1024x768.cfg
- # This is a bootsplash configuration file for
- # theme SuSE, resolution 1024x768. See
- # ftp://ftp.suse.com/pub/people/stepan/bootsplash for
- # more information. Comments are welcome by stepan@suse.de
- # config file version
- version=3
- # should the picture be displayed?
- state=1
- # fgcolor is the text forground color.
- # bgcolor is the text background (i.e. transparent) color.
- fgcolor=15 #0
- bgcolor=0 #15
- # (tx, ty) are the (x, y) coordinates of the text window in pixels.
- # tw/th is the width/height of the text window in pixels.
- tx=17
- ty=288
- tw=654
- th=426
- #text_x=204
- #text_y=544
- #text_size=26
- #text_color=0x000000
- # name of the picture file (full path recommended)
- jpeg=/etc/bootsplash/themes/Dolphin/images/bootsplash-1024x768.jpg
- silentjpeg=/etc/bootsplash/themes/Dolphin/images/bootsplash-1024x768.jpg
- progress_enable=0
- # background
- #box silent noover 204 582 820 612 #04045498
- #box silent inter 204 583 204 611 #ffffff #ffffff #526bb0 #526bb0
- #box silent 204 583 820 611 #ffffff #ffffff #526bb0 #526bb0
- # black border
- #box silent 204 582 820 582 #313234
- #box silent 204 612 820 612 #eef4ff
- #box silent 204 582 204 612 #313234
- #box silent 820 582 820 612 #eef4ff
- # text box (left, top)
- #box 19 19 19 679 #313234
- #box 19 19 1005 19 #313234
- # (right, bottom)
- #box 1005 19 1005 679 #eef4ff
- #box 19 679 1005 679 #eef4ff
- # box itself
- #box noover 17 288 648 712 #ff0000
- overpaintok=1
复制代码
[root@HOST config]# /sbin/splash -s -f bootsplash-1024x768.cfg > /boot/initrd-2.6.11.1.img
[root@HOST config]# cd ../images
[root@HOST images]# ls
bootsplash-1024x768.jpg
[root@HOST images]# cd /boot/grub
[root@HOST grub]# vi grub.conf
- # grub.conf generated by anaconda
- #
- # Note that you do not have to rerun grub after making changes to this file
- # NOTICE: You have a /boot partition. This means that
- # all kernel and initrd paths are relative to /boot/, eg.
- # root (hd0,0)
- # kernel /vmlinuz-version ro root=/dev/hda3
- # initrd /initrd-version.img
- #boot=/dev/hda
- default=1
- timeout=10
- splashimage=(hd0,0)/grub/splash.xpm.gz
- hiddenmenu
- title Fedora Core (2.6.11-1.1369_FC4)
- root (hd0,0)
- kernel /vmlinuz-2.6.11-1.1369_FC4 ro root=LABEL=/
- initrd /initrd-2.6.11-1.1369_FC4.img
- title MY LINUX (2.6.11.1)
- root (hd0,0)
- kernel /bzImage-2.6.11.1 ro root=/dev/hda3 vga=791 splash=silent
- initrd /initrd-2.6.11.1.img
复制代码
[root@HOST grub]# init 6
启动后图形界面可以显示,但是启动时停在
Kernel panic: VFS: Unable to mount root fs on unkown block(3,3)
如果将root=/dev/hda3改为root=/dev/hda1就显示
Kernel panic: VFS: Unable to mount root fs on unkown block(3,1)
如果将root=/dev/hda3改为root=LABEL=/就显示
Kernel panic: VFS: Unable to mount root fs on unkown block(0,0)
我的磁盘分区如下:
----------------------------------------------------------------------
[root@HOST /]df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda3 4559524 2108096 2216076 49% /
/dev/hda1 256666 14100 229314 6% /boot
/dev/shm 127808 0 127808 0% /dev/shm
小弟不知还有什么没有说清楚的,各位如有问题请留言,请帮帮忙,小弟在此跪谢
[ 本帖最后由 SnakeKisseR 于 2006-6-2 18:25 编辑 ] |
|