From a960f82818f0ad4c4df50efa4cc6540ffa8ee193 Mon Sep 17 00:00:00 2001 From: unitexe Date: Mon, 2 Mar 2026 22:41:54 -0600 Subject: Enable graphics for beaglebone-yocto for kernel & beyond - 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 --- meta-unit-distro/conf/distro/include/initramfs.inc | 5 +++++ meta-unit-distro/conf/distro/include/wic.inc | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'meta-unit-distro/conf/distro/include') diff --git a/meta-unit-distro/conf/distro/include/initramfs.inc b/meta-unit-distro/conf/distro/include/initramfs.inc index f16195c..979a862 100644 --- a/meta-unit-distro/conf/distro/include/initramfs.inc +++ b/meta-unit-distro/conf/distro/include/initramfs.inc @@ -1,2 +1,7 @@ INITRAMFS_IMAGE_BUNDLE = "1" INITRAMFS_IMAGE = "core-image-unit-initramfs" + +# The beaglebone-yocto machine configuration file does not handle the case where +# using kernel with bundled initramfs. +IMAGE_BOOT_FILES:remove:beaglebone-yocto = "${KERNEL_IMAGETYPE}" +IMAGE_BOOT_FILES:append:beaglebone-yocto = " ${KERNEL_IMAGETYPE}-${INITRAMFS_LINK_NAME}.bin;${KERNEL_IMAGETYPE}" diff --git a/meta-unit-distro/conf/distro/include/wic.inc b/meta-unit-distro/conf/distro/include/wic.inc index 6cc77cc..1aba27e 100644 --- a/meta-unit-distro/conf/distro/include/wic.inc +++ b/meta-unit-distro/conf/distro/include/wic.inc @@ -4,3 +4,8 @@ WIC_COMPRESSION_EXTENSION = ".zst" # This will override the default wic.bz2 for meta-raspberrypi. IMAGE_FSTYPES:remove:rpi = "wic.bz2" IMAGE_FSTYPES:append:rpi = " wic${WIC_COMPRESSION_EXTENSION}" + +# Need to use a custom WIC kickstart file because the upstream +# one doesn't work with our kernel with bundled initramfs (boot +# partition not big enough). +WKS_FILE:beaglebone-yocto = "unit-beaglebone-yocto.wks" -- cgit v1.2.3