summaryrefslogtreecommitdiff
path: root/meta-unit-graphics/recipes-core/initrdscripts
diff options
context:
space:
mode:
authorunitexe <unitexe70@gmail.com>2026-03-02 22:41:54 -0600
committerunitexe <unitexe70@gmail.com>2026-03-02 22:52:08 -0600
commita960f82818f0ad4c4df50efa4cc6540ffa8ee193 (patch)
treed0e9f75a64b6ca43e7d9eee1e5993a48314eaf4c /meta-unit-graphics/recipes-core/initrdscripts
parentf31350298b3bec162781531b36c598086c9e5d3b (diff)
Enable graphics for beaglebone-yocto for kernel & beyondHEADmain
- Use kernel with bundled initramfs for beaglebone-yocto IMAGE_BOOT_FILES - Custom WIC kickstart needed that has larger boot partition to account for kernel with bundled initramfs - A handful of additional kernel args are needed as well - Add plymouth settle initramfs module that does delay after starting plymouth splash, without it switch root occurs before plymouth can start rendering and the splash is never shown - Kernel logo size doesn't fill 1024x600 waveshare screen, was having trouble with fullscreen image will re-visit - Need to use non-default gbm-format with weston otherwise it will crash
Diffstat (limited to 'meta-unit-graphics/recipes-core/initrdscripts')
-rw-r--r--meta-unit-graphics/recipes-core/initrdscripts/initramfs-module-plymouthsettle.bb19
-rw-r--r--meta-unit-graphics/recipes-core/initrdscripts/initramfs-module-plymouthsettle/plymouthsettle15
2 files changed, 34 insertions, 0 deletions
diff --git a/meta-unit-graphics/recipes-core/initrdscripts/initramfs-module-plymouthsettle.bb b/meta-unit-graphics/recipes-core/initrdscripts/initramfs-module-plymouthsettle.bb
new file mode 100644
index 0000000..989dc86
--- /dev/null
+++ b/meta-unit-graphics/recipes-core/initrdscripts/initramfs-module-plymouthsettle.bb
@@ -0,0 +1,19 @@
+SUMMARY = "Initramfs module for settle after showing plymouth boot splash"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${UNIT_CORE_LAYERDIR}/LICENSE;md5=38bf13be5d6979b28bd8adddb2f2f9b3"
+
+RDEPENDS:${PN} = "\
+ initramfs-framework-base \
+ initramfs-module-plymouth \
+"
+
+SRC_URI = "file://plymouthsettle"
+
+S = "${UNPACKDIR}"
+
+do_install() {
+ install -d ${D}/init.d
+ install -m 0755 ${UNPACKDIR}/plymouthsettle ${D}/init.d/04-plymouthsettle
+}
+
+FILES:${PN} = "/init.d/04-plymouthsettle"
diff --git a/meta-unit-graphics/recipes-core/initrdscripts/initramfs-module-plymouthsettle/plymouthsettle b/meta-unit-graphics/recipes-core/initrdscripts/initramfs-module-plymouthsettle/plymouthsettle
new file mode 100644
index 0000000..b45e419
--- /dev/null
+++ b/meta-unit-graphics/recipes-core/initrdscripts/initramfs-module-plymouthsettle/plymouthsettle
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+# Allow plymouthd time to open the DRM device and render the first frame.
+# Without this, switch_root happens before Plymouth has rendered anything
+# and the splash never shows (on some platforms).
+
+plymouthsettle_enabled() {
+ return 0
+}
+
+plymouthsettle_run() {
+ echo "Waiting for for plymouth to settle..."
+ sleep 1
+ echo "Plymouth wait is done"
+}