From c2ac68be45a1840faa36a893537b4553986674bc Mon Sep 17 00:00:00 2001 From: Michal Toman Date: Fri, 22 Sep 2023 10:07:38 +0200 Subject: [PATCH] rpi-cmdline: Add arguments for balena bootloader This adds the following to the kernel command line: * balena_stage2 - enable balena bootloader initrd scripts * maxcpus=0 - we want balena bootloader to run in non-SMP mode Both will be removed by the kexec initrd script and not passed to the actual kernel. Change-type: patch Signed-off-by: Michal Toman --- .../recipes-bsp/bootfiles/rpi-cmdline.bbappend | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layers/meta-balena-raspberrypi/recipes-bsp/bootfiles/rpi-cmdline.bbappend b/layers/meta-balena-raspberrypi/recipes-bsp/bootfiles/rpi-cmdline.bbappend index 8ae43d11..b1ac7186 100644 --- a/layers/meta-balena-raspberrypi/recipes-bsp/bootfiles/rpi-cmdline.bbappend +++ b/layers/meta-balena-raspberrypi/recipes-bsp/bootfiles/rpi-cmdline.bbappend @@ -6,3 +6,7 @@ CMDLINE += " ${@bb.utils.contains('DISTRO_FEATURES','osdev-image',"console=tty1 CMDLINE += " cgroup_enable=memory" CMDLINE:remove = "root=/dev/mmcblk0p2" CMDLINE_DEBUG = "" + +# Necessary for balena bootloader to work +# These will not be passed to the actual kernel +CMDLINE:append:raspberrypi5-64 := " balena_stage2 maxcpus=0"