From e84f470432d21477e83629a66ea2275a641f2a63 Mon Sep 17 00:00:00 2001 From: Thomas Hindoe Paaboel Andersen Date: Apr 22 2020 15:16:44 +0000 Subject: rpi4: remove cma on kernel commandline Setting cma on the kernel commandline will cause the rpi4 to hang at boot. On the fedora workstation aarch64 image cma is set. This patch simply drops the cma setting for that specific case (cma=256MB) --- diff --git a/arm-image-installer b/arm-image-installer index 629aed9..f548365 100755 --- a/arm-image-installer +++ b/arm-image-installer @@ -537,6 +537,11 @@ if [ "$FIX_RPI" != "" ]; then sed -i 's/append/& rd.driver.blacklist=vc4/' /tmp/boot/extlinux/extlinux.conf fi +if [ "$TARGET" = "rpi4" ]; then + sed -i 's|cma=256MB||g' /tmp/fw/EFI/fedora/grub.cfg + sed -i 's|cma=256MB||g' /tmp/fw/EFI/fedora/grubenv +fi + # check if host system has selinux disabled, if it does autorelabel is required if [ "$(getenforce)" = "Disabled" ]; then echo "= NOTE: System Relabel required on first boot."