Skip to content
PinePhone Fedora SD Card Setup Script
Branch: master
Clone or download

Latest commit

Latest commit 044c3ca Mar 15, 2020


Type Name Latest commit message Commit time
Failed to load latest commit information.
files tweak gschemas Mar 15, 2020
phone-scripts make directory first Mar 15, 2020
.env make output the sd card image Mar 3, 2020 fix image size Mar 3, 2020 chmod Feb 19, 2020 fix reference Mar 3, 2020 fix reference Mar 3, 2020 make directory first Mar 15, 2020 fixes Mar 15, 2020 Also readme Feb 19, 2020 add image creation to script Mar 3, 2020 chmod Feb 19, 2020 chmod Feb 19, 2020 chmod Feb 19, 2020

🚨🚨🚨 WARNING! 🚨🚨🚨

This is a barely tested collection of scripts written by someone who has never written a bash script for other people to use! It involves the dd command and sudo. This is VERY DANGEROUS - please do not run it unless you have read and fully understood what it will do. Better yet, read the scripts to learn how to do things yourself. In any case, I'm not responsible for anything that you do with this code.


A collection of scripts that correctly sets up Fedora to run off your PinePhone SD card.


  • wget
  • xz
  • f2fs-tools (for mkfs.f2fs)
  • rsync
  • uboot-tools (for mkimage)
  • qemu-user-static (for qemu-aarch64-static)


  1. Use bash. fish and other weird shells are unsupported.
  2. Edit .env with your own variables.
  3. Ensure that all of your SD card partitions are unmounted, but visible in lsblk.
  4. Run bash then sudo bash, verify the information presented whenever it asks you to confirm.


  • Run all scripts other than as root, and from this ( directory! Do not directly run anything in the phone-scripts folder!
  • If a script fails midway through, some things may still be mounted. will attempt to unmount everything. Once again, run it as root!
You can’t perform that action at this time.