Difference between revisions of "PinePhone Software Releases"

Jump to navigation Jump to search
(make easier to read (?))
(→‎General instructions: Installing any distribution)
Line 70: Line 70:


Once you've flashed the OS to your SD card or eMMC storage, you may also need to expand the partition to fill all the available space.
Once you've flashed the OS to your SD card or eMMC storage, you may also need to expand the partition to fill all the available space.
   
 
=== NOT on the PinePhone ===
Parted's interactive mode and resize work well together. Do this before you put your SD card into the PinePhone for the first time for best results.
 
  sudo parted /dev/<your_sd_card_device>
(parted) resizepart 2 100%
(parted) quit
sudo resize /dev/<the_second_sd_card_PARTITION>
 
=== From the PinePhone ===
This is '''not recommended'''! Resizing a currently mounted partition can have weird results.
 
Locate growpart (<code>apt-cache search growpart</code> and install the package in the search results) and run:  
Locate growpart (<code>apt-cache search growpart</code> and install the package in the search results) and run:  
  growpart /dev/mmcblkX Y
  growpart /dev/mmcblkX Y
  resize2fs /dev/mmcblkXpY
  resize2fs /dev/mmcblkXpY
where X is the storage device and Y is the partition number (viewable from lsblk).
where X is the storage device and Y is the partition number (viewable from lsblk).
== Installing Any ARM64 Distribution ==
'''Warning:''' Distributions not on this page may not even boot after you follow this section. In the best case, they will be barely usable. This is more for fun, or if you would like to port a new distro to the PinePhone.
'''Note:''' This section uses megi's kernel releases, and not the official ones from PINE64. While it is possible to use the official (and in the future, mainline) kernel, megi provides binary releases, which makes it very easy.
If you would like to see specific commands for how to complete these steps, see https://github.com/nikhiljha/pp-fedora-sdsetup (an example for Fedora) or https://xnux.eu/howtos/install-arch-linux-arm.html (an example for Arch Linux).
# Create a boot (from 4MiB to about 252MiB) and root (from 252 MiB to the end of the card) filesystem on the SD card.
# Format the boot partition with vfat, and the root partition with f2fs.
# Extract the root filesystem from your distro's ARM image into the root filesystem on the sd card. Do not copy the partition, copy the files (in archive mode: like rsync -ar).
# Edit /etc/fstab to match your partitions.
# Grab megi's kernel from https://xff.cz/kernels/ (you probably want 5.6).
# Follow the README instructions, which involves copying the kernel modules into the sd card rootfs and writing u-boot and the bootloader.


== Backlight ==
== Backlight ==