免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1242 | 回复: 2
打印 上一主题 下一主题

半疯状态求助----BootSplash(此贴为准) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-06-02 17:34 |只看该作者 |倒序浏览
研究了近一周的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

  1. # This is a bootsplash configuration file for
  2. # theme SuSE, resolution 1024x768. See
  3. # ftp://ftp.suse.com/pub/people/stepan/bootsplash for
  4. # more information. Comments are welcome by stepan@suse.de

  5. # config file version
  6. version=3

  7. # should the picture be displayed?
  8. state=1

  9. # fgcolor is the text forground color.
  10. # bgcolor is the text background (i.e. transparent) color.
  11. fgcolor=15 #0
  12. bgcolor=0 #15

  13. # (tx, ty) are the (x, y) coordinates of the text window in pixels.
  14. # tw/th is the width/height of the text window in pixels.
  15. tx=17
  16. ty=288
  17. tw=654
  18. th=426

  19. #text_x=204
  20. #text_y=544
  21. #text_size=26
  22. #text_color=0x000000

  23. # name of the picture file (full path recommended)
  24. jpeg=/etc/bootsplash/themes/Dolphin/images/bootsplash-1024x768.jpg
  25. silentjpeg=/etc/bootsplash/themes/Dolphin/images/bootsplash-1024x768.jpg

  26. progress_enable=0

  27. # background
  28. #box silent noover  204 582 820 612 #04045498
  29. #box silent inter 204 583 204 611 #ffffff #ffffff #526bb0 #526bb0
  30. #box silent       204 583 820 611 #ffffff #ffffff #526bb0 #526bb0
  31. # black border
  32. #box silent         204 582 820 582 #313234
  33. #box silent         204 612 820 612 #eef4ff
  34. #box silent         204 582 204 612 #313234
  35. #box silent         820 582 820 612 #eef4ff

  36. # text box (left, top)
  37. #box     19 19  19 679 #313234
  38. #box     19 19 1005 19 #313234
  39. # (right, bottom)
  40. #box     1005 19 1005 679 #eef4ff
  41. #box     19 679 1005 679 #eef4ff

  42. # box itself
  43. #box noover 17 288 648 712 #ff0000

  44. 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

  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,0)
  7. #          kernel /vmlinuz-version ro root=/dev/hda3
  8. #          initrd /initrd-version.img
  9. #boot=/dev/hda
  10. default=1
  11. timeout=10
  12. splashimage=(hd0,0)/grub/splash.xpm.gz
  13. hiddenmenu
  14. title Fedora Core (2.6.11-1.1369_FC4)
  15.         root (hd0,0)
  16.         kernel /vmlinuz-2.6.11-1.1369_FC4 ro root=LABEL=/
  17.         initrd /initrd-2.6.11-1.1369_FC4.img
  18. title MY LINUX (2.6.11.1)
  19.         root (hd0,0)
  20.         kernel /bzImage-2.6.11.1 ro root=/dev/hda3 vga=791 splash=silent
  21.         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 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2006-06-02 20:12 |只看该作者
你的initrd文件里现在放的应该是bootsplash图片吧,但你要知道initrd于原来是做什么用的,是你机器内核驱动,你先看一下你的文件系统模块有没有编译进kernel,如果没有,重编内核,把文件系统支持直接编译到核心里去

论坛徽章:
0
3 [报告]
发表于 2006-06-03 15:30 |只看该作者
谢谢MARS_DIY的指点,可是我已经尝试了,将所有的文件系统都编译进去,可是问题是一样的,还有哪位能帮帮忙
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP