Difference between revisions of "Project Don't be evil"

From PINE64
Jump to navigation Jump to search
(syntax)
 
(26 intermediate revisions by the same user not shown)
Line 1: Line 1:
= The Project "Don't be evil" - Phase 2 of PINE64 Smartphone "PinePhone" Development Kit  =
[[File:Qee3ovj.jpg|thumb]]


Project Don't be evil is an actual smartphone developer kit for the PINE64 Smartphone dubbed "PinePhone". It is used in the early stages of development as a starting point for affiliated projects.  
The Project '''Don't be evil''' is the phase two of ''PINE64's'' smartphone, the [[PinePhone]] Development Kit. Project Don't be evil is an actual smartphone developer kit for the PINE64 Smartphone dubbed "PinePhone". It is used in the early stages of development as a starting point for affiliated projects.
PinePhone development has been broken down into three distinct phases:  
 
The PinePhone development has been broken down into three distinct phases:  
* First phase - Project Anakin  
* First phase - Project Anakin  
* Second phase - purpose-built development kit code named "Don't be evil" and introduced at FOSDEM 2019  
* Second phase - purpose-built development kit code named "Don't be evil" and introduced at FOSDEM 2019  
* Lastly, the third phase which is the PinePhone itself - scheduled to be prototype released in Q3 2019 and BTO batch released with mobile OS parents in Q4 2019 (pending on software development).
* Lastly, the third phase which is the PinePhone itself - scheduled to be prototype released in Q3 2019 and BTO batch released with mobile OS parents in Q4 2019 (pending on software development).


[[Image:Qee3ovj.jpg|200px]]
[[File:Qsud2Gt.jpg|thumb]]
[[Image:Qsud2Gt.jpg|200px]]
[[File:Martijnpocket.jpg|thumb]]
[[Image:Martijnpocket.jpg|200px]]


= Project Don't be evil, Baseboard and SOPine Module Information, and Schematics =
== Baseboard and SOPine Module Information, and Schematics ==
* Baseboard Dimensions: 165mm x 76mm x 19.5mm
* Baseboard Dimensions: 165mm x 76mm x 19.5mm
* Input Power: DC 5V @ 2A, 3.7V Li-Ion battery connector, USB type-C connector
* Input Power: DC 5V @ 2A, 3.7V Li-Ion battery connector, USB type-C connector
* Baseboard Schematic:
 
