#51 rpi4: remove cma on kernel commandline
Closed 6 months ago by phomes. Opened 6 months ago by phomes.
phomes/arm-image-installer no-cma  into  master

file modified
+5
@@ -537,6 +537,11 @@ 

  	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."

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)

We need to look at how to fix this properly. We don't currently support the RPi4 on Workstation anyway as there's no accelerated graphics, when there is it will need CMA. I suspect this is because they did a terrible hack in the DT around CMA.

@pwhalen please don't merge this.

No problem. Let's close this and focus on solving the CMA issue instead.

Pull-Request has been closed by phomes

6 months ago
Metadata