https://wiki.pine64.org/api.php?action=feedcontributions&user=Anjanmomi&feedformat=atomPINE64 - User contributions [en]2024-03-29T07:31:50ZUser contributionsMediaWiki 1.37.1https://wiki.pine64.org/index.php?title=PinePhone&diff=5497PinePhone2020-04-23T02:56:25Z<p>Anjanmomi: /* Modem and Carrier Support */</p>
<hr />
<div>The PinePhone is a smartphone created by Pine64, capable of running mainline Linux and supported by many partner projects. The "BraveHeart" edition was the first publicly-available version of the phone, though it came without a fully functional OS (factory test image) and was geared specifically towards tinkerers and hackers. People looking for a stable consumer-grade phone should wait for the final release, which is expected to occur in March 2020 and will be available for at least five years.<br />
<br />
<br />
<br />
<br />
== "BraveHeart" PinePhone Unboxing and First Time Preparation Guide ==<br />
<br />
[[File:PinePhone-2.jpg|400px|thumb|right|PinePhone is capable of running a multitude of different Linux mobile OSes]]<br />
<br />
From the factory the battery has a sticker on it that isolates the battery from the phone. The battery '''will not''' charge until this is removed.<br />
<br />
After unboxing remove the back panel. Then remove the battery and peel off the clear plastic sticker below it that isolates the charging contact. Then replace the battery. See [[#Battery]] for more info.<br />
<br />
If you power on the phone the factory test image will boot. RTL8723CS (WiFi modem) will fail unless there is a WiFi network in range for it to see and the battery is charged. EG25 will fail until battery is charged.<br />
<br />
By default there is no true OS image installed on Braveheart phones. An SD card with a bootable image needs to be inserted into the phone. See section 12 below for a list of OS options. Note the SD and sim sockets are stacked on each other The SD slot is the "shallower" socket and the SIM card goes in the "deeper" socket.<br />
<br />
'''Some videos that illustrate the process:'''<br />
<br />
[https://www.youtube.com/watch?v=ACcxegtDVBI Excellent first time guide video from Rob Braxman Tech]<br />
<br />
[https://www.youtube.com/watch?v=Z0FMW72_OYcI Flash an OS to microSD card video from Rob Braxman Tech]<br />
<br />
== Specifications ==<br />
<br />
'''Dimensions:''' 160.5 x 76.6 x 9.2mm <br><br />
'''Weight:''' Between 180-200 grams <br><br />
'''SIM Card:''' Micro-SIM <br><br />
'''Display:'''<br />
: '''Size:''' 5.95 inches (151mm) diagonal<br />
: '''Type:''' HD IPS capacitive touchscreen, 16M colors<br />
: '''Resolution:''' 1440x720, 18:9 ratio <br><br />
'''System on Chip:''' [https://linux-sunxi.org/A64 Allwinner A64] <br><br />
'''RAM:''' 2GB LPDDR3 SDRAM <br><br />
'''Internal Storage:''' 16GB eMMC, extendable up to 2TB via microSD, supports SDHC and SDXC <br><br />
'''Back Camera:''' Single 5MP, 1/4", LED Flash <br><br />
'''Selfie Camera:''' Single 2MP, f/2.8, 1/5" <br><br />
'''Sound:''' Loudspeaker, 3.5mm jack & mic (jack doubles as hardware UART if killswitch 6 is deactivated) <br><br />
'''Communication: [http://files.pine64.org/doc/datasheet/project_anakin/LTE_module/Quectel_EG25-G_LTE_Specification_V1.1_Preliminary_20180522%20(002).pdf EG25-G]'''<br />
: '''LTE:''' B1, B2, B3, B4, B5, B7, B8, B12, B13, B18, B19, B20, B25, B26, B28, B38, B39, B40, B41<br />
: '''WCDMA:''' B1, B2, B4, B5, B6, B8, B19<br />
: '''GSM:''' 850, 900, 1800, 1900 (MHz)<br />
: '''WLAN:''' Wi-Fi 802.11 b/g/n, single-band, hotspot<br />
: '''Bluetooth:''' 4.0, A2DP<br />
: '''GNSS:''' GPS/GLONASS/BeiDou/Galileo/QZSS, with A-GPS<br />
'''Sensors:''' Accelerometer, gyro, proximity, ambient light, compass <br><br />
'''[[#Killswitch configuration|Killswitches]]:''' Modem, Wifi & Bluetooth, Microphone, Cameras <br><br />
'''[[#Battery|Battery]]:''' [https://wiki.pine64.org/images/0/04/PinePhone_Battery_model_QZ01-396172-2750.pdf Lithium ion] Rated Capacity 2800mAh (10.64Wh), Typical Capacity 3000mAh (11.40Wh) (nominally replaceable with any Samsung J7 form-factor battery) <br><br />
'''I/O:''' USB Type-C (SlimPort), USB Host, DisplayPort Alternate Mode output, 15W 5V 3A Quick Charge, follows USB PD specification<br />
<br />
== PinePhone Board Information, Schematics and Certifications ==<br />
* PinePhone Main Board Schematic:<br />
** [http://files.pine64.org/doc/PinePhone/PinePhone%20Schematic%20v1.1%2020191031.pdf "Braveheart" PinePhone mainboard Schematic ver 1.1]<br />
** [http://files.pine64.org/doc/PinePhone/PinePhone%20mainboard%20top%20placement%20v1.1%2020191031.pdf "Braveheart" PinePhone mainboard component top placement drawing ver 1.1]<br />
** [http://files.pine64.org/doc/PinePhone/PinePhone%20mainboard%20bottom%20placement%20v1.1%2020191031.pdf "Braveheart" PinePhone mainboard component bottom placement drawing ver 1.1]<br />
* PinePhone USB-C Small Board Schematic:<br />
** [http://files.pine64.org/doc/PinePhone/PinePhone%20USB-C%20small%20board%20schematic%20v1.0%2020190730.pdf "Braveheart" PinePhone USB-C small board Schematic ver 1.0]<br />
** [http://files.pine64.org/doc/PinePhone/PinePhone%20USB-C%20small%20board%20top%20placement%20v1.0%2020190730.pdf "Braveheart" PinePhone USB-C small board component top placement drawing ver 1.0]<br />
** [http://files.pine64.org/doc/PinePhone/PinePhone%20USB-C%20small%20board%20bottom%20placement%20v1.0%2020190730.pdf "Braveheart" PinePhone USB-C small board component bottom placement drawing ver 1.0]<br />
* PINE A64 Certifications:<br />
** Not yet available<br />
<br />
== Datasheets for Components and Peripherals ==<br />
* Allwinner A64 SoC information:<br />
** [http://files.pine64.org/doc/datasheet/pine64/A64%20brief%20v1.0%2020150323.pdf Allwinner A64 SoC Brief Introduction]<br />
** [http://files.pine64.org/doc/datasheet/pine64/A64_Datasheet_V1.1.pdf Allwinner A64 SoC Data Sheet V1.1 (Official Released Version)]<br />
** [http://files.pine64.org/doc/datasheet/pine64/Allwinner_A64_User_Manual_V1.0.pdf Allwinner A64 SoC User Manual V1.0 (Official Release Version)]<br />
* X-Powers AXP803 PMU (Power Management Unit) information:<br />
** [http://files.pine64.org/doc/datasheet/pine64/AXP803_Datasheet_V1.0.pdf AXP803 PMIC Datasheet]<br />
* LPDDR3 (178 Balls) SDRAM:<br />
** [http://files.pine64.org/doc/datasheet/pinephone/ATL3A1632H12A_mobile_lpddr3_11x11.5_v1.0_1600.pdf Artmem LPDDR3 Datasheet]<br />
* eMMC information:<br />
** [http://files.pine64.org/doc/datasheet/pinephone/Kimtigo_fbga153_16_32_64_eMMC_datasheet_v1.3.pdf Kimtigo eMMC Datasheet]<br />
* CMOS Camera module information:<br />
** [http://files.pine64.org/doc/datasheet/pinephone/QZ01-rear-2019-0717(HW)%20Model.pdf PinePhone 5M Pixel Real CMOS Image Sensor Module]<br />
** [http://files.pine64.org/doc/datasheet/pinephone/OV5640_datasheet.pdf OV5640 5MP CMOS Image Sensor SoC for Rear Module Datasheet]<br />
** [http://files.pine64.org/doc/datasheet/pinephone/QZ01-front-2019-0717(HW)%20Model.pdf PinePhone 2M Pixel Front CMOS Image Sensor Module]<br />
** [http://files.pine64.org/doc/datasheet/pinephone/GC2145%20CSP%20DataSheet%20release%20V1.0_20131201.pdf GC2145 2MP CMOS Image Sensor SoC for Front Module Datasheet]<br />
* LCD Touch Screen Panel information:<br />
** [http://files.pine64.org/doc/datasheet/pinephone/PinePhone%20LCD-QZ01.pdf 5.99" 1440x720 LCD IPS Panel Specification]<br />
** [http://files.pine64.org/doc/datasheet/pinephone/ST7703_DS_v01_20160128.pdf ST7703 LCD Controller Datasheet]<br />
<br />
** [http://files.pine64.org/doc/datasheet/pinephone/GT917S-Datasheet.pdf GOODiX GT917S Capacitive Touch Controller Datasheet]<br />
* Lithium Battery information:<br />
** [http://files.pine64.org/doc/datasheet/pinephone/PinePhone%20QZ01%20Battery%20Specification.pdf PinePhone Lithium Battery Specification]<br />
** [http://files.pine64.org/doc/datasheet/pinephone/PinePhone%20QZ01%20Battery%20ZCV%20Curve%20Chart.xlsx PinePhone Lithium Battery ZCV Curve Chart]<br />
* Wifi/BT module information:<br />
<br />
* LTE module information:<br />
** [http://files.pine64.org/doc/datasheet/pinephone/Quectel_EG25-G_LTE_Specification_V1.0.pdf Quectel EG25-G LTE Module Specification]<br />
** [[Media:Quectel EC25EC21 AT Commands Manual V1.2.pdf|EC25&EC21 AT Commands Manual]]<br />
* Sensors:<br />
** [https://www.st.com/en/mems-and-sensors/lis3mdl.html ST LIS3MDL 3-axis Magnetomater Datasheet]<br />
** [https://www.invensense.com/products/motion-tracking/6-axis/mpu-6050/ InvenSense MPU-6050 Six-Axis (Gyro + Accelerometer) MEMS Datasheet]<br />
** [http://www.sensortek.com.tw/en/product/Proximity_Sensor_with_ALS.html SensorTek STK3335 Ambient Light Sensor and Proximity Sensor]<br />
* Digital Video to USB-C Bridge:<br />
** [https://www.analogix.com/en/system/files/AA-002281-PB-6-ANX7688_Product_Brief.pdf ANX7688 Product Brief]<br />
* Case information:<br />
** [http://files.pine64.org/doc/datasheet/pinephone/PinePhone%20Exploded%20Diagram%20ver%201.0.pdf PinePhone Case Exploded Diagram]<br />
** [http://files.pine64.org/doc/datasheet/pinephone/PinePhone%20Back%20Cover.stp PinePhone Back Battery Cover 3D file]<br />
<br />
== Developer works ==<br />
<br />
=== Megous ===<br />
[https://xnux.eu/howtos/pine64-pinephone-getting-started.html Getting start with PinePhone Hardware]<br />
<br />
[https://xnux.eu/devices/pine64-pinephone.html#toc-pine64-pinephone State of development progress]<br />
<br />
[https://xnux.eu/news.html PinePhone Technical News and Update, also applies to other Allwinner devices including PINE A64 SBC]<br />
<br />
== Hardware Revisions ==<br />
<br />
# [[Project Anakin]]<br />
# [[Project Don't be evil|"Project Don't Be Evil" devkit]]<br />
# [[PinePhone v1.0 - Dev|PinePhone v1.0 - Developer batch]]<br />
# [[PinePhone v1.1 - Braveheart]]<br />
<br />
== Hardware Addons ==<br />
<br />
===[[PinePhone Hardware Accessory Compatibility]] list===<br />
List of devices working with the PinePhone (depending on OS support)<br />
<br />
=== USB-C Connector ===<br />
The USB-C can be used to power the device, and offers USB2 host and OTG possibilities, and also can make use of the USB-C capability to integrate HDMI signals. Some USB-C hubs are available that offer power throughput, USB connection, HDMI port and Ethernet connection. The driver that would make this connection available is not supported at this time.<br />
<br />
===Pogo Pins===<br />
<br />
The PinePhone has 6 "pogo pins" on the back allowing for custom hardware extensions such as wireless charging or an IR blaster. The pogo pins provide access to an interrupt line, power input to charge the battery, 3.3v power source (disputed: see [[PinePhone_v1.1_-_Braveheart#Pogo_Pins_supply_5v0.2C_not_3v3]]), and an I2C interface.<br />
<br />
'''A step/stl/stp (3D model) file for the back cover is [http://files.pine64.org/doc/PinePhone/PinePhone%20Back%20Cover%20ver%200.5.stp freely available] for creating custom cases that interface with the pogo pins.'''<br />
<br />
=== Serial console ===<br />
[[File:Uart pinephone connection.gif|250px|thumb|left|UART serial connector for PineBook and PinePhone]]<br />
The PinePhone has a serial port in the headphone connector, it's activated by the 6th contact on the dipswitch. If the switch is on then the headphone connector is in audio mode, if it's off then it's in UART mode. This uart serial connection can also be used for communication with other devices from the PinePhone.<br />
<br />
The uart is 115200n8<br />
<br />
The pinout for the serial connector on the tablet side is:<br />
<br />
* Tip: RX<br />
* Ring: TX<br />
* Sleeve: GND<br />
<br />
The serial connection is 3.3V<br />
<br />
You can also buy the debug cable from [https://store.pine64.org PINE64 Store]<br />
The store cable uses a 4 ring plug, as seen in the [http://files.pine64.org/doc/pinebook/guide/Pinebook_Earphone_Serial_Console_Developer_Guide.pdf PDF], but a 3 ring plug works just as well. That cable uses a CH340 chipset based serial to USB converter, but any 3.3v serial connection can be used.<br />
<br />
<br />
<br />
<br />
<br />
<br />
== Killswitch configuration ==<br />
<br />
The PinePhone features six switches that can be used to configure its hardware. They are numbered 1-6, with switch 1 located nearest to the modem. Their on position is toward the top of the phone.<br />
<br />
[[File:PinePhone switches.jpeg|600px|thumb|left|Photo of Brave Heart switches from OSAKANA TARO on Twitter]]<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
# Modem: On enables 2G/3G/4G communication and GNSS hardware, off disables.<br />
# WiFi/BT: On enables Wi-Fi and Bluetooth communication hardware, off disables.<br />
# Microphone: On enables audio input from on-board microphones (not 3.5mm jack), off disables.<br />
# Rear camera: On enables the rear camera, off disables.<br />
# Front camera: On enables the front camera, off disables.<br />
# Headphone: On enables audio input and output via the 3.5mm audio jack, off switches the jack to hardware UART mode.<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
== Battery ==<br />
<br />
The [https://wiki.pine64.org/images/0/04/PinePhone_Battery_model_QZ01-396172-2750.pdf supplied battery] is [https://forum.pine64.org/showthread.php?tid=8120&pid=53307#pid53307 meant to be] compatible with Samsung part number EB-BJ700BBC / BBE / CBE from the 2015 J7 phone. There is [https://forum.pine64.org/showthread.php?tid=8563&pid=55053#pid55053 a report] that the EB-BJ700CBE isn't quite the same size, causing the back not to fit properly.<br />
<br />
The battery terminals, in order from nearest the edge to nearest the middle, are:<br />
<br />
# +ve<br />
# thermistor<br />
# -ve<br />
# not connected<br />
<br />
The battery includes a protection circuit that isolates it in a number of fault conditions, including if it is discharged too far. The fully discharged battery [https://forum.pine64.org/showthread.php?tid=8563&pid=55377#pid55377 can be recharged] by connecting the phone to a charger. Once it has charged sufficiently you will be able to boot the phone.<br />
<br />
If your battery is hard to remove from the phone, try loosening the screws around it. Possibly cutting up a piece of plastic and sliding it under the battery as a pull tab can work too.<br />
<br />
'''Your Brave Heart phone ships with a plastic sticker between the battery and the phone. You need to open the back cover (gently), then remove the battery and finally remove the sticker. This is to protect the device from turning on during shipping.<br />
<br />
[[File:PinePhone battery1.png|600px|thumb|centre|Photo of Brave Heart case from OSAKANA TARO on Twitter]]<br />
[[File:PinePhone battery3.jpeg|600px|thumb|centre|Photo of Brave Heart battery sticker from OSAKANA TARO on Twitter]]<br />
<br />
There has been [https://forum.pine64.org/showthread.php?tid=8960 a report on the forum] that this sticker can bend the pins that make connection between the battery and the phone: please check your setup carefully after removing the sticker.<br />
<br />
'''Note''': the EG25 modem and RTL8723CS wifi/bluetooth do not work without battery power, even if you are supplying enough power to the Pinephone with USB-C.<br />
<br />
== Modem and Carrier Support ==<br />
There is a document about using the modem by user ''megi'' [https://megous.com/dl/tmp/modem.txt here.] This is from circa 18 Jan 2020. <br />
<br />
Note at this date there is no TL;DR version - the script at the end to disable the modem before power off is pretty essential to avoid corrupting your modem's flash memory.<br />
<br />
<br />
To check if the PinePhone is supported on your carrier: <br />
<br />
Search for your carrier on [https://www.frequencycheck.com/ frequencycheck.com] and compare the carrier's LTE/GSM/WCDMA frequencies to the PinePhone's supported frequencies (listed under the [[#Specifications|specifications]] section).<br />
<br />
It is likely that there will be a few frequencies that your carrier uses which are not supported by the PinePhone. Not all of the carrier's frequencies need to be supported by the PinePhone for it to work - as long as ''most'' of them are supported, you will still get good coverage.<br />
<br />
<br />
=== Voice Mail ===<br />
<br />
Some phone operating systems may not have support for accessing your voicemail by holding down the 1 key. If you are in Canada and using rogers or a rogers associated carrier (ie. Chatr), you can access your voice mail by calling an external number. See:<br />
<br />
https://www.howardforums.com/showthread.php/913346-Rogers-GSM-Voicemail-Retrieval-Numbers<br />
<br />
When I called this number from my pinephone, I got static. When I used another phone (my land line), I was able to access my voice mailbox.<br />
<br />
In America, AT&T also has support for accessing your voicemail via an external phone number:<br />
<br />
https://www.att.com/support/article/wireless/KM1009101/<br />
<br />
== Factory Test Requirements ==<br />
<br />
Most of the self tests should just work, but a couple of them will fail unless certain requirements are met.<br />
<br />
=== RTL8723CS - WiFi ===<br />
<br />
* The self test needs a visible access point nearby so it can discover an SSID.<br />
* The self test may fail if the battery charge is too low. <br />
<br />
=== EG25 - Modem ===<br />
<br />
* A working micro-SIM that doesn't require a PIN to unlock<br />
* Enough battery charge<br />
<br />
== Operating Systems ==<br />
The PinePhone will automatically boot from microSD if a bootable card is inserted. Although it is technically possible to use any ARM distro (because the PinePhone uses the mainline kernel), there are a few that are designed specifically for <br />
<br />
The [[PinePhone Software Release#Software_Releases|'PinePhone Software Releases']] page has a complete list of currently supported phone-optimized Operating System images that work with the PinePhone as well as other related software information. As soon as other general Linux distributions ship with kernel V5.7, they will also be able to run unmodified on the device.<br />
<br />
The list includes OS images and descriptions of:<br />
<br />
[{{fullurl:PinePhone_Software_Release#postmarketOS}} http://files.pine64.org/sw/pine64_installer/json/postmarketos.png] [[PinePhone_Software_Release#postmarketOS|'''postmarketOS''']]<br />
<br />
[{{fullurl:PinePhone_Software_Release#Ubuntu_Touch_by_UBPorts}} http://files.pine64.org/sw/pine64_installer/json/ubports.png] [[PinePhone_Software_Release#Ubuntu_Touch_by_UBPorts|'''Ubuntu Touch by UBPorts''']]<br />
<br />
[[File:Ryodebianphosh.png]] [[PinePhone_Software_Release#Debian-PinePhone|'''Debian + Phosh''']]<br />
<br />
[{{fullurl:PinePhone_Software_Release#Maemo_Leste}} http://files.pine64.org/sw/pine64_installer/json/maemo_leste.png] [[PinePhone_Software_Release#Maemo_Leste|'''Maemo Leste''']]<br />
<br />
[{{fullurl:PinePhone_Software_Release#SailfishOS}} http://files.pine64.org/sw/pine64_installer/json/sailfishos.png] [[PinePhone_Software_Release#SailfishOS|'''SailfishOS''']]<br />
<br />
[{{fullurl:PinePhone_Software_Release#Fedora}} http://files.pine64.org/sw/pine64_installer/json/fedora.png] [[PinePhone_Software_Release#Fedora|'''Fedora''']]<br />
<br />
[[File:Pureos.png]] [[PinePhone_Software_Release#PureOS|'''PureOS''']]<br />
<br />
[{{fullurl:PinePhone_Software_Release#Manjaro_ARM}} http://files.pine64.org/sw/pine64_installer/json/manjaro.png] [[PinePhone_Software_Release#Manjaro_ARM|'''Manjaro ARM''']]<br />
<br />
[{{fullurl:PinePhone_Software_Release#NixOS}} http://files.pine64.org/sw/pine64_installer/json/nixos.png] [[PinePhone_Software_Release#NixOS|'''NixOS''']]<br />
<br />
[{{fullurl:PinePhone_Software_Release#LuneOS}} http://files.pine64.org/sw/pine64_installer/json/luneos.jpg] [[PinePhone_Software_Release#LuneOS|'''LuneOS''']]<br />
<br />
[{{fullurl:PinePhone_Software_Release#Nemo_Mobile}} http://files.pine64.org/sw/pine64_installer/json/nemo_mobile.png] [[PinePhone_Software_Release#Nemo_Mobile|'''Nemo Mobile''']]<br />
<br />
[{{fullurl:PinePhone_Software_Release#KDE_Neon}} http://files.pine64.org/sw/pine64_installer/json/plasma_mobile.png] [[PinePhone_Software_Release#KDE_Neon|'''KDE Neon''']]<br />
<br />
[{{fullurl:PinePhone_Software_Release#Arch_Linux_ARM}} http://files.pine64.org/sw/pine64_installer/json/archlinux.png] [[PinePhone_Software_Release#Arch_Linux_ARM|'''Arch Linux ARM''']]<br />
<br />
[[File:Auroraos.jpeg]] [[PinePhone_Software_Release#Aurora|'''Aurora''']]<br />
<br />
=== Flashing eMMC using Jumpdrive ===<br />
[[File:jumpdrive.jpg|400px|thumb|right|Jumpdrive running on the PinePhone]]<br />
The internal eMMC flash storage can be flashed using the Jumpdrive utility by Danct12 and Martijn from postmarketOS.<br />
This utility boots from micro SD and exposes the internal eMMC flash storage when the PinePhone is connected to a computer.<br />
The process of flashing and OS to the exposed and mounted eMMC is identical to that of any other storage medium - e.g. a SD card. You can use the 'DD' command or a utility such as Etcher or Gnome Disks, etc.<br />
<br />
<br />
Latest Jumpdrive can be found [https://github.com/dreemurrs-embedded/Jumpdrive/releases/ here]. <br />
<br />
'''If you've found an issue, or want to improve the tool'''<br />
* Issues: https://github.com/dreemurrs-embedded/Jumpdrive/issues<br />
* Pull Requests: https://github.com/dreemurrs-embedded/Jumpdrive/pulls<br />
<br />
<br />
'''Detailed Usage Instructions'''<br />
<br />
# Download the Jumpdrive image<br />
# Flash the Jumpdrive image to a micro SD card<br />
# Boot the PinePhone from the Jumpdrive micro SD card<br />
# Connect the PinePhone to your computer using USB-A -> USB-C cable<br />
# Flash the exposed (mounted) PinePhone drive with a chosen OS image<br />
# Once the flashing process is complete, disconnect the PinePhone from your PC, power it down and remove the Jumpdrive SD card<br />
# The process is now finished, and you can boot from eMMC<br />
<br />
Jumpdrive also acts as a rescue image in case if you messed up your installation. To do so, you can telnet to '''172.16.42.1''', mount rootfs and fix it!<br />
<br />
<br />
'''Resize file system'''<br />
<br />
If you flash a 4G img distro (ie. phosh+debian) to your eemc, your eemc will only have a 3.7G partition on it. To use the entire 14.7G on the eemc, run the following commands:<br />
<br />
# sudo cfdisk /dev/sdX<br />
# Change to [Resize] in the ncurses program, resize the 3.7G partition to 14.7G, and [Write]<br />
# sudo resize2fs /dev/sdXY<br />
<br />
Replace X with your drive's name. Replace Y with the paritition you resized in cfdisk.</div>Anjanmomihttps://wiki.pine64.org/index.php?title=PinePhone&diff=5496PinePhone2020-04-23T02:56:14Z<p>Anjanmomi: /* Voice Mail */</p>
<hr />
<div>The PinePhone is a smartphone created by Pine64, capable of running mainline Linux and supported by many partner projects. The "BraveHeart" edition was the first publicly-available version of the phone, though it came without a fully functional OS (factory test image) and was geared specifically towards tinkerers and hackers. People looking for a stable consumer-grade phone should wait for the final release, which is expected to occur in March 2020 and will be available for at least five years.<br />
<br />
<br />
<br />
<br />
== "BraveHeart" PinePhone Unboxing and First Time Preparation Guide ==<br />
<br />
[[File:PinePhone-2.jpg|400px|thumb|right|PinePhone is capable of running a multitude of different Linux mobile OSes]]<br />
<br />
From the factory the battery has a sticker on it that isolates the battery from the phone. The battery '''will not''' charge until this is removed.<br />
<br />
After unboxing remove the back panel. Then remove the battery and peel off the clear plastic sticker below it that isolates the charging contact. Then replace the battery. See [[#Battery]] for more info.<br />
<br />
If you power on the phone the factory test image will boot. RTL8723CS (WiFi modem) will fail unless there is a WiFi network in range for it to see and the battery is charged. EG25 will fail until battery is charged.<br />
<br />
By default there is no true OS image installed on Braveheart phones. An SD card with a bootable image needs to be inserted into the phone. See section 12 below for a list of OS options. Note the SD and sim sockets are stacked on each other The SD slot is the "shallower" socket and the SIM card goes in the "deeper" socket.<br />
<br />
'''Some videos that illustrate the process:'''<br />
<br />
[https://www.youtube.com/watch?v=ACcxegtDVBI Excellent first time guide video from Rob Braxman Tech]<br />
<br />
[https://www.youtube.com/watch?v=Z0FMW72_OYcI Flash an OS to microSD card video from Rob Braxman Tech]<br />
<br />
== Specifications ==<br />
<br />
'''Dimensions:''' 160.5 x 76.6 x 9.2mm <br><br />
'''Weight:''' Between 180-200 grams <br><br />
'''SIM Card:''' Micro-SIM <br><br />
'''Display:'''<br />
: '''Size:''' 5.95 inches (151mm) diagonal<br />
: '''Type:''' HD IPS capacitive touchscreen, 16M colors<br />
: '''Resolution:''' 1440x720, 18:9 ratio <br><br />
'''System on Chip:''' [https://linux-sunxi.org/A64 Allwinner A64] <br><br />
'''RAM:''' 2GB LPDDR3 SDRAM <br><br />
'''Internal Storage:''' 16GB eMMC, extendable up to 2TB via microSD, supports SDHC and SDXC <br><br />
'''Back Camera:''' Single 5MP, 1/4", LED Flash <br><br />
'''Selfie Camera:''' Single 2MP, f/2.8, 1/5" <br><br />
'''Sound:''' Loudspeaker, 3.5mm jack & mic (jack doubles as hardware UART if killswitch 6 is deactivated) <br><br />
'''Communication: [http://files.pine64.org/doc/datasheet/project_anakin/LTE_module/Quectel_EG25-G_LTE_Specification_V1.1_Preliminary_20180522%20(002).pdf EG25-G]'''<br />
: '''LTE:''' B1, B2, B3, B4, B5, B7, B8, B12, B13, B18, B19, B20, B25, B26, B28, B38, B39, B40, B41<br />
: '''WCDMA:''' B1, B2, B4, B5, B6, B8, B19<br />
: '''GSM:''' 850, 900, 1800, 1900 (MHz)<br />
: '''WLAN:''' Wi-Fi 802.11 b/g/n, single-band, hotspot<br />
: '''Bluetooth:''' 4.0, A2DP<br />
: '''GNSS:''' GPS/GLONASS/BeiDou/Galileo/QZSS, with A-GPS<br />
'''Sensors:''' Accelerometer, gyro, proximity, ambient light, compass <br><br />
'''[[#Killswitch configuration|Killswitches]]:''' Modem, Wifi & Bluetooth, Microphone, Cameras <br><br />
'''[[#Battery|Battery]]:''' [https://wiki.pine64.org/images/0/04/PinePhone_Battery_model_QZ01-396172-2750.pdf Lithium ion] Rated Capacity 2800mAh (10.64Wh), Typical Capacity 3000mAh (11.40Wh) (nominally replaceable with any Samsung J7 form-factor battery) <br><br />
'''I/O:''' USB Type-C (SlimPort), USB Host, DisplayPort Alternate Mode output, 15W 5V 3A Quick Charge, follows USB PD specification<br />
<br />
== PinePhone Board Information, Schematics and Certifications ==<br />
* PinePhone Main Board Schematic:<br />
** [http://files.pine64.org/doc/PinePhone/PinePhone%20Schematic%20v1.1%2020191031.pdf "Braveheart" PinePhone mainboard Schematic ver 1.1]<br />
** [http://files.pine64.org/doc/PinePhone/PinePhone%20mainboard%20top%20placement%20v1.1%2020191031.pdf "Braveheart" PinePhone mainboard component top placement drawing ver 1.1]<br />
** [http://files.pine64.org/doc/PinePhone/PinePhone%20mainboard%20bottom%20placement%20v1.1%2020191031.pdf "Braveheart" PinePhone mainboard component bottom placement drawing ver 1.1]<br />
* PinePhone USB-C Small Board Schematic:<br />
** [http://files.pine64.org/doc/PinePhone/PinePhone%20USB-C%20small%20board%20schematic%20v1.0%2020190730.pdf "Braveheart" PinePhone USB-C small board Schematic ver 1.0]<br />
** [http://files.pine64.org/doc/PinePhone/PinePhone%20USB-C%20small%20board%20top%20placement%20v1.0%2020190730.pdf "Braveheart" PinePhone USB-C small board component top placement drawing ver 1.0]<br />
** [http://files.pine64.org/doc/PinePhone/PinePhone%20USB-C%20small%20board%20bottom%20placement%20v1.0%2020190730.pdf "Braveheart" PinePhone USB-C small board component bottom placement drawing ver 1.0]<br />
* PINE A64 Certifications:<br />
** Not yet available<br />
<br />
== Datasheets for Components and Peripherals ==<br />
* Allwinner A64 SoC information:<br />
** [http://files.pine64.org/doc/datasheet/pine64/A64%20brief%20v1.0%2020150323.pdf Allwinner A64 SoC Brief Introduction]<br />
** [http://files.pine64.org/doc/datasheet/pine64/A64_Datasheet_V1.1.pdf Allwinner A64 SoC Data Sheet V1.1 (Official Released Version)]<br />
** [http://files.pine64.org/doc/datasheet/pine64/Allwinner_A64_User_Manual_V1.0.pdf Allwinner A64 SoC User Manual V1.0 (Official Release Version)]<br />
* X-Powers AXP803 PMU (Power Management Unit) information:<br />
** [http://files.pine64.org/doc/datasheet/pine64/AXP803_Datasheet_V1.0.pdf AXP803 PMIC Datasheet]<br />
* LPDDR3 (178 Balls) SDRAM:<br />
** [http://files.pine64.org/doc/datasheet/pinephone/ATL3A1632H12A_mobile_lpddr3_11x11.5_v1.0_1600.pdf Artmem LPDDR3 Datasheet]<br />
* eMMC information:<br />
** [http://files.pine64.org/doc/datasheet/pinephone/Kimtigo_fbga153_16_32_64_eMMC_datasheet_v1.3.pdf Kimtigo eMMC Datasheet]<br />
* CMOS Camera module information:<br />
** [http://files.pine64.org/doc/datasheet/pinephone/QZ01-rear-2019-0717(HW)%20Model.pdf PinePhone 5M Pixel Real CMOS Image Sensor Module]<br />
** [http://files.pine64.org/doc/datasheet/pinephone/OV5640_datasheet.pdf OV5640 5MP CMOS Image Sensor SoC for Rear Module Datasheet]<br />
** [http://files.pine64.org/doc/datasheet/pinephone/QZ01-front-2019-0717(HW)%20Model.pdf PinePhone 2M Pixel Front CMOS Image Sensor Module]<br />
** [http://files.pine64.org/doc/datasheet/pinephone/GC2145%20CSP%20DataSheet%20release%20V1.0_20131201.pdf GC2145 2MP CMOS Image Sensor SoC for Front Module Datasheet]<br />
* LCD Touch Screen Panel information:<br />
** [http://files.pine64.org/doc/datasheet/pinephone/PinePhone%20LCD-QZ01.pdf 5.99" 1440x720 LCD IPS Panel Specification]<br />
** [http://files.pine64.org/doc/datasheet/pinephone/ST7703_DS_v01_20160128.pdf ST7703 LCD Controller Datasheet]<br />
<br />
** [http://files.pine64.org/doc/datasheet/pinephone/GT917S-Datasheet.pdf GOODiX GT917S Capacitive Touch Controller Datasheet]<br />
* Lithium Battery information:<br />
** [http://files.pine64.org/doc/datasheet/pinephone/PinePhone%20QZ01%20Battery%20Specification.pdf PinePhone Lithium Battery Specification]<br />
** [http://files.pine64.org/doc/datasheet/pinephone/PinePhone%20QZ01%20Battery%20ZCV%20Curve%20Chart.xlsx PinePhone Lithium Battery ZCV Curve Chart]<br />
* Wifi/BT module information:<br />
<br />
* LTE module information:<br />
** [http://files.pine64.org/doc/datasheet/pinephone/Quectel_EG25-G_LTE_Specification_V1.0.pdf Quectel EG25-G LTE Module Specification]<br />
** [[Media:Quectel EC25EC21 AT Commands Manual V1.2.pdf|EC25&EC21 AT Commands Manual]]<br />
* Sensors:<br />
** [https://www.st.com/en/mems-and-sensors/lis3mdl.html ST LIS3MDL 3-axis Magnetomater Datasheet]<br />
** [https://www.invensense.com/products/motion-tracking/6-axis/mpu-6050/ InvenSense MPU-6050 Six-Axis (Gyro + Accelerometer) MEMS Datasheet]<br />
** [http://www.sensortek.com.tw/en/product/Proximity_Sensor_with_ALS.html SensorTek STK3335 Ambient Light Sensor and Proximity Sensor]<br />
* Digital Video to USB-C Bridge:<br />
** [https://www.analogix.com/en/system/files/AA-002281-PB-6-ANX7688_Product_Brief.pdf ANX7688 Product Brief]<br />
* Case information:<br />
** [http://files.pine64.org/doc/datasheet/pinephone/PinePhone%20Exploded%20Diagram%20ver%201.0.pdf PinePhone Case Exploded Diagram]<br />
** [http://files.pine64.org/doc/datasheet/pinephone/PinePhone%20Back%20Cover.stp PinePhone Back Battery Cover 3D file]<br />
<br />
== Developer works ==<br />
<br />
=== Megous ===<br />
[https://xnux.eu/howtos/pine64-pinephone-getting-started.html Getting start with PinePhone Hardware]<br />
<br />
[https://xnux.eu/devices/pine64-pinephone.html#toc-pine64-pinephone State of development progress]<br />
<br />
[https://xnux.eu/news.html PinePhone Technical News and Update, also applies to other Allwinner devices including PINE A64 SBC]<br />
<br />
== Hardware Revisions ==<br />
<br />
# [[Project Anakin]]<br />
# [[Project Don't be evil|"Project Don't Be Evil" devkit]]<br />
# [[PinePhone v1.0 - Dev|PinePhone v1.0 - Developer batch]]<br />
# [[PinePhone v1.1 - Braveheart]]<br />
<br />
== Hardware Addons ==<br />
<br />
===[[PinePhone Hardware Accessory Compatibility]] list===<br />
List of devices working with the PinePhone (depending on OS support)<br />
<br />
=== USB-C Connector ===<br />
The USB-C can be used to power the device, and offers USB2 host and OTG possibilities, and also can make use of the USB-C capability to integrate HDMI signals. Some USB-C hubs are available that offer power throughput, USB connection, HDMI port and Ethernet connection. The driver that would make this connection available is not supported at this time.<br />
<br />
===Pogo Pins===<br />
<br />
The PinePhone has 6 "pogo pins" on the back allowing for custom hardware extensions such as wireless charging or an IR blaster. The pogo pins provide access to an interrupt line, power input to charge the battery, 3.3v power source (disputed: see [[PinePhone_v1.1_-_Braveheart#Pogo_Pins_supply_5v0.2C_not_3v3]]), and an I2C interface.<br />
<br />
'''A step/stl/stp (3D model) file for the back cover is [http://files.pine64.org/doc/PinePhone/PinePhone%20Back%20Cover%20ver%200.5.stp freely available] for creating custom cases that interface with the pogo pins.'''<br />
<br />
=== Serial console ===<br />
[[File:Uart pinephone connection.gif|250px|thumb|left|UART serial connector for PineBook and PinePhone]]<br />
The PinePhone has a serial port in the headphone connector, it's activated by the 6th contact on the dipswitch. If the switch is on then the headphone connector is in audio mode, if it's off then it's in UART mode. This uart serial connection can also be used for communication with other devices from the PinePhone.<br />
<br />
The uart is 115200n8<br />
<br />
The pinout for the serial connector on the tablet side is:<br />
<br />
* Tip: RX<br />
* Ring: TX<br />
* Sleeve: GND<br />
<br />
The serial connection is 3.3V<br />
<br />
You can also buy the debug cable from [https://store.pine64.org PINE64 Store]<br />
The store cable uses a 4 ring plug, as seen in the [http://files.pine64.org/doc/pinebook/guide/Pinebook_Earphone_Serial_Console_Developer_Guide.pdf PDF], but a 3 ring plug works just as well. That cable uses a CH340 chipset based serial to USB converter, but any 3.3v serial connection can be used.<br />
<br />
<br />
<br />
<br />
<br />
<br />
== Killswitch configuration ==<br />
<br />
The PinePhone features six switches that can be used to configure its hardware. They are numbered 1-6, with switch 1 located nearest to the modem. Their on position is toward the top of the phone.<br />
<br />
[[File:PinePhone switches.jpeg|600px|thumb|left|Photo of Brave Heart switches from OSAKANA TARO on Twitter]]<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
# Modem: On enables 2G/3G/4G communication and GNSS hardware, off disables.<br />
# WiFi/BT: On enables Wi-Fi and Bluetooth communication hardware, off disables.<br />
# Microphone: On enables audio input from on-board microphones (not 3.5mm jack), off disables.<br />
# Rear camera: On enables the rear camera, off disables.<br />
# Front camera: On enables the front camera, off disables.<br />
# Headphone: On enables audio input and output via the 3.5mm audio jack, off switches the jack to hardware UART mode.<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
== Battery ==<br />
<br />
The [https://wiki.pine64.org/images/0/04/PinePhone_Battery_model_QZ01-396172-2750.pdf supplied battery] is [https://forum.pine64.org/showthread.php?tid=8120&pid=53307#pid53307 meant to be] compatible with Samsung part number EB-BJ700BBC / BBE / CBE from the 2015 J7 phone. There is [https://forum.pine64.org/showthread.php?tid=8563&pid=55053#pid55053 a report] that the EB-BJ700CBE isn't quite the same size, causing the back not to fit properly.<br />
<br />
The battery terminals, in order from nearest the edge to nearest the middle, are:<br />
<br />
# +ve<br />
# thermistor<br />
# -ve<br />
# not connected<br />
<br />
The battery includes a protection circuit that isolates it in a number of fault conditions, including if it is discharged too far. The fully discharged battery [https://forum.pine64.org/showthread.php?tid=8563&pid=55377#pid55377 can be recharged] by connecting the phone to a charger. Once it has charged sufficiently you will be able to boot the phone.<br />
<br />
If your battery is hard to remove from the phone, try loosening the screws around it. Possibly cutting up a piece of plastic and sliding it under the battery as a pull tab can work too.<br />
<br />
'''Your Brave Heart phone ships with a plastic sticker between the battery and the phone. You need to open the back cover (gently), then remove the battery and finally remove the sticker. This is to protect the device from turning on during shipping.<br />
<br />
[[File:PinePhone battery1.png|600px|thumb|centre|Photo of Brave Heart case from OSAKANA TARO on Twitter]]<br />
[[File:PinePhone battery3.jpeg|600px|thumb|centre|Photo of Brave Heart battery sticker from OSAKANA TARO on Twitter]]<br />
<br />
There has been [https://forum.pine64.org/showthread.php?tid=8960 a report on the forum] that this sticker can bend the pins that make connection between the battery and the phone: please check your setup carefully after removing the sticker.<br />
<br />
'''Note''': the EG25 modem and RTL8723CS wifi/bluetooth do not work without battery power, even if you are supplying enough power to the Pinephone with USB-C.<br />
<br />
== Modem and Carrier Support ==<br />
There is a document about using the modem by user ''megi'' [https://megous.com/dl/tmp/modem.txt here.] This is from circa 18 Jan 2020. <br />
<br />
Note at this date there is no TL;DR version - the script at the end to disable the modem before power off is pretty essential to avoid corrupting your modem's flash memory.<br />
<br />
<br />
To check if the PinePhone is supported on your carrier: <br />
<br />
Search for your carrier on [https://www.frequencycheck.com/ frequencycheck.com] and compare the carrier's LTE/GSM/WCDMA frequencies to the PinePhone's supported frequencies (listed under the [[#Specifications|specifications]] section).<br />
<br />
It is likely that there will be a few frequencies that your carrier uses which are not supported by the PinePhone. Not all of the carrier's frequencies need to be supported by the PinePhone for it to work - as long as ''most'' of them are supported, you will still get good coverage.<br />
<br />
== Factory Test Requirements ==<br />
<br />
Most of the self tests should just work, but a couple of them will fail unless certain requirements are met.<br />
<br />
=== RTL8723CS - WiFi ===<br />
<br />
* The self test needs a visible access point nearby so it can discover an SSID.<br />
* The self test may fail if the battery charge is too low. <br />
<br />
=== EG25 - Modem ===<br />
<br />
* A working micro-SIM that doesn't require a PIN to unlock<br />
* Enough battery charge<br />
<br />
== Operating Systems ==<br />
The PinePhone will automatically boot from microSD if a bootable card is inserted. Although it is technically possible to use any ARM distro (because the PinePhone uses the mainline kernel), there are a few that are designed specifically for <br />
<br />
The [[PinePhone Software Release#Software_Releases|'PinePhone Software Releases']] page has a complete list of currently supported phone-optimized Operating System images that work with the PinePhone as well as other related software information. As soon as other general Linux distributions ship with kernel V5.7, they will also be able to run unmodified on the device.<br />
<br />
The list includes OS images and descriptions of:<br />
<br />
[{{fullurl:PinePhone_Software_Release#postmarketOS}} http://files.pine64.org/sw/pine64_installer/json/postmarketos.png] [[PinePhone_Software_Release#postmarketOS|'''postmarketOS''']]<br />
<br />
[{{fullurl:PinePhone_Software_Release#Ubuntu_Touch_by_UBPorts}} http://files.pine64.org/sw/pine64_installer/json/ubports.png] [[PinePhone_Software_Release#Ubuntu_Touch_by_UBPorts|'''Ubuntu Touch by UBPorts''']]<br />
<br />
[[File:Ryodebianphosh.png]] [[PinePhone_Software_Release#Debian-PinePhone|'''Debian + Phosh''']]<br />
<br />
[{{fullurl:PinePhone_Software_Release#Maemo_Leste}} http://files.pine64.org/sw/pine64_installer/json/maemo_leste.png] [[PinePhone_Software_Release#Maemo_Leste|'''Maemo Leste''']]<br />
<br />
[{{fullurl:PinePhone_Software_Release#SailfishOS}} http://files.pine64.org/sw/pine64_installer/json/sailfishos.png] [[PinePhone_Software_Release#SailfishOS|'''SailfishOS''']]<br />
<br />
[{{fullurl:PinePhone_Software_Release#Fedora}} http://files.pine64.org/sw/pine64_installer/json/fedora.png] [[PinePhone_Software_Release#Fedora|'''Fedora''']]<br />
<br />
[[File:Pureos.png]] [[PinePhone_Software_Release#PureOS|'''PureOS''']]<br />
<br />
[{{fullurl:PinePhone_Software_Release#Manjaro_ARM}} http://files.pine64.org/sw/pine64_installer/json/manjaro.png] [[PinePhone_Software_Release#Manjaro_ARM|'''Manjaro ARM''']]<br />
<br />
[{{fullurl:PinePhone_Software_Release#NixOS}} http://files.pine64.org/sw/pine64_installer/json/nixos.png] [[PinePhone_Software_Release#NixOS|'''NixOS''']]<br />
<br />
[{{fullurl:PinePhone_Software_Release#LuneOS}} http://files.pine64.org/sw/pine64_installer/json/luneos.jpg] [[PinePhone_Software_Release#LuneOS|'''LuneOS''']]<br />
<br />
[{{fullurl:PinePhone_Software_Release#Nemo_Mobile}} http://files.pine64.org/sw/pine64_installer/json/nemo_mobile.png] [[PinePhone_Software_Release#Nemo_Mobile|'''Nemo Mobile''']]<br />
<br />
[{{fullurl:PinePhone_Software_Release#KDE_Neon}} http://files.pine64.org/sw/pine64_installer/json/plasma_mobile.png] [[PinePhone_Software_Release#KDE_Neon|'''KDE Neon''']]<br />
<br />
[{{fullurl:PinePhone_Software_Release#Arch_Linux_ARM}} http://files.pine64.org/sw/pine64_installer/json/archlinux.png] [[PinePhone_Software_Release#Arch_Linux_ARM|'''Arch Linux ARM''']]<br />
<br />
[[File:Auroraos.jpeg]] [[PinePhone_Software_Release#Aurora|'''Aurora''']]<br />
<br />
=== Flashing eMMC using Jumpdrive ===<br />
[[File:jumpdrive.jpg|400px|thumb|right|Jumpdrive running on the PinePhone]]<br />
The internal eMMC flash storage can be flashed using the Jumpdrive utility by Danct12 and Martijn from postmarketOS.<br />
This utility boots from micro SD and exposes the internal eMMC flash storage when the PinePhone is connected to a computer.<br />
The process of flashing and OS to the exposed and mounted eMMC is identical to that of any other storage medium - e.g. a SD card. You can use the 'DD' command or a utility such as Etcher or Gnome Disks, etc.<br />
<br />
<br />
Latest Jumpdrive can be found [https://github.com/dreemurrs-embedded/Jumpdrive/releases/ here]. <br />
<br />
'''If you've found an issue, or want to improve the tool'''<br />
* Issues: https://github.com/dreemurrs-embedded/Jumpdrive/issues<br />
* Pull Requests: https://github.com/dreemurrs-embedded/Jumpdrive/pulls<br />
<br />
<br />
'''Detailed Usage Instructions'''<br />
<br />
# Download the Jumpdrive image<br />
# Flash the Jumpdrive image to a micro SD card<br />
# Boot the PinePhone from the Jumpdrive micro SD card<br />
# Connect the PinePhone to your computer using USB-A -> USB-C cable<br />
# Flash the exposed (mounted) PinePhone drive with a chosen OS image<br />
# Once the flashing process is complete, disconnect the PinePhone from your PC, power it down and remove the Jumpdrive SD card<br />
# The process is now finished, and you can boot from eMMC<br />
<br />
Jumpdrive also acts as a rescue image in case if you messed up your installation. To do so, you can telnet to '''172.16.42.1''', mount rootfs and fix it!<br />
<br />
<br />
'''Resize file system'''<br />
<br />
If you flash a 4G img distro (ie. phosh+debian) to your eemc, your eemc will only have a 3.7G partition on it. To use the entire 14.7G on the eemc, run the following commands:<br />
<br />
# sudo cfdisk /dev/sdX<br />
# Change to [Resize] in the ncurses program, resize the 3.7G partition to 14.7G, and [Write]<br />
# sudo resize2fs /dev/sdXY<br />
<br />
Replace X with your drive's name. Replace Y with the paritition you resized in cfdisk.</div>Anjanmomihttps://wiki.pine64.org/index.php?title=PinePhone&diff=5495PinePhone2020-04-23T02:55:47Z<p>Anjanmomi: added voice mail info</p>
<hr />
<div>The PinePhone is a smartphone created by Pine64, capable of running mainline Linux and supported by many partner projects. The "BraveHeart" edition was the first publicly-available version of the phone, though it came without a fully functional OS (factory test image) and was geared specifically towards tinkerers and hackers. People looking for a stable consumer-grade phone should wait for the final release, which is expected to occur in March 2020 and will be available for at least five years.<br />
<br />
<br />
<br />
<br />
== "BraveHeart" PinePhone Unboxing and First Time Preparation Guide ==<br />
<br />
[[File:PinePhone-2.jpg|400px|thumb|right|PinePhone is capable of running a multitude of different Linux mobile OSes]]<br />
<br />
From the factory the battery has a sticker on it that isolates the battery from the phone. The battery '''will not''' charge until this is removed.<br />
<br />
After unboxing remove the back panel. Then remove the battery and peel off the clear plastic sticker below it that isolates the charging contact. Then replace the battery. See [[#Battery]] for more info.<br />
<br />
If you power on the phone the factory test image will boot. RTL8723CS (WiFi modem) will fail unless there is a WiFi network in range for it to see and the battery is charged. EG25 will fail until battery is charged.<br />
<br />
By default there is no true OS image installed on Braveheart phones. An SD card with a bootable image needs to be inserted into the phone. See section 12 below for a list of OS options. Note the SD and sim sockets are stacked on each other The SD slot is the "shallower" socket and the SIM card goes in the "deeper" socket.<br />
<br />
'''Some videos that illustrate the process:'''<br />
<br />
[https://www.youtube.com/watch?v=ACcxegtDVBI Excellent first time guide video from Rob Braxman Tech]<br />
<br />
[https://www.youtube.com/watch?v=Z0FMW72_OYcI Flash an OS to microSD card video from Rob Braxman Tech]<br />
<br />
== Specifications ==<br />
<br />
'''Dimensions:''' 160.5 x 76.6 x 9.2mm <br><br />
'''Weight:''' Between 180-200 grams <br><br />
'''SIM Card:''' Micro-SIM <br><br />
'''Display:'''<br />
: '''Size:''' 5.95 inches (151mm) diagonal<br />
: '''Type:''' HD IPS capacitive touchscreen, 16M colors<br />
: '''Resolution:''' 1440x720, 18:9 ratio <br><br />
'''System on Chip:''' [https://linux-sunxi.org/A64 Allwinner A64] <br><br />
'''RAM:''' 2GB LPDDR3 SDRAM <br><br />
'''Internal Storage:''' 16GB eMMC, extendable up to 2TB via microSD, supports SDHC and SDXC <br><br />
'''Back Camera:''' Single 5MP, 1/4", LED Flash <br><br />
'''Selfie Camera:''' Single 2MP, f/2.8, 1/5" <br><br />
'''Sound:''' Loudspeaker, 3.5mm jack & mic (jack doubles as hardware UART if killswitch 6 is deactivated) <br><br />
'''Communication: [http://files.pine64.org/doc/datasheet/project_anakin/LTE_module/Quectel_EG25-G_LTE_Specification_V1.1_Preliminary_20180522%20(002).pdf EG25-G]'''<br />
: '''LTE:''' B1, B2, B3, B4, B5, B7, B8, B12, B13, B18, B19, B20, B25, B26, B28, B38, B39, B40, B41<br />
: '''WCDMA:''' B1, B2, B4, B5, B6, B8, B19<br />
: '''GSM:''' 850, 900, 1800, 1900 (MHz)<br />
: '''WLAN:''' Wi-Fi 802.11 b/g/n, single-band, hotspot<br />
: '''Bluetooth:''' 4.0, A2DP<br />
: '''GNSS:''' GPS/GLONASS/BeiDou/Galileo/QZSS, with A-GPS<br />
'''Sensors:''' Accelerometer, gyro, proximity, ambient light, compass <br><br />
'''[[#Killswitch configuration|Killswitches]]:''' Modem, Wifi & Bluetooth, Microphone, Cameras <br><br />
'''[[#Battery|Battery]]:''' [https://wiki.pine64.org/images/0/04/PinePhone_Battery_model_QZ01-396172-2750.pdf Lithium ion] Rated Capacity 2800mAh (10.64Wh), Typical Capacity 3000mAh (11.40Wh) (nominally replaceable with any Samsung J7 form-factor battery) <br><br />
'''I/O:''' USB Type-C (SlimPort), USB Host, DisplayPort Alternate Mode output, 15W 5V 3A Quick Charge, follows USB PD specification<br />
<br />
== PinePhone Board Information, Schematics and Certifications ==<br />
* PinePhone Main Board Schematic:<br />
** [http://files.pine64.org/doc/PinePhone/PinePhone%20Schematic%20v1.1%2020191031.pdf "Braveheart" PinePhone mainboard Schematic ver 1.1]<br />
** [http://files.pine64.org/doc/PinePhone/PinePhone%20mainboard%20top%20placement%20v1.1%2020191031.pdf "Braveheart" PinePhone mainboard component top placement drawing ver 1.1]<br />
** [http://files.pine64.org/doc/PinePhone/PinePhone%20mainboard%20bottom%20placement%20v1.1%2020191031.pdf "Braveheart" PinePhone mainboard component bottom placement drawing ver 1.1]<br />
* PinePhone USB-C Small Board Schematic:<br />
** [http://files.pine64.org/doc/PinePhone/PinePhone%20USB-C%20small%20board%20schematic%20v1.0%2020190730.pdf "Braveheart" PinePhone USB-C small board Schematic ver 1.0]<br />
** [http://files.pine64.org/doc/PinePhone/PinePhone%20USB-C%20small%20board%20top%20placement%20v1.0%2020190730.pdf "Braveheart" PinePhone USB-C small board component top placement drawing ver 1.0]<br />
** [http://files.pine64.org/doc/PinePhone/PinePhone%20USB-C%20small%20board%20bottom%20placement%20v1.0%2020190730.pdf "Braveheart" PinePhone USB-C small board component bottom placement drawing ver 1.0]<br />
* PINE A64 Certifications:<br />
** Not yet available<br />
<br />
== Datasheets for Components and Peripherals ==<br />
* Allwinner A64 SoC information:<br />
** [http://files.pine64.org/doc/datasheet/pine64/A64%20brief%20v1.0%2020150323.pdf Allwinner A64 SoC Brief Introduction]<br />
** [http://files.pine64.org/doc/datasheet/pine64/A64_Datasheet_V1.1.pdf Allwinner A64 SoC Data Sheet V1.1 (Official Released Version)]<br />
** [http://files.pine64.org/doc/datasheet/pine64/Allwinner_A64_User_Manual_V1.0.pdf Allwinner A64 SoC User Manual V1.0 (Official Release Version)]<br />
* X-Powers AXP803 PMU (Power Management Unit) information:<br />
** [http://files.pine64.org/doc/datasheet/pine64/AXP803_Datasheet_V1.0.pdf AXP803 PMIC Datasheet]<br />
* LPDDR3 (178 Balls) SDRAM:<br />
** [http://files.pine64.org/doc/datasheet/pinephone/ATL3A1632H12A_mobile_lpddr3_11x11.5_v1.0_1600.pdf Artmem LPDDR3 Datasheet]<br />
* eMMC information:<br />
** [http://files.pine64.org/doc/datasheet/pinephone/Kimtigo_fbga153_16_32_64_eMMC_datasheet_v1.3.pdf Kimtigo eMMC Datasheet]<br />
* CMOS Camera module information:<br />
** [http://files.pine64.org/doc/datasheet/pinephone/QZ01-rear-2019-0717(HW)%20Model.pdf PinePhone 5M Pixel Real CMOS Image Sensor Module]<br />
** [http://files.pine64.org/doc/datasheet/pinephone/OV5640_datasheet.pdf OV5640 5MP CMOS Image Sensor SoC for Rear Module Datasheet]<br />
** [http://files.pine64.org/doc/datasheet/pinephone/QZ01-front-2019-0717(HW)%20Model.pdf PinePhone 2M Pixel Front CMOS Image Sensor Module]<br />
** [http://files.pine64.org/doc/datasheet/pinephone/GC2145%20CSP%20DataSheet%20release%20V1.0_20131201.pdf GC2145 2MP CMOS Image Sensor SoC for Front Module Datasheet]<br />
* LCD Touch Screen Panel information:<br />
** [http://files.pine64.org/doc/datasheet/pinephone/PinePhone%20LCD-QZ01.pdf 5.99" 1440x720 LCD IPS Panel Specification]<br />
** [http://files.pine64.org/doc/datasheet/pinephone/ST7703_DS_v01_20160128.pdf ST7703 LCD Controller Datasheet]<br />
<br />
** [http://files.pine64.org/doc/datasheet/pinephone/GT917S-Datasheet.pdf GOODiX GT917S Capacitive Touch Controller Datasheet]<br />
* Lithium Battery information:<br />
** [http://files.pine64.org/doc/datasheet/pinephone/PinePhone%20QZ01%20Battery%20Specification.pdf PinePhone Lithium Battery Specification]<br />
** [http://files.pine64.org/doc/datasheet/pinephone/PinePhone%20QZ01%20Battery%20ZCV%20Curve%20Chart.xlsx PinePhone Lithium Battery ZCV Curve Chart]<br />
* Wifi/BT module information:<br />
<br />
* LTE module information:<br />
** [http://files.pine64.org/doc/datasheet/pinephone/Quectel_EG25-G_LTE_Specification_V1.0.pdf Quectel EG25-G LTE Module Specification]<br />
** [[Media:Quectel EC25EC21 AT Commands Manual V1.2.pdf|EC25&EC21 AT Commands Manual]]<br />
* Sensors:<br />
** [https://www.st.com/en/mems-and-sensors/lis3mdl.html ST LIS3MDL 3-axis Magnetomater Datasheet]<br />
** [https://www.invensense.com/products/motion-tracking/6-axis/mpu-6050/ InvenSense MPU-6050 Six-Axis (Gyro + Accelerometer) MEMS Datasheet]<br />
** [http://www.sensortek.com.tw/en/product/Proximity_Sensor_with_ALS.html SensorTek STK3335 Ambient Light Sensor and Proximity Sensor]<br />
* Digital Video to USB-C Bridge:<br />
** [https://www.analogix.com/en/system/files/AA-002281-PB-6-ANX7688_Product_Brief.pdf ANX7688 Product Brief]<br />
* Case information:<br />
** [http://files.pine64.org/doc/datasheet/pinephone/PinePhone%20Exploded%20Diagram%20ver%201.0.pdf PinePhone Case Exploded Diagram]<br />
** [http://files.pine64.org/doc/datasheet/pinephone/PinePhone%20Back%20Cover.stp PinePhone Back Battery Cover 3D file]<br />
<br />
== Developer works ==<br />
<br />
=== Megous ===<br />
[https://xnux.eu/howtos/pine64-pinephone-getting-started.html Getting start with PinePhone Hardware]<br />
<br />
[https://xnux.eu/devices/pine64-pinephone.html#toc-pine64-pinephone State of development progress]<br />
<br />
[https://xnux.eu/news.html PinePhone Technical News and Update, also applies to other Allwinner devices including PINE A64 SBC]<br />
<br />
== Hardware Revisions ==<br />
<br />
# [[Project Anakin]]<br />
# [[Project Don't be evil|"Project Don't Be Evil" devkit]]<br />
# [[PinePhone v1.0 - Dev|PinePhone v1.0 - Developer batch]]<br />
# [[PinePhone v1.1 - Braveheart]]<br />
<br />
== Hardware Addons ==<br />
<br />
===[[PinePhone Hardware Accessory Compatibility]] list===<br />
List of devices working with the PinePhone (depending on OS support)<br />
<br />
=== USB-C Connector ===<br />
The USB-C can be used to power the device, and offers USB2 host and OTG possibilities, and also can make use of the USB-C capability to integrate HDMI signals. Some USB-C hubs are available that offer power throughput, USB connection, HDMI port and Ethernet connection. The driver that would make this connection available is not supported at this time.<br />
<br />
===Pogo Pins===<br />
<br />
The PinePhone has 6 "pogo pins" on the back allowing for custom hardware extensions such as wireless charging or an IR blaster. The pogo pins provide access to an interrupt line, power input to charge the battery, 3.3v power source (disputed: see [[PinePhone_v1.1_-_Braveheart#Pogo_Pins_supply_5v0.2C_not_3v3]]), and an I2C interface.<br />
<br />
'''A step/stl/stp (3D model) file for the back cover is [http://files.pine64.org/doc/PinePhone/PinePhone%20Back%20Cover%20ver%200.5.stp freely available] for creating custom cases that interface with the pogo pins.'''<br />
<br />
=== Serial console ===<br />
[[File:Uart pinephone connection.gif|250px|thumb|left|UART serial connector for PineBook and PinePhone]]<br />
The PinePhone has a serial port in the headphone connector, it's activated by the 6th contact on the dipswitch. If the switch is on then the headphone connector is in audio mode, if it's off then it's in UART mode. This uart serial connection can also be used for communication with other devices from the PinePhone.<br />
<br />
The uart is 115200n8<br />
<br />
The pinout for the serial connector on the tablet side is:<br />
<br />
* Tip: RX<br />
* Ring: TX<br />
* Sleeve: GND<br />
<br />
The serial connection is 3.3V<br />
<br />
You can also buy the debug cable from [https://store.pine64.org PINE64 Store]<br />
The store cable uses a 4 ring plug, as seen in the [http://files.pine64.org/doc/pinebook/guide/Pinebook_Earphone_Serial_Console_Developer_Guide.pdf PDF], but a 3 ring plug works just as well. That cable uses a CH340 chipset based serial to USB converter, but any 3.3v serial connection can be used.<br />
<br />
<br />
<br />
<br />
<br />
<br />
== Killswitch configuration ==<br />
<br />
The PinePhone features six switches that can be used to configure its hardware. They are numbered 1-6, with switch 1 located nearest to the modem. Their on position is toward the top of the phone.<br />
<br />
[[File:PinePhone switches.jpeg|600px|thumb|left|Photo of Brave Heart switches from OSAKANA TARO on Twitter]]<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
# Modem: On enables 2G/3G/4G communication and GNSS hardware, off disables.<br />
# WiFi/BT: On enables Wi-Fi and Bluetooth communication hardware, off disables.<br />
# Microphone: On enables audio input from on-board microphones (not 3.5mm jack), off disables.<br />
# Rear camera: On enables the rear camera, off disables.<br />
# Front camera: On enables the front camera, off disables.<br />
# Headphone: On enables audio input and output via the 3.5mm audio jack, off switches the jack to hardware UART mode.<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
== Battery ==<br />
<br />
The [https://wiki.pine64.org/images/0/04/PinePhone_Battery_model_QZ01-396172-2750.pdf supplied battery] is [https://forum.pine64.org/showthread.php?tid=8120&pid=53307#pid53307 meant to be] compatible with Samsung part number EB-BJ700BBC / BBE / CBE from the 2015 J7 phone. There is [https://forum.pine64.org/showthread.php?tid=8563&pid=55053#pid55053 a report] that the EB-BJ700CBE isn't quite the same size, causing the back not to fit properly.<br />
<br />
The battery terminals, in order from nearest the edge to nearest the middle, are:<br />
<br />
# +ve<br />
# thermistor<br />
# -ve<br />
# not connected<br />
<br />
The battery includes a protection circuit that isolates it in a number of fault conditions, including if it is discharged too far. The fully discharged battery [https://forum.pine64.org/showthread.php?tid=8563&pid=55377#pid55377 can be recharged] by connecting the phone to a charger. Once it has charged sufficiently you will be able to boot the phone.<br />
<br />
If your battery is hard to remove from the phone, try loosening the screws around it. Possibly cutting up a piece of plastic and sliding it under the battery as a pull tab can work too.<br />
<br />
'''Your Brave Heart phone ships with a plastic sticker between the battery and the phone. You need to open the back cover (gently), then remove the battery and finally remove the sticker. This is to protect the device from turning on during shipping.<br />
<br />
[[File:PinePhone battery1.png|600px|thumb|centre|Photo of Brave Heart case from OSAKANA TARO on Twitter]]<br />
[[File:PinePhone battery3.jpeg|600px|thumb|centre|Photo of Brave Heart battery sticker from OSAKANA TARO on Twitter]]<br />
<br />
There has been [https://forum.pine64.org/showthread.php?tid=8960 a report on the forum] that this sticker can bend the pins that make connection between the battery and the phone: please check your setup carefully after removing the sticker.<br />
<br />
'''Note''': the EG25 modem and RTL8723CS wifi/bluetooth do not work without battery power, even if you are supplying enough power to the Pinephone with USB-C.<br />
<br />
== Modem and Carrier Support ==<br />
There is a document about using the modem by user ''megi'' [https://megous.com/dl/tmp/modem.txt here.] This is from circa 18 Jan 2020. <br />
<br />
Note at this date there is no TL;DR version - the script at the end to disable the modem before power off is pretty essential to avoid corrupting your modem's flash memory.<br />
<br />
<br />
To check if the PinePhone is supported on your carrier: <br />
<br />
Search for your carrier on [https://www.frequencycheck.com/ frequencycheck.com] and compare the carrier's LTE/GSM/WCDMA frequencies to the PinePhone's supported frequencies (listed under the [[#Specifications|specifications]] section).<br />
<br />
It is likely that there will be a few frequencies that your carrier uses which are not supported by the PinePhone. Not all of the carrier's frequencies need to be supported by the PinePhone for it to work - as long as ''most'' of them are supported, you will still get good coverage.<br />
<br />
== Factory Test Requirements ==<br />
<br />
Most of the self tests should just work, but a couple of them will fail unless certain requirements are met.<br />
<br />
=== RTL8723CS - WiFi ===<br />
<br />
* The self test needs a visible access point nearby so it can discover an SSID.<br />
* The self test may fail if the battery charge is too low. <br />
<br />
=== EG25 - Modem ===<br />
<br />
* A working micro-SIM that doesn't require a PIN to unlock<br />
* Enough battery charge<br />
<br />
== Operating Systems ==<br />
The PinePhone will automatically boot from microSD if a bootable card is inserted. Although it is technically possible to use any ARM distro (because the PinePhone uses the mainline kernel), there are a few that are designed specifically for <br />
<br />
The [[PinePhone Software Release#Software_Releases|'PinePhone Software Releases']] page has a complete list of currently supported phone-optimized Operating System images that work with the PinePhone as well as other related software information. As soon as other general Linux distributions ship with kernel V5.7, they will also be able to run unmodified on the device.<br />
<br />
The list includes OS images and descriptions of:<br />
<br />
[{{fullurl:PinePhone_Software_Release#postmarketOS}} http://files.pine64.org/sw/pine64_installer/json/postmarketos.png] [[PinePhone_Software_Release#postmarketOS|'''postmarketOS''']]<br />
<br />
[{{fullurl:PinePhone_Software_Release#Ubuntu_Touch_by_UBPorts}} http://files.pine64.org/sw/pine64_installer/json/ubports.png] [[PinePhone_Software_Release#Ubuntu_Touch_by_UBPorts|'''Ubuntu Touch by UBPorts''']]<br />
<br />
[[File:Ryodebianphosh.png]] [[PinePhone_Software_Release#Debian-PinePhone|'''Debian + Phosh''']]<br />
<br />
[{{fullurl:PinePhone_Software_Release#Maemo_Leste}} http://files.pine64.org/sw/pine64_installer/json/maemo_leste.png] [[PinePhone_Software_Release#Maemo_Leste|'''Maemo Leste''']]<br />
<br />
[{{fullurl:PinePhone_Software_Release#SailfishOS}} http://files.pine64.org/sw/pine64_installer/json/sailfishos.png] [[PinePhone_Software_Release#SailfishOS|'''SailfishOS''']]<br />
<br />
[{{fullurl:PinePhone_Software_Release#Fedora}} http://files.pine64.org/sw/pine64_installer/json/fedora.png] [[PinePhone_Software_Release#Fedora|'''Fedora''']]<br />
<br />
[[File:Pureos.png]] [[PinePhone_Software_Release#PureOS|'''PureOS''']]<br />
<br />
[{{fullurl:PinePhone_Software_Release#Manjaro_ARM}} http://files.pine64.org/sw/pine64_installer/json/manjaro.png] [[PinePhone_Software_Release#Manjaro_ARM|'''Manjaro ARM''']]<br />
<br />
[{{fullurl:PinePhone_Software_Release#NixOS}} http://files.pine64.org/sw/pine64_installer/json/nixos.png] [[PinePhone_Software_Release#NixOS|'''NixOS''']]<br />
<br />
[{{fullurl:PinePhone_Software_Release#LuneOS}} http://files.pine64.org/sw/pine64_installer/json/luneos.jpg] [[PinePhone_Software_Release#LuneOS|'''LuneOS''']]<br />
<br />
[{{fullurl:PinePhone_Software_Release#Nemo_Mobile}} http://files.pine64.org/sw/pine64_installer/json/nemo_mobile.png] [[PinePhone_Software_Release#Nemo_Mobile|'''Nemo Mobile''']]<br />
<br />
[{{fullurl:PinePhone_Software_Release#KDE_Neon}} http://files.pine64.org/sw/pine64_installer/json/plasma_mobile.png] [[PinePhone_Software_Release#KDE_Neon|'''KDE Neon''']]<br />
<br />
[{{fullurl:PinePhone_Software_Release#Arch_Linux_ARM}} http://files.pine64.org/sw/pine64_installer/json/archlinux.png] [[PinePhone_Software_Release#Arch_Linux_ARM|'''Arch Linux ARM''']]<br />
<br />
[[File:Auroraos.jpeg]] [[PinePhone_Software_Release#Aurora|'''Aurora''']]<br />
<br />
=== Voice Mail ===<br />
<br />
Some phone operating systems may not have support for accessing your voicemail by holding down the 1 key. If you are in Canada and using rogers or a rogers associated carrier (ie. Chatr), you can access your voice mail by calling an external number. See:<br />
<br />
https://www.howardforums.com/showthread.php/913346-Rogers-GSM-Voicemail-Retrieval-Numbers<br />
<br />
When I called this number from my pinephone, I got static. When I used another phone (my land line), I was able to access my voice mailbox.<br />
<br />
In America, AT&T also has support for accessing your voicemail via an external phone number:<br />
<br />
https://www.att.com/support/article/wireless/KM1009101/<br />
<br />
=== Flashing eMMC using Jumpdrive ===<br />
[[File:jumpdrive.jpg|400px|thumb|right|Jumpdrive running on the PinePhone]]<br />
The internal eMMC flash storage can be flashed using the Jumpdrive utility by Danct12 and Martijn from postmarketOS.<br />
This utility boots from micro SD and exposes the internal eMMC flash storage when the PinePhone is connected to a computer.<br />
The process of flashing and OS to the exposed and mounted eMMC is identical to that of any other storage medium - e.g. a SD card. You can use the 'DD' command or a utility such as Etcher or Gnome Disks, etc.<br />
<br />
<br />
Latest Jumpdrive can be found [https://github.com/dreemurrs-embedded/Jumpdrive/releases/ here]. <br />
<br />
'''If you've found an issue, or want to improve the tool'''<br />
* Issues: https://github.com/dreemurrs-embedded/Jumpdrive/issues<br />
* Pull Requests: https://github.com/dreemurrs-embedded/Jumpdrive/pulls<br />
<br />
<br />
'''Detailed Usage Instructions'''<br />
<br />
# Download the Jumpdrive image<br />
# Flash the Jumpdrive image to a micro SD card<br />
# Boot the PinePhone from the Jumpdrive micro SD card<br />
# Connect the PinePhone to your computer using USB-A -> USB-C cable<br />
# Flash the exposed (mounted) PinePhone drive with a chosen OS image<br />
# Once the flashing process is complete, disconnect the PinePhone from your PC, power it down and remove the Jumpdrive SD card<br />
# The process is now finished, and you can boot from eMMC<br />
<br />
Jumpdrive also acts as a rescue image in case if you messed up your installation. To do so, you can telnet to '''172.16.42.1''', mount rootfs and fix it!<br />
<br />
<br />
'''Resize file system'''<br />
<br />
If you flash a 4G img distro (ie. phosh+debian) to your eemc, your eemc will only have a 3.7G partition on it. To use the entire 14.7G on the eemc, run the following commands:<br />
<br />
# sudo cfdisk /dev/sdX<br />
# Change to [Resize] in the ncurses program, resize the 3.7G partition to 14.7G, and [Write]<br />
# sudo resize2fs /dev/sdXY<br />
<br />
Replace X with your drive's name. Replace Y with the paritition you resized in cfdisk.</div>Anjanmomihttps://wiki.pine64.org/index.php?title=PinePhone_Software_Releases&diff=5423PinePhone Software Releases2020-04-03T03:27:40Z<p>Anjanmomi: added UBPorts script to flash</p>
<hr />
<div><br />
This page is intended to help you install a software release on your [[PinePhone]]. It also provides details about all available releases as well as links to further resources.<br />
<br />
= General instructions =<br />
<br />
Releases are first installed to a Micro SD card. Choose a card with fast I/O (of small files) for the best performance. See [[#Other Resources]] for performance tests of various SD cards.<br />
<br />
This section has generic installation instructions. Please see the [[#Software Releases]] section for specific installation instructions for each distribution.<br />
<br />
== Boot priority ==<br />
<br />
The default PinePhone boot priority is first the SD card and then the eMMC so inserting your own SD card with your preferred release will result in the phone booting your image. <br />
<br />
User ''megi'' has demonstrated his multi-boot development [https://www.youtube.com/watch?v=ZL1GREqoqx8 on YouTube,] see Other Resouces at the bottom of this page for a link to his notes.<br />
<br />
== Preparation of SD card ==<br />
# Download your chosen image from the options below<br />
# Extract the compressed file<br />
# Write the image to your SD card<br />
# Plug SD card into phone<br />
# Boot phone<br />
If you need step-by-step instructions for writing an image to an SD card, check [[NOOB#Step-by-Step_Instructions_to_Flashing_MicroSD_Cards]] then return to this page.<br />
<br />
== Installation to eMMC (Optional) ==<br />
<br />
=== Method Using Factory Installed Tools ===<br />
<br />
The initial OS you get with your phone has the option to flash an image on SD card to eMMC. <br />
<br />
# Copy (not flash) the image file to a formatted SD card.<br />
# Insert SD card into powered-off phone.<br />
# Turn on phone and select option to install to eMMC.<br />
<br />
=== Safe & Easy Method ===<br />
<br />
[https://forum.pine64.org/showthread.php?tid=9444 Jumpdrive thread]<br />
<br />
# download and extract [https://github.com/dreemurrs-embedded/Jumpdrive/releases the Jumpdrive image]<br />
# flash the Jumpdrive image to a SD card<br />
# boot from the SD card<br />
# connect the PinePhone to your computer using USB-A -> USB-C cable.<br />
# flash the exposed (mounted) PinePhone drive with a chosen OS image as you'd flash any SD card, and resize partitions (optional, see below)<br />
# disconnect the PinePhone from your PC, power it down and remove the Jumpdrive SD card<br />
# boot into your OS of choice on eMMC<br />
<br />
The Jumpdrive image is smaller than 50MB. You can keep an SD card specifically for using Jumpdrive, and there are 64MB micro SD cards sold cheaply that will suffice.<br />
<br />
=== Safe With No Extra Tools, But Slower ===<br />
<br />
# Prepare a formatted SD card, flash desired OS to the SD card, and (optionally) resize the partition (see below)<br />
# Insert SD card and boot the phone<br />
# Open terminal and <code>git clone [url]</code> your desired project OR: Open web browser and download the desired OS image file. <br />
# Build the OS (Optional)<br />
# Flash the resulting image file you got by downloading or by building, to eMMC, using <code>dd if=/dev/mmcblkX of=/dev/mmcblkY bs=1M</code> where X is the number label of the SD card, and Y is the number label of the eMMC. Use the command ''lsblk'' to check your devices: typically with the current kernel the SD card is /dev/mmcblk0 and the eMMC is /dev/mmcblk2 but as always with ''dd'' be extremely cautious to get the devices correct. Then, resize partition to fill up entire disk (see below).<br />
# Turn off phone, remove SD card. Turn on phone.<br />
<br />
=== Risky Method ===<br />
<br />
Warning: This copies a mounted filesystem, which can lead to instability, erratic behavior, and data corruption. Do not use long term.<br />
<br />
# Prepare a new SD card, flash desired OS to the SD card<br />
# Boot the phone with your new SD card image<br />
# Within the booted OS, flash/clone the running OS to eMMC, e.g. using dd. It will take about 15 minutes (depending on the speed of your card), and in the end it may show an error about not enough space - just ignore it.<br />
# Turn off phone, take out SD card, and try booting the phone which should load up the new OS from eMMC.<br />
# Open terminal and resize partition to fill up entire disk (see below).<br />
<br />
== Resize partition to fit disk space ==<br />
<br />
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.<br />
<br />
=== Resize SD card's partition using computer ===<br />
<br />
For SD cards, insert the SD card and resize the partitions through the computer. For eMMC, insert the phone cable and use Jumpdrive to access the eMMC directly, and resize the partition after flashing the image.<br />
<br />
Using Growpart: <br />
<br />
growpart /dev/sdX 1 <br />
resize2fs /dev/sdX 1<br />
<br />
Locate growpart (<code>apt-cache search growpart</code> and install the package in the search results) and run: <br />
growpart /dev/mmcblkX Y<br />
resize2fs /dev/mmcblkXpY<br />
where X is the storage device and Y is the partition number (viewable from lsblk).<br />
<br />
If you get any errors about missing or unknown commands, use apt-cache search to find and install the needed software. Also don't forget to use sudo.<br />
<br />
Using Parted: <br />
<br />
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.<br />
<br />
sudo parted /dev/<your_sd_card_device><br />
(parted) resizepart 2 100%<br />
(parted) quit<br />
sudo resize /dev/<the_second_sd_card_PARTITION><br />
<br />
=== Resize from within PinePhone: ===<br />
<br />
eMMC: you would need to resize the partition on eMMC (flashed with the operating system) by booting another image from the SD card: that way, the eMMC will be unmounted. It is '''not recommended''' to resize eMMC while booted from eMMC! Resizing a currently mounted partition can have weird results. <br />
<br />
SD card: It is generally not possible to boot from eMMC to partition the unmounted SD card, because of the boot order -- you would have to write the image to the empty SD card first, then resize partition, all without rebooting. It is also '''not recommended''' to resize the SD card while booted from SD card! Resizing a currently mounted partition can have weird results.<br />
<br />
== Installing Any ARM64 Distribution ==<br />
'''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.<br />
<br />
'''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.<br />
<br />
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).<br />
<br />
# Create a boot (from 4MiB to about 252MiB) and root (from 252 MiB to the end of the card) filesystem on the SD card.<br />
# Format the boot partition with vfat, and the root partition with f2fs.<br />
# 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).<br />
# Edit /etc/fstab to match your partitions.<br />
# Grab megi's kernel from https://xff.cz/kernels/ (you probably want 5.6).<br />
# Follow the README instructions, which involves copying the kernel modules into the sd card rootfs and writing u-boot and the bootloader.<br />
<br />
== Backlight ==<br />
All current distributions do not have a good setup for the backlight at low brightness.<br />
If configured too low, the backlight shuts down completely, but the screen is still displayed and usable in bright front-light.<br />
<br />
Sailfish is one OS that initially uses automatic backlight control and the default setting makes the screen appear blank. When shining a bright light on the screen, you can still navigate the screen (and maybe the screen switches on temporarily due to the light sensor). This will make it possible for you to disable auto brightness in Settings, Display.<br />
<br />
<div class="center" style="background-color: lightyellow;">[[#top | '''Return to top of page''']]</div><br />
<br />
= Software Releases =<br />
<br />
== postmarketOS ==<br />
http://files.pine64.org/sw/pine64_installer/json/postmarketos.png<br />
<br />
postmarketOS is a preconfigured version of [https://www.alpinelinux.org/ Alpine Linux] for mobile devices that offers a choice of several desktop environments including Plasma Mobile and phosh. <br />
<br />
* ''' Download location '''<br />
Rather than downloading a demo image [https://wiki.postmarketos.org/wiki/Installation_guide postmarketOS recommend] the use of their script, pmbootstrap, that can tailor build your SD card for you. See for example [https://forum.pine64.org/showthread.php?tid=8285 this forum thread.] <br />
<br />
Note pmbootstrap offers an option [https://wiki.postmarketos.org/wiki/PINE64_PinePhone_(pine64-pinephone)#Installation to install to the eMMC.]<br />
<br />
[http://images.postmarketos.org/pinephone/ Demo images can be found here.]<br />
<br />
* ''' user-id/password '''<br />
demo/147147 (for demo images only - when building an image with pmbootstrap you set your own user-id and password. '''NOTE: currently some lock screens require your password, but only present a numeric keyboard. So you should use [[only]] numbers in your password until you've verified you can unlock with other characters.''')<br />
<br />
* ''' What works, what does not work '''<br />
See [https://wiki.postmarketos.org/wiki/PINE64_PinePhone_(pine64-pinephone) postmarketOS dedicated PinePhone wiki page]<br />
<br />
If you install firefox browser (or are using a demo image that already has it installed) [https://wiki.postmarketos.org/wiki/Firefox then these hints in the pmOS wiki are recommended.] GDK_SCALE=1 is best for PinePhone screen, enable Wayland gets application to fit screen and allow keyboard entry.<br />
<br />
* ''' Where/how to report defects '''<br />
[https://gitlab.com/postmarketOS/postmarketos/issues/3 postmarketOS issue tracker for PinePhone support]<br />
<br />
* ''' Contributions '''<br />
[https://wiki.postmarketos.org/wiki/Contributing See postmarketOS wiki for options to contribute.]<br />
<br />
<div class="center" style="background-color: lightyellow;">[[#top | '''Return to top of page''']]</div><br />
<br />
== Ubuntu Touch by UBPorts ==<br />
http://files.pine64.org/sw/pine64_installer/json/ubports.png<br />
A Mobile Version of the Ubuntu Operating System made and maintained by the UBports Community.<br />
<br />
A short, state-of-the-art (as at 5 Feb 2020) [https://youtu.be/ST_BjKicTAk demo on YouTube.]<br />
<br />
[https://ubuntu-touch.io/ Ubuntu touch] is a mobile version of Ubuntu developed by the UBports community. Images can be downloaded from [https://ci.ubports.com/job/rootfs/job/rootfs-pinephone/ here]. There is also a [https://github.com/goddard/pinephone/ script] to download the latest img and flash to your pinephone. In the future, Ubuntu Touch will be able to be installed onto the PinePhone with the [https://ubuntu-touch.io/get-ut UBports installer] GUI tool.<br />
<br />
* ''' Download location '''<br />
[https://gitlab.com/ubports/community-ports/pinephone See UBports gitlab page.]<br />
<br />
* ''' user-id/password '''<br />
The default password is <code>phablet</code><br />
<br />
* ''' What works, what does not work '''<br />
[https://gitlab.com/ubports/community-ports/pinephone Scroll down to the bottom of this page.]<br />
<br />
To get the modem to work (as at 10 Feb) you need to manually:<br />
sudo /usr/share/ofono/scripts/enable-modem<br />
sudo /usr/share/ofono/scripts/online-modem<br />
<br />
* ''' Where/how to report defects '''<br />
[https://gitlab.com/ubports/community-ports/pinephone See UBports gitlab page.]<br />
<br />
* ''' Contributions '''<br />
[https://ubports.com/foundation/sponsors See UBports website for how to donate.]<br />
<br />
<div class="center" style="background-color: lightyellow;">[[#top | '''Return to top of page''']]</div><br />
<br />
== Debian + Phosh ==<br />
[[File:Debian-logo.png]]<br />
<br />
See [https://forum.pine64.org/showthread.php?tid=9016 this thread in the forum.]<br />
<br />
An unofficial Debian build for ARM64 running with the [https://developer.puri.sm/Librem5/Software_Reference/Environments/Phosh.html phosh user interface] (developed by Purism, phosh uses [https://en.wikipedia.org/wiki/Wayland_(display_server_protocol) Wayland] instead of [https://en.wikipedia.org/wiki/X.Org_Server Xorg]). The base system is pure Debian, with only the GUI applications and a few others (ModemManager, Wifi chip firmware) being built from modified sources (as well as the kernel and u-boot, of course). Current version is Debian Sid, as needed packages are not yet in testing (Debian Bullseye). <br />
<br />
* ''' Download location '''<br />
[http://pinephone.a-wai.com/images/ Debian-pinephone image builds]<br />
<br />
Don't forget to extract the image: <br />
$ gzip -d Downloads/debian-pinephone-*.img.gz<br />
<br />
* ''' user-id/password '''<br />
debian/1234<br />
<br />
* ''' What works, what does not work '''<br />
<br />
See [https://gitlab.com/a-wai/debos-pinephone/-/blob/master/README.md the project's README file] for most up to date status.<br />
<br />
March 9th release: [https://forum.pine64.org/showthread.php?tid=9016&pid=61968#pid61968 thread]<br />
<br />
Known issues as of March 27th, 2020:<br />
* headphone jack insertion is still not detected, you need to manually switch to the "Headphone" output in "Settings" -> "Sound"<br />
* bluetooth doesn't work on reboots, you need to turn your phone off and power it on again<br />
* camera is still not usable, even though the low-level drivers seem to work<br />
* a few voice calls issues: unable to mute the mic, audio quality to be improved (if the hardware is capable of more)<br />
* Chats app: In order to start a new text, you need to enter +[country code]-[phone number]. Without the + and the country code (+1 for USA) you won't be able to send a new text. <br />
<br />
'''To adjust screen resolution''' [https://puri.sm/posts/easy-librem-5-app-development-scale-the-screen/] [https://forum.pine64.org/showthread.php?tid=9016&pid=61403#pid61403] [https://forum.pine64.org/showthread.php?tid=9016&pid=61685#pid61685] <br />
<br />
# <code>sudo apt install linux-libc-dev build-essential ninja-build meson cmake libwayland-dev</code><br />
# Continue the rest of the instructions on [https://puri.sm/posts/easy-librem-5-app-development-scale-the-screen/ this page]<br />
# When you finish, you will have a touch-capable app you can use to adjust resolution any time, useful when switching between various apps<br />
<br />
Most of Debian's repository is available. There are packages that need to be cross compiled ("ported") to ARM64 (see [https://wiki.debian.org/Arm64Port Debian's wiki on ARM64 port]), but the process is fairly easy. Most developers package their software for the AMD64 version of Debian, so they will throw an error when run; if you have the source code, you can compile it to run on ARM64/PinePhone. If you do so, you should contact the developers so they can provide precompiled ARM64 packages for others in the future. You should also contact Debian if you have working ARM64 packages not listed on [https://wiki.debian.org/Arm64Port this page], since this helps them track the status of ARM64 with Debian. Currently their wiki page is out of date.<br />
<br />
* ''' Where/how to report defects '''<br />
It is recommended that you log your bug reports in [https://gitlab.com/a-wai/debos-pinephone/issues/ the project's issue tracker.]<br />
<br />
* ''' Contributions '''<br />
Feel free to pick an open issue to work on, or send a merge request on [https://gitlab.com/a-wai/debos-pinephone/ Gitlab.]<br />
<br />
<div class="center" style="background-color: lightyellow;">[[#top | '''Return to top of page''']]</div><br />
<br />
== SailfishOS ==<br />
http://files.pine64.org/sw/pine64_installer/json/sailfishos.png<br />
Sailfish OS is a Linux-based operating system based on open source projects such as Mer and including a closed source UI.<br />
<br />
* ''' Download location '''<br />
The SailfishOS image is built on Gitlab CI. The latest image can be installed using the [https://raw.githubusercontent.com/sailfish-on-dontbeevil/flash-it/master/flash-it.sh flashing script].<br />
<br />
The script downloads the image and bootloader from our CI, extracts everything and burns it onto the SD card. '''Note:''' The script will format and erase the SD card!<br />
<br />
''Instructions:''<br />
# Download the flashing script<br />
# Insert a microSD card in your device<br />
# Make the script executable: <code>chmod +x flash-it.sh</code><br />
# Verify that you have the <code>bsdtar</code> package installed<br />
# Execute it: <code>./flash-it.sh</code><br />
# Follow the instructions. Some commands in the script require root permissions (for example: mounting and flashing the SD card).<br />
<br />
Note that after baking µSD card and booting phone, as per [https://www.reddit.com/r/pinephone/comments/f1l7bm/sailfish_os_on_pinephone_best_os_so_far_in_my/fh8o0s2/ Reddit comment] you have to adjust autobrightness settings in order to actually see interface.<br />
<br />
* ''' user-id/password '''<br />
<br />
* ''' What works, what does not work '''<br />
The current (2 Apr) version of Sailfish no longer has a defect with the auto brightness! If you're not familiar with SFOS, be prepared by having a (free) Jolla account and pay attention to the tutorial - the interface works great but isn't immediately obvious. If you are familiar with SF you can skip the tutorial by touching all 4 corners starting top left. There is a poor selection of apps available from the Jolla store. To enable openrepos.net install the Storeman app by downloading the rpm from https://openrepos.net/content/osetr/storeman. Browse the apps and add repository first from the pulley menu before installing the app. <br />
<br />
* ''' Where/how to report defects '''<br />
<br />
See [https://sailfishos.org/wiki/Collaborative_Development#Reporting_issues the Sailfish wiki] for links to their forum as well as info required when reporting an issue.<br />
<br />
* ''' Contributions '''<br />
[https://sailfishos.org/wiki/SailfishOS See the SailfishOS wiki for options to contribute.]<br />
<br />
<div class="center" style="background-color: lightyellow;">[[#top | '''Return to top of page''']]</div><br />
<br />
<br />
== PureOS ==<br />
PureOS is a GNU/Linux distribution focusing on privacy and security, using the GNOME desktop environment. It is developed and maintained by Purism.<br />
<br />
* ''' Download location '''<br />
This is an unofficial/unsupported creation by ''mozzwald'' that can be downloaded [https://droppy.ironrobin.net/#/Images/PureOS here.] <br />
<br />
* ''' user-id/password '''<br />
purism/123456<br />
<br />
<div class="center" style="background-color: lightyellow;">[[#top | '''Return to top of page''']]</div><br />
<br />
== Fedora ==<br />
http://files.pine64.org/sw/pine64_installer/json/fedora.png<br />
<br />
An (unofficial) vanilla Fedora rawhide build for aarch64 with megi's kernel and [https://copr.fedorainfracloud.org/coprs/njha/mobile/packages/ some additional packages] to tie it all together. It aims to eventually be an upstream part of the Fedora project, rather than a phone-specific distribution.<br />
<br />
See [https://forum.pine64.org/showthread.php?tid=9347 this thread in the forum.]<br />
<br />
* ''' Download location '''<br />
[https://github.com/nikhiljha/pp-fedora-sdsetup/releases/ flashable images] or [https://github.com/nikhiljha/pp-fedora-sdsetup/tree/image build scripts]<br />
<br />
The images are compressed with zstd because the maintainer needs an excuse to use zstd.<br />
<br />
* ''' user-id/password '''<br />
pine/1111<br />
<br />
* ''' What works, what does not work '''<br />
* WiFi, Bluetooth, SMS, Data, Calls all work!<br />
* There are still a few bugs though, and [some features don't have driver support yet https://xnux.eu/devices/pine64-pinephone.html#toc-feature-driver-support-matrix] on any PinePhone distribution. <br />
<br />
* ''' Where/how to report defects '''<br />
Please send your bug reports at [https://github.com/nikhiljha/pp-fedora-sdsetup/issues the project's issue tracker.] Be sure to include logs if applicable!<br />
<br />
* ''' Contributions '''<br />
Please help! Send us merge requests on [https://github.com/nikhiljha/pp-fedora-sdsetup/ Github.]<br />
<br />
<div class="center" style="background-color: lightyellow;">[[#top | '''Return to top of page''']]</div><br />
<br />
== Arch Linux ARM ==<br />
http://files.pine64.org/sw/pine64_installer/json/archlinux.png<br />
<br />
An (unofficial) barebone Arch Linux ARM image, all you have is just a shell and SSH.<br />
<br />
* ''' Download location '''<br />
https://github.com/dreemurrs-embedded/Pine64-Arch/releases<br />
<br />
* ''' user-id/password '''<br />
alarm/alarm<br />
<br />
* ''' What works, what does not work '''<br />
It's just fast and smooth, there's nothing, you'll have to install a desktop at your own. GNOME is a good example to look at.<br />
<br />
To access the device, ssh to 172.16.42.1 with the credentials above. <br />
<br />
* ''' Contributions '''<br />
Feel free to send us merge requests on [https://github.com/dreemurrs-embedded/Pine64-Arch/pulls GitHub.]<br />
<br />
<div class="center" style="background-color: lightyellow;">[[#top | '''Return to top of page''']]</div><br />
<br />
== Manjaro ARM ==<br />
http://files.pine64.org/sw/pine64_installer/json/manjaro.png<br />
Manjaro is a user-friendly Linux distribution based on the independently developed Arch operating system with the Plasma Mobile desktop environment.<br />
<br />
* ''' Download location '''<br />
[https://forum.manjaro.org/t/manjaro-arm-alpha4-for-pinephone-and-pinetab/127684 See Manjaro forum announcement of Alpha4 version]<br />
<br />
* ''' user-id/password '''<br />
** manjaro/1234<br />
** root/root<br />
<br />
* ''' What works, what does not work '''<br />
[https://forum.manjaro.org/t/manjaro-arm-alpha4-for-pinephone-and-pinetab/127684 See Manjaro announcement.]<br />
<br />
In particular phone calls do NOT yet work from the Phone application.<br />
<br />
* ''' Where/how to report defects '''<br />
<br />
* ''' Contributions '''<br />
[https://forum.manjaro.org/t/manjaro-arm-alpha4-for-pinephone-and-pinetab/127684 See the end of the announcement here.]<br />
<br />
<div class="center" style="background-color: lightyellow;">[[#top | '''Return to top of page''']]</div><br />
<br />
== Maemo Leste ==<br />
http://files.pine64.org/sw/pine64_installer/json/maemo_leste.png<br />
<br />
[https://en.wikipedia.org/wiki/Maemo Maemo] is a trimmed-down version of Debian for mobile devices, originally a collaboration between Nokia and many open source projects (the [http://maemo.org/intro/ Maemo community]) before Nokia abandoned it. The community now takes full responsibility in developing fully open source Maemo for a variety of mobile devices. <br />
<br />
The new version Maemo 7 "Leste" is an ARM64 port of [https://devuan.org/ Devuan] (Debian without systemd) and runs the mainline Linux kernel. The default user interface stack is [https://en.wikipedia.org/wiki/Hildon Hildon], [https://en.wikipedia.org/wiki/X.Org_Server Xorg], [https://en.wikipedia.org/wiki/Matchbox_(window_manager) Matchbox WM], and [https://en.wikipedia.org/wiki/GTK GTK]. The current version is Devuan Ascii (Debian Stretch) and they are working on an upgrade to Devuan Beowulf (Debian Buster) as well as simultaneous support for both Devuan and Debian. In addition to the main repository, they [https://maemo-leste.github.io/maemo-leste-repositories-and-community-packages.html announced] a [https://github.com/maemo-leste-extras/bugtracker community repository]. To keep updated they use automation in their package maintenance with [https://github.com/maemo-leste/jenkins-integration jenkins] (similar to [https://www.debian.org/devel/buildd/ debian's buildd]). Porting packages to Maemo Leste is basically a simple matter of porting to arm64 version of Debian/Devuan, which benefits both projects.<br />
<br />
More detailed information can be found on [https://leste.maemo.org/Main_Page the Maemo Leste wiki], or follow [https://maemo-leste.github.io/ announcements on their website], and check out [https://leste.maemo.org/Leste_FAQ Frequently Asked Questions]. <br />
<br />
* ''' Download location '''<br />
[http://maedevu.maemo.org/images/pinephone/ Maemo Leste test builds.] There is also an [https://github.com/maemo-leste/image-builder image builder], see their wiki for instructions on how to [https://leste.maemo.org/Image_Builder build a custom image].<br />
<br />
* ''' user-id/password '''<br />
root/toor<br />
<br />
You may use "sudo" directly.<br />
<br />
* ''' What works, what does not work '''<br />
For current status and work arounds please read their [https://leste.maemo.org/PinePhone PinePhone wiki page], and update as necessary (make sure to notify them of new issues by leaving a report on their github, see below).<br />
<br />
* ''' Where to Report Issues '''<br />
Most discussion occurs at #maemo-leste on freenode IRC. The Maemo website also has an [https://talk.maemo.org/showthread.php?p=1565822 ongoing forum thread] for feedback about Maemo Leste on the PinePhone BraveHeart edition.<br />
<br />
All other contact information is listed on the [https://leste.maemo.org/Main_Page main page] of the Maemo wiki. You should [https://github.com/maemo-leste/bugtracker/issues submit bug reports] on github. To track known issues, you may use these search terms: [https://github.com/maemo-leste/bugtracker/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+pinephone pinephone], [https://github.com/maemo-leste/bugtracker/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+pine64 pine64]<br />
<br />
* ''' Development '''<br />
Learn about [https://leste.maemo.org/Development development], [https://leste.maemo.org/Development/Porting_Packages porting packages], [https://leste.maemo.org/Development/Building_Packages building packages], [https://leste.maemo.org/Development/Tasks todo list], and general info on [https://wiki.debian.org/HowToPackageForDebian how to package for Debian]. Some tasks have funding available. <br />
<br />
<div class="center" style="background-color: lightyellow;">[[#top | '''Return to top of page''']]</div><br />
<br />
== Nemo Mobile ==<br />
http://files.pine64.org/sw/pine64_installer/json/nemo_mobile.png<br />
Nemo Mobile is the open source build of Sailfish OS.<br />
<br />
See [https://forum.pine64.org/showthread.php?tid=9043 this forum thread] for how to get going.<br />
<br />
* ''' Download location '''<br />
[https://github.com/neochapay/nemo-device-dont_be_evil/ Download location is here on GitHub.]<br />
<br />
* ''' user-id/password '''<br />
<br />
* ''' What works, what does not work '''<br />
[https://github.com/neochapay/nemo-device-dont_be_evil/ Scroll down the page here.]<br />
<br />
* ''' Where/how to report defects '''<br />
For more info please visit [https://github.com/neochapay/nemo-device-dont_be_evil neochapay's github page]<br />
<br />
* ''' Contributions '''<br />
<br />
<div class="center" style="background-color: lightyellow;">[[#top | '''Return to top of page''']]</div><br />
<br />
== KDE Neon ==<br />
http://files.pine64.org/sw/pine64_installer/json/plasma_mobile.png<br />
Based on KDE Neon for the desktop, comes with Plasma Mobile.<br />
<br />
* ''' Download location '''<br />
[https://images.plasma-mobile.org/pinephone/ Plasma mobile images can be found here.]<br />
<br />
* ''' user-id/password '''<br />
phablet/1234<br />
<br />
* ''' What works, what does not work '''<br />
<br />
* ''' Where/how to report defects '''<br />
<br />
* ''' Contributions '''<br />
<br />
<div class="center" style="background-color: lightyellow;">[[#top | '''Return to top of page''']]</div><br />
<br />
== NixOS ==<br />
http://files.pine64.org/sw/pine64_installer/json/nixos.png<br />
<br />
* ''' Download location '''<br />
<br />
* ''' user-id/password '''<br />
<br />
* ''' What works, what does not work '''<br />
<br />
* ''' Where/how to report defects '''<br />
See [https://nixos.org/nixos/community.html Bugs section on this page.]<br />
<br />
* ''' Contributions '''<br />
[https://nixos.org/nixos/community.html Details about contributions and donations are on the NixOS website.]<br />
<br />
<div class="center" style="background-color: lightyellow;">[[#top | '''Return to top of page''']]</div><br />
<br />
== LuneOS ==<br />
http://files.pine64.org/sw/pine64_installer/json/luneos.jpg<br />
Based on WebOS by LG, comes with Luna Next desktop environment.<br />
<br />
* ''' Download location '''<br />
[http://build.webos-ports.org/luneos-testing/images/pinephone/ LuneOS test image for PinePhone]<br />
Tofe recommends using bmaptool ; for example "bmaptool copy http://build.webos-ports.org/luneos-testing/images/pinephone/luneos-dev-image-pinephone-testing-0-15.rootfs.wic.gz /dev/mmcblk0". Rename .wic file to .img for standard dd usage. <br />
<br />
* ''' user-id/password '''<br />
<br />
* ''' What works, what does not work '''<br />
<br />
* ''' Where/how to report defects '''<br />
<br />
* ''' Contributions '''<br />
<br />
<div class="center" style="background-color: lightyellow;">[[#top | '''Return to top of page''']]</div><br />
<br />
== Aurora ==<br />
Available soon? https://mobile.twitter.com/neochapay/status/1189552654898188288?p=p<br />
<br />
<div class="center" style="background-color: lightyellow;">[[#top | '''Return to top of page''']]</div><br />
<br />
== Android 10 ==<br />
https://www.pine64.org/wp-content/uploads/2020/03/androidpp.jpg<br />
<br />
While I didn't find a download link yet, I did find this image on the March community update from Pine64 of an Android 10 rom running on the Pinephone by [https://github.com/Icenowy Moe Icenowy]. This image is absolutely bare-bones (no applications yet) and comments on IRC indicated it was a theoretical test only, rather than a step towards a release.<br />
<br />
<div class="center" style="background-color: lightyellow;">[[#top | '''Return to top of page''']]</div><br />
<br />
= Mobile Carrier APN Settings =<br />
<br />
See thread: https://forum.pine64.org/showthread.php?tid=9150<br />
<br />
Disclaimer: Go to the websites of or speak to the customer support lines of those carriers which you want to use. No guarantees. This list is simply user-generated and serves to demonstrate examples of what worked for them. This list is not exhaustive, does not cover all possible carriers.<br />
<br />
''' Distributions with Phosh (Debian + Phosh, pmOS + Phosh, Fedora) '''<br />
<br />
APN settings are either located in <code>Settings > Mobile > Access Point Names</code> (pureOS, Debian + Phosh) or <code>Settings > Network > Network Dropdown > Add new connection</code> (pmOS, Fedora).<br />
<br />
== ATT-based ==<br />
<br />
* ATT<br />
* Metro<br />
* <br />
<br />
== Red Pocket (USA) ==<br />
<br />
You can choose AT&T, Verizon, T-Mobile or Sprint network. Known to work with the GSMA (ATT) SIM, calls and SMS work.<br />
<br />
APN settings:<br />
<br />
name: Red Pocket<br />
APN: RESELLER<br />
<br />
== Mint Mobile (USA) ==<br />
<br />
Source: https://www.mintmobile.com/setup-for-android/<br />
<br />
Use the following APN settings:<br />
<br />
Name: Ultra<br />
APN: Wholesale<br />
<br />
Call their customer service to activate using the number on their website, or activate on their website: https://my.mintmobile.com/activation. You may also need to reboot your phone.<br />
<br />
== Tracfone (USA?) == <br />
<br />
BYOP sim card: works with T-Mobile and ATT compatible SIM cards provided in BYOP kit<br />
"Activation was as simple as putting the card in the phone and sending a text message."<br />
"I went to a different area today with better cell tower coverage and was able to make my first call from my pinephone."<br />
<br />
== Carriers That Do Not Work ==<br />
<br />
* FreedomPop (USA): VoIP-service. Customer service said they require Android 4.3+, and their free calling and texting works only with the Google Play app they make you use. So calls and texts don't work with non-smart phones and won't work with the PinePhone (even though it is a smart phone) because of software incompatibility. However, the data part still work if APN has been seen correctly set to fp.com.attz. You get 200MB free data per month. However, please watch out that you will get ding by $20 top up charge when over 200MB limit. <br />
* VoLTE services like Sprint or Verizon<br />
<br />
<div class="center" style="background-color: lightyellow;">[[#top | '''Return to top of page''']]</div><br />
<br />
= Other Resources =<br />
Community<br />
* [https://forum.pine64.org/forumdisplay.php?fid=120 PinePhone Forum]<br />
* [http://www.pine64.xyz:9090/?channels=PINEPHONE PinePhone IRC Channel]<br />
<br />
Hardware information<br />
* [[PinePhone]] hardware details in this Pine64 wiki.<br />
* [[PinePhone_v1.1_-_Braveheart]] hardware details specific to the Braveheart handsets.<br />
* The postmarketOS wiki has a detailed page on the PinePhone hardware [https://wiki.postmarketos.org/wiki/PINE64_PinePhone_(pine64-pinephone) here,] and the preceeding devkit [https://wiki.postmarketos.org/wiki/PINE64_Don%27t_be_evil_devkit_(pine64-dontbeevil) here.]<br />
<br />
Other software information<br />
* [https://linux-sunxi.org/Main_Page sunxi community wiki]<br />
* [https://xnux.eu/devices/pine64-pinephone.html megi feature/driver support matrix]<br />
* [https://megous.com/dl/tmp/README.bootui megi bootUI notes (for dualbooting/multibooting)]<br />
* [https://github.com/ayufan-pine64/boot-tools ayufan boot tools]<br />
<br />
Other<br />
* [https://store.pine64.org/?post_type=product Pine64 shop]<br />
* [https://www.pine64.org/2020/01/24/setting-the-record-straight-pinephone-misconceptions/ Pine64 blog on blobs]<br />
* [https://tuxphones.com/yet-another-librem-5-and-pinephone-linux-smartphone-comparison/ Martijn Braam Librem 5 comparison, especially covering openness/blobs]<br />
* [https://fam-ribbers.com/2019/12/28/State-of-Linux-on-mobile-and-common-misconceptions.html Bart Ribbers blog on linux distributions and desktop environments on mobile devices.]<br />
* [https://www.jeffgeerling.com/blog/2019/a2-class-microsd-cards-offer-no-better-performance-raspberry-pi Jeff Geerling on testing micro SD cards.]<br />
<br />
<div class="center" style="background-color: lightyellow;">[[#top | '''Return to top of page''']]</div></div>Anjanmomihttps://wiki.pine64.org/index.php?title=PinePhone&diff=5401PinePhone2020-03-28T07:08:40Z<p>Anjanmomi: Add resize instructions</p>
<hr />
<div>The PinePhone is a smartphone created by Pine64, capable of running mainline Linux and supported by many partner projects. The "BraveHeart" edition was the first publicly-available version of the phone, though it came without a fully functional OS (factory test image) and was geared specifically towards tinkerers and hackers. People looking for a stable consumer-grade phone should wait for the final release, which is expected to occur in March 2020 and will be available for at least five years.<br />
<br />
<br />
<br />
<br />
== "BraveHeart" PinePhone Unboxing and First Time Preparation Guide ==<br />
<br />
[[File:PinePhone1.jpg|400px|thumb|right|PinePhone is capable of running a multitude of different Linux mobile OSes]]<br />
<br />
From the factory the battery has a sticker on it that isolates the battery from the phone. The battery '''will not''' charge until this is removed.<br />
<br />
After unboxing remove the back panel. Then remove the battery and peel off the clear plastic sticker below it that isolates the charging contact. Then replace the battery. See [[#Battery]] for more info.<br />
<br />
If you power on the phone the factory test image will boot. RTL8723CS (WiFi modem) will fail unless there is a WiFi network in range for it to see and the battery is charged. EG25 will fail until battery is charged.<br />
<br />
By default there is no true OS image installed on Braveheart phones. An SD card with a bootable image needs to be inserted into the phone. See section 12 below for a list of OS options. Note the SD and sim sockets are stacked on each other The SD slot is the "shallower" socket and the SIM card goes in the "deeper" socket.<br />
<br />
'''Some videos that illustrate the process:'''<br />
<br />
[https://www.youtube.com/watch?v=ACcxegtDVBI Excellent first time guide video from Rob Braxman Tech]<br />
<br />
[https://www.youtube.com/watch?v=Z0FMW72_OYcI Flash an OS to microSD card video from Rob Braxman Tech]<br />
<br />
== Specifications ==<br />
<br />
'''Dimensions:''' 160.5 x 76.6 x 9.2mm <br><br />
'''Weight:''' Between 180-200 grams <br><br />
'''SIM Card:''' Micro-SIM <br><br />
'''Display:'''<br />
: '''Size:''' 5.95 inches (151mm) diagonal<br />
: '''Type:''' HD IPS capacitive touchscreen, 16M colors<br />
: '''Resolution:''' 1440x720, 18:9 ratio <br><br />
'''System on Chip:''' [https://linux-sunxi.org/A64 Allwinner A64] <br><br />
'''RAM:''' 2GB LPDDR3 SDRAM <br><br />
'''Internal Storage:''' 16GB eMMC, extendable up to 2TB via microSD, supports SDHC and SDXC <br><br />
'''Back Camera:''' Single 5MP, 1/4", LED Flash <br><br />
'''Selfie Camera:''' Single 2MP, f/2.8, 1/5" <br><br />
'''Sound:''' Loudspeaker, 3.5mm jack & mic (jack doubles as hardware UART if killswitch 6 is deactivated) <br><br />
'''Communication: [http://files.pine64.org/doc/datasheet/project_anakin/LTE_module/Quectel_EG25-G_LTE_Specification_V1.1_Preliminary_20180522%20(002).pdf EG25-G]'''<br />
: '''LTE:''' B1, B2, B3, B4, B5, B7, B8, B12, B13, B18, B19, B20, B25, B26, B28, B38, B39, B40, B41<br />
: '''WCDMA:''' B1, B2, B4, B5, B6, B8, B19<br />
: '''GSM:''' 850, 900, 1800, 1900 (MHz)<br />
: '''WLAN:''' Wi-Fi 802.11 b/g/n, single-band, hotspot<br />
: '''Bluetooth:''' 4.0, A2DP<br />
: '''GNSS:''' GPS/GLONASS/BeiDou/Galileo/QZSS, with A-GPS<br />
'''Sensors:''' Accelerometer, gyro, proximity, ambient light, compass <br><br />
'''[[#Killswitch configuration|Killswitches]]:''' Modem, Wifi & Bluetooth, Microphone, Cameras <br><br />
'''[[#Battery|Battery]]:''' [https://wiki.pine64.org/images/0/04/PinePhone_Battery_model_QZ01-396172-2750.pdf Lithium ion] Rated Capacity 2800mAh (10.64Wh), Typical Capacity 3000mAh (11.40Wh) (nominally replaceable with any Samsung J7 form-factor battery) <br><br />
'''I/O:''' USB Type-C (SlimPort), USB Host, DisplayPort Alternate Mode output, 15W 5V 3A Quick Charge, follows USB PD specification<br />
<br />
== PinePhone Board Information, Schematics and Certifications ==<br />
* PinePhone Main Board Schematic:<br />
** [http://files.pine64.org/doc/PinePhone/PinePhone%20Schematic%20v1.1%2020191031.pdf "Braveheart" PinePhone mainboard Schematic ver 1.1]<br />
** [http://files.pine64.org/doc/PinePhone/PinePhone%20mainboard%20top%20placement%20v1.1%2020191031.pdf "Braveheart" PinePhone mainboard component top placement drawing ver 1.1]<br />
** [http://files.pine64.org/doc/PinePhone/PinePhone%20mainboard%20bottom%20placement%20v1.1%2020191031.pdf "Braveheart" PinePhone mainboard component bottom placement drawing ver 1.1]<br />
* PinePhone USB-C Small Board Schematic:<br />
** [http://files.pine64.org/doc/PinePhone/PinePhone%20USB-C%20small%20board%20schematic%20v1.0%2020190730.pdf "Braveheart" PinePhone USB-C small board Schematic ver 1.0]<br />
** [http://files.pine64.org/doc/PinePhone/PinePhone%20USB-C%20small%20board%20top%20placement%20v1.0%2020190730.pdf "Braveheart" PinePhone USB-C small board component top placement drawing ver 1.0]<br />
** [http://files.pine64.org/doc/PinePhone/PinePhone%20USB-C%20small%20board%20bottom%20placement%20v1.0%2020190730.pdf "Braveheart" PinePhone USB-C small board component bottom placement drawing ver 1.0]<br />
* PINE A64 Certifications:<br />
** Not yet available<br />
<br />
== Datasheets for Components and Peripherals ==<br />
* Allwinner A64 SoC information:<br />
** [http://files.pine64.org/doc/datasheet/pine64/A64%20brief%20v1.0%2020150323.pdf Allwinner A64 SoC Brief Introduction]<br />
** [http://files.pine64.org/doc/datasheet/pine64/A64_Datasheet_V1.1.pdf Allwinner A64 SoC Data Sheet V1.1 (Official Released Version)]<br />
** [http://files.pine64.org/doc/datasheet/pine64/Allwinner_A64_User_Manual_V1.0.pdf Allwinner A64 SoC User Manual V1.0 (Official Release Version)]<br />
* X-Powers AXP803 PMU (Power Management Unit) information:<br />
** [http://files.pine64.org/doc/datasheet/pine64/AXP803_Datasheet_V1.0.pdf AXP803 PMIC Datasheet]<br />
* LPDDR3 (178 Balls) SDRAM:<br />
** [http://files.pine64.org/doc/datasheet/pinephone/ATL3A1632H12A_mobile_lpddr3_11x11.5_v1.0_1600.pdf Artmem LPDDR3 Datasheet]<br />
* eMMC information:<br />
** [http://files.pine64.org/doc/datasheet/pinephone/Kimtigo_fbga153_16_32_64_eMMC_datasheet_v1.3.pdf Kimtigo eMMC Datasheet]<br />
* CMOS Camera module information:<br />
** [http://files.pine64.org/doc/datasheet/pinephone/QZ01-rear-2019-0717(HW)%20Model.pdf PinePhone 5M Pixel Real CMOS Image Sensor Module]<br />
** [http://files.pine64.org/doc/datasheet/pinephone/OV5640_datasheet.pdf OV5640 5MP CMOS Image Sensor SoC for Rear Module Datasheet]<br />
** [http://files.pine64.org/doc/datasheet/pinephone/QZ01-front-2019-0717(HW)%20Model.pdf PinePhone 2M Pixel Front CMOS Image Sensor Module]<br />
** [http://files.pine64.org/doc/datasheet/pinephone/GC2145%20CSP%20DataSheet%20release%20V1.0_20131201.pdf GC2145 2MP CMOS Image Sensor SoC for Front Module Datasheet]<br />
* LCD Touch Screen Panel information:<br />
** [http://files.pine64.org/doc/datasheet/pinephone/PinePhone%20LCD-QZ01.pdf 5.99" 1440x720 LCD IPS Panel Specification]<br />
** [http://files.pine64.org/doc/datasheet/pinephone/ST7703_DS_v01_20160128.pdf ST7703 LCD Controller Datasheet]<br />
<br />
** [http://files.pine64.org/doc/datasheet/pinephone/GT917S-Datasheet.pdf GOODiX GT917S Capacitive Touch Controller Datasheet]<br />
* Lithium Battery information:<br />
** [http://files.pine64.org/doc/datasheet/pinephone/PinePhone%20QZ01%20Battery%20Specification.pdf PinePhone Lithium Battery Specification]<br />
** [http://files.pine64.org/doc/datasheet/pinephone/PinePhone%20QZ01%20Battery%20ZCV%20Curve%20Chart.xlsx PinePhone Lithium Battery ZCV Curve Chart]<br />
* Wifi/BT module information:<br />
<br />
* LTE module information:<br />
** [http://files.pine64.org/doc/datasheet/pinephone/Quectel_EG25-G_LTE_Specification_V1.0.pdf Quectel EG25-G LTE Module Specification]<br />
** [[Media:Quectel EC25EC21 AT Commands Manual V1.2.pdf|EC25&EC21 AT Commands Manual]]<br />
* Sensors:<br />
** [https://www.st.com/en/mems-and-sensors/lis3mdl.html ST LIS3MDL 3-axis Magnetomater Datasheet]<br />
** [https://www.invensense.com/products/motion-tracking/6-axis/mpu-6050/ InvenSense MPU-6050 Six-Axis (Gyro + Accelerometer) MEMS Datasheet]<br />
** [http://www.sensortek.com.tw/en/product/Proximity_Sensor_with_ALS.html SensorTek STK3335 Ambient Light Sensor and Proximity Sensor]<br />
* Digital Video to USB-C Bridge:<br />
** [https://www.analogix.com/en/system/files/AA-002281-PB-6-ANX7688_Product_Brief.pdf ANX7688 Product Brief]<br />
* Case information:<br />
** [http://files.pine64.org/doc/datasheet/pinephone/PinePhone%20Exploded%20Diagram%20ver%201.0.pdf PinePhone Case Exploded Diagram]<br />
** [http://files.pine64.org/doc/datasheet/pinephone/PinePhone%20Back%20Cover.stp PinePhone Back Battery Cover 3D file]<br />
<br />
== Developer works ==<br />
<br />
=== Megous ===<br />
[https://xnux.eu/howtos/pine64-pinephone-getting-started.html Getting start with PinePhone Hardware]<br />
<br />
[https://xnux.eu/devices/pine64-pinephone.html#toc-pine64-pinephone State of development progress]<br />
<br />
[https://xnux.eu/news.html PinePhone Technical News and Update, also applies to other Allwinner devices including PINE A64 SBC]<br />
<br />
== Hardware Revisions ==<br />
<br />
# [[Project Anakin]]<br />
# [[Project Don't be evil|"Project Don't Be Evil" devkit]]<br />
# [[PinePhone v1.0 - Dev|PinePhone v1.0 - Developer batch]]<br />
# [[PinePhone v1.1 - Braveheart]]<br />
<br />
== Hardware Addons ==<br />
<br />
===[[PinePhone Hardware Accessory Compatibility]] list===<br />
List of devices working with the PinePhone (depending on OS support)<br />
<br />
=== USB-C Connector ===<br />
The USB-C can be used to power the device, and offers USB2 host and OTG possibilities, and also can make use of the USB-C capability to integrate HDMI signals. Some USB-C hubs are available that offer power throughput, USB connection, HDMI port and Ethernet connection. The driver that would make this connection available is not supported at this time.<br />
<br />
===Pogo Pins===<br />
<br />
The PinePhone has 6 "pogo pins" on the back allowing for custom hardware extensions such as wireless charging or an IR blaster. The pogo pins provide access to an interrupt line, power input to charge the battery, 3.3v power source (disputed: see [[PinePhone_v1.1_-_Braveheart#Pogo_Pins_supply_5v0.2C_not_3v3]]), and an I2C interface.<br />
<br />
'''A step/stl/stp (3D model) file for the back cover is [http://files.pine64.org/doc/PinePhone/PinePhone%20Back%20Cover%20ver%200.5.stp freely available] for creating custom cases that interface with the pogo pins.'''<br />
<br />
=== Serial console ===<br />
[[File:Uart pinephone connection.gif|250px|thumb|left|UART serial connector for PineBook and PinePhone]]<br />
The PinePhone has a serial port in the headphone connector, it's activated by the 6th contact on the dipswitch. If the switch is on then the headphone connector is in audio mode, if it's off then it's in UART mode. This uart serial connection can also be used for communication with other devices from the PinePhone.<br />
<br />
The uart is 115200n8<br />
<br />
The pinout for the serial connector on the tablet side is:<br />
<br />
* Tip: RX<br />
* Ring: TX<br />
* Sleeve: GND<br />
<br />
The serial connection is 3.3V<br />
<br />
You can also buy the debug cable from [https://store.pine64.org PINE64 Store]<br />
The store cable uses a 4 ring plug, as seen in the [http://files.pine64.org/doc/pinebook/guide/Pinebook_Earphone_Serial_Console_Developer_Guide.pdf PDF], but a 3 ring plug works just as well. That cable uses a CH340 chipset based serial to USB converter, but any 3.3v serial connection can be used.<br />
<br />
<br />
<br />
<br />
<br />
<br />
== Killswitch configuration ==<br />
<br />
The PinePhone features six switches that can be used to configure its hardware. They are numbered 1-6, with switch 1 located nearest to the modem. Their on position is toward the top of the phone.<br />
<br />
[[File:PinePhone switches.jpeg|600px|thumb|left|Photo of Brave Heart switches from OSAKANA TARO on Twitter]]<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
# Modem: On enables 2G/3G/4G communication and GNSS hardware, off disables.<br />
# WiFi/BT: On enables Wi-Fi and Bluetooth communication hardware, off disables.<br />
# Microphone: On enables audio input from on-board microphones (not 3.5mm jack), off disables.<br />
# Rear camera: On enables the rear camera, off disables.<br />
# Front camera: On enables the front camera, off disables.<br />
# Headphone: On enables audio input and output via the 3.5mm audio jack, off switches the jack to hardware UART mode.<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
== Battery ==<br />
<br />
The [https://wiki.pine64.org/images/0/04/PinePhone_Battery_model_QZ01-396172-2750.pdf supplied battery] is [https://forum.pine64.org/showthread.php?tid=8120&pid=53307#pid53307 meant to be] compatible with Samsung part number EB-BJ700BBC / BBE / CBE from the 2015 J7 phone. There is [https://forum.pine64.org/showthread.php?tid=8563&pid=55053#pid55053 a report] that the EB-BJ700CBE isn't quite the same size, causing the back not to fit properly.<br />
<br />
The battery terminals, in order from nearest the edge to nearest the middle, are:<br />
<br />
# +ve<br />
# thermistor<br />
# -ve<br />
# not connected<br />
<br />
The battery includes a protection circuit that isolates it in a number of fault conditions, including if it is discharged too far. The fully discharged battery [https://forum.pine64.org/showthread.php?tid=8563&pid=55377#pid55377 can be recharged] by connecting the phone to a charger. Once it has charged sufficiently you will be able to boot the phone.<br />
<br />
If your battery is hard to remove from the phone, try loosening the screws around it. Possibly cutting up a piece of plastic and sliding it under the battery as a pull tab can work too.<br />
<br />
'''Your Brave Heart phone ships with a plastic sticker between the battery and the phone. You need to open the back cover (gently), then remove the battery and finally remove the sticker. This is to protect the device from turning on during shipping.<br />
<br />
[[File:PinePhone battery1.png|600px|thumb|centre|Photo of Brave Heart case from OSAKANA TARO on Twitter]]<br />
[[File:PinePhone battery3.jpeg|600px|thumb|centre|Photo of Brave Heart battery sticker from OSAKANA TARO on Twitter]]<br />
<br />
There has been [https://forum.pine64.org/showthread.php?tid=8960 a report on the forum] that this sticker can bend the pins that make connection between the battery and the phone: please check your setup carefully after removing the sticker.<br />
<br />
'''Note''': the EG25 modem and RTL8723CS wifi/bluetooth do not work without battery power, even if you are supplying enough power to the Pinephone with USB-C.<br />
<br />
== Modem and Carrier Support ==<br />
There is a document about using the modem by user ''megi'' [https://megous.com/dl/tmp/modem.txt here.] This is from circa 18 Jan 2020. <br />
<br />
Note at this date there is no TL;DR version - the script at the end to disable the modem before power off is pretty essential to avoid corrupting your modem's flash memory.<br />
<br />
<br />
To check if the PinePhone is supported on your carrier: <br />
<br />
Search for your carrier on [https://www.frequencycheck.com/ frequencycheck.com] and compare the carrier's LTE/GSM/WCDMA frequencies to the PinePhone's supported frequencies (listed under the [[#Specifications|specifications]] section).<br />
<br />
It is likely that there will be a few frequencies that your carrier uses which are not supported by the PinePhone. Not all of the carrier's frequencies need to be supported by the PinePhone for it to work - as long as ''most'' of them are supported, you will still get good coverage.<br />
<br />
== Factory Test Requirements ==<br />
<br />
Most of the self tests should just work, but a couple of them will fail unless certain requirements are met.<br />
<br />
=== RTL8723CS - WiFi ===<br />
<br />
* The self test needs a visible access point nearby so it can discover an SSID.<br />
* The self test may fail if the battery charge is too low. <br />
<br />
=== EG25 - Modem ===<br />
<br />
* A working micro-SIM that doesn't require a PIN to unlock<br />
* Enough battery charge<br />
<br />
== Operating Systems ==<br />
The PinePhone will automatically boot from microSD if a bootable card is inserted. Although it is technically possible to use any ARM distro (because the PinePhone uses the mainline kernel), there are a few that are designed specifically for <br />
<br />
The [[PinePhone Software Release#Software_Releases|'PinePhone Software Releases']] page has a complete list of currently supported Operating System images that work with the PinePhone as well as other related software information. <br />
<br />
The list includes OS images and descriptions of:<br />
<br />
[{{fullurl:PinePhone_Software_Release#postmarketOS}} http://files.pine64.org/sw/pine64_installer/json/postmarketos.png] [[PinePhone_Software_Release#postmarketOS|'''postmarketOS''']]<br />
<br />
[{{fullurl:PinePhone_Software_Release#Ubuntu_Touch_by_UBPorts}} http://files.pine64.org/sw/pine64_installer/json/ubports.png] [[PinePhone_Software_Release#Ubuntu_Touch_by_UBPorts|'''Ubuntu Touch by UBPorts''']]<br />
<br />
[[File:Ryodebianphosh.png]] [[PinePhone_Software_Release#Debian_.2B_Phosh|'''Debian + Phosh''']]<br />
<br />
[{{fullurl:PinePhone_Software_Release#Maemo_Leste}} http://files.pine64.org/sw/pine64_installer/json/maemo_leste.png] [[PinePhone_Software_Release#Maemo_Leste|'''Maemo Leste''']]<br />
<br />
[{{fullurl:PinePhone_Software_Release#SailfishOS}} http://files.pine64.org/sw/pine64_installer/json/sailfishos.png] [[PinePhone_Software_Release#SailfishOS|'''SailfishOS''']]<br />
<br />
[{{fullurl:PinePhone_Software_Release#Manjaro_ARM}} http://files.pine64.org/sw/pine64_installer/json/manjaro.png] [[PinePhone_Software_Release#Manjaro_ARM|'''Manjaro ARM''']]<br />
<br />
[{{fullurl:PinePhone_Software_Release#NixOS}} http://files.pine64.org/sw/pine64_installer/json/nixos.png] [[PinePhone_Software_Release#NixOS|'''NixOS''']]<br />
<br />
[{{fullurl:PinePhone_Software_Release#LuneOS}} http://files.pine64.org/sw/pine64_installer/json/luneos.jpg] [[PinePhone_Software_Release#LuneOS|'''LuneOS''']]<br />
<br />
[{{fullurl:PinePhone_Software_Release#Nemo_Mobile}} http://files.pine64.org/sw/pine64_installer/json/nemo_mobile.png] [[PinePhone_Software_Release#Nemo_Mobile|'''Nemo Mobile''']]<br />
<br />
[{{fullurl:PinePhone_Software_Release#KDE_Neon}} http://files.pine64.org/sw/pine64_installer/json/plasma_mobile.png] [[PinePhone_Software_Release#KDE_Neon|'''KDE Neon''']]<br />
<br />
[{{fullurl:PinePhone_Software_Release#Arch_Linux_ARM}} http://files.pine64.org/sw/pine64_installer/json/archlinux.png] [[PinePhone_Software_Release#Arch_Linux_ARM|'''Arch Linux ARM''']]<br />
<br />
[[File:Auroraos.jpeg]] [[PinePhone_Software_Release#Aurora|'''Aurora''']]<br />
<br />
=== Flashing eMMC using Jumpdrive ===<br />
[[File:jumpdrive.jpg|400px|thumb|right|Jumpdrive running on the PinePhone]]<br />
The internal eMMC flash storage can be flashed using the Jumpdrive utility by Danct12 and Martijn from postmarketOS.<br />
This utility boots from micro SD and exposes the internal eMMC flash storage when the PinePhone is connected to a computer.<br />
The process of flashing and OS to the exposed and mounted eMMC is identical to that of any other storage medium - e.g. a SD card. You can use the 'DD' command or a utility such as Etcher or Gnome Disks, etc.<br />
<br />
<br />
Latest Jumpdrive can be found [https://github.com/dreemurrs-embedded/Jumpdrive/releases/ here]. <br />
<br />
'''If you've found an issue, or want to improve the tool'''<br />
* Issues: https://github.com/dreemurrs-embedded/Jumpdrive/issues<br />
* Pull Requests: https://github.com/dreemurrs-embedded/Jumpdrive/pulls<br />
<br />
<br />
'''Detailed Usage Instructions'''<br />
<br />
# Download the Jumpdrive image<br />
# Flash the Jumpdrive image to a micro SD card<br />
# Boot the PinePhone from the Jumpdrive micro SD card<br />
# Connect the PinePhone to your computer using USB-A -> USB-C cable<br />
# Flash the exposed (mounted) PinePhone drive with a chosen OS image<br />
# Once the flashing process is complete, disconnect the PinePhone from your PC, power it down and remove the Jumpdrive SD card<br />
# The process is now finished, and you can boot from eMMC<br />
<br />
Jumpdrive also acts as a rescue image in case if you messed up your installation. To do so, you can telnet to '''172.16.42.1''', mount rootfs and fix it!<br />
<br />
<br />
'''Resize file system'''<br />
<br />
If you flash a 4G img distro (ie. phosh+debian) to your eemc, your eemc will only have a 3.7G partition on it. To use the entire 14.7G on the eemc, run the following commands:<br />
<br />
# sudo cfdisk /dev/sdX<br />
# Change to [Resize] in the ncurses program, resize the 3.7G partition to 14.7G, and [Write]<br />
# sudo resize2fs /dev/sdXY<br />
<br />
Replace X with your drive's name. Replace Y with the paritition you resized in cfdisk.</div>Anjanmomi