免费注册 查看新帖 |

Chinaunix

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

给gentoo加上漂亮的bootsplash,附图。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-12-13 19:34 |只看该作者 |倒序浏览
想起init3下面难看的字符终端,就算加上zhcon,看到熟悉的中文,也未免太单调了。所以还是决定弄一个splash和终端背景。


  1. 环境:VMware Server + gentoo2006.1 (stage2)
  2. 内核:kernel 2.6.19-gentoo-r1
复制代码


下面,秀一下我滴成果。

不要以为我只玩vm滴,其实我这个VM server上的兔兔,是自己的机器做的stage4
嗷嗷。。。
原帖在我的博客:http://www.win3c.com/?p=89

开始动工:
1、编译内核

  1. cd linux
  2. make oldconfig
  3. make modules_prepare
复制代码

把以下各项编译进内核.不要编译成模块,也不要开启 nvidia 或 ATI 选项(我们只要有vesa就可以了).

编译配置内核,使其支持gensplash,必要的选项如下:(引用了gentoo官方的 ,其实如果你以前编译了这些模块,这回就表折腾内核了!)


  1. Required Kernel OptionsLinux Kernel Configuration: 2.6 - Required for Non-genkernel & Genkernel users alike

  2. Device Drivers>

  3. Graphics support:>

  4. [*] Support for frame buffer devices

  5. <*> VESA VGA graphics support

  6. VESA driver type (vesafb-tng) —>

  7. (HRESxVRES@FREQ) VESA default mode

  8. # Pick your resolution@freq # Ex: (1024×768@72)

  9. Device Drivers>

  10. Graphics support>

  11. Console display driver support:

  12. [*] Video mode selection support

  13. <*> Framebuffer Console support

  14. Device Drivers>

  15. Graphics support:

  16. [*] Support for the framebuffer splash

  17. Note: The VESA default mode is set as res-bpps@freq, eg. 1280×1024-16@60 (please confirm) Linux Kernel Configuration: If you want to load the initramfs image dynamically at boot — you probably do — enable RAM disk support as well. (Genkernel users must select this option.)

  18. Device Drivers>

  19. Block devices:

  20. <*> RAM disk support (4096) Default RAM disk size (kbytes) (NEW)

  21. [*] Initial RAM disk (initrd) support

  22. Linux Kernel Configuration: If any of these options don’t show up, make sure you didn’t select tileblitting support.

  23. Device Drivers > Graphics support:

  24. [ ] Enable Tile Blitting Support

  25. Linux Kernel Configuration: If you want to get the F2 key working to switch to verbose and silent, you need the option CONFIG_INPUT_EVDEV =y set. It is under Device Drivers > Input Device Support <*>Event Interface
复制代码

2、创建initramfs图片。
自己修改了两幅图片(也不记得从哪里下载的了,可以搜索Gentoo-Blue-fbsplash)。

  1. emerge -va splashutils splash-themes-gentoo splash-themes-livecd -p
复制代码

发现系统里面有bootsplash,block了其他的包包,所以

  1. emerge –unmerge bootsplash
  2. emerge -va splashutils splash-themes-gentoo splash-themes-livecd
  3. emerge genkernel
  4. genkernel –gensplash=livecd-2006.1 initrd #这里,我已经替换了/etc/splash/livecd-2006.1里面的相关图片了(爱漂亮!没办法。)
复制代码

选择主题:

  1. splash_manager –theme=livecd-2006.1 –cmd=set –tty=1
复制代码


接下来就是修改/boot/grub/grub.conf配置文件了。

  1. title=Gentoo Linux 2.6.19 framebuffer
  2. root (hd0,0)
  3. kernel /vmlinuz splash=silent,fadein,theme:livecd-2006.1 video=vesafb:1024×768-16@60,mtrr,ywrap CONSOLE=/dev/tty1 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda3
  4. initrd /initramfs-genkernel-x86-2.6.19-gentoo-r1
复制代码


不出意外,你一reboot敲下去,重启就可以看到漂亮的splash画面了。

[ 本帖最后由 thatday 于 2006-12-26 15:49 编辑 ]

bootpic.jpg (54.95 KB, 下载次数: 66)

bootpic.jpg

bootsplash.jpg (132.63 KB, 下载次数: 87)

bootsplash.jpg

论坛徽章:
0
2 [报告]
发表于 2006-12-13 19:46 |只看该作者
牛 还能这样 我也试试看 帮你顶了

论坛徽章:
0
3 [报告]
发表于 2006-12-14 13:23 |只看该作者
谢谢楼主分享。

P.S:如果可以把代码用code修改会更好啦。

论坛徽章:
0
4 [报告]
发表于 2006-12-26 15:50 |只看该作者
谢谢版主提醒,已经code好了:)
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP