LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1124|回复: 5

gensplash 即 fbsplash + splashutils 安装流程

[复制链接]
发表于 2006-7-20 13:42:02 | 显示全部楼层 |阅读模式
因为 bootsplash 要修改 sysv-rc 文件,过程麻烦一些, 而 gensplash 作为 bootsplash 的替代,感觉还是不错的,相对来说安装也简单一些。

主页:http://dev.gentoo.org/~spock/projects/gensplash

gensplash 有两部分组成:fbsplash + splashutils

1. 首先需要给内核打 fbsplash 补丁。
补丁位置: http://dev.gentoo.org/~spock/projects/gensplash/archive

下载合适你内核的 fbsplash 补丁,比如我用的是 debian 官方的linux-source-2.6.17 内核,测试发现
http://dev.gentoo.org/~spock/pro ... 9.2-r5-2.6.16.patch
能正确 patch
而 current patch:
http://dev.gentoo.org/~spock/pro ... -git-20060629.patch
不能正确 patch
当然你也可以用 linux-source-2.6.16 源码:
  1. $ aptitude install linux-source-2.6.16
  2. $ cd /usr/src
  3. $ tar xjf linux-source-2.6.16.tar.bz2
复制代码
  1. $ cd /usr/src/to-your-kernel
  2. $ patch -p1 < ../fbsplash-0.9.2-r5-2.6.16.patch
  3. $ cat ../fbsplash-0.9.2-r5-2.6.16.patch | patch p1
复制代码

2. 配置内核
接下来使用你最熟悉的方式编译内核,注意内核引导时需要 initrd 支持,比如我习惯用 make-kpkg 方式编译内核,类似如下:
  1. $ make-kpkg [color=red]--initrd[/color] --revision 2.6.17-4-20060720 --append-to-version -2-ql --config menuconfig kernel_image modules_image
复制代码
menuconfig 时注意以下几个地方:
  1. Block devices
  2.          <*> RAM disk support
  3.          (16)  Default number of RAM disks
  4.          (4096) Default RAM disk size (kbytes)
  5.          [*] Initial RAM filesystem and RAM disk (initramfs/initrd) support  
  6. Graphics support
  7.          <*> Support for frame buffer devices
  8.          [color=red]<*>   ATI Radeon display support
  9.          此处选择你的显卡型号。或简单选择 vesa
  10.          [*]   VESA VGA graphics support[/color]
  11.      
  12.          Console display driver support  --->
  13.                --- VGA text console
  14.                [*]   Video mode selection support
  15.                <*> Framebuffer Console support
  16.          [color=red][*] Support for the framebuffer splash  
  17.          此处即 fbsplash 补丁位置[/color]
复制代码

3.
安装好内核后,给 fbsplash 选择一件漂亮的衣裳 - theme。
这里我们利用一下 bootsplash 里的 themes:
  1. $ aptitude install bootsplash-theme-debian
  2. $ cd /etc/bootsplash/themes && ls
  3. debian
复制代码

但是 bootsplash 的 theme 是不能直接被 fbsplash 使用的,我们需要一个转换工具:
在 /etc/apt/sources.list 加入以下 unofficial source:
  1. # fbsplash - splashutils splashutils-initramfs miscsplashutils
  2. deb http://jdurand.home.cern.ch/jdurand/splashutils binary/
  3. # deb-src http://jdurand.home.cern.ch/jdurand/splashutils source/
  4. $ aptitude update
  5. $ aptitude install splashutils splashutils-initramfs miscsplashutils
复制代码

使用 bootsplash2fbsplash 来转换 theme
  1. /etc/bootsplash/themes# bootsplash2fbsplash debian
  2. o Parsed bootsplash-1024x768.cfg (1024x768)
复制代码
此时在 /etc/splash 下有个 debian 目录,即已经转换好的 theme

bootsplash themes 可以到以下链接找:
http://www.bootsplash.org/
http://debblue.debian.net/

4.
将 theme 和相关文件注入 initrd,以便最初引导时就能看到 splash 图像:
$ cd /boot
找到你刚刚安装好的内核对应的 initrd 文件,并注入刚才转换好的 theme,如下:
  1. $ cp initrd.img-2.6.17-2-ql initrd.img-2.6.17-2-ql-fbsplash
  2. [color=red]$ splash_geninitramfs -a initrd.img-2.6.17-2-ql-fbsplash -v debian[/color]
  3. o Unpacking initrd.img-2.6.17-2-ql-fbsplash..
  4. o Creating directory structure..
  5. o Copying /sbin/splash_helper..
  6. o Copying themes..
  7.   - debian
  8. o Creating initramfs image..
复制代码
splash_geninitramfs 详细使用看帮助。

5.
修改 /boot/grub/menu.lst, 类似:
  1. title           Debian GNU/Linux on hda8, kernel 2.6.17-1-ql
  2. root            (hd0,0)
  3. kernel          /vmlinuz-2.6.17-1-ql root=/dev/hda8 ro resume2=swap:/dev/hda7 \
  4.                 [color=red]video=radeonfb:1024x768-32 splash=silent,theme:debian quiet CONSOLE=/dev/tty1[/color]
  5. [color=red]initrd          /initrd.img-2.6.17-1-ql-fbsplash[/color]
  6. savedefault
  7. boot
复制代码

因为你的显卡型号和我的可能不同,具体参数请看:
http://jdurand.home.cern.ch/jdurand/fbsplash.html
http://www.linuxquestions.org/li ... plash_on_debian_sid

重启系统观察效果。
发表于 2006-7-20 19:27:31 | 显示全部楼层
quanliking 老大,这样有没有进度条啊,我以前搞的都没有进度条,只能用 verbose 模式。
回复 支持 反对

使用道具 举报

发表于 2006-7-21 11:07:19 | 显示全部楼层
打补丁就算了,折腾不起
回复 支持 反对

使用道具 举报

发表于 2006-10-26 12:55:57 | 显示全部楼层
我打了补丁。怎么没有
  • Support for the framebuffer splash  
    这一项
  • 回复 支持 反对

    使用道具 举报

    发表于 2006-10-26 16:14:09 | 显示全部楼层
    支不支持终端下调整分辨率??
    以前用 bootsplash发现只能是65HZ闪得狠  于是放弃了
    回复 支持 反对

    使用道具 举报

    发表于 2006-10-28 23:30:11 | 显示全部楼层
    打了补丁却找不到
  • Support for the framebuffer splash 项.
    我用的是debian系统环境.试了好久.不知那位兄弟有这方面的经验的,指点一下.我试了2.6.16的内核也试了2.6.18的内核都是找不到上面的那项支持.当然我的补丁都有在http://dev.gentoo.org/~spock/pro ... 不到上面那项.
    楼主是否有遇上这样的问题呢??
  • 回复 支持 反对

    使用道具 举报

    您需要登录后才可以回帖 登录 | 注册

    本版积分规则

    快速回复 返回顶部 返回列表