Skip to content

Instantly share code, notes, and snippets.

@riaancillie
Last active September 21, 2019 19:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save riaancillie/d17cf385db6e94fac7b7250ed64a39ec to your computer and use it in GitHub Desktop.
Save riaancillie/d17cf385db6e94fac7b7250ed64a39ec to your computer and use it in GitHub Desktop.
Plymouth for Khadas Edge
To make plymouth work on khadas edge, the boot command line arguments must be modified to include
splash quiet plymouth.ignore-serial-consoles vt.handoff=7
(note if you need to debug, also add plymouth.debug to the above and then after boot open /var/log/plymouth-debug.log)
(verify that the above kernel command line arguments are added by cat /proc/cmdline )
(Most likely the theme used was not found or not applied fix by running
sudo update-alternatives --install /usr/share/plymouth/themes/default.plymouth default.plymouth /usr/share/plymouth/themes/spinner/spinner.plymouth 100
sudo update-initramfs -u
reboot
)
on fenix edit
~/fenix/config/bootscripts/rk3399_autoscript.cmd
Search for line containing setenv condev
and console=FIQ0
Remove: console=tty1
Add: splash quiet plymouth.ignore-serial-consoles vt.handoff=7
Also edit ~fenix/config/functions/build-board-deb and comment the following at the end of the file to keep the built files
# rm -rf ${pkgdir}.deb
# rm -rf $pkgdir
make board-deb
cd ~/fenix/build/images/.tmp/linux-board-package-bionic-edge_0.7_arm64/boot
copy and replace boot.scr to /boot on the target Khadas
Themes must be installed using sudo apt install plymouth-themes
to create missing plymouth default files
and then sudo update-alternatives --install /usr/share/plymouth/themes/default.plymouth default.plymouth /usr/share/plymouth/themes/spinner/spinner.plymouth 100
sudo update-initramfs -u
reboot
To select a different theme
sudo update-alternatives --install /usr/share/plymouth/themes/default.plymouth default.plymouth /usr/share/plymouth/themes/spinner/spinner.plymouth 100
sudo update-alternatives --config default.plymouth
select the right number
sudo update-initramfs -u
reboot
//FOR MORE DEBUGGING
To build plymouth
sudo apt install build-essential autoconf gettext autopoint intltool pkg-config automake libtool libpng-dev libudev-dev libcairo2-dev libpango1.0-dev libgtk-3-dev xsltproc docbook-xsl
git clone https://github.com/freedesktop/plymouth
cd plymouth
git checkout tags/0.9.3
./autogen.sh
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-tracing --disable-tests --without-boot-entry --without-default-plugin --with-logo=%{_datadir}/pixmaps/system-logo-white.png --with-background-start-color-stop=0x0073B3 --with-background-end-color-stop=0x00457E --with-background-color=0x3391cd --enable-gdm-transition --with-system-root-install --with-rhgb-compat-link
sudo make install
Also delete the plymouth libraries installed by default
sudo rm /lib/aarch64-linux-gnu/libply*
sudo plymouthd --no-daemon --debug --kernel-command-line="splash quiet plymouth.ignore-serial-consoles vt.handoff=7"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment