Difference between revisions of "PineCube"

From PINE64
Jump to navigation Jump to search
(Add compilation instructions for BSP SDK)
(17 intermediate revisions by 5 users not shown)
Line 1: Line 1:
PAGE UNDER CONSTRUCTION, INFO SUBJECT TO CHANGE
{{note|1=PAGE UNDER CONSTRUCTION, INFO SUBJECT TO CHANGE}}




Line 12: Line 12:
* '''CPU:''' Allwinner(Sochip) ARM Cortex-A7 MPCore, 800MHz
* '''CPU:''' Allwinner(Sochip) ARM Cortex-A7 MPCore, 800MHz
* '''RAM:''' 128MB DDR3
* '''RAM:''' 128MB DDR3
* '''I/O:''' 10/100Mbps Ethernet with passive PoE, USB 2.0 A host, 26 pins GPIO port, internal mic
* '''I/O:'''
* '''Network'''
** 10/100Mbps Ethernet with passive PoE
** USB 2.0 A host
** 26 pins GPIO port
*** 2x 3.3V Ouptut
*** 2x 5V Output
*** 1x I2C
*** 2x UART
*** 2x PWM
*** 1x SPI
*** 1x eMMC/SDIO/SD (8-bit)
*** 6x Interrupts
*** '''Note: Interfaces are multiplexed, so they can't be all used at same time'''
** Internal microphone
* '''Network:'''
** WiFi
** WiFi
* '''Screen:''' optional 4.5" RGB LCD screen
* '''Screen:''' optional 4.5" RGB LCD screen
* '''Battery:''' optional 1200mAh (1.2Ah)
* '''Misc. features:'''  
* '''Misc. features:'''  
** Volume and home buttons
** Volume and home buttons
** Speakers and Microphone
** Speakers and Microphone
** DC in: 5V 1A from microUSB Port and GPIO port, 8V-24V from Ethernet passive PoE.
* '''Power DC in:'''
 
** 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 board information, schematics and certifications ==
Line 29: Line 43:
** [http://files.pine64.org/doc/PineCube/PineCube%20FaceBoard%20Schematic%20ver%201.0-20200727.pdf PineCube faceboard Released Schematic ver 1.0]
** [http://files.pine64.org/doc/PineCube/PineCube%20FaceBoard%20Schematic%20ver%201.0-20200727.pdf PineCube faceboard Released Schematic ver 1.0]
* PineCube certifications:
* PineCube certifications:
** [http://files.pine64.org/doc/cert/PineCube-FCC-SDOC%20certification%20S20072502302001.pdf PineCube FCC Certificate]
** [http://files.pine64.org/doc/cert/PineCube-CE-EMC%20certification%20S20072502301001.pdf PineCube CE RED Certificate]
** [http://files.pine64.org/doc/cert/PineCube-ROHS%20Test%20Report.pdf PineCube ROHS Test Report]




Line 40: Line 57:


* CMOS camera module information:
* CMOS camera module information:
** [http://files.pine64.org/doc/datasheet/pinecube/CH-5A-DV-V2.0%20Specification.pdf PineCube Camera Module Specification]
** [http://files.pine64.org/doc/datasheet/pinephone/OV5640_datasheet.pdf OV5640 5MP CMOS Image Sensor SoC datasheet]
** [http://files.pine64.org/doc/datasheet/pinephone/OV5640_datasheet.pdf OV5640 5MP CMOS Image Sensor SoC datasheet]


Line 49: Line 67:
** [http://files.pine64.org/doc/datasheet/pinecube/rtl8189es.pdf RTL8189ES specification]
** [http://files.pine64.org/doc/datasheet/pinecube/rtl8189es.pdf RTL8189ES specification]


* GPIO Header Pinout: ([[:File:PineCube_GPIO.pdf|PDF]], [https://pine64.gami.ee/pinecube/gpio-pinout.html HTML])
[[File:PineCube_GPIO_Pinout.png|700px]]
== 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
|-
|
|
|
|}
=== NixOS ===
* [https://github.com/danielfullmer/pinecube-nixos danielfullmer's Github]




== Operating Systems ==


=== Stock Linux ===
=== Stock Linux ===
Line 74: Line 131:
'''Install required packages'''
'''Install required packages'''
<pre>
<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
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>
</pre>
'''Install older Make 3.82 and Java JDK 6'''
'''Install older Make 3.82 and Java JDK 6'''
Line 102: Line 159:
'''Unpack SDK and then compile and pack the image'''
'''Unpack SDK and then compile and pack the image'''
<pre>
<pre>
7z x PineCube\ Stock\ BSP-SDK\ ver1.0.7z
7z x 'PineCube Stock BSP-SDK ver1.0.7z'
mv PineCube\ Stock\ BSP-SDK\ ver1.0.7z pinecube-sdk
mv 'PineCube Stock BSP-SDK ver1.0' pinecube-sdk
cd pinecube-sdk/camdroid
cd pinecube-sdk/camdroid
source build/envsetup.sh
source build/envsetup.sh
Line 111: Line 168:
pack
pack
</pre>
</pre>
[[Category:PineCube]] [[Category:Allwinner(Sochip) S3]]

Revision as of 19:06, 19 October 2020

PAGE UNDER CONSTRUCTION, INFO SUBJECT TO CHANGE


Specifications

  • Dimensions: 55mm x 51mm x 51.5mm
  • Weight: 55g
  • Storage:
    • MicroSD slot, bootable
    • 128Mb SPI Nor Flash, bootable
  • Cameras: OV5640, 5Mpx
  • CPU: Allwinner(Sochip) ARM Cortex-A7 MPCore, 800MHz
  • RAM: 128MB DDR3
  • I/O:
    • 10/100Mbps Ethernet with passive PoE
    • USB 2.0 A host
    • 26 pins GPIO port
      • 2x 3.3V Ouptut
      • 2x 5V Output
      • 1x I2C
      • 2x UART
      • 2x PWM
      • 1x SPI
      • 1x eMMC/SDIO/SD (8-bit)
      • 6x Interrupts
      • Note: Interfaces are multiplexed, so they can't be all used at same time
    • Internal microphone
  • Network:
    • WiFi
  • Screen: optional 4.5" RGB LCD screen
  • Misc. features:
    • Volume and home buttons
    • Speakers and Microphone
  • Power DC in:
    • 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


Datasheets for components and peripherals

  • LCD touch screen panel information:
  • Lithium battery information:

PineCube GPIO Pinout.png

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


NixOS


Stock Linux

SDK

Stock Linux

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