I got Fedora 40/41 working on my Raspberry Pi 5!

I’ve seen lots of “Ask Fedoras” about getting Fedora on an RPI 5, as I researched ever since getting my Pi 5. As you know, it is not officially supported thanks to the lack of RPI 5 support in the kernel. Thanks to dwrobel’s copr (hence the tag), I was able to boot it up and it works, besides the resolution lock and other things (which have been driving me insane) it works perfectly fine. WiFi works, most things work. Here’s the links you can use:

Copr: dwrobel/kernel-rpi Copr

Github: GitHub - dwrobel/kernel: Downstream Linux kernel for the Raspberry Pi 3 & 4 Model B for Fedora and CentOS.

RPM Fusion (with premade images!): Howto/RaspberryPi - RPM Fusion

4 Likes

Would you share your insight and a step by step procedure that others could follow.
The links you provided do not contain anything that would help on a Pi 5.

1 Like

The thing is, there are no steps (other than what would normally be required to install Fedora on say, a Pi 4)

  1. Go to the RPM Fusion link in my original post
  2. Find the Fedora 40 (or 39) download (you’ll need to pick between Workstation and Server, haven’t tested server though)
  3. Install it (my only SD card reader was on my Mac so I used Etcher)
  4. Put the SD card in your Pi 5, and voila!

I just tried this with the F40 server on my Pi 5. Couple of steps after 4 that are important. Interested in finding out if there’s a better way too.

  1. During first boot you’ll need to configure a user with sudo privileges. You’ll be prompted.
  2. Resize the partition to the full SDCard size. My SDCard was 128G so I used fdisk to expand the non-boot partition
    sudo fdisk /dev/mmcblk0
  3. Resize btrfs to use the additional space
    sudo btrfs filesystem resize +114G /
    which size you use varies based on your partition. That was the most (to the nearest GB) that worked for me.

I am using the F40 server image from RPM Fusion.

I tried Fedora 40 with Almalinux kernel. Almalinux is officially supports raspberry pi 5.

Hi,

i use now also my Webserver in the basement also an Rasberry, with an kernel from
Howto/RaspberryPi - RPM Fusion with/for kernel rpi4 , a server needs not really sound or an Grafical Surface, have take the Workstations image for patching my NV-SSD and have installed apache, mariadb and so on, part for part with the infos from

, my early server was an XEON I7 32Gig Ram , and now it is an Raspi 5 with 8G … speed ? , it’s feel like a Surfboard with Pazific-waves, also at the RPI, Fedora should looking for a aarch installerimage which checks if’ it is a RPI4 or RPI 5 and then use the correct Kernel and this into a Packet for patch a mini-sd via rpi-imager and start the RPI4/5 with a sd-card and let install the Raspi like a normal Computer with Anaconda or something where let configuring by install the raspi, because, the Raspi 5 is same fast like as a Desktop-Computer or a Laptop … like it’s feels and the Users should support with an installer if they have build together a RPI5 with an NV-SSD … this should be supported … (b.t.w. i have at ping/opendesktop create a couples icons, search easy for blacky :wink: manny fun ! )
We should have slowly support for RPI 5, also for have a small Comp for looking TV over Internet :wink: hihi … (GPU/Sound)

Best regards
Blacky

.blackysgate.de (at home the .net with raspi)

That is pretty great, unfortunately, this is not working for directly booting od NVMe. Maybe one day.

Well, just read the Howto/RaspberryPi - RPM Fusion properly, till end of article :rofl: Booting from external USB drive

Write the image to the external drive, then mount the filesystem and change root=/dev/mmcblk0p2 to root=/dev/sda2 in the /boot/efi/cmdline.txt.

It works now booting from NVMe, on Pi 5

Hi

my cmdline.txt :


coherent_pool=16M dwc_otg.lpm_enable=0 earlyprintk console=serial0,115200 console=tty1 root=/dev/nvme0n1p2 rootfstype=btrfs rootflags=subvol=root ro fsck.repair=yes rootwait libahci.ignore_sss=1 raid=noautodetect nortc selinux=0 usbhid.mousepoll=0

