Edit Info Other
Login

RaspberryPi"

Differences between revisions 11 and 25 (spanning 14 versions)
Revision 11 as of 2021-06-26 10:06:52
Size: 4432
Editor: DamianWrobel
Comment: Improve information about updating Raspberry Pi 4 bootloader EEPROM
Revision 25 as of 2024-04-24 07:23:36
Size: 4258
Editor: DamianWrobel
Comment: Add links to Fedora 40 pre-built images
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## Please edit system and help pages ONLY in the master wiki!
## For more information, please see MoinMoin:MoinDev/Translation.
Line 2: Line 4:
##master-page:Unknown-Page
##master-date:Unknown-Date
#acl DamianWrobel:read,write,revert AdminGroup:read,write,revert All:read
#format wiki
#language en
Line 4: Line 11:
This documentation is about using Raspberry Pi Foundation "downstream kernel" and components on a Fedora (or CentOS) userspace.
As with Fedora, this process is compatible with Raspberry Pi 2 and later model (No original Raspberry Pi or Pi Zero support is planned).
Unless using a Raspberry Pi 4 with 4G of RAM. It's recommended to use the 32bit version over the 64bit (especially for the Workstation flavor).
For graphics usage, it's really recommended to have a Raspberry Pi 4 which default to the vc4/v3d driver.
This documentation is about using Raspberry Pi Foundation [[https://github.com/raspberrypi/linux|downstream kernel]] and components from Fedora userspace.
The Workstation flavor is recommended for the Raspberry Pi 4 B/400 with >=4GB RAM platform. The Server flavor is usable on starting from Raspberry Pi 3 B/B+.
Line 11: Line 16:
Fedora 34 files with the following modifications: Fedora 39 files with the following modifications:
Line 13: Line 18:
 || kernel || [[https://github.com/fedberry/kernel|spec]] / [[https://copr.fedorainfracloud.org/coprs/dwrobel/kernel-rpi/|copr]] || Downstream kernel ||
 || bcm434xx-firmware || [[https://github.com/fedberry/bcm434xx-firmware|spec]] / [[https://copr.fedorainfracloud.org/coprs/dwrobel/bcm434xx-firmware-rpi/|copr]] || ||
 || bcm283x-firmware || [[https://github.com/fedberry/bcm283x-firmware|spec]] / [[https://copr.fedorainfracloud.org/coprs/dwrobel/bcm283x-firmware-rpi/|copr]] || ||
 || kernel || [[https://github.com/dwrobel/kernel|spec]]  / [[https://copr.fedorainfracloud.org/coprs/dwrobel/kernel-rpi/|copr]] || Downstream kernel ||
 || bcm434xx-firmware || [[https://github.com/dwrobel/bcm434xx-firmware|spec]]  / [[https://copr.fedorainfracloud.org/coprs/dwrobel/bcm434xx-firmware-rpi/|copr]] || ||
 || bcm283x-firmware || [[https://github.com/dwrobel/bcm283x-firmware|spec]]  / [[https://copr.fedorainfracloud.org/coprs/dwrobel/bcm283x-firmware-rpi/|copr]] || ||
Line 21: Line 26:
== Pre-built images ==
The location of pre-generated images for Fedora 34 can be found below:
|| Flavor      || armv7hl || aarch64 ||
|| Server || [[https://ufile.io/wrl7a4da|image]] / [[https://ufile.io/owge1viq|checksum]] || [[https://ufile.io/r6rgxgly|image]] / [[https://ufile.io/so323qhp|checksum]] ||
|| Workstation || [[https://ufile.io/otlgmdid|image]] / [[https://ufile.io/uk0xfn57|checksum]] || [[https://ufile.io/124nh3c9|image]] / [[https://ufile.io/8039e7wa|checksum]] ||
== Pre-built images (f40) ==
The location of pre-generated images for Fedora 38 can be found below:
|| Flavor || aarch64 ||
|| Server || [[https://ufile.io/br3bfol9|image]] / [[https://ufile.io/5tvdtl30|checksum]] ||
|| Workstation || [[https://ufile.io/dbt
4yr3c|image]] / [[https://ufile.io/mr9cxxto|checksum]] ||
Line 27: Line 32:

== Raspberry Pi specific RPM Fusion RPI Repositories on Fedora ==
{{{
sudo dnf config-manager --add-repo=https://mirrors.rpmfusion.org/free/fedora/rpi/rpmfusion-rpi.repo
sudo dnf install raspberrypi-vc-utils raspberrypi-vc-libs
}}}
== Pre-built images (f39) ==
The location of pre-generated images for Fedora 39 can be found below:
|| Flavor || aarch64 ||
|| Server || [[https://ufile.io/mh0lvd91|image]] / [[https://ufile.io/9la7g6ga|checksum]] ||
|| Workstation || [[https://ufile.io/tg6t6u9w|image]] / [[https://ufile.io/618l7mot|checksum]] ||
Line 40: Line 43:
Line 44: Line 46:

Note: On the Raspberry Pi 4, you may need to adjust [[https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#BOOT_ORDER|BOOT_ORDER=]] parameter in order be able to boot from the external drive.
Line 53: Line 57:
=== Sysctl ===
{{{
# set vm.min_free_kbytes for rpi
cat>/etc/sysctl.d/98-rpi.conf<<EOF
vm.min_free_kbytes = 16384
EOF
}}}

== Known issues ==
 * There is a CMA memory allocation issue with graphics on the Pi3 using vc4, best is to disable vc4 (will be un-accelerated).

Line 66: Line 58:
 * You can report to our bugzilla, see [[ReportingBugs]], please mention using downstream kernel/components.

About this Howto

This documentation is about using Raspberry Pi Foundation downstream kernel and components from Fedora userspace. The Workstation flavor is recommended for the Raspberry Pi 4 B/400 with >=4GB RAM platform. The Server flavor is usable on starting from Raspberry Pi 3 B/B+.

Kickstart files

Kickstart files are located at https://pagure.io/fork/dwrobel/fedora-kickstarts repository and are based on the original Fedora 39 files with the following modifications:

  • component

    Repositories

    comment

    kernel

    spec / copr

    Downstream kernel

    bcm434xx-firmware

    spec / copr

    bcm283x-firmware

    spec / copr

    pykickstart

    PR / copr

    Adds --priority=<priority>

    livecd-tools

    PR / copr

    Adds support for repository 'priority' configuration

The modifications in livecd-tools and pykickstart allows to generate image with selected downstream kernel (despite it has lower version) over the upstream one. On a system, all aforementioned repositories are installed with priority=50 option to instruct 'dnf' to choose packages from this repository, rather then Fedora default.

Pre-built images (f40)

The location of pre-generated images for Fedora 38 can be found below:

Flavor

aarch64

Server

image / checksum

Workstation

image / checksum

Pre-built images (f39)

The location of pre-generated images for Fedora 39 can be found below:

Flavor

aarch64

Server

image / checksum

Workstation

image / checksum

Updating Raspberry Pi 4 bootloader EEPROM

Follow the gist available at: https://gist.github.com/dwrobel/266ad5d4e59b05ea26d8bb6725118578.

Configurations

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.

Note: On the Raspberry Pi 4, you may need to adjust BOOT_ORDER= parameter in order be able to boot from the external drive.

Resizing filesystem

After booting the system, please consider to resize the filesystem. The following example assumes system booted from internal SD card.

sudo growpart -u on /dev/mmcblk0 2
sudo btrfs filesystem resize max /

Bug Report


CategoryHowto

Howto/RaspberryPi (last edited 2024-04-24 07:23:36 by DamianWrobel)