From d586813d5f0cb81df9773f5c5ef80e2243b87d26 Mon Sep 17 00:00:00 2001 From: Cyril Brulebois Date: Sat, 20 Jul 2024 15:24:09 +0200 Subject: [PATCH] Preconfigure raspi-firmware to avoid cma=64M on the kernel cmdline. --- raspberrypi/recipes/pi5.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/raspberrypi/recipes/pi5.sh b/raspberrypi/recipes/pi5.sh index f187b43..ac2a9e5 100644 --- a/raspberrypi/recipes/pi5.sh +++ b/raspberrypi/recipes/pi5.sh @@ -36,6 +36,11 @@ toast_me() { ### BEGIN: Pi 5 section + # Preconfigure raspi-firmware to disable the default cma= setting on the + # kernel command line. Don't run the hook manually, the linux-image install + # below will take care of it. + sed '/^#CMA=/a CMA=0' -i $MNT/etc/default/raspi-firmware + # Configure Raspberry Pi repository cat > $MNT/etc/apt/sources.list.d/raspberrypi.list <