patch -p1 < /path/to/bootsplash-3.0.7-2.4.20-vanilla.diff
kernel 勾選
Console drivers --->
Frame-buffer support --->
[*] Use splash screen instead of boot logo
準備 jpeg 跟 silencejpeg
先用 rewritejpeg 處理, make sure is compatible for boot logo
或是
jpegtopnm $file | ppmtojpeg > $newfile
設定檔範例 800x600 (取自 bootsplash theme)
# Pictures provided for Mandrake by me@davidsansome.com
#
# Themed with bootSplashMaker by Stefan Reinauer
# for SuSE Linux, UnitedLinux, SLES8.
#
# current version does not implement progress bar yet.# config file version (config 版本)
version=2# should the picture be displayed?
state=1# fgcolor is the text forground color. (字的前景顏色)
# bgcolor is the text background (i.e. transparent) color. (字的背景顏色)
fgcolor=0
bgcolor=15# (tx, ty) are the (x, y) coordinates of the text window in pixels.
# tw/th is the width/height of the text window in pixels.
# tx, ty 文字區塊的 x, y 座標 (pixels)
# tw, th 文字區塊的寬跟高 (pixels)
tx=20
ty=50
tw=760
th=530# (ax, ay) are the (x, y) coordinates for playing boot/shutdown animations
ax=112
ay=30# name of the picture file (full path recommended)
jpeg=/tmp/Flower/images/bootsplash-800x600.jpg
設定檔範例 640x480
version=3
state=1
fgcolor=7
bgcolor=0
tx=0
ty=0
tw=640
th=480
jpeg=black.jpg
silentjpeg=bbq.jpg
輸出到 initrd
splash -s -f bootsplash.cfg >> /boot/initrd
若 initrd 為 gz 格式也行
splash -s -f bootsplash.cfg >> /boot/initrd.gz
目前 bootsplash 只支援 16bit,
640x480 使用 vga=785
800x600 使用 vga=788
1024x768 使用 vga=791
kernel boot 參數
splash=silent switches the bootsplash to silent mode initially
splash=verbose switches the bootsplash to verbose mode initially. This is default, but if you override the default in the kernel patch, you can use this option to get verbose mode back.
splash=0 switches the bootsplash off
Leave a comment