Difference between revisions of "User:Pfeerick/Pfeerick-scratch-page"
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
 (Created page with "<table class="infobox" style="width:22em;float:right;" cellspacing="5"> <tr><th colspan="2" class="" style="text-align:center; font-size:125%; font-weight:bold; background: #d...")  | 
				m (Fxc moved page Pfeerick-scratch-page to User:Pfeerick/Pfeerick-scratch-page: user page)  | 
				||
| (9 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
{{note|1=DO NOT USE THIS PAGE AS A REFERENCE FOR THE PINECUBE}}  | |||
General waffle about the Pinecube.   | |||
<table class="infobox" style="width:22em;float:right;" cellspacing="5">  | <table class="infobox" style="width:22em;float:right;" cellspacing="5">  | ||
<tr><th colspan="2" class="" style="text-align:center; font-size:125%; font-weight:bold; background: #dedede;">Pinecube</th></tr>  | <tr><th colspan="2" class="" style="text-align:center; font-size:125%; font-weight:bold; background: #dedede;">Pinecube</th></tr>  | ||
| Line 5: | Line 9: | ||
<tr class=""><th scope="row" style="text-align:left;">CPU</th><td class="" style="">Quad-Core ARM Cortex-A53</td></tr>  | <tr class=""><th scope="row" style="text-align:left;">CPU</th><td class="" style="">Quad-Core ARM Cortex-A53</td></tr>  | ||
<tr class=""><th scope="row" style="text-align:left;">Camera</th><td class="" style="">OV5640, 5Mpx</td></tr>  | <tr class=""><th scope="row" style="text-align:left;">Camera</th><td class="" style="">OV5640, 5Mpx</td></tr>  | ||
<tr class=""><th scope="row" style="text-align:left;">Storage</th><td class="" style="">MicroSD slot, bootable</  | <tr class=""><th scope="row" style="text-align:left;">Storage</th><td class="" style=""><ul><li>MicroSD slot, bootable</li><li>128Mb SPI Nor Flash, bootable</li></ul></td></tr>  | ||
<tr class=""><th scope="row" style="text-align:left;">Dimensions</th><td class="" style="">55mm x 51mm x 51.5mm</td></tr>  | <tr class=""><th scope="row" style="text-align:left;">Dimensions</th><td class="" style="">55mm x 51mm x 51.5mm</td></tr>  | ||
<tr class=""><th scope="row" style="text-align:left;">Network</th><td class="" style="">WiFi</td></tr>  | <tr class=""><th scope="row" style="text-align:left;">Network</th><td class="" style="">WiFi</td></tr>  | ||
<tr class=""><th scope="row" style="text-align:left;">Screen</th><td class="" style="">optional 4.5" RGB LCD screen</td></tr>  | <tr class=""><th scope="row" style="text-align:left;">Screen</th><td class="" style="">optional 4.5" RGB LCD screen</td></tr>  | ||
<tr class=""><th scope="row" style="text-align:left;">Misc</th><td class="" style="">Volume and home buttons</br>Speakers and microphone</td></tr>  | |||
<tr><th colspan="2" class="" style="text-align:center; background: #dedede;">Power</th></tr>  | <tr><th colspan="2" class="" style="text-align:center; background: #dedede;">Power</th></tr>  | ||
<tr class=""><th scope="row" style="text-align:left;">MicroUSB/GPIO</th><td class="" style="">5V 1A </td></tr>  | <tr class=""><th scope="row" style="text-align:left;">MicroUSB/GPIO</th><td class="" style="">5V 1A </td></tr>  | ||
<tr class=""><th scope="row" style="text-align:left;">PoE</th><td class="" style="">4V-18V</td></tr>  | <tr class=""><th scope="row" style="text-align:left;">PoE</th><td class="" style="">4V-18V</td></tr>  | ||
<tr class=""><th scope="row" style="text-align:left;">Battery</th><td class="" style="">optional 950-1600mAh</td></tr>  | <tr class=""><th scope="row" style="text-align:left;">Battery</th><td class="" style="">optional 950-1600mAh</td></tr>  | ||
</table>  | </table>  | ||
== Board Layout ==  | |||
[[File:PineCube-768x576.jpg|400px]]  | |||
{{note|1=BELOW INFO IS COMPLETELY INVALID FOR PINECUBE}}  | |||
{| class="wikitable sortable"  | |||
! Diagram !! Schematic<br>designator || Silkscreen<br>label !! Number<br>of pins !! Description  | |||
|-  | |||
| style="text-align: center;" | 2 || U39 || PI-2-bus || style="text-align: center;" | 40 || Pi-2 bus   | |||
|-  | |||
| style="text-align: center;" | 4 || J8 || +FAN- || style="text-align: center;" | 2 || PWM controlled fan header  | |||
|-  | |||
| style="text-align: center;" | 5 || J10 || SPDIF || style="text-align: center;" | 3 || SPDIF header  | |||
|-  | |||
|}  | |||
== I/O ==  | |||
* 10/100Mbps Ethernet with passive PoE  | |||
* USB 2.0 A host  | |||
* Internal microphone  | |||
* Speaker  | |||
* Camera  | |||
* Volume and home buttons  | |||
== GPIO ==  | |||
[[File:PineCube_GPIO_Pinout.png|right|300px]]  | |||
Consists of a 26 header pin connector with:  | |||
* 2x 3.3V Output  | |||
* 2x 5V Output  | |||
* 1x I2C  | |||
* 2x UART  | |||
* 2x PWM  | |||
* 1x SPI  | |||
* 1x eMMC/SDIO/SD (8-bit)  | |||
* 6x Interrupts  | |||
'''Note: Since some interfaces are multiplexed, they can't be all used at same time'''  | |||
GPIO Header Pinout: ([[:File:PineCube_GPIO.pdf|PDF]], [https://pine64.gami.ee/pinecube/gpio-pinout.html HTML])  | |||
[[PineCube GPIO and Test Points]]  | |||
== Power ==  | |||
** 5V 1A from MicroUSB Port or GPIO port  | |||
** 4V-18V from Ethernet passive PoE  | |||
* '''Battery:''' optional 950-1600mAh model: 903048 Lithium Polymer Ion Battery Pack, can be purchase at [https://www.amazon.com/AKZYTUE-1200mAh-Battery-Rechargeable-Connector/dp/B07TWHHCNK/ Amazon.com]  | |||
== PineCube board information, schematics and certifications ==  | |||
* PineCube mainboard schematic:  | |||
** [http://files.pine64.org/doc/PineCube/PineCube%20MainBoard%20Schematic%20ver%201.0-20200727.pdf PineCube mainboard Released Schematic ver 1.0]  | |||
* PineCube faceboard schematic:  | |||
** [http://files.pine64.org/doc/PineCube/PineCube%20FaceBoard%20Schematic%20ver%201.0-20200727.pdf PineCube faceboard Released Schematic ver 1.0]  | |||
* PineCube certifications:  | |||
== Datasheets for components and peripherals ==  | |||
* Allwinner (Sochip) S3 SoC information:  | |||
** [http://files.pine64.org/doc/datasheet/pinecube/S3_Datasheet_V1.1-20180123.pdf Sochip S3 SoC Data Sheet V1.1]  | |||
* X-Powers AXP209 PMU (Power Management Unit) information:  | |||
** [http://files.pine64.org/doc/datasheet/pinecube/AXP209_Datasheet_v1.0en.pdf AXP209 PMIC datasheet]  | |||
* CMOS camera module information:  | |||
** [http://files.pine64.org/doc/datasheet/pinephone/OV5640_datasheet.pdf OV5640 5MP CMOS Image Sensor SoC datasheet]  | |||
* LCD touch screen panel information:  | |||
* Lithium battery information:  | |||
* WiFi/BT module information:  | |||
** [http://files.pine64.org/doc/datasheet/pinecube/rtl8189es.pdf RTL8189ES specification]  | |||
== Operating Systems ==  | |||
=== Mainlining Efforts ===  | |||
{| class="wikitable"  | |||
!colspan="3"|Linux kernel  | |||
|-  | |||
| Type  | |||
| Link  | |||
| Available in version  | |||
|-  | |||
| Devicetree Entry Pinecube  | |||
| https://lkml.org/lkml/2020/9/22/1241  | |||
| expected in 5.10  | |||
|-  | |||
| Correction for AXP209 driver  | |||
| https://lkml.org/lkml/2020/9/22/1243  | |||
| 5.9  | |||
|-  | |||
!colspan="3"|U-boot  | |||
|-  | |||
|  | |||
|  | |||
|  | |||
|-  | |||
!colspan="3"|Buildroot  | |||
|-  | |||
|  | |||
|  | |||
|  | |||
|}  | |||
=== Stock Linux ===  | |||
== SDK ==  | |||
==== Stock Linux ====  | |||
* [http://files.pine64.org/SDK/PineCube/PineCube%20Stock%20BSP-SDK%20ver1.0.7z Direct Download from pine64.org]  | |||
** MD5 (7zip file): efac108dc98efa0a1f5e77660ba375f8  | |||
** File Size: 3.50GB  | |||
===== How to compile =====  | |||
Recommended system requirements:  | |||
* OS: (L)Ubuntu 16.04  | |||
* CPU: 64-bit based  | |||
* Memory: 8 GB or higher  | |||
* Disk: 15 GB free hard disk space  | |||
'''Install required packages'''  | |||
<pre>  | |||
sudo apt-get install p7zip-full git make u-boot-tools libxml2-utils bison build-essential gcc-arm-linux-gnueabi g++-arm-linux-gnueabi zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32z1-dev  | |||
</pre>  | |||
'''Install older Make 3.82 and Java JDK 6'''  | |||
<pre>  | |||
pushd /tmp  | |||
wget https://ftp.gnu.org/gnu/make/make-3.82.tar.gz  | |||
tar xfv make-3.82.tar.gz  | |||
cd make-3.82  | |||
./configure  | |||
make  | |||
sudo apt purge -y make  | |||
sudo ./make install  | |||
cd ..  | |||
# Please, download jdk-6u45-linux-x64.bin from https://www.oracle.com/java/technologies/javase-java-archive-javase6-downloads.html (requires free login)  | |||
chmod +x jdk-6u45-linux-x64.bin   | |||
./jdk-6u45-linux-x64.bin   | |||
sudo mkdir /opt/java/  | |||
sudo mv jdk1.6.0_45/ /opt/java/  | |||
sudo update-alternatives --install /usr/bin/javac javac /opt/java/jdk1.6.0_45/bin/javac 1  | |||
sudo update-alternatives --install /usr/bin/java java /opt/java/jdk1.6.0_45/bin/java 1  | |||
sudo update-alternatives --install /usr/bin/javaws javaws /opt/java/jdk1.6.0_45/bin/javaws 1  | |||
sudo update-alternatives --config javac  | |||
sudo update-alternatives --config java  | |||
sudo update-alternatives --config javaws  | |||
popd  | |||
</pre>  | |||
'''Unpack SDK and then compile and pack the image'''  | |||
<pre>  | |||
7z x 'PineCube Stock BSP-SDK ver1.0.7z'  | |||
mv 'PineCube Stock BSP-SDK ver1.0' pinecube-sdk  | |||
cd pinecube-sdk/camdroid  | |||
source build/envsetup.sh  | |||
lunch  | |||
mklichee  | |||
make -j3  | |||
pack  | |||
</pre>  | |||
[[Category:PineCube]] [[Category:Allwinner(Sochip) S3]]  | |||
Latest revision as of 09:20, 7 December 2021
DO NOT USE THIS PAGE AS A REFERENCE FOR THE PINECUBE
General waffle about the Pinecube.
| Pinecube | |
|---|---|
| CPU | Allwinner(Sochip) ARM Cortex-A7 MPCore, 800MHz | 
| RAM | 128MB DDR3 | 
| CPU | Quad-Core ARM Cortex-A53 | 
| Camera | OV5640, 5Mpx | 
| Storage | 
  | 
| Dimensions | 55mm x 51mm x 51.5mm | 
| Network | WiFi | 
| Screen | optional 4.5" RGB LCD screen | 
| Misc | Volume and home buttons Speakers and microphone  | 
| Power | |
| MicroUSB/GPIO | 5V 1A | 
| PoE | 4V-18V | 
| Battery | optional 950-1600mAh | 
Board Layout
BELOW INFO IS COMPLETELY INVALID FOR PINECUBE
| Diagram | Schematic designator  | 
Silkscreen label  | 
Number of pins  | 
Description | 
|---|---|---|---|---|
| 2 | U39 | PI-2-bus | 40 | Pi-2 bus | 
| 4 | J8 | +FAN- | 2 | PWM controlled fan header | 
| 5 | J10 | SPDIF | 3 | SPDIF header | 
I/O
- 10/100Mbps Ethernet with passive PoE
 - USB 2.0 A host
 - Internal microphone
 - Speaker
 - Camera
 - Volume and home buttons
 
GPIO
Consists of a 26 header pin connector with:
- 2x 3.3V Output
 - 2x 5V Output
 - 1x I2C
 - 2x UART
 - 2x PWM
 - 1x SPI
 - 1x eMMC/SDIO/SD (8-bit)
 - 6x Interrupts
 
Note: Since some interfaces are multiplexed, they can't be all used at same time
GPIO Header Pinout: (PDF, HTML)
Power
- 5V 1A from MicroUSB Port or GPIO port
 - 4V-18V from Ethernet passive PoE
 
- Battery: optional 950-1600mAh model: 903048 Lithium Polymer Ion Battery Pack, can be purchase at Amazon.com
 
PineCube board information, schematics and certifications
- PineCube mainboard schematic:
 - PineCube faceboard schematic:
 - PineCube certifications:
 
Datasheets for components and peripherals
- Allwinner (Sochip) S3 SoC information:
 
- X-Powers AXP209 PMU (Power Management Unit) information:
 
- CMOS camera module information:
 
- LCD touch screen panel information:
 
- Lithium battery information:
 
- WiFi/BT module information:
 
Operating Systems
Mainlining Efforts
| Linux kernel | ||
|---|---|---|
| Type | Link | Available in version | 
| Devicetree Entry Pinecube | https://lkml.org/lkml/2020/9/22/1241 | expected in 5.10 | 
| Correction for AXP209 driver | https://lkml.org/lkml/2020/9/22/1243 | 5.9 | 
| U-boot | ||
| Buildroot | ||
Stock Linux
SDK
Stock Linux
- Direct Download from pine64.org
- MD5 (7zip file): efac108dc98efa0a1f5e77660ba375f8
 - File Size: 3.50GB
 
 
How to compile
Recommended system requirements:
- OS: (L)Ubuntu 16.04
 - CPU: 64-bit based
 - Memory: 8 GB or higher
 - Disk: 15 GB free hard disk space
 
Install required packages
sudo apt-get install p7zip-full git make u-boot-tools libxml2-utils bison build-essential gcc-arm-linux-gnueabi g++-arm-linux-gnueabi zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32z1-dev
Install older Make 3.82 and Java JDK 6
pushd /tmp wget https://ftp.gnu.org/gnu/make/make-3.82.tar.gz tar xfv make-3.82.tar.gz cd make-3.82 ./configure make sudo apt purge -y make sudo ./make install cd .. # Please, download jdk-6u45-linux-x64.bin from https://www.oracle.com/java/technologies/javase-java-archive-javase6-downloads.html (requires free login) chmod +x jdk-6u45-linux-x64.bin ./jdk-6u45-linux-x64.bin sudo mkdir /opt/java/ sudo mv jdk1.6.0_45/ /opt/java/ sudo update-alternatives --install /usr/bin/javac javac /opt/java/jdk1.6.0_45/bin/javac 1 sudo update-alternatives --install /usr/bin/java java /opt/java/jdk1.6.0_45/bin/java 1 sudo update-alternatives --install /usr/bin/javaws javaws /opt/java/jdk1.6.0_45/bin/javaws 1 sudo update-alternatives --config javac sudo update-alternatives --config java sudo update-alternatives --config javaws popd
Unpack SDK and then compile and pack the image
7z x 'PineCube Stock BSP-SDK ver1.0.7z' mv 'PineCube Stock BSP-SDK ver1.0' pinecube-sdk cd pinecube-sdk/camdroid source build/envsetup.sh lunch mklichee make -j3 pack

