LinuxSir.cn,穿越时空的Linuxsir!

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

bootsplash for kernel 2.6.5 (success! 全过程)

[复制链接]
发表于 2004-4-14 22:30:21 | 显示全部楼层 |阅读模式
这个小论坛可以下载到各个版本的bootsplash PATCH(官方网站都没有)
http://sourceforge.net/mailarchi ... &forum_id=36622

STEP 1:内核打补丁并编译:
  1. 下载2.6.5的源代码,解压到/usr/src/:
  2. [url]http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.5.tar.bz2[/url]
  3. 下载bootsplash的补丁:[url]http://digitalssg.net/bootsplash-3.1.4-2.6.5.diff.gz[/url]
  4. 或[url]http://dediziert.org/~tyrant/linux/bootsplash/bootsplash-3.1.4-2.6.5.diff[/url]
  5. 也解压到/usr/src/
  6. bash-2.05b# cd /usr/src/
  7. bash-2.05b# ls /usr/src -l
  8. total 34080
  9. drwxr-xr-x    5 root     root          160 Aug  9  2003 bootsplash-3.1
  10. -rw-r--r--    1 root     root        81972 Apr 14 22:26  bootsplash-3.1.4-2.6.5.diff
  11. -rw-r--r--    1 root     root       112416 Apr 14 22:43 bootsplash-3.1.tar.bz2
  12. lrwxrwxrwx    1 root     root           11 Apr 14 21:49 linux -> linux-2.6.5
  13. drwxrwxr-x   19 500      500          1248 Apr 14 22:54 linux-2.6.5
  14. -rw-r--r--    1 root     root     34684611 Apr 14 21:14 linux-2.6.5.tar.bz2
  15. bash-2.05b# rm linux
  16. bash-2.05b# ln -sf linux-2.6.5 linux
  17. bash-2.05b# cd /usr/src/linux
  18. bash-2.05b# patch -p1 < ../bootsplash-3.1.4-2.6.5.diff
  19. 补丁成功后再编译内核,
  20. bash-2.05b# make menuconfig
  21. 需要选择这些内核选项:
  22. "Console drivers" -> "Frame-Buffer support"
  23. select "VESA VGA graphics console"
  24. turn on "Use splash screen instead of boot logo".(不打补丁是没有 splash screen这个选项的,一定要选上,另外不要选择boot logo)
  25. enable "Initial Ramdisk support" in "Block Devices"
  26. bash-2.05b# make && make modules_install && cp arch/i386/boot/bZimage /boot/kernel-2.6.5
复制代码

STEP 2:安装已经作好了的bootsplash 主题和splash工具:
  1.       用swaret来安装(slack的在线升级工具)
  2.              bash-2.05b# swaret --install bootsplash
  3.       如果没有装swaret到这里下载:
  4.              [url]ftp://ftp.linuxpackages.net/pub/Slackware-9.1/pcxz/bootsplash/bootsplash-i686-6.tgz[/url]
  5.              安装:installpkg bootsplash-i686-6.tgz
  6. 安装后的主题文件在:/etc/bootsplash/*以及/sbin/splash的tools
  7. 而且会在/etc/rc.d/中添加rc.bootsplash的配置文件
  8. 安装一个主题:                          
  9. bash-2.05b# /sbin/splash -s -f /etc/bootsplash/themes/current/config/bootsplash-1024x768.cfg >> /boot/initrd.splash
复制代码

最后编辑你的grub.conf (无论如何grub比lilo强大100倍)
  1. bash-2.05b# vi /boot/grub/menu.lst
  2. 添加如下:
  3. title Slackware current
  4. kernel (hd1,5)/boot/kernel-2.6.5 root=/dev/hdb6 vga=791
  5. initrd (hd1,5)/boot/initrd.splash
  6. bash-2.05b# reboot
复制代码
发表于 2004-4-15 01:08:12 | 显示全部楼层
好文!楼主辛苦了,windrose老大,加精啊!
发表于 2004-4-15 08:42:57 | 显示全部楼层
精!不过如果加上进度条的设置我想会更加完美!
 楼主| 发表于 2004-4-15 18:50:58 | 显示全部楼层
我还没弄出进度条来,等我查查资料弄好了,再更新本文。
发表于 2004-4-15 22:14:20 | 显示全部楼层
UP。
发表于 2004-4-15 22:20:06 | 显示全部楼层

呵呵,我用的是cko的补丁。

里边包含了这些补丁。 :cool:

还有mm、reiserfs等等的补丁。:cool:
发表于 2004-4-16 10:15:43 | 显示全部楼层
最初由 dreamrise 发表
我还没弄出进度条来,等我查查资料弄好了,再更新本文。

我已经弄出了一点头绪,但进度条总是走得不均匀!详细如下:
将 /etc/rc.d/rc.bootsplash 改成如下这个样子,然后在 /etc/rc.S 里面加入
. /etc/rc.d/rc.bootsplash (注意,前面一定要有一个小点!)
progressbar 75

rc.bootsplash 的内内容:
#! /bin/sh
#
function progressbar()
{
        if [ $# != 1 ]
                then
                echo "Usage: progressbar {progress}"
                exit 1
               fi
        echo "show $(( 65534 * $1 / 100 ))" > /proc/splash
}
#
function animate()
{
        if [ $# = 0 ]
                then
                       echo "Usage: animate {hook}"
                exit 1
               fi
        splash "$*"
}
发表于 2004-4-16 10:16:26 | 显示全部楼层
最初由 dreamrise 发表
我还没弄出进度条来,等我查查资料弄好了,再更新本文。

我已经弄出了一点头绪,但进度条总是走得不均匀!详细如下:
将 /etc/rc.d/rc.bootsplash 改成如下这个样子,然后在 /etc/rc.S 里面加入
. /etc/rc.d/rc.bootsplash (注意,前面一定要有一个小点!)
progressbar 75

rc.bootsplash 的内内容:
#! /bin/sh
#
function progressbar()
{
        if [ $# != 1 ]
                then
                echo "Usage: progressbar {progress}"
                exit 1
               fi
        echo "show $(( 65534 * $1 / 100 ))" > /proc/splash
}
#
function animate()
{
        if [ $# = 0 ]
                then
                       echo "Usage: animate {hook}"
                exit 1
               fi
        splash "$*"
}
发表于 2004-4-17 09:44:38 | 显示全部楼层

我照楼主的帖子做了,不成功

我是用LILO的,能启动,但检测到一些设备后,就不能继续了.我make
&make modules_install 后还加了
make install
cp /usr/src/linux-2.6.5/arch../bzImage /boot/vmlinuz
lilo
有什么问题吗?
发表于 2004-5-1 14:01:15 | 显示全部楼层
up!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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