hondagx35 wrote:A bit more information on how it is done would be nice.
Frank
This question I feared. So here is a (not so short) HOWTO.
The installation of the splash is only suitable for experienced users. So be warned!
I didn't upgrade the package list (pacman -Syy). So I ran the pacman install commands, looked for the wanted package versions, downloaded and installed them manually (pacman -U <filename>)
Install mkinitcpio, unzip and lzop (don't know if needed)
- Code: Select all
pacman -S mkinitcpio
pacman -S unzip
pacman -S lzop
Get, unzip, make and install a patched and RaspBerry-ready version of plymouth-lite from
here.
- Code: Select all
wget https://github.com/T4d3o/Plymouth-lite/archive/master.zip
unzip master.zip
cd Plymouth-lite-master
make && make install
Get @Perjan's bootsplash and save it to /usr/share/plymouth/runeaudio.png
- Code: Select all
wget -O /usr/share/plymouth/runeaudio.png https://www.dropbox.com/s/id2vevgkfxnuas4/splash.png\?dl=0
Install plymouth-lite-start.service. Save this file as /usr/lib/systemd/system/plymouth-lite-start.service (Att.: The line ExecStart=... is a long line until EOF)
- Code: Select all
[Unit]
Description=Show Plymouth-lite Start Screen
DefaultDependencies=no
After=systemd-vconsole-setup.service
Before=sysinit.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/echo 0 > /sys/class/graphics/fbcon/cursor_blink ; /usr/bin/echo 0 > /sys/devices/virtual/graphics/fbcon/cursor_blink ; /usr/bin/chvt 7 ; /usr/bin/ply-image /usr/share/plymouth/runeaudio.png
Make it run on startup
- Code: Select all
cd /usr/lib/systemd/system
chmod 644 plymouth-lite-start.service
cd sysinit.target.wants
ln -s ../plymouth-lite-start.service
Modify /usr/lib/initcpio/init to this on line 35 (aprox)
only add ply-image line- Code: Select all
if [ -n "$earlymodules$MODULES" ]; then
modprobe -qab ${earlymodules//,/ } $MODULES
fi
ply-image /usr/share/plymouth/runeaudio.png &> /dev/null
run_hookfunctions 'run_hook' 'hook' $HOOKS
Now modify the BINARIES and FILES section of /etc/mkinitcpio.conf to this
- Code: Select all
# BINARIES
# This setting includes any additional binaries a given user may
# wish into the CPIO image. This is run last, so it may be used to
# override the actual binaries included by a given hook
# BINARIES are dependency parsed, so you may safely ignore libraries
BINARIES="ply-image"
# FILES
# This setting is similar to BINARIES above, however, files are added
# as-is and are not parsed in any way. This is useful for config files.
FILES="/usr/share/plymouth/runeaudio.png"
Now run
- Code: Select all
mkinitcpio -g /boot/initrd -v
Add this lines to /boot/config.txt
- Code: Select all
#initramfs
initramfs initrd 0x00f00000
# Disable rainbow splash
disable_splash=1
Now you have to add "initrd=0x00f00000 quiet logo.nologo vt.cur_default=1" to /boot/cmdline.txt. Mine now looks like this:
- Code: Select all
root=/dev/mmcblk0p2 rw rootwait rootfstype=ext4 console=ttyAMA0,115200 console=tty1 selinux=0 plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 dwc_otg.fiq_enable=1 dwc_otg.fiq_fsm_enable=1 dwc_otg.fiq_fsm_mask=0x3 kgdboc=ttyAMA0,115200 elevator=noop ipv6.disable=1 initrd=0x00f00000 quiet logo.nologo vt.cur_default=1
Add a call to ply-image to /var/www/command/rune_shutdown. Att: "/usr/bin/echo 0 ... /runeaudio.png" is ONE long line! The last lines of mine look like this:
- Code: Select all
echo "Stop MPD and unmount shares..."
mpc stop
systemctl stop nginx
sleep 1
systemctl stop mpd
systemctl stop spopd
sleep 1
/usr/bin/echo 0 > /sys/class/graphics/fbcon/cursor_blink ; /usr/bin/echo 0 > /sys/devices/virtual/graphics/fbcon/cursor_blink ; /usr/bin/chvt 7 ; /usr/bin/ply-image /usr/share/plymouth/runeaudio.png
#export DISPLAY=:0
#xset dpms force off
#sleep 1
umount -aft nfs
umount -aft cifs
Now cross fingers, reboot and have fun.