Fedora on Raspberry Pi
This page has been converted from the Fedora Project Wiki and cleaned up for publishing here on the Fedora Docs Portal, but it has not yet been reviewed for technical accuracy. This means any information on this page may be outdated or inaccurate. Reviews for technical accuracy are greatly appreciated. If you want to help, see the README file in the source repository for instructions. |
The Raspberry Pi is a credit card-sized ARM based single board computer (SBC). The Raspberry Pi Model B versions 2 and 3 are supported for Fedora 25 or newer, without any requirement of third party kernels or scripts to adjust offical images. This documentation describes how to get started, and includes a Frequently Asked Questions (FAQ) section at the end of the document about what is supported, and what is not.
-
Raspberry Pi Model B, version 2 or 3.
-
A power supply (details on raspberrypi.org).
-
Minimum 2 Amps for Raspberry Pi Model B, version 2.
-
Minimum 2.5 Amps for the Raspberry Pi Model B, version 3.
-
-
HDMI-compatible Monitor or TV.
-
A USB keyboard and USB mouse.
-
SD card reader.
-
A microSD Card (16 GB or larger).
-
A computer running Microsoft Windows, Apple OS X, or Linux.
-
A Fedora ARM image from: https://arm.fedoraproject.org/.
The procedure for installing Fedora ARM on a microSD in preparation for using Fedora on a Raspberry Pi depends on your computers' operating system (Microsoft Windows, Apple OS X, or Linux).
-
For Fedora users, see: Installing Fedora on a Raspberry Pi using the Fedora ARM installer.
-
For users of other Linux distributions, see: Installing Fedora on a Raspberry Pi for Linux users.
-
For Microsoft Windows users, see: Installing Fedora on a Raspberry Pi for Microsoft Windows users.
-
For Apple OS X users, see: Installing Fedora on a Raspberry Pi for Apple OS X users.
Installing Fedora on a Raspberry Pi using the Fedora ARM installer
This procedure shows Fedora users how to add Fedora ARM to a microSD for use with a Raspberry Pi using the Fedora ARM installer.
-
Raspberry Pi Model B, version 2 or 3.
-
A microSD Card (16 GB or larger).
-
A computer running Fedora 28 or newer.
-
SD card reader.
-
A Fedora ARM image from: https://arm.fedoraproject.org/.
-
Download a Fedora ARM image from the Fedora ARM website.
-
Install the
fedora-arm-installer
:$ dnf install -y fedora-arm-installer
-
As the root user, write the Fedora ARM image to the microSD card:
# fedora-arm-image-installer --image=</path/to/fedora_image> --target=<RPi_Version> --media=/dev/<sd_card_device> --resizefs
Where:
-
The
</path/to/fedora_image>
has the formatFedora-<spin>-armhfp-<fedora_version>-sda.raw.xz
.-
For example:
/home/user/Downloads/Fedora-Server-armhfp-29-1.1-sda.raw.xz
.
-
-
<RPi_Version>
is:-
rpi2
for a Raspberry Pi 2. -
rpi3
for a Raspberry Pi 3.
-
-
/dev/<sd_card_device>
is the microSD card 'device' on your system, such as/dev/sdX
or/dev/mmcblkX
. Thelsblk
command may help you identify your micro-SD card.-
To see usage options for the
fedora-arm-image-installer
, run:$ fedora-arm-image-installer --help
-
For list of supported boards please check SUPPORTED-BOARDS file.
$ cat /usr/share/doc/fedora-arm-installer/SUPPORTED-BOARDS
-
-
Your microSD card is ready to be used with your Raspberry Pi.
For information on starting and configuring Fedora on Raspberry Pi, see: Booting Fedora on a Raspberry Pi for the first time.
-
For information on using the Fedora ARM Installer, see: Fedora Wiki: Installing Fedora on your ARM device.
-
For assistance or support, see:
Installing Fedora on a Raspberry Pi for Linux users
This procedure shows Linux users how to add Fedora ARM to a microSD for use with a Raspberry Pi.
-
Raspberry Pi Model B, version 2 or 3.
-
A microSD Card (16 GB or larger).
-
A computer running Linux.
-
Root user access (via
su
orsudo
). -
SD card reader.
-
A Fedora ARM image from: https://arm.fedoraproject.org/.
-
Download a Fedora ARM image from the Fedora ARM website.
-
Run the following command to extract the
.raw
image and write the image to your microSD card:The location of your microSD card will be /dev/sdX or /dev/mmcblkX depending on your computer hardware. $ xzcat Fedora-IMAGE-NAME.raw.xz | sudo dd status=progress bs=4M of=/dev/XXX
-
Resize the Root Partition on the microSD using gparted:
$ gparted /dev/XXX
For information on using gparted resize a partition, see: GNOME Partition Editor: GParted Manual - Resizing a Partition.
The root partition is shrunk to the smallest size possible to ensure a small download. You currently need to resize it manually. Ideally we would like this to happen automatically (great community project idea!).
Your microSD card is ready to be used with your Raspberry Pi.
For information on starting and configuring Fedora on Raspberry Pi, see: Booting Fedora on a Raspberry Pi for the first time.
-
For information on using
gparted
, see: GNOME Partition Editor: GParted Manual. -
For assistance or support, see:
Installing Fedora on a Raspberry Pi for Microsoft Windows users
This procedure shows Microsoft Windows users how to add Fedora ARM to a microSD for use with a Raspberry Pi.
-
Raspberry Pi Model B, version 2 or 3.
-
A microSD Card (16 GB or larger).
-
A computer running Microsoft Windows.
-
SD card reader.
-
A Fedora ARM image from: https://arm.fedoraproject.org/.
-
File-decompression software (such as 7zip).
-
Download a Fedora ARM image from the Fedora ARM website.
-
Extract the
.raw
file from the Fedora ARM image using file-decompression software (such as 7zip).For example:
> "C:\Program Files\7-Zip\7z.exe" x -y "C:\Users\admin\Downloads\Fedora-Server-armhfp-29-1.1-sda.raw.xz"
-
Follow the instructions provided by the Raspberry Pi foundation for writing an image to a microSD card from Microsoft Windows: Raspberry Pi Foundation: Installing operating system images using Windows.
The
.img
and.raw
extensions are used interchangeably for RAW file. Where the instructions indicate an input file with the.img
extension, use the Fedora ARM image '.raw'.
Your microSD card is ready to be used with your Raspberry Pi.
For information on starting and configuring Fedora on Raspberry Pi, see: Booting Fedora on a Raspberry Pi for the first time.
-
For assistance or support, see:
Installing Fedora on a Raspberry Pi for Apple OS X users
This procedure shows Apple OS X users how to add Fedora ARM to a microSD for use with a Raspberry Pi.
-
Raspberry Pi Model B, version 2 or 3.
-
A microSD Card (16 GB or larger).
-
A computer running Apple OS X.
-
SD card reader.
-
A Fedora ARM image from: https://arm.fedoraproject.org/.
-
File-decompression software (such as The Unarchiver desktop application or The Unarchiver command-line tools).
-
Download a Fedora ARM image from the Fedora ARM website.
-
Extract the
.raw
file from the Fedora ARM image using file-decompression software (such as The Unarchiver)For example:
$ unar Fedora-Server-armhfp-29-1.1-sda.raw.xz
-
Follow the instructions provided by the Raspberry Pi foundation for writing an image to a microSD card from Apple OS X: Raspberry Pi Foundation: Installing operating system images on Mac OS.
The
.img
and.raw
extensions are used interchangeably for RAW file. Where the instructions indicate an input file with the.img
extension, use the Fedora ARM image '.raw'.
Your microSD card is ready to be used with your Raspberry Pi.
For information on starting and configuring Fedora on Raspberry Pi, see: Booting Fedora on a Raspberry Pi for the first time.
-
For assistance or support, see:
Booting Fedora on a Raspberry Pi for the first time
Follow these steps to boot Fedora ARM on your Raspberry Pi. If your MicroSD card does not have enough room, you need to resize the main partition after the initial setup. See Resizing the main partition of the microSD card after setup (if required).
-
Raspberry Pi Model B, version 2 or 3.
-
A power supply (details here).
-
Minimum 2 Amps for Raspberry Pi Model B, version 2.
-
Minimum 2.5 Amps for the Raspberry Pi Model B, version 3.
-
-
HDMI-compatible Monitor or TV.
-
A USB keyboard and USB mouse.
-
Insert the SD card into the Raspberry Pi.
-
Connect a keyboard, mouse, network cable, and monitor.
-
Plug the Raspberry Pi into the power source. The "Initial setup wizard" should appear after Fedora loads.
-
Follow the wizard to set your language, timezone and to create users.
The system displays a login prompt or getting started guide (depending on your Desktop/SPIN).
Follow these steps to resize the partitions for Fedora ARM on Raspberry Pi:
-
Enlarge the 4th partition (this example uses mmcblk0).
$ growpart /dev/mmcblk0p4
-
Grow the filesystem to fill the available space.
$ resize2fs /dev/mmcblk0p4
-
Resize root partition for the server image (which uses xfs).
$ xfs_growfs -d /
-
For information on configuring Fedora, including installing programs and updates, see: Fedora Docs: System Administrator’s Guide
-
For assistance or support, see:
Fedora on Raspberry Pi: Frequently Asked Questions
Frequently asked questions regarding what is supported.
Common causes of the rainbow display include:
-
Insufficient power supply. See the Prerequisites section at the beginning of this document.
-
There’s no operating system installed. Check that an operating system was installed and the microSD card was properly inserted into the Raspberry Pi. For instructions about Fedora ARM on Raspberry Pi:
-
For Fedora users, see: Installing Fedora on a Raspberry Pi using the Fedora ARM installer.
-
For users of other Linux distributions, see: Installing Fedora on a Raspberry Pi for Linux users.
-
For Microsoft Windows users, see: Installing Fedora on a Raspberry Pi for Microsoft Windows users.
-
For Apple OS X users, see: [installing-fedora-on-a-raspberry-pi-for-apple-macos-users_rpi].
-
-
If you try to use Fedora on a Raspberry Pi 1, Raspberry Pi Zero, or a Raspberry Pi model A, you will receive the rainbow display. This occurs because your Raspberry Pi is not supported (ARMv6 SoCs architectures are not supported).
All desktops as shipped in Fedora should work and both 2D and 3D graphics work out of the box. There is an open source fully accelerated driver for the Video Core IV GPU.
Yes. New enhancements will be delivered by the standard Fedora updates mechanism. New, significant features will be announced by the Fedora Magazine or the Fedora Planet.
These Raspberry Pi models are not supported.
Fedora is not supported on ARMv6 processors. There’s been a number of attempts to support these over the years. The current best effort is Pignus based on Fedora 23. More information can be found at the Pignus site.
Fedora DOES support the Compute Module 3 based on the same SoC as the Raspberry Pi 3, but as the previous generation Compute Modules are based on ARMv6 architecture, they are not supported. |
Most USB-2 compatible devices that are supported in Fedora on other devices. There are some limitations to the USB bus of the Raspberry Pi hardware as documented here.
Wi-Fi on the Raspberry Pi 3 and 3+ works in Fedora.
The drivers required for the onboard WiFi cannot be included in the Fedora ARM image. After Fedora has been installed on a microSD card and Fedora on Raspberry Pi has been booted for the first time, you can install the WiFi drivers using an ethernet internet connection.
Raspberry Pi 3
-
To install support for the onboard WiFi, on a command-line, issue:
$ sudo curl https://fedora.roving-it.com/brcmfmac43430-sdio.txt -o /lib/firmware/brcm/brcmfmac43430-sdio.txt
-
Reboot the Raspberry Pi to access the WiFi.
Raspberry Pi 3B+
-
To install support for the onboard WiFi, on a command-line, issue:
$ sudo curl https://fedora.roving-it.com/brcmfmac43455-sdio.txt -o /lib/firmware/brcm/brcmfmac43455-sdio.txt $ sudo curl https://fedora.roving-it.com/brcmfmac43455-sdio.clm_blob -o /lib/firmware/brcm/brcmfmac43455-sdio.clm_blob
-
Reboot the Raspberry Pi to access the WiFi.
Using Wi-Fi on CLI
To use Wi-Fi on minimal and server images you can configure the device using command line:
-
To list available networks:
$ nmcli device wifi list
-
To connect to a network:
nmcli device wifi connect $SSID --ask
Where:
$SSID
is the network identifier (or name).
Bluetooth works and is stable. The device sometimes has a generic bluetooth address but should work without any configuration.
HDMI audio output is included with Fedora, however, the analog port is not yet supported. Audio output using a USB audio interface should work.
Not at this time. There is still ongoing work to support this upstream and to add the appropriated media acceleration support.
No. The upstream kernel does not support the kernel subsystems required for accelerated media decoding.
Yes.
Yes. It’s supported using the new upstream CEC support. There’s a /dev/cec0
character device, it can be accessed using any application that supports the IR remote using the rc-cec
keymap in the v4l-utils
package, there’s also a cec-ctl
utility for use on the command line.
Work on the official Raspberry Pi Touch Display is ongoing upstream and initial support is provided in the 4.10 kernel, see: GitHub: raspberrypi/linux issues - 7" LCD touchscreen not supported. Fedora will review any missing pieces for support soon. The touchscreen driver isn’t yet released upstream. Support for other displays is not currently planned.
The composite TV out is not currently supported in a stable Fedora release but the core support is in the 4.10 kernel. There is some missing enabling patches which will be added to the Fedora kernel soon.
The the expansion HATs are not currently supported.
The long answer is a lot more complex. Most of the hardware interfaces that are exposed by the 40 pin HAT connector are supported with drivers shipped with Fedora.
Drivers for the hardware contained on a lot of the common HATs are also enabled and supported in Fedora. The core means of supporting the HAT add-on boards require the use of device tree overlays. The kernel and the u-boot 2016.09 boot-loader supports the loading over overlays manually. Currently there is no upstream consensus on the means of autoloading these overlays by means of an "overlay manager" (also known as Cape Manager and by numerous other names) by reading the EEPROM ID and loading the appropriate overlay automatically.
There’s also no consensus on the extensions to the dtc (Device Tree Compiler) to build the binary blob overlays, and no consensus of the exact format of the overlay file. There is now a group of people working to resolve this issue which enable Fedora to better support HATs (Raspberry Pi), Capes (BeagleBone), DIPs (C.H.I.P) and Mezzanine (96boards) before long.
The first focus HAT to support will be the official Raspberry Pi Sense HAT. This will be documented using the manual process to build and load the overlay to provide access to the onboard devices as a means of demonstrating how this process works for those wishing to use this manual method in the interim. The link to this documentation will be added here once that is complete.
The config.txt
is only used for basic configuration at the moment. Because of the use of the opensource vc4 GPU driver, most of the video configuration is done by Linux.
The configuration of HATs using config.txt
is unsupported but is being actively developed.
There’s basic support for overlays in u-boot and the Linux kernel but an overlay manager is not supported upstream.
GPIO isn’t fully supported due to lack of mapping with the Device Tree overlays. This is expected be improved in the Fedora 28 cycle and in Fedora 29.
Yes, basic SPI is supported.
Yes, basic I2C is supported.
Yes! You can download the aarch64 disk images for the Raspberry Pi 3 here.
The serial console is disabled by default on the Raspberry Pi 2 and 3 because it requires the device to run at significantly slower speeds.
To wire up the USB to TTL adapter follow this guide from Adafruit. You’ll need a 3.3 volt USB to TTL Serial Cable like this one from Adafruit.
To enable the serial console follow the specific steps for the Raspberry Pi 2 or 3 as they both differ slightly:
Raspberry Pi 2:
-
Insert the microSD card into a PC
-
On the VFAT partition edit the
config.txt
file and uncomment theenable_uart
line:$ enable_uart=1
-
On the boot partition edit the
extlinux/extlinux.conf
file addingconsole=tty0 console=ttyAMA0,115200
to the end of the append line so it looks similar to:$ append ro root=UUID="LARGE UUID STRING OF TEXT" console=tty0 console=ttyAMA0,115200
-
Safely unmount the microSD card
-
Insert microSD into Raspberry Pi, connect serial console, power on
Raspberry Pi 3:
-
Insert the microSD card into a PC
-
On the VFAT partition edit the
config.txt
file and uncomment theenable_uart
line:$ enable_uart=1
-
On the boot partition edit the
extlinux/extlinux.conf
file adding:console=tty0 console=ttyS0,115200
to the end of the append line so it looks similar to:$ append ro root=UUID="LARGE UUID STRING OF TEXT" console=tty0 console=ttyS0,115200
-
Safely unmount the microSD card
-
Insert microSD into Raspberry Pi, connect serial console, power on
Additional Resources
-
The most up-to-date information can be found on the Raspberry Pi page of the Fedora Wiki.
-
For Raspberry Pi hardware specifications and project ideas, see: The Raspberry Pi Foundation Website.
-
For information on configuring Fedora, including installing programs and updates, see: Fedora Docs: System Administrator’s Guide
-
For assistance or support, see: