浙林龙哥

   :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

想起init3下面难看的字符终端,就算加上zhcon,看到熟悉的中文,也未免太单调了。所以还是决定弄一个splash和终端背景。

下面,秀一下我滴成果。

不要以为我只玩vm滴,其实我这个VM server上的兔兔,是自己的机器做的stage4 :)
嗷嗷。。。

bootpic.jpg       bootsplash.JPG

download   

开始动工:
1、编译内核
cd linux
make oldconfig
make modules_prepare

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

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

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

Device Drivers>

Graphics support:>

[*] Support for frame buffer devices

 <*> VESA VGA graphics support

VESA driver type (vesafb-tng) —>

(HRESxVRES@FREQ) VESA default mode

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

Device Drivers>

Graphics support>

Console display driver support:

[*] Video mode selection support

<*> Framebuffer Console support

Device Drivers>

Graphics support:

[*] Support for the framebuffer splash

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

Device Drivers>

Block devices:

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

 [*] Initial RAM disk (initrd) support

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

 Device Drivers > Graphics support:

[ ] Enable Tile Blitting Support

 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)。

emerge -va splashutils splash-themes-gentoo splash-themes-livecd -p
发现系统里面有bootsplash,block了其他的包包,所以
emerge –unmerge bootsplash
emerge -va splashutils splash-themes-gentoo splash-themes-livecd
emerge genkernel
genkernel –gensplash=livecd-2006.1 initrd #这里,我已经替换了/etc/splash/livecd-2006.1里面的相关图片了(爱漂亮!没办法。)
选择主题:
splash_manager –theme=livecd-2006.1 –cmd=set –tty=1

接下来就是修改/boot/grub/grub.conf配置文件了。
title=Gentoo Linux 2.6.19 framebuffer
root (hd0,0)
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
initrd /initramfs-genkernel-x86-2.6.19-gentoo-r1

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

posted on 2007-03-11 21:00  浙林龙哥  阅读(930)  评论(0编辑  收藏  举报