Page 1 of 1

RPi - changing boot logo and splash screen

Posted: Tue Feb 27, 2018 8:31 pm
by MrGlasspoole
I want to remove boot messages, boot logo and add a custom splash screen.

I found 2 tutorials:
https://scribles.net/customizing-boot-u ... pberry-pi/
https://yingtongli.me/blog/2016/12/21/splash.html

First the text on top of the /boot/config.txt is confusing:
#Please ensure you edit from the DietPi-RamDisk location /DietPi/*
Does that mean i have to edit /boot/dietpi/dietpi-ramdisk?

Then adding for example 'logo.nologo' to /boot/cmdline.txt has no effect.

Re: RPi - changing boot logo and splash screen

Posted: Tue Feb 27, 2018 8:56 pm
by k-plan
MrGlasspoole wrote:First the text on top of the /boot/config.txt is confusing:
No I will say not, but you have to read or quote it totally:
#Modifcations to /boot/* files, will not be saved when powered on.
#Please ensure you edit from the DietPi-RamDisk location /DietPi/*
https://github.com/Fourdee/DietPi/blob/ ... .txt#L1-L2

Re: RPi - changing boot logo and splash screen

Posted: Tue Feb 27, 2018 9:04 pm
by MrGlasspoole
Sure i did read it all, but i don't get it.
So where do i edit it?

Re: RPi - changing boot logo and splash screen

Posted: Wed Feb 28, 2018 7:03 pm
by k-plan
MrGlasspoole wrote:Sure i did read it all, but i don't get it.
So where do i edit it?
It's depend on, if run device is booted up and running,
or not. (if you edit file with your PC outside your device)

  • If you device is up and running, parts of 1. partition (FAT32) name "boot" will be sync into the RAM and mounted as RAMDisk to /DietPi/ and resynced while shutdown
  • If you device is up and running, the 1. partition (FAT32) name "boot" will be mounted to /boot/
What me personally help to see and understand this is:

Code: Select all

root@RPi-Zero:~# ls -lah /boot/

insgesamt 21M
drwxr-xr-x  5 root root 2,5K Jan  1  1970 .
drwxr-xr-x 21 root root 4,0K Feb 24 17:44 ..
-rwxr-xr-x  1 root root  16K Okt 30 11:36 bcm2708-rpi-0-w.dtb
-rwxr-xr-x  1 root root  16K Okt 30 11:36 bcm2708-rpi-b.dtb
-rwxr-xr-x  1 root root  16K Okt 30 11:36 bcm2708-rpi-b-plus.dtb
-rwxr-xr-x  1 root root  15K Okt 30 11:36 bcm2708-rpi-cm.dtb
-rwxr-xr-x  1 root root  17K Okt 30 11:36 bcm2709-rpi-2-b.dtb
-rwxr-xr-x  1 root root  18K Okt 30 11:36 bcm2710-rpi-3-b.dtb
-rwxr-xr-x  1 root root  17K Okt 30 11:36 bcm2710-rpi-cm3.dtb
-rwxr-xr-x  1 root root  50K Aug 11  2017 bootcode.bin
-rwxr-xr-x  1 root root  142 Feb 19 09:32 cmdline.txt
-rwxr-xr-x  1 root root 2,1K Feb 24 17:01 config.txt
-rwxr-xr-x  1 root root  19K Aug 21  2015 COPYING.linux
drwxr-xr-x  5 root root 4,0K Feb 20 20:15 dietpi
-rwxr-xr-x  1 root root  269 Feb  2 09:48 DietPi_OpenVPN_Client.ovpn
-rwxr-xr-x  1 root root  10K Feb 24 17:01 dietpi.txt
-rwxr-xr-x  1 root root 2,6K Okt 30 11:36 fixup_cd.dat
-rwxr-xr-x  1 root root 6,4K Okt 30 11:36 fixup.dat
-rwxr-xr-x  1 root root 9,5K Okt 30 11:36 fixup_db.dat
-rwxr-xr-x  1 root root 9,5K Okt 30 11:36 fixup_x.dat
-rwxr-xr-x  1 root root  145 Nov 29 03:37 issue.txt
-rwxr-xr-x  1 root root 4,4M Okt 30 11:36 kernel7.img
-rwxr-xr-x  1 root root 4,2M Okt 30 11:36 kernel.img
-rwxr-xr-x  1 root root 1,5K Nov 18  2015 LICENCE.broadcom
-rwxr-xr-x  1 root root  19K Nov 29 03:37 LICENSE.oracle
drwxr-xr-x  2 root root  10K Nov 29 02:21 overlays
-rwxr-xr-x  1 root root 6,0K Jan 10 13:09 README.md
-rwxr-xr-x  1 root root 652K Okt 30 11:36 start_cd.elf
-rwxr-xr-x  1 root root 4,8M Okt 30 11:36 start_db.elf
-rwxr-xr-x  1 root root 2,7M Okt 30 11:36 start.elf
-rwxr-xr-x  1 root root 3,8M Okt 30 11:36 start_x.elf

