Corsasri
Posts: 78
Joined: Sat Mar 07, 2015 9:40 am

Raspbian stretch lite splash image.

Wed Jun 06, 2018 11:36 am

Hello looking for a bit of help on how to add a custom boot screen image to my rpi as its booting up. Using stretch lite.
Last edited by Corsasri on Sun Jun 10, 2018 5:43 am, edited 1 time in total.

Corsasri
Posts: 78
Joined: Sat Mar 07, 2015 9:40 am

Re: Raspbian stretch lite splash image

Thu Jun 07, 2018 10:27 am

I thought this would have been easy. But maybe not.
Last edited by Corsasri on Sun Jun 10, 2018 5:44 am, edited 1 time in total.

User avatar
B.Goode
Posts: 8224
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Raspbian stretch lite boot screen.

Thu Jun 07, 2018 10:51 am

Not quite clear if it is what you are looking for, but this is from the Raspberry Pi Foundation blog that announced the release of Raspbian that had an image displayed in place of the previous scrolling text:
Enabling and disabling the splash screen is with some extra arguments in /boot/cmdline.txt – if this line includes “quiet splash”, the splash screen is shown; if it does not include those words, the old text-based boot is shown.

The splash screen is a PNG file at /usr/share/plymouth/themes/pix/splash.png – you can change the image to whatever you want as long as you use the same file name.

From: https://www.raspberrypi.org/blog/introd ... /#comments

Corsasri
Posts: 78
Joined: Sat Mar 07, 2015 9:40 am

Re: Raspbian stretch lite boot screen.

Fri Jun 08, 2018 11:11 am

Thanks for the reply. I have put my image in this location. /usr/share/plymouth/themes/pix/and named the image splash.png
I added the quiet splash to /boot/cmdline.txt. But my image still not seen. i went to raspi-config and boot options/B3 splash screen. Message reads the splash screen is not installed so cannot be activated.

Corsasri
Posts: 78
Joined: Sat Mar 07, 2015 9:40 am

Re: Raspbian stretch lite splash image.

Sun Jun 10, 2018 5:57 am

I have managed to get the rpi to now enable the splash option via the raspi-config menu. But when the rpi boots up all I get is 3 tiny squares on the screen.
So then thought I would try using the FBI method that I had used before. This works but the splash image still stays on the screen after the rpi as booted up. This is the same issue I had when I was trying Jessie lite.

DarkElvenAngel
Posts: 146
Joined: Tue Mar 20, 2018 9:53 pm

Re: Raspbian stretch lite splash image.

Sun Jun 10, 2018 3:05 pm

Hey,

I think I can help you. I tried to post yesterday but my post was lost.

You need to purge plymouth it's not compatible with this method

Here's a link https://www.madebymany.com/stories/fun- ... spberry-pi

I wrote my on splash based these scripts. Let if this is helpful to you. I did this some months ago but I remember there was some issues with this method. I've solved those but I'm not sure they would be issues for you.

Corsasri
Posts: 78
Joined: Sat Mar 07, 2015 9:40 am

Re: Raspbian stretch lite splash image.

Sun Jun 10, 2018 6:13 pm

Thanks for the info will take a look.
Maybe you may be able to fix my other original problem. I still can’t get the splash screen to go after the pi as booted up. Here was my problem.
viewtopic.php?f=91&t=177561&p=1134794#p1134794

DarkElvenAngel
Posts: 146
Joined: Tue Mar 20, 2018 9:53 pm

Re: Raspbian stretch lite splash image.

Sun Jun 10, 2018 8:43 pm

If you want to try adding

Code: Select all

clear
before your program in the /etc/rc.local

I gather that your using the /etc/rc.local to launch your program

Corsasri
Posts: 78
Joined: Sat Mar 07, 2015 9:40 am

Re: Raspbian stretch lite splash image.

Mon Jun 11, 2018 5:58 am

i have added clear to the the rc.local. still the splash screen stays on screen.

Code: Select all

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
  printf "My IP address is %s\n" "$_IP"
fi
clear
python /home/pi/motion.py
exit 0
Here is my cmdline.

