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 when selecting the target 'rpi4' and writing an 'armhfp' (32-bit arm) image.  
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. You will also need to ssh to the host, use --addkey option to install your ssh public key to the image. Example:
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
sudo arm-image-installer --image=Fedora-Minimal-Rawhide-20220106.n.0.armhfp.raw.xz --target=rpi4 --media=/dev/sdc --resizefs --addkey /home/$YOUR_USER_ACCOUNT/.ssh/id_rsa.pub
 
Apply power, boot the system and ssh to the root account on the machine. If you do not know the IP address of the Raspberry Pi 4, you can use nmap to scan the network. Look for the host listed as 'Raspberry Pi Foundation' and corresponding IP address.
 
sudo nmap -sn 192.168.0.0/24
..
MAC Address: B8:27:EB:DE:91:E0 (Raspberry Pi Foundation)
Nmap scan report for 192.168.0.143
Host is up (0.18s latency).
..
 
After logging into the image, install the kernel-lpae package:


  dnf install kernel-lpae
  dnf install kernel-lpae

Revision as of 14:32, 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. You will also need to ssh to the host, use --addkey option to install your ssh public key to the image. Example:

sudo arm-image-installer --image=Fedora-Minimal-Rawhide-20220106.n.0.armhfp.raw.xz --target=rpi4 --media=/dev/sdc --resizefs --addkey /home/$YOUR_USER_ACCOUNT/.ssh/id_rsa.pub

Apply power, boot the system and ssh to the root account on the machine. If you do not know the IP address of the Raspberry Pi 4, you can use nmap to scan the network. Look for the host listed as 'Raspberry Pi Foundation' and corresponding IP address.

sudo nmap -sn 192.168.0.0/24
..
MAC Address: B8:27:EB:DE:91:E0 (Raspberry Pi Foundation)
Nmap scan report for 192.168.0.143
Host is up (0.18s latency).
..

After logging into the image, install the kernel-lpae package:

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.