Draft: Add Fedora build instructions
As discussed on #mobility:fedoraproject.org and with a bunch of help from the community, this is a fedora-ization of the arch-based instructions.txt in this repo.
Note that certain packages are named differently in Fedora than arch: NetworkManager, ModemManager, linux-firmware includes everything from linux-firmware-qcom from arch, etc.
This script runs all the way to through except lines 97-103 - editing the init binary - which may not apply to Fedora but probably do. On arch this is not a binary file. Although we can get the two images from this script they then don't boot. Possibly due to initramfs/init not pointing to the correct partition, as we cannot edit it.
Having now gone through this once, a better strategy came up on #mobility:fedoraproject.org from @maggu2810. On the next pass, I believe this is the way to go.
For the beginning I would use:
- get a mainline-boot.img and archlinux.img generated by the instructions for arch linux
- use mainline-boot.img as it is
- populate fedora.img with /lib/modules and /lib/firmware from archlinux.img
- flash mainline-boot.img to boot and fedora.img to userdata as stated in the arch linux instruction
Update: they got it booting with these (very WIP) instructions. Hop by the #mobility:fedoraproject.org chat to get the newest updates: https://www.maggu2810.de/mobile-devices/op6-instructions-fedora.html