发新话题
 搜藏 打印 该页面添加到 Mister Wong

gensplash 即 fbsplash + splashutils 安装流程

gensplash 即 fbsplash + splashutils 安装流程

gensplash 即 fbsplash + splashutils 安装流程
因为 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/project...5-2.6.16.patch
能正确 patch
而 current patch:
http://dev.gentoo.org/~spock/project...20060629.patch
不能正确 patch
当然你也可以用 linux-source-2.6.16 源码:
代码:

$ aptitude install linux-source-2.6.16$ cd /usr/src$ tar xjf linux-source-2.6.16.tar.bz2




代码:

$ cd /usr/src/to-your-kernel$ patch -p1 < ../fbsplash-0.9.2-r5-2.6.16.patch或 $ cat ../fbsplash-0.9.2-r5-2.6.16.patch | patch p1




2. 配置内核
接下来使用你最熟悉的方式编译内核,注意内核引导时需要 initrd 支持,比如我习惯用 make-kpkg 方式编译内核,类似如下:
代码:

$ make-kpkg --initrd --revision 2.6.17-4-20060720 --append-to-version -2-ql --config menuconfig kernel_image modules_image



menuconfig 时注意以下几个地方:
代码:

Block devices         <*> RAM disk support          (16)  Default number of RAM disks         (4096) Default RAM disk size (kbytes)

  • Initial RAM filesystem and RAM disk (initramfs/initrd) support  Graphics support         <*> Support for frame buffer devices         <*>   ATI Radeon display support         此处选择你的显卡型号。或简单选择 vesa
  •    VESA VGA graphics support               Console display driver support  --->               --- VGA text console
  •    Video mode selection support               <*> Framebuffer Console support         
  • Support for the framebuffer splash           此处即 fbsplash 补丁位置




    3.
    安装好内核后,给 fbsplash 选择一件漂亮的衣裳 - theme。
    这里我们利用一下 bootsplash 里的 themes:
    代码:

    $ aptitude install bootsplash-theme-debian$ cd /etc/bootsplash/themes && lsdebian




    但是 bootsplash 的 theme 是不能直接被 fbsplash 使用的,我们需要一个转换工具:
    在 /etc/apt/sources.list 加入以下 unofficial source:
    代码:

    # fbsplash - splashutils splashutils-initramfs miscsplashutilsdeb http://jdurand.home.cern.ch/jdurand/splashutils binary/# deb-src http://jdurand.home.cern.ch/jdurand/splashutils source/$ aptitude update$ aptitude install splashutils splashutils-initramfs miscsplashutils




    使用 bootsplash2fbsplash 来转换 theme
    代码:

    /etc/bootsplash/themes# bootsplash2fbsplash debiano 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,如下:
    代码:

    $ cp initrd.img-2.6.17-2-ql initrd.img-2.6.17-2-ql-fbsplash$ splash_geninitramfs -a initrd.img-2.6.17-2-ql-fbsplash -v debiano Unpacking initrd.img-2.6.17-2-ql-fbsplash..o Creating directory structure..o Copying /sbin/splash_helper..o Copying themes..  - debiano Creating initramfs image..



    splash_geninitramfs 详细使用看帮助。

    5.
    修改 /boot/grub/menu.lst, 类似:
    代码:

    title           Debian GNU/Linux on hda8, kernel 2.6.17-1-qlroot            (hd0,0)kernel          /vmlinuz-2.6.17-1-ql root=/dev/hda8 ro resume2=swap:/dev/hda7 \                video=radeonfb:1024x768-32 splash=silent,theme:debian quiet CONSOLE=/dev/tty1initrd          /initrd.img-2.6.17-1-ql-fbsplashsavedefaultboot




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

    重启系统观察效果。
  • 本文由hew 发布于Linuxsky 论坛,网址:http://bbs.linuxsky.org/thread-4977-1-1.html

    你的鼓励,我的动力.
    做人厚道,看贴回贴.
    my linux blog

    TOP

    发新话题