- 论坛徽章:
- 0
|
想起init3下面难看的字符终端,就算加上zhcon,看到熟悉的中文,也未免太单调了。所以还是决定弄一个splash和终端背景。
- 环境:VMware Server + gentoo2006.1 (stage2)
- 内核:kernel 2.6.19-gentoo-r1
复制代码
下面,秀一下我滴成果。
不要以为我只玩vm滴,其实我这个VM server上的兔兔,是自己的机器做的stage4
嗷嗷。。。
原帖在我的博客:http://www.win3c.com/?p=89
开始动工:
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画面了。
[ 本帖最后由 thatday 于 2006-12-26 15:49 编辑 ] |
|