The Orange Pi Zero3 board is not officially supported by The Fedora Project yet. However, it is possible to install Fedora Server 39 on it with mainline U-Boot and DTB. This guide will walk you through the process of installing Fedora Server 39 on the Orange Pi Zero3 board.
Prerequisites
- Download the pre-built U-Boot for Orange Pi Zero3 from here. Check this post if you want to bulid U-Boot from source.
wget -c https://github.com/deamen/u-boot-builder/releases/download/orangepi_zero3.v2023.11.7/u-boot_orangepi_zero3.bin
- Download the pre-built DTB for Orange Pi Zero3 from here.Check this post if you want to build DTB from source.
wget -c https://github.com/deamen/dtb-builder/releases/download/orangepi_zero3.v2023.11.7.2/dtb_orangepi_zero3.dtb -O sun50i-h616-orangepi-zero3.dtb
- Download the official Fedora Server 39 image ARM from here
wget -c https://download.fedoraproject.org/pub/fedora/linux/releases/39/Server/aarch64/images/Fedora-Server-39-1.5.aarch64.raw.xz
unxz Fedora-Server-39-1.5.aarch64.raw.xz
wget -c https://raw.githubusercontent.com/deamen/aarch64/master/prep-fedora-image.sh
Customizing the Fedora Server Image for Orange Pi Zero3
- Run the script to customize the Fedora Server image for Orange Pi Zero3
./prep-fedora-image.sh -i ./Fedora-Server-39-1.5.aarch64.raw -o ./Fedora-Server-39-1.5.aarch64-opizw3.raw -u u-boot_orangepi_zero3.bin -s 8 -d sun50i-h616-orangepi-zero3.dtb -f allwinner
- Flash the customized Fedora Server image to a microSD card
dd if=./Fedora-Server-39-1.5.aarch64-opizw3.raw of=/dev/sdX bs=1M status=progress