bengtfredh / pinebook-pro-fedora-installer

Unofficial Fedora installer for Pinebook Pro
GNU General Public License v3.0
28 stars 8 forks source link

This repo is archived because you can use official installer.

I personally flash https://tow-boot.org/ to spi, and follow instructions here https://tow-boot.org/distributions/fedora.html You will need to install WIFI firmware. An interim WiFi firmware you can use https://fedora.roving-it.com/brcm-pinebookpro-0.0-1.noarch.rpm

pinebook-pro-fedora-installer

General info

Scripts for installing Fedora aarch64 directly to SD/eMMC. The script will add copr repository for some extra packages needed on Pinebook Pro.
copr: https://copr.fedorainfracloud.org/coprs/aptupdate/pinebook-pro/
source: https://github.com/bengtfredh/pinebook-pro-copr.git

Script will install kernel-pbp from copr which is a vanilla kernel patched for Pinebook Pro with Manjaro config merged on Fedora config. You can chose to switch to linux-manjaro from same copr which is a rpm packaged Manjaro aarch64 kernel. Biggest difference is, kernel-pbp have SELINUX and btrfs build in kernel, linux-manjaro have no SELINUX and have btrfs as module.

This script is "interactive". Meaning that it asks you questions when run to customize your install. Like username, password etc.

Runtime is approx 40-50 minutes for Fedora Workstation depending on your bandwidth and SD card speed. Fedora update is what takes longest time.

Dependencies:

Usage:

To use this script, please make sure that the following is correct:

Then use this to get it:

git clone https://github.com/bengtfredh/pinebook-pro-fedora-installer
cd pinebook-pro-fedora-installer
chmod +x fedora-installer
sudo bash ./fedora-installer [<url>]

Some Fedora mirrors are veeeery slow - give url to known good mirror as parameter i.e.

bash ./fedora-installer https://fedora.uib.no/fedora/linux/releases/34/Workstation/aarch64/images/Fedora-Workstation-34-1.2.aarch64.raw.xz

Known Issues:

Things to do:

Supported Devices:

Supported Editions:

There is no reason why this script should not work with other editions of Fedora. Just give url as maramater when script run. Script is tested with Fedora Workstation and Minimal.

To create image:

To create image you later can dd to mmc/emmc/nvme
Prepare an image by running following:

fallocate -l 8GiB myimage.img
losetup /dev/loopX myimage.img

Run the script pointing to /dev/loopX.

Prebuild images

I think the installer is better choice, because you are in control of what you install. But I have created some prebuild images for you. There is images with root on ext4 and on btrfs, see filename:
https://s3.fredhs.net/minio/pinebook-pro-image/

Other notes:

This script should be distro-agnostic, which means you can install pinebook-pro-fedora-installer from any distro, as long as the dependencies are met.

Credits

Inspiration from:
https://gitlab.manjaro.org/manjaro-arm/applications/manjaro-arm-installer
https://github.com/nikhiljha/pp-fedora-sdsetup
https://github.com/daniel-thompson/pinebook-pro-debian-installer.git