Fedora 27 on Pine64
#1
Official Fedora support is nearing the light of day from the good folks on the Fedora ARM team. Note to admins here, it may be time to add a Fedora Sub Forum on this site. :-)

If you are interested in running a pre-release version of Fedora 27 on your Pine64, here's what you need to do at this point in its development. Note, Fedora's philosophy eschews proprietary software as much as possible, so if upstream support isn't yet available, it won't be in Fedora. There's no graphical support yet, so you'll only be able to watch the OS boot on the serial console. On first boot, you can create a user, set the timezone, etc. Then you can log in. From there, once ethernet is established, you can SSH to the board.

Here are the steps as I best understand them. I'll update as needed:

*) Acquire a UART cable for using the serial console. Reference this resource:
http://linux-sunxi.org/Pine64#Serial_port_.2F_UART

*) Obtain one of the daily Fedora builds from Koji. I'd recommend one of either the Minimal or Server builds:
Minimal: https://koji.fedoraproject.org/koji/pack...geID=24072
Server: https://koji.fedoraproject.org/koji/pack...geID=24074
Make sure there's a green check mark by the item you intend to download, as that indicates that it was successfully built that day. Remember: This is pre-release software. Eventually you'll end up with a file named similar to this (the date will be different):
Fedora-Minimal-27-20171026.n.0.aarch64.raw.xz

*) Write the image to your microSD card. Determine the device name to which you'll be writing. /dev/sdb in this example.
Code:
sudo xzcat Fedora-Minimal-27-20171026.n.0.aarch64.raw.xz | dd of=/dev/sdb bs=4M status=progress conv=fsync

*) The Fedora ARM Installer does not yet support Pine64 as a target, so the SPL/U-boot pieces currently need to be written separately to the microSD card. To get the proper images, you can install uboot-images-armv8 from Rawhide. A recent version of this is required. Otherwise there's some ugly manual steps you'll have to do. Just get the recent version, and I won't document the ugly steps. :-) If you do that, the path names you'll need to use are listed in this snippet. 
Code:
sudo dd if=/usr/share/uboot/pine64_plus/sunxi-spl.bin of=/dev/sdb bs=8k seek=1
sudo dd if=/usr/share/uboot/pine64_plus/u-boot.itb of=/dev/sdb bs=8k seek=5
sync
If you don't want to install from Rawhide, pull the uboot-images-armv8 image from here:
https://mirrors.kernel.org/fedora-second...ackages/u/
You can either install from the RPM, or even extract the RPM using CPIO:
https://blog.packagecloud.io/eng/2015/10...-packages/
Either way, adapt the code to write these two files (sunxi-spl.bin & u-boot.itb) to the microSD card.

*) Insert the microSD card into the Pine64 board. Attach the UART cable to the appropriate pins on the Pine64. Plug the USB end of the cable into your 'other' machine. Then you'll need to run a terminal from your other computer. I use:
Code:
screen -L /dev/ttyUSB0 115200

*) Power on the Pine64, and watch the fun. The initial-setup-tui program will run allowing you to set the timezone, create a user, etc.

*) Currently there is a bug that (to my knowledge) has not yet been fixed that prevents you from getting the ethernet port to work. Here is the current workaround. Execute on the Pine once you are logged in. (Or make the change on the microSD card before you boot.) You need to soft link the DTB directory that matches the kernel you will boot.
Code:
sudo ln -s /boot/dtb-4.13.x-xxx.fc27.aarch64 /boot/dtb
Then reboot, and ethernet should work.

Have fun!

Code:
# uname -a
Linux pine 4.13.8-300.fc27.aarch64 #1 SMP Wed Oct 18 15:24:54 UTC 2017 aarch64 aarch64 aarch64 GNU/Linux


Messages In This Thread
Fedora 27 on Pine64 - by gregjo - 10-26-2017, 05:50 PM
RE: Fedora 27 on Pine64 - by tllim - 10-30-2017, 01:03 AM
RE: Fedora 27 on Pine64 - by ZeRaler - 11-06-2017, 03:57 PM
RE: Fedora 27 on Pine64 - by cmuellner - 01-28-2018, 08:24 AM
RE: Fedora 27 on Pine64 - by xalius - 01-28-2018, 02:56 PM
RE: Fedora 27 on Pine64 - by cmuellner - 01-29-2018, 03:35 AM
RE: Fedora 27 on Pine64 - by Luke - 01-29-2018, 05:06 AM
RE: Fedora 27 on Pine64 - by heatfanjohn - 08-06-2018, 11:07 AM
RE: Fedora 27 on Pine64 - by tllim - 08-08-2018, 12:03 AM
RE: Fedora 27 on Pine64 - by heatfanjohn - 08-09-2018, 11:11 AM
RE: Fedora 27 on Pine64 - by heatfanjohn - 08-09-2018, 12:16 PM
RE: Fedora 27 on Pine64 - by CaptainZalo - 08-10-2018, 12:44 PM
RE: Fedora 27 on Pine64 - by decko - 09-23-2018, 03:01 AM
RE: Fedora 27 on Pine64 - by heatfanjohn - 09-23-2018, 10:02 AM
RE: Fedora 27 on Pine64 - by decko - 09-25-2018, 07:42 AM
RE: Fedora 27 on Pine64 - by heatfanjohn - 09-25-2018, 01:50 PM
RE: Fedora 27 on Pine64 - by heatfanjohn - 10-26-2018, 08:38 AM
RE: Fedora 27 on Pine64 - by S265 - 01-02-2019, 09:43 PM
RE: Fedora 27 on Pine64 - by heatfanjohn - 01-02-2019, 10:42 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Fedora 32/CentOS 8 Pine A64+ Images wideawake 2 5,360 10-02-2020, 11:38 AM
Last Post: mathiraj
  Programming languages support under PINE64 baryluk 6 12,074 09-23-2020, 11:46 PM
Last Post: Phillip Bell
  Manjaro arm on pine64+ roel 2 5,789 10-19-2019, 05:13 AM
Last Post: roel
  +PINEBOOK Fedora 30 on Pinebook sdgathman 0 3,320 08-14-2019, 11:41 AM
Last Post: sdgathman
  Volumio for PINE64 Released mikelangeloz 11 24,141 03-22-2019, 09:25 AM
Last Post: llungster
  I2S Audio patches for Pine64+ uploaded to GitHub ramstadt 1 3,962 01-19-2019, 11:31 AM
Last Post: ramstadt
  Pine64: Minimal SDL config Max11 3 5,862 01-04-2019, 03:47 PM
Last Post: Max11
  Official build procedure of ayufan pine64 r.tanaka 0 3,067 08-21-2018, 10:54 PM
Last Post: r.tanaka
  DKMS on kernel 3.10.107-pine64 obrienmd 5 8,426 06-21-2018, 05:45 PM
Last Post: evilbunny
  Gentoo for pine64 - longsleep kernel incoherent 0 3,592 12-09-2017, 08:14 AM
Last Post: incoherent

Forum Jump:


Users browsing this thread: 1 Guest(s)