Jannik2099 / gentoo-pinebookpro

A collection of scripts to prepare a Gentoo tarball for the pinebook pro
31 stars 8 forks source link
gentoo pinebook pinebook-pro

gentoo-pinebookpro

A collection of scripts to prepare a Gentoo tarball for the pinebook pro

Disclaimer:

I do not recommend Gentoo for people new to Linux.

How to use

READ THE GENTOO HANDBOOK!!! https://wiki.gentoo.org/wiki/Handbook:AMD64

./prepare.sh -h to display usage, this is safe to run in any environment and will not read or write anything.

tarball preparation instructions

Do this on your pbp or another aarch 64 environment, qemu works aswell.

From there on, do the usual tarball installation following the Gentoo Handbook.

Linux Kernel

To install / update a kernel:

It's heavily recommended to run the latest mesa, to do so add media-libs/mesa ~arm64 to your /etc/portage/package.accept_keywords . Similarly, running the latest versions of your DE and the underlying Qt / GTK libs is often a good idea.

Changes to the Gentoo repository

I have changed or added some ebuilds via my overlay pinebookpro-overlay . It is installed by the prepare script via eselect-repository.

Useful stuff for people new to Gentoo

Ebuilds (the scripts that configure, compile and install a package) are sometimes not released as stable or not released at all for all architectures. This is called keywording: for example, KEYWORDS="amd64 ~arm64" indicates the ebuild is marked stable for amd64, testing for arm64 and masked for all other architectures. You can and will override this a lot by editing /etc/portage/package.accept_keywords . Adding category/package keyword to this file will emerge the latest version that uses the respective keyword. For example, firefox has all LTS releases marked stable and all others marked testing. www-client/firefox ~arm64 would always select the latest release. Dependencies that require keyword changes can be automatically unmasked and the changes merged with dispatch-conf

Known issues

General:

Issue:  The keyboard / touchpad is unresponsive sometimes
Fix:    Make sure you have updated the keyboard / touchpad firmware, see https://github.com/ayufan-rock64/pinebook-pro-keyboard-updater

Issue:  The PBP charges a lot slower after a while, the charging LED starts blinking
Fix This is a weird safety feature of the battery controller. It usually goes away after charging to full or restarting

Issue:  Wifi bad
Fix:    The wifi powersave seems to be broken, disable it with `iwconfig wlan0 power off` - what an unfortunate naming