** [https://files.pine64.org/doc/PinePhone/Pinephone-devkit%20Board%20Structure.pdf "Don't Be Evil" PinePhone Dev kit Baseboard Structure]
Baseboard Schematic:
** [https://files.pine64.org/doc/PinePhone/Pinephone-devkit-SCH%20Ver%201.1.pdf "Don't Be Evil" PinePhone Dev kit Baseboard Ver 1.1 Schematic]
* [https://files.pine64.org/doc/PinePhone/Pinephone-devkit%20Board%20Structure.pdf "Don't Be Evil" PinePhone Dev kit Baseboard Structure]
** [https://files.pine64.org/doc/PinePhone/Pinephone%20Dev%20Kit%20Ver%201.1_PCB.pdf "Don't Be Evil" PinePhone Dev kit Baseboard Ver 1.1 PCB Artwork]
* [https://files.pine64.org/doc/PinePhone/Pinephone-devkit-SCH%20Ver%201.1.pdf "Don't Be Evil" PinePhone Dev kit Baseboard Ver 1.1 Schematic]
** [https://files.pine64.org/doc/PinePhone/Pinephone-devkit-SCH%20Ver%201.2.pdf "Don't Be Evil" PinePhone Dev kit Baseboard Ver 1.2 Schematic]
* [https://files.pine64.org/doc/PinePhone/Pinephone%20Dev%20Kit%20Ver%201.1_PCB.pdf "Don't Be Evil" PinePhone Dev kit Baseboard Ver 1.1 PCB Artwork]
** [https://files.pine64.org/doc/PinePhone/Pinephone%20Dev%20Kit%20Ver%201.2_PCB.pdf "Don't Be Evil" PinePhone Dev kit Baseboard Ver 1.2 PCB Artwork]
* [https://files.pine64.org/doc/PinePhone/Pinephone-devkit-SCH%20Ver%201.2.pdf "Don't Be Evil" PinePhone Dev kit Baseboard Ver 1.2 Schematic]
* SOPine Module Schematic:
* [https://files.pine64.org/doc/PinePhone/Pinephone%20Dev%20Kit%20Ver%201.2_PCB.pdf "Don't Be Evil" PinePhone Dev kit Baseboard Ver 1.2 PCB Artwork]
** [https://files.pine64.org/doc/SOPINE-A64/SOPINE-A64-Schematic-ver-0.9.pdf SOPine Module Schematic]
 
** [https://files.pine64.org/doc/SOPINE-A64/SOPINE-A64-Pin-Assignments-ver-1.0.pdf SOPine Module Pin Assignment ver 1.0]
SOPine Module Schematic:
* Wifi/BT module information:
* [https://files.pine64.org/doc/SOPINE-A64/SOPINE-A64-Schematic-ver-0.9.pdf SOPine Module Schematic]
** [https://files.pine64.org/doc/Pine%20A64%20Schematic/A64-DB-WIFI-BT-REV%20B.pdf PINE A64 Wifi/BT Module Schematic]
* [https://files.pine64.org/doc/SOPINE-A64/SOPINE-A64-Pin-Assignments-ver-1.0.pdf SOPine Module Pin Assignment ver 1.0]
 
Wifi/BT module information:
* [https://files.pine64.org/doc/Pine%20A64%20Schematic/A64-DB-WIFI-BT-REV%20B.pdf PINE A64 Wifi/BT Module Schematic]
 
Pin assignment:
* [https://files.pine64.org/doc/Pine%20A64%20Schematic/Pine%20A64%20Pin%20Assignment%20160119.pdf PINE A64 Pi-2/Eular/Ext Bus/Wifi Bus Connector Pin Assignment (Updated 15/Feb/2016)]
* [https://files.pine64.org/doc/Pine%20A64%20Schematic/Pine%20A64%20Pin%20Assignment%20160119.pdf PINE A64 Pi-2/Eular/Ext Bus/Wifi Bus Connector Pin Assignment (Updated 15/Feb/2016)]


 
=== SoC and Memory Specification ===
= SoC and Memory Specification =
Based on the Allwinner A64/R18. The R18 and A64 are identical SoC but R18 committed for 10 years supply by vendor.
* Based on Allwinner A64/R18
** '''R18 and A64 are identical SoC but R18 committed for 10 years supply by vendor.'''


[[File:Allwinner_A64.jpg]] [[File:Allwinner_R18.png]]
[[File:Allwinner_A64.jpg]] [[File:Allwinner_R18.png]]


== CPU Architecture ==
=== CPU Architecture ===
* [https://www.arm.com/products/processors/cortex-a/cortex-a53-processor.php Quad-core ARM Cortex-A53 Processor@1152Mhz]
* [https://www.arm.com/products/processors/cortex-a/cortex-a53-processor.php Quad-core ARM Cortex-A53 Processor@1152Mhz]
* A power-efficient ARM v8 architecture
* A power-efficient ARM v8 architecture
Line 44: Line 47:
* 512KB L2 cache
* 512KB L2 cache


== GPU Architecture ==
=== GPU Architecture ===
* [https://www.arm.com/products/multimedia/mali-gpu/ultra-low-power/mali-400.php ARM Mali400MP2 Dual-core GPU]
* [https://www.arm.com/products/multimedia/mali-gpu/ultra-low-power/mali-400.php ARM Mali400MP2 Dual-core GPU]
* Support OpenGL ES 2.0 and OpenVG 1.1 standard
* Support OpenGL ES 2.0 and OpenVG 1.1 standard


== System Memory ==
=== System Memory ===
* RAM Memory Variants: 2GB LPDDR3.
* RAM Memory Variants: 2GB LPDDR3.
* Storage Memory: SPI Flash and optional eMMC module from 16GB up to 64GB
* Storage Memory: SPI Flash and optional eMMC module from 16GB up to 64GB


=== Datasheets for Components and Peripherals ===
Allwinner A64/R18 SoC information:
* Note: the R18 and A64 are identical SoC but the R18 is committed for a 10 years supply by the vendor.
* [https://files.pine64.org/doc/datasheet/pine64/A64%20brief%20v1.0%2020150323.pdf Allwinner A64 SoC Brief Introduction]
* [https://files.pine64.org/doc/datasheet/pine64/Allwinner-R18-Brief%20Sheet.pdf Allwinner R18 SoC Brief Introduction]
* [https://files.pine64.org/doc/datasheet/pine64/A64_Datasheet_V1.1.pdf Allwinner A64/R18 SoC Data Sheet V1.1 (Official Released Version)]
* [https://files.pine64.org/doc/datasheet/pine64/Allwinner_A64_User_Manual_V1.0.pdf Allwinner A64/R18 SoC User Manual V1.0 (Official Release Version)]


== Datasheets for Components and Peripherals ==
X-Powers AXP803 PMU (Power Management Unit) information:
* Allwinner A64/R18 SoC information:
* [https://files.pine64.org/doc/datasheet/pine64/AXP803_Datasheet_V1.0.pdf AXP803 PMIC Datasheet]
** '''R18 and A64 are identical SoC but R18 committed for 10 years supply by vendor.'''
** [https://files.pine64.org/doc/datasheet/pine64/A64%20brief%20v1.0%2020150323.pdf Allwinner A64 SoC Brief Introduction]
** [https://files.pine64.org/doc/datasheet/pine64/Allwinner-R18-Brief%20Sheet.pdf Allwinner R18 SoC Brief Introduction]
** [https://files.pine64.org/doc/datasheet/pine64/A64_Datasheet_V1.1.pdf Allwinner A64/R18 SoC Data Sheet V1.1 (Official Released Version)]
** [https://files.pine64.org/doc/datasheet/pine64/Allwinner_A64_User_Manual_V1.0.pdf Allwinner A64/R18 SoC User Manual V1.0 (Official Release Version)]
* X-Powers AXP803 PMU (Power Management Unit) information:
** [https://files.pine64.org/doc/datasheet/pine64/AXP803_Datasheet_V1.0.pdf AXP803 PMIC Datasheet]
* LPDDR3 information:
** [https://files.pine64.org/doc/datasheet/pine64/AWL3A1632_mobile_lpddr3_1600Mbps.pdf Allwinner LPDDR3 Datasheet]
** [https://files.pine64.org/doc/datasheet/pine64/FORESEE%20178ball%2012x11.5%20LPDDR3%2016G%20Spec%20V1.0-1228.pdf Foresee LPDDR3 Datasheet]
** [https://files.pine64.org/doc/datasheet/pine64/K4E6E304EE-EGCE.pdf Samsung LPDDR3 Datasheet]
** [https://files.pine64.org/doc/datasheet/pine64/LPDDR3%20178ball%208Gb_H9CCNNN8JTALAR_Rev1.0.pdf Hynix LPDDR3 Datasheet]
* eMMC information:
** [https://files.pine64.org/doc/rock64/PINE64_eMMC_Module_20170719.pdf PINE64 eMMC module schematic]
** [https://files.pine64.org/doc/rock64/usb%20emmc%20module%20adapter%20v2.pdf PINE64 USB adapter for eMMC module V2 schematic]
** [https://files.pine64.org/doc/rock64/USB%20adapter%20for%20eMMC%20module%20PCB.tar PINE64 USB adapter for eMMC module PCB in JPEG]
** [https://files.pine64.org/doc/datasheet/pine64/SDINADF4-16-128GB-H%20data%20sheet%20v1.13.pdf SanDisk eMMC Datasheet]
** [https://files.pine64.org/doc/datasheet/pine64/H26M64003DQR%20Datasheet.pdf Hynix eMMC Datasheet]
** [https://files.pine64.org/doc/datasheet/pine64/FORESEE_eMMC_NCEMBSF9-xxG%20SPEC%20A0%2020150730.pdf Foresee eMMC Datasheet]
* SPI NOR Flash information:
** [https://files.pine64.org/doc/datasheet/pine64/w25q128jv%20spi%20revc%2011162016.pdf WinBond 128Mb SPI Flash Datasheet]
** [https://files.pine64.org/doc/datasheet/pine64/GD25Q128C-Rev2.5.pdf GigaDevice 128Mb SPI Flash Datasheet]
* '''Project Don't be evil module/component related information:'''
** 2MPixel front CMOS Camera module information:
*** [https://files.pine64.org/doc/datasheet/pinephone/GC20355Mp-module_for_pinephone_devkit.pdf 2MP CMOS Image Sensor Module Drawing]
*** [https://files.pine64.org/doc/datasheet/pinephone/GC2035%20Product%20Brief.pdf GalaxyCore GC2035 2MP CMOS Image Sensor Product Brief]
*** [https://files.pine64.org/doc/datasheet/pinephone/GC2035%20DataSheet.pdf GalaxyCore GC2035 2MP CMOS Image Sensor Datasheet]
** 5MPixel Rear CMOS Camera module information:
*** [https://files.pine64.org/doc/datasheet/pinephone/ATK-OV5640-5Mp-module_for_pinephone_devkit.pdf 5MP CMOS Image Sensor Module Drawing]
*** [https://files.pine64.org/doc/datasheet/pinephone/OV5640_datasheet.pdf OmniVision OV5640 5MP CMOS Image Sensor Datasheet]
*** [https://www.arducam.com/downloads/modules/OV5640/OV5640_Software_app_note_parallel.pdf OmniVision OV5640 5MP CMOS Image Sensor Software Application Note]
** LCD Touch Screen Panel information:
*** [https://files.pine64.org/doc/datasheet/pinephone/XBD572-IPS-HI010A%20SPEC.pdf 5.7" 1440x720 IPS LCD Panel Specification]
*** [https://files.pine64.org/doc/datasheet/pinephone/JD9365D_DS_Preliminary_V0.01_20170427.pdf fiti JD9365D LCD Controller Datasheet]
*** [https://files.pine64.org/doc/datasheet/pinephone/XBD572-IPS-HI010A%20SPEC.pdf 5.7" Front Panel Touch Screen Specification]
*** [https://files.pine64.org/doc/datasheet/pinephone/FT6336GU_Upgrade_Spec_Ver1.0.pdf FocalTech FT6336GU Front Panel Touch Screen Specification]
** Lithium Battery information:
*** [https://files.pine64.org/doc/datasheet/pinephone/ncr18650b.pdf Panasonic NCR18650B 3350mAH Lithium Ion Battery Specification]
** Ethernet PHY information:
*** [https://files.pine64.org/doc/datasheet/pine64/rtl8211e(g)-vb(vl)-cg_datasheet_1.6.pdf Realtek RTL8211 10/100/1000M Ethernet Transceiver]
** Wifi/BT module information:
*** [https://files.pine64.org/doc/datasheet/pine64/RTL8723BS.pdf Realtek RTL8723BS WiFi with BT SDIO]
** LTE module information:
*** [https://files.pine64.org/doc/datasheet/project_anakin/LTE_module/Quectel_EC25_LTE_Specification_V1.4.pdf Quectel EC25 LTE Module Specification]
*** [https://files.pine64.org/doc/datasheet/project_anakin/LTE_module/Quectel_EG25-G_LTE_Specification_V1.1_Preliminary_20180522%20(002).pdf Quectel EG25-G LTE Module Specification]
*** [https://files.pine64.org/doc/datasheet/project_anakin/LTE_module/Quectel_EC25&EC21_QuecCell_AT_Commands_Manual_V1.1.pdf Quectel EC25 LTE Module AT Cammands Set Manual]
*** [https://files.pine64.org/doc/datasheet/project_anakin/LTE_module/Quectel_EC25_Hardware_Design_V1.3.pdf Quectel EC25 LTE Module Hardware Design Guide]
*** [https://files.pine64.org/doc/datasheet/project_anakin/LTE_module/Quectel_EC25_Reference_Design_Rev.D_20161111.pdf Quectel EC25 LTE Module Reference Design Guide]
** Sensors:
*** [https://www.st.com/en/mems-and-sensors/lis3mdl.html ST LIS3MDL 3-axis Magnetomater Datasheet]
*** [https://www.invensense.com/products/motion-tracking/6-axis/mpu-6050/ InvenSense MPU-6050 Six-Axis (Gyro + Accelerometer) MEMS Datasheet]
*** [https://www.sensortek.com.tw/en/product/Proximity_Sensor_with_ALS.html SensorTek STK3335 Ambient Light Sensor and Proximity Sensor]


LPDDR3 information:
* [https://files.pine64.org/doc/datasheet/pine64/AWL3A1632_mobile_lpddr3_1600Mbps.pdf Allwinner LPDDR3 Datasheet]
* [https://files.pine64.org/doc/datasheet/pine64/FORESEE%20178ball%2012x11.5%20LPDDR3%2016G%20Spec%20V1.0-1228.pdf Foresee LPDDR3 Datasheet]
* [https://files.pine64.org/doc/datasheet/pine64/K4E6E304EE-EGCE.pdf Samsung LPDDR3 Datasheet]
* [https://files.pine64.org/doc/datasheet/pine64/LPDDR3%20178ball%208Gb_H9CCNNN8JTALAR_Rev1.0.pdf Hynix LPDDR3 Datasheet]


eMMC information:
* [https://files.pine64.org/doc/rock64/PINE64_eMMC_Module_20170719.pdf PINE64 eMMC module schematic]
* [https://files.pine64.org/doc/rock64/usb%20emmc%20module%20adapter%20v2.pdf PINE64 USB adapter for eMMC module V2 schematic]
* [https://files.pine64.org/doc/rock64/USB%20adapter%20for%20eMMC%20module%20PCB.tar PINE64 USB adapter for eMMC module PCB in JPEG]
* [https://files.pine64.org/doc/datasheet/pine64/SDINADF4-16-128GB-H%20data%20sheet%20v1.13.pdf SanDisk eMMC Datasheet]
* [https://files.pine64.org/doc/datasheet/pine64/H26M64003DQR%20Datasheet.pdf Hynix eMMC Datasheet]
* [https://files.pine64.org/doc/datasheet/pine64/FORESEE_eMMC_NCEMBSF9-xxG%20SPEC%20A0%2020150730.pdf Foresee eMMC Datasheet]


= Software and OS Image Downloads =
SPI NOR Flash information:
* [https://files.pine64.org/doc/datasheet/pine64/w25q128jv%20spi%20revc%2011162016.pdf WinBond 128Mb SPI Flash Datasheet]
* [https://files.pine64.org/doc/datasheet/pine64/GD25Q128C-Rev2.5.pdf GigaDevice 128Mb SPI Flash Datasheet]


== Postmarket OS Early Alpha test build [microSD Boot] ==
=== Related datasheets ===
[[File:PostmarketOS logo|right|100px]]
2MPixel front CMOS Camera module information:
* [https://files.pine64.org/doc/datasheet/pinephone/GC20355Mp-module_for_pinephone_devkit.pdf 2MP CMOS Image Sensor Module Drawing]
* [https://files.pine64.org/doc/datasheet/pinephone/GC2035%20Product%20Brief.pdf GalaxyCore GC2035 2MP CMOS Image Sensor Product Brief]
* [https://files.pine64.org/doc/datasheet/pinephone/GC2035%20DataSheet.pdf GalaxyCore GC2035 2MP CMOS Image Sensor Datasheet]


* Suitable for PinePhone "Don't Be Evil" Dev Kit version 1.1 and version 1.2
5MPixel Rear CMOS Camera module information:
* There are two type of LCD panels. For long touch screen cable, please use the build with inverted wording.
* [https://files.pine64.org/doc/datasheet/pinephone/ATK-OV5640-5Mp-module_for_pinephone_devkit.pdf 5MP CMOS Image Sensor Module Drawing]
* DD image (for 8GB microSD card and above)
* [https://files.pine64.org/doc/datasheet/pinephone/OV5640_datasheet.pdf OmniVision OV5640 5MP CMOS Image Sensor Datasheet]
** [https://images.postmarketos.org/pinephone/ Direct download from postmarketOS image site]
* [https://www.arducam.com/downloads/modules/OV5640/OV5640_Software_app_note_parallel.pdf OmniVision OV5640 5MP CMOS Image Sensor Software Application Note]
** [https://wiki.postmarketos.org/wiki/Pine_Don%27t_be_evil_devkit_(pine-dontbeevil) postmarketOS PinePhone "Don't Be Evil" dev kit wiki site]


== UBPorts mainline build ==
LCD Touch Screen Panel information:
[[File:ubports.png|right|100px]]
* [https://files.pine64.org/doc/datasheet/pinephone/XBD572-IPS-HI010A%20SPEC.pdf 5.7" 1440x720 IPS LCD Panel Specification]
* [https://ci.ubports.com/job/rootfs-pinephone/ UBPorts Jenkins for PinePhone]
* [https://files.pine64.org/doc/datasheet/pinephone/JD9365D_DS_Preliminary_V0.01_20170427.pdf fiti JD9365D LCD Controller Datasheet]
* [https://files.pine64.org/doc/datasheet/pinephone/XBD572-IPS-HI010A%20SPEC.pdf 5.7" Front Panel Touch Screen Specification]
* [https://files.pine64.org/doc/datasheet/pinephone/FT6336GU_Upgrade_Spec_Ver1.0.pdf FocalTech FT6336GU Front Panel Touch Screen Specification]


The link above seems to be broken, if so try this:
Lithium Battery information:
[https://ci.ubports.com/job/rootfs/job/rootfs-pinephone/ Jenkins Project rootfs-pinephone]
* [https://files.pine64.org/doc/datasheet/pinephone/ncr18650b.pdf Panasonic NCR18650B 3350mAH Lithium Ion Battery Specification]


== KDE Plasma Mobile build ==
Ethernet PHY information:
[[File:plasma_mobile.png|right|100px]]
* [https://files.pine64.org/doc/datasheet/pine64/rtl8211e(g)-vb(vl)-cg_datasheet_1.6.pdf Realtek RTL8211 10/100/1000M Ethernet Transceiver]
* Not Yet Ready *


== Sailfish OS build ==
Wifi/BT module information:
[[File:sailfishos.png|right|100px]]
* [https://files.pine64.org/doc/datasheet/pine64/RTL8723BS.pdf Realtek RTL8723BS WiFi with BT SDIO]


The Sailfish OS image is build on Gitlab CI, the latest image can be installed using our [https://raw.githubusercontent.com/sailfish-on-dontbeevil/flash-it/master/flash-it.sh flashing script] written in Bash.
LTE module information:
* [https://files.pine64.org/doc/datasheet/project_anakin/LTE_module/Quectel_EC25_LTE_Specification_V1.4.pdf Quectel EC25 LTE Module Specification]
* [https://files.pine64.org/doc/datasheet/project_anakin/LTE_module/Quectel_EG25-G_LTE_Specification_V1.1_Preliminary_20180522%20(002).pdf Quectel EG25-G LTE Module Specification]
* [https://files.pine64.org/doc/datasheet/project_anakin/LTE_module/Quectel_EC25&EC21_QuecCell_AT_Commands_Manual_V1.1.pdf Quectel EC25 LTE Module AT Cammands Set Manual]
* [https://files.pine64.org/doc/datasheet/project_anakin/LTE_module/Quectel_EC25_Hardware_Design_V1.3.pdf Quectel EC25 LTE Module Hardware Design Guide]
* [https://files.pine64.org/doc/datasheet/project_anakin/LTE_module/Quectel_EC25_Reference_Design_Rev.D_20161111.pdf Quectel EC25 LTE Module Reference Design Guide]


The script downloads the image and bootloader from our CI, extracts everything and burns it onto the SD card.
Sensors:
* [https://www.st.com/en/mems-and-sensors/lis3mdl.html ST LIS3MDL 3-axis Magnetomater Datasheet]
* [https://www.invensense.com/products/motion-tracking/6-axis/mpu-6050/ InvenSense MPU-6050 Six-Axis (Gyro + Accelerometer) MEMS Datasheet]
* [https://www.sensortek.com.tw/en/product/Proximity_Sensor_with_ALS.html SensorTek STK3335 Ambient Light Sensor and Proximity Sensor]


'''Instructions:'''
== Software releases ==


1. Download the flashing script
* [https://linux-sunxi.org/Linux_mainlining_effort#Status_Matrix A64 mainline status matrix chart]


2. Insert a microSD card in your device
Some these OS images labelled as '''beta or nightly builds''' which means they are only fit for testing purposes. These images should be used '''at your own risk''' and are not fit for normal use.


3. Make the script executable: <code>chmod +x flash-it.sh</code>
* [https://github.com/anarsoul/linux-build/releases/latest Arch Linux XFCE]
* [https://www.stdin.xyz/downloads/people/longsleep/pine64-images/ longsleep BSP Linux]
* [https://github.com/ayufan-pine64/linux-build/releases/latest/ ayufan Linux]


4. Execute it: <code>./flash-it.sh</code>
=== postmarketOS ===
[[File:PostmarketOS logo.png|right|100px]]


5. Follow the instructions. Some commands in the script require root permissions (for example: mounting and flashing the SD card).
Download:
* [https://images.postmarketos.org/pinephone/ Direct download from postmarketOS image site]


'''Note''': The script will format and flash the SD card, make sure that you don't have any important data on the SD card!
Instructions:
* [https://wiki.postmarketos.org/wiki/Pine_Don%27t_be_evil_devkit_(pine-dontbeevil) postmarketOS PinePhone "Don't Be Evil" dev kit wiki site]


== Maemo Leste build ==
Notes:
[[File:Maemoleste-logo.png|right|100px]]
* postmarketOS early alpha test build for microSD boot
* for 8GB microSD cards and above
* Suitable for PinePhone "Don't Be Evil" Dev Kit version 1.1 and version 1.2
* There are two type of LCD panels. For long touch screen cable, please use the build with inverted wording.


* Works on dev kit versions 1.1 and 1.2
=== Sailfish OS ===
* DD image to a micro SD (8GB+) or eMMC
[[File:SailfishOS_logo.png|right|100px]]
** [https://maedevu.maemo.org/images/pinephone-dontbeevil/ Maemo Leste test builds download]


== NixOS build ==
The Sailfish OS image is build on Gitlab CI, the latest image can be installed using our [https://raw.githubusercontent.com/sailfish-on-dontbeevil/flash-it/master/flash-it.sh flashing script] written in Bash.
[[File:NixOS.webp|right|100px]]
* Not Yet Ready *


== LuneOS build ==
The script downloads the image and bootloader from our CI, extracts everything and burns it onto the SD card.
[[File:luneos.jpg|right|100px]]


* [https://build.webos-ports.org/luneos-testing/images/pinephone/ LuneOS test image for PinePhone and thanks to Tofe]
Instructions:
* Tofe recommends using bmaptool ; for example "bmaptool copy https://build.webos-ports.org/luneos-testing/images/pinephone/luneos-dev-image-pinephone-testing-0-15.rootfs.wic.gz /dev/mmcblk0"
# Download the flashing script
# Insert a microSD card in your device
# Make the script executable: <code>chmod +x flash-it.sh</code>
# Execute it: <code>./flash-it.sh</code>
# Follow the instructions. Some commands in the script require root permissions (for example: mounting and flashing the SD card).


== Nemo Mobile build ==
Notes:
[[File:nemo_mobile.png|right|100px]]
* The script will format and flash the SD card, make sure that you don't have any important data on the SD card!
* Not Yet Ready *


= Mali-400 64-bit Driver =
=== Maemo Leste ===
[[File:Maemoleste-logo.png|right|100px]]


== Mali-400 64-bit Driver [20171220] ==
Download:
* [[Mali_Driver|Mali 64-bit X11 and Wayland Driver Download]]
* [https://maedevu.maemo.org/images/pinephone-dontbeevil/ Maemo Leste test builds download]


Notes:
* Works on dev kit versions 1.1 and 1.2
* Write the image to a micro SD (8GB+) or eMMC


== Quick Links to Build Sources of OS Images ==
=== LuneOS ===
* [https://linux-sunxi.org/Linux_mainlining_effort#Status_Matrix A64 mainline status matrix chart]
[[File:Luneos-logo-256.png|right|100px]]


'''Some these OS images labelled as <span style="color:#FF0000">beta or nightly builds</span> which means they are only fit for testing purposes
Download:
* [https://build.webos-ports.org/luneos-testing/images/pinephone/ LuneOS test image for PinePhone and thanks to Tofe]


'''These images should be <span style="color:#FF0000">used at your own risk</span> and are not fit for normal use'''
Notes:
* It is recommended to use bmaptool
* for example <code>bmaptool copy https://build.webos-ports.org/luneos-testing/images/pinephone/luneos-dev-image-pinephone-testing-0-15.rootfs.wic.gz /dev/mmcblk0</code>


* [https://github.com/anarsoul/linux-build/releases/latest Arch Linux XFCE]
== Mali Driver ==
* [https://www.stdin.xyz/downloads/people/longsleep/pine64-images/ longsleep BSP Linux]
For the Mali driver see [[Mali_Driver]].
* [https://github.com/ayufan-pine64/linux-build/releases/latest/ ayufan Linux]


= Errata for ver1.1 and ver1.2 board =
== Errata for ver1.1 and ver1.2 board ==


'''1. Please DON'T insert micro SIM card to dev kit board micro SIM card slot, the SIM data, VPP, and GND signal have been misplaced. A miciPCIe adapter with sim card holder 9shown as below photo) will be provide to developers to correct this mistake.'''
1. Please DON'T insert micro SIM card to dev kit board micro SIM card slot, the SIM data, VPP, and GND signal have been misplaced. A miciPCIe adapter with sim card holder 9shown as below photo) will be provide to developers to correct this mistake.


[[File:MiniPCIe_with_sim_slot_adapter.png|200px]]
[[File:MiniPCIe_with_sim_slot_adapter.png|200px]]


 
2. The PinePhone dev kit doesn't charge due to VBUS on SOPine module is not connected. Please connect R9688 solder pads with 0 ohm resistor or using thin wire bridge up the solder pads. Location shows as below:
'''2. The PinePhone dev kit doesn't charge due to VBUS on SOPine module is not connected. Please connect R9688 solder pads with 0 ohm resistor or using thin wire bridge up the solder pads. Location shows as below:'''


[[File:PinePhone_VBUS_charging_small.png|200px]]
[[File:PinePhone_VBUS_charging_small.png|200px]]


 
3. The SOPINE's SPI NOR flash storage and the devkit's camera flash (heh) share the same GPIO pins. The flash storage may not be used.
'''3. The SOPINE's SPI NOR flash storage and the devkit's camera flash (heh) share the same GPIO pins. The flash storage may not be used.'''


[[File:SOPINE-SPI-Flash.png|200px]] [[File:Pinephone-1.1-flash-schematic.png|200px]]
[[File:SOPINE-SPI-Flash.png|200px]] [[File:Pinephone-1.1-flash-schematic.png|200px]]


4. On the camera flash GPIO conflict, the new assignment of GPIO PB3 pin for SGM3140 FLASH_EN and GPIP PD7 for FLASH_TRIGOUT. Please note that PD7 is also LCD_ID pin which may not be used.


'''4. On the camera flash GPIO conflict, the new assignment of GPIO PB3 pin for SGM3140 FLASH_EN and GPIP PD7 for FLASH_TRIGOUT. Please note that PD7 is also LCD_ID pin which may not be used.'''
Images:
 
[[File:GPIO_PB3_location.jpg|200px]]
GPIO PB3 location
 
[[File:U54_SGM3140_FLASH_EN pin location.jpg|200px]]
U54 SGM3140 FLASH_EN pin location


[[File:Flash_GPIO_Reassigned.jpg|200px]]
<gallery>
Flash GPIOs Reassigned wiring
File:GPIO_PB3_location.jpg|GPIO PB3 location
File:U54_SGM3140_FLASH_EN pin location.jpg|U54 SGM3140 FLASH_EN pin location
File:Flash_GPIO_Reassigned.jpg|Flash GPIOs Reassigned wiring
</gallery>


= Other Resources =
== Other Resources ==
* [https://linux-sunxi.org/Pine64#Manufacturer_images Linux Sunxi Wiki page on PINE A64]
* [https://linux-sunxi.org/Pine64#Manufacturer_images Linux Sunxi Wiki page on PINE A64]
* [https://github.com/apritzel/pine64 Linux Image created by Andre Przywara]
* [https://github.com/apritzel/pine64 Linux Image created by Andre Przywara]

Latest revision as of 20:24, 12 April 2023

Qee3ovj.jpg

The Project Don't be evil is the phase two of PINE64's smartphone, the PinePhone Development Kit. Project Don't be evil is an actual smartphone developer kit for the PINE64 Smartphone dubbed "PinePhone". It is used in the early stages of development as a starting point for affiliated projects.

The PinePhone development has been broken down into three distinct phases:

  • First phase - Project Anakin
  • Second phase - purpose-built development kit code named "Don't be evil" and introduced at FOSDEM 2019
  • Lastly, the third phase which is the PinePhone itself - scheduled to be prototype released in Q3 2019 and BTO batch released with mobile OS parents in Q4 2019 (pending on software development).
Qsud2Gt.jpg
Martijnpocket.jpg

Baseboard and SOPine Module Information, and Schematics

  • Baseboard Dimensions: 165mm x 76mm x 19.5mm
  • Input Power: DC 5V @ 2A, 3.7V Li-Ion battery connector, USB type-C connector

Baseboard Schematic:

SOPine Module Schematic:

Wifi/BT module information:

Pin assignment:

SoC and Memory Specification

Based on the Allwinner A64/R18. The R18 and A64 are identical SoC but R18 committed for 10 years supply by vendor.

Allwinner A64.jpg Allwinner R18.png

CPU Architecture

  • Quad-core ARM Cortex-A53 Processor@1152Mhz
  • A power-efficient ARM v8 architecture
  • 64 and 32bit execution states for scalable high performance
  • Support NEON Advanced SIMD (Single Instruction Multiple Data) instruction for acceleration of media and signal processing function
  • Support Large Physical Address Extensions(LPAE)
  • VFPv4 Floating Point Unit
  • 32KB L1 Instruction cache and 32KB L1 Data cache
  • 512KB L2 cache

GPU Architecture

System Memory

  • RAM Memory Variants: 2GB LPDDR3.
  • Storage Memory: SPI Flash and optional eMMC module from 16GB up to 64GB

Datasheets for Components and Peripherals

Allwinner A64/R18 SoC information:

X-Powers AXP803 PMU (Power Management Unit) information:

LPDDR3 information:

eMMC information:

SPI NOR Flash information:

Related datasheets

2MPixel front CMOS Camera module information:

5MPixel Rear CMOS Camera module information:

LCD Touch Screen Panel information:

Lithium Battery information:

Ethernet PHY information:

Wifi/BT module information:

LTE module information:

Sensors:

Software releases

Some these OS images labelled as beta or nightly builds which means they are only fit for testing purposes. These images should be used at your own risk and are not fit for normal use.

postmarketOS

PostmarketOS logo.png

Download:

Instructions:

Notes:

  • postmarketOS early alpha test build for microSD boot
  • for 8GB microSD cards and above
  • Suitable for PinePhone "Don't Be Evil" Dev Kit version 1.1 and version 1.2
  • There are two type of LCD panels. For long touch screen cable, please use the build with inverted wording.

Sailfish OS

SailfishOS logo.png

The Sailfish OS image is build on Gitlab CI, the latest image can be installed using our flashing script written in Bash.

The script downloads the image and bootloader from our CI, extracts everything and burns it onto the SD card.

Instructions:

  1. Download the flashing script
  2. Insert a microSD card in your device
  3. Make the script executable: chmod +x flash-it.sh
  4. Execute it: ./flash-it.sh
  5. Follow the instructions. Some commands in the script require root permissions (for example: mounting and flashing the SD card).

Notes:

  • The script will format and flash the SD card, make sure that you don't have any important data on the SD card!

Maemo Leste

Maemoleste-logo.png

Download:

Notes:

  • Works on dev kit versions 1.1 and 1.2
  • Write the image to a micro SD (8GB+) or eMMC

LuneOS

Luneos-logo-256.png

Download:

Notes:

Mali Driver

For the Mali driver see Mali_Driver.

Errata for ver1.1 and ver1.2 board

1. Please DON'T insert micro SIM card to dev kit board micro SIM card slot, the SIM data, VPP, and GND signal have been misplaced. A miciPCIe adapter with sim card holder 9shown as below photo) will be provide to developers to correct this mistake.

MiniPCIe with sim slot adapter.png

2. The PinePhone dev kit doesn't charge due to VBUS on SOPine module is not connected. Please connect R9688 solder pads with 0 ohm resistor or using thin wire bridge up the solder pads. Location shows as below:

PinePhone VBUS charging small.png

3. The SOPINE's SPI NOR flash storage and the devkit's camera flash (heh) share the same GPIO pins. The flash storage may not be used.

SOPINE-SPI-Flash.png Pinephone-1.1-flash-schematic.png

4. On the camera flash GPIO conflict, the new assignment of GPIO PB3 pin for SGM3140 FLASH_EN and GPIP PD7 for FLASH_TRIGOUT. Please note that PD7 is also LCD_ID pin which may not be used.

Images:

Other Resources