Code: Select all

root@RPi-Zero:~# ls -lah /DietPi/

insgesamt 24K
drwxrwxrwt  3 root root  120 Feb 28 07:17 .
drwxr-xr-x 21 root root 4,0K Feb 24 17:44 ..
-rwxr-xr-x  1 root root 2,1K Feb 28 07:17 config.txt
drwxr-xr-x  5 root root  920 Feb 28 18:48 dietpi
-rwxr-xr-x  1 root root  10K Feb 28 07:17 dietpi.txt
-rw-r--r--  1 root root    2 Feb 28 07:17 .ramdisk

Code: Select all

root@RPi-Zero:~# df -h

Dateisystem    Größe Benutzt Verf. Verw% Eingehängt auf
/dev/root       7,3G    1,3G  5,8G   18% /
devtmpfs        237M       0  237M    0% /dev
tmpfs           241M       0  241M    0% /dev/shm
tmpfs           241M    3,4M  238M    2% /run
tmpfs           5,0M       0  5,0M    0% /run/lock
tmpfs           241M       0  241M    0% /sys/fs/cgroup
tmpfs            20M     80K   20M    1% /var/log
tmpfs            10M    1,4M  8,7M   14% /DietPi
/dev/mmcblk0p1   41M     23M   19M   54% /boot


Code: Select all

root@RPi-Zero:~# lsblk

NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
mmcblk0     179:0    0  7,4G  0 disk
├─mmcblk0p1 179:1    0 41,5M  0 part /boot
└─mmcblk0p2 179:2    0  7,4G  0 part /

Code: Select all

root@RPi-Zero:~# blkid

/dev/mmcblk0p1: LABEL="boot" UUID="CDD4-B453" TYPE="vfat" PARTUUID="6f0c83bc-01"
/dev/mmcblk0p2: LABEL="rootfs" UUID="72bfc10d-73ec-4d9e-a54a-1cc507ee7ed2" TYPE="ext4" PARTUUID="6f0c83bc-02"
/dev/mmcblk0: PTUUID="6f0c83bc" PTTYPE="dos"


Re: RPi - changing boot logo and splash screen

Posted: Thu Mar 01, 2018 3:57 am
by MrGlasspoole
So "not be saved when powered on" means: take the SD Card out, put it in your PC and do the modifications there.

And /DietPi/ is the RAMDisk?
Because "cd /dietpi" did not work and i only found "/boot/dietpi/DietPi-RamDisk" and from the hint in the config.txt i thought "DietPi-RamDisk" is the location to look for.

So with nano i have to edit /DietPi/config.txt ?

What about logo.nologo not working in /boot/cmdline.txt ?

Re: RPi - changing boot logo and splash screen

Posted: Mon Mar 05, 2018 8:05 pm
by MrGlasspoole
No way to remove boot messages, boot logo and add a custom splash screen in DietPie?

Re: RPi - changing boot logo and splash screen

Posted: Fri Jun 15, 2018 5:47 pm
by DarkElvenAngel
MrGlasspoole wrote: Mon Mar 05, 2018 8:05 pm No way to remove boot messages, boot logo and add a custom splash screen in DietPie?
Yes there is but it's more difficult in Dietpi due to all the hooks it uses in the boot sequence. I have to admit I stopped using Dietpi for that reason.

However I can help you
Edit your cmdline.txt on a pc this gets around RamDisk issues.
Add the following

Code: Select all

console=tty3 logo.nologo vt.global_cursor_default=0 quite loglevel=0 splash
If you don't like the rainbow splash add this to config.txt

Code: Select all

disable_splash=1
That's going to stop all text from writing to the screen during boot. To add a splash try this link

https://www.madebymany.com/stories/fun- ... spberry-pi

That should get you in the right direction there are much better ways to do a splash screen I've learned but I can't be sure it's compatible with current versions of dietpi.

Hope that helps
Good luck