From Fedora Project Wiki
Line 1: Line 1:
== Using the Raspberry Pi 4 with 32-Bit ARM ==
== Using the Raspberry Pi 4 with 32-Bit ARM ==


To use the Raspberry Pi 4 with 32-bit arm you will need first limit the ram to 1024M in order to boot and install the kernel-lpae package. This is done automatically with the arm-image-installer script. To do so manually, after writing the disk image open the 'config.txt' file found on the first partition and add 'total_mem=1024' to the bottom of the file.  
To use the Raspberry Pi 4 with 32-bit arm you will need first limit the ram to 1024M in order to boot and install the kernel-lpae package. This is done automatically with the arm-image-installer script when selecting the target 'rpi4' and writing an 'armhfp' (32-bit arm) image.  
To do so manually, after writing the disk image open the 'config.txt' file found on the first partition and add 'total_mem=1024' to the bottom of the file.  


Apply power and boot the system. You will need to ssh to the machine to install the kernel-lpae
Apply power and boot the system. You will need to ssh to the machine to install the kernel-lpae


  dnf install kernel-lpae
  dnf install kernel-lpae

Revision as of 14:15, 13 January 2022

Using the Raspberry Pi 4 with 32-Bit ARM

To use the Raspberry Pi 4 with 32-bit arm you will need first limit the ram to 1024M in order to boot and install the kernel-lpae package. This is done automatically with the arm-image-installer script when selecting the target 'rpi4' and writing an 'armhfp' (32-bit arm) image. To do so manually, after writing the disk image open the 'config.txt' file found on the first partition and add 'total_mem=1024' to the bottom of the file.

Apply power and boot the system. You will need to ssh to the machine to install the kernel-lpae.

dnf install kernel-lpae

Ensure the kernel-lpae is set to the default kernel

grub2-editenv - set "saved_entry=$(ls /boot/loader/entries/*lpae* | cut -d/ -f5 | cut -d. -f1-5)"

Edit '/boot/efi/config.txt' and remove the ram limitation or run the following command to comment it out:

sed -i 's|^total_mem=1024|# total_mem=1024|' /boot/efi/config.txt

Reboot the machine into the new kernel-lpae. You should now see the additional ram available and can safely remove the standard kernel package:

dnf remove kernel

Known Issues

When using the standard kernel and limiting RAM, USB is not available.