Code: Select all

modules-load=dwc2,g_ether dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait logo.nologo quiet
And the config.

Code: Select all

disable_splash=1
disable_audio_dither=1
#display_rotate=2
force_pwm_open=0
# For more options and information see
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

# Uncomment this to enable the lirc-rpi module
#dtoverlay=lirc-rpi

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
dtparam=audio=on

dtoverlay=dwc2

DarkElvenAngel
Posts: 146
Joined: Tue Mar 20, 2018 9:53 pm

Re: Raspbian stretch lite splash image.

Mon Jun 11, 2018 1:57 pm

How is the splash image being shown?

If you don't start your script does the image clear?

There are some changes you could make if your still getting unwanted text.

Add this line to your rc.local you can replace the clear

Code: Select all

ps -A >> /home/pi/output.log
Do a boot and post the output.log this will tell us all the running process at boot.

DarkElvenAngel
Posts: 146
Joined: Tue Mar 20, 2018 9:53 pm

Re: Raspbian stretch lite splash image.

Mon Jun 11, 2018 3:29 pm

I just tested the clear command I should have you try

Code: Select all

clear > /dev/tty1
I tried it on my setup and that work and clear alone did not.

DarkElvenAngel
Posts: 146
Joined: Tue Mar 20, 2018 9:53 pm

Re: Raspbian stretch lite splash image.

Sun Jun 17, 2018 2:24 am

Corsasri,

If your interested I found a better way of doing a splash screen it comes up much sooner and isn't overly difficult to get working?

texy
Forum Moderator
Forum Moderator
Posts: 5155
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: Raspbian stretch lite splash image.

Wed Jun 20, 2018 8:44 pm

DarkElvenAngel wrote:
Sun Jun 17, 2018 2:24 am
Corsasri,

If your interested I found a better way of doing a splash screen it comes up much sooner and isn't overly difficult to get working?

OK - well please share ;)

Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

DarkElvenAngel
Posts: 146
Joined: Tue Mar 20, 2018 9:53 pm

Re: Raspbian stretch lite splash image.

Sat Jun 30, 2018 10:28 pm

How to setup a initrd boot splash
edit you /boot/config.txt

set the framebuffer to match you resolution e.g. 1280 720
reboot with this setting

apt install busybox
update-initramfs -c -k $(uname -r)

create file /etc/initramfs-tools/scripts/init-top/splash

Code: Select all

#!/bin/sh
lzopcat /etc/boot.lzo > /dev/fb0
make that executable

create file /etc/initramfs-tools/hooks/cpimg.sh

Code: Select all

#!/bin/sh
PREREQ=""
prereqs() {
         echo "$PREREQ"
}
case $1 in 
# get pre-requisites 
prereqs)
         prereqs
         exit 0
         ;; esac
# fbcp 
. /usr/share/initramfs-tools/hook-functions
rm -f ${DESTDIR}/etc/boot.lzo
cp /home/pi/boot.lzo ${DESTDIR}/etc
chmod 666 ${DESTDIR}/etc/image640.raw
exit 0 
you need a way to put an image on the framebuffer

apt install libjpeg9-dev
fbv from the godspeed git page is good and easy to use
download and unzip
./configure
make
make install

fbv <boot image>
cp /dev/fb0 /home/pi/boot
busybox lzop -9 boot #this may fail because high compression isn't compiled in use 5 in place if 9

you should now have boot.lzo

update-initramfs -u

you will see some error messages that okay expect them

Code: Select all

echo "initramfs initrd.ImgX.XX.XX" >> /boot/config.txt 
replace X.XX.XX with the number from earlier

edit /etc/rc.local
add clear > /dev/tty1 just above exit 0
reboot...
did it work?
tweaks
edit the /boot/cmdline.txt
change console to tty2
add quiet splash silent loglevel=0 vt.global_cursor_default=0 logo.nologo

edit /boot/config.txt
add disable_splash=1

like to have a blinking cursor
add this just above exit 0 in /etc/rc.local
echo 1 > /sys/class/graphics/fbcon/cursor_blink

Return to “Beginners”