vimwiki/tech/pinephone.wiki

59 lines
1.3 KiB
Plaintext

= Pinephone =
The pinephone is a cheap generic linux phone.
== u-boot ==
See [[u-boot]]
== Gentoo ==
=== Cross compiler ===
First, we will be compiling on a host gentoo system. To do this, first install
crossdev and the needed toolchain (See [[cross_toolchain]]).
If your host system is not gentoo, be sure to install a cross compiler for
aarch64.
*The pinephone triple is aarch64-unknown-linux-gnu*
{{{
emerge -av git ninja crossdev
crossdev --target arm-none-eabi
}}}
=== GPU Support ===
The pinephone pro uses a Mali T860 quadcore CPU, and therefore is run using the
lima drivers. In the phones make.conf, be sure to add
{{{
#/etc/portage/make.conf (chroot in phone)
VIDEO_CARDS="lima"
}}}
In your global use, be sure to add
{{{
#/etc/portage/make.conf (chroot in phone)
USE="gles gles2-only"
}}}
This ensures that we will only compile programs using OpenGL ES, or OpenGL for
embedded systems.
== Troubleshooting ==
=== Phone not booting due to fully drained battery ===
Battery voltage will be ~2.4V when dead in my experience. To get the phone to
boot
1) Remove SDcard
2) Remove battery, serial, and usb cables
3) Reinstert the battery
4) Hold down the RESET button
5) While holding the button down, connect the USB port to a computer
6) let go of the button
7) in `lsusb` you should see `2207:330c Rockship electrions`