so → “root=/dev/nvme0n1p2” for boot the / and read the /etc/fstab for more booting to end,
this “root” fstab from nvme0n1 must at end have the UUID of the right partitions, this become you with " blkid " on commandline like “blkid /dev/sda2” and if you have patch the nvme0n1 with the fedoraimage, then make a new UUID on the 2nd PArtition, so the root partition, for have a other UUID as the MiniSD Cards mmcblk for have the possibility to work with the Partitions apart of different UUID, this is later important to partition different partitions and the possibility for boot save with the minisd card as own system and own mmcblk** partitions in the mmcblkp1 and p2 with the own UUID in the Minisd-/root/etc/fstab Subpartition(with a Subdir) because the nvme0n1 have on p2 and p3 (p=Partitions) an other UUID in the fstab of the nvme0n1p2 if you add an extra “Home” partition is this then the partition of nvme0n1p3. with an own UUID=XXXXXXXXXX in the fstab of nvme0n1p2 … where you then set up at the cmdline.txt
root=/dev/nvme0n1p2

change you the fs at /dev/nvme0n1p2 have you it also change at the cmdline , as example
rootfstype=btrfs , to rootfstype=ext4fs , or something what you use as “homeroot fs” if you make a own partition for root and make it a.e. as an own real ext4fs … but so far have i not play around, i have let the root as sub and have make a exta home-fs, before i have start the rasberry5 over nvme0n1 …

the Problem/Task at “root=/dev/sda2” is, if you plugin an other usb3-fs, can the sda2 or sda change to this usb-device like a usb3-harddisk, there is the nvme0n1p2 more spezific to the right partitions, on the NV-SSD, and i don’t know if the efi use UUID too because i have testet it still not… (should normally work root=UUID=34141241232323 the UUID of the 2nd Partition where store the /etc/fstab for further read the system i guess the /etc/fstab is included of the further boot and RW the OS …)

best regards and manny fun
Blacky

Thanks for giving feedback, I do appreciate it while getting used to my own RPI5.

Unfortunately as you formatted the text it is quite difficult to understand and follow the instructions.

It would be nice, if you could go over the text again and mark as pre formatted text, where you make some explanations. As an example:

  1. root=/dev/nvme0n1p2
    explanation: etc

Hi,

if you have a Raspberry Pi M.2 HAT+ added to your RP5 , must you use a nvme-ssd harddisk “Card”, this nvme ssd is see over “cat /prog/partitions” as nvme0n1p1(2/3/4)

this as explanation …

mkdir /media/nvme0n1p2-rootnhome ; mount /dev/nvme0n1p2 /media/nvme0n1p2-rootnhome

, then can you work with your nvme0n1p2

the next is, so if you use some ssd, and you have change youre cmdline.txt
call as next the partition which you have use as root, from this is then read the
/etc/fstab and load the fstab as mounting call, there for must be the entry’s of the called fstab correctly and you must update of this fstab from nvme0n1p2:/etc/fstab with correct UUID …
You can also change the fs, if you correcting then this fstab in correct way,
but once have i ever leave, the vfad of /boot, this have i ever not touched…
You can also change the subfolder=root to a real /, but you umst it then also chang in the cmdline.txt and in the fstab for fit at all (and then install the mc and move at all …

in my Opinion it this Rasberry5 a Fully handy Computer like a Laptop
and should have/exist a SD-image for RPI5 with an normaly installer for Partition and Format the Raspi like a normal Computer (like the Serverinstaller over the internet ISO) but over sd-card or the SD-Card like a Liveimage.

Tip from me, take directly a Case for the M2-SSD Hat like this :

I bet, some one give at Brasilian Amazon too or american, this case is perfect to have such constructed like M2+ and so on…

1 Like

Hi, just wanted to drop that for me this also works with the recent Fedora 41 image, with one small adjustment to get the display working: I had to comment out [rp4] in config.txt - otherwise the following lines required for display/gpu take no effect.

1 Like

What is the spin edition you run on it?

The Workstation spin from Howto/RaspberryPi - RPM Fusion

1 Like

That worked very well indeed. Finally running the RPI5 with Fedora! Thanks for the feedback.

1 Like