Difference between revisions of "APITestPage"

From FriendlyELEC WiKi
Jump to: navigation, search
(updated by API)
(updated by API)
 
(256 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[NanoPC-T2/zh|查看中文]]
 
  
==Introduction==
+
{{BurnLinuxToExtDrive-Rockchip/zh|NanoPC-T4}}
[[File:NanoPC-T2-1B.jpg|thumb|Overview]]
+
{{BurnLinuxToExtDrive-Rockchip|NanoPC-T4}}
[[File:NanoPC-T2-A1.jpg|thumb|Front]]
+
[[File:NanoPC-T2-B1.jpg|thumb|Back]]
+
* The NanoPC-T2 quad core Cortex A9 single board computer is designed and developed by FriendlyARM for professional and enterprise users. It uses the Samsung Quad Core Cortex-A9 S5P4418 SoC with dynamic frequency scaling up to 1.4GHz. Compared to FriendlyARM's existing 4418 based boards the NanoPC-T2 has 8G eMMC onboard, audio jack and video input/output interfaces. Compared to its predecessor the NanoPC-T1 the NanoPC-T2 has built-in WiFi, Bluetooth and Gbps Ethernet port. In addition the NanoPC-T2 has power management which the NanoPC-T1 doesn't support. To avoid overheat issues the NanoPC-T2 has a heat sink with mounting posts.
+
* The NanoPC-T2 combines all the ports and interfaces the existing FriendlyARM 4418 boards have. Currently it has the most interfaces and ports among all existing ARM boards of this size. Its rich video interfaces and support for HDMI 1080P enable it to work with not only popular display devices but also various FriendlyARM LCDs (both resistive touch and capacitive touch).
+
* The NanoPC-T2 is FriendlyARM's most complete solution based on Samsung 4418 for both commercial and industrial applications.
+
 
+
==Hardware Spec==
+
* SoC: Samsung S5P4418 Quad Core Cortex-A9 with dynamic frequency scaling up to 1.4G Hz
+
* Power Management Unit: AXP228 PMU, it supports software power-off and wake-up.
+
* System Memory: 1GB 32bit DDR3 RAM
+
* eMMC: 8GB
+
* Storage: 1 x SD Card Slot
+
* Ethernet: Gbps Ethernet Port (RTL8211E) with unique MAC
+
* WiFi: 802.11b/g/n
+
* Bluetooth: 4.0 dual mode
+
* Antenna: Porcelain Antenna IPX Interface
+
* Video Input: DVP Camera/MIPI-CSI (two camera interfaces)
+
* Video Output: HDMI Type-A / LVDS / LCD / MIPI DSI (four video output interfaces)
+
* Audio: 3.5 mm audio jack / via HDMI
+
* Microphone: 1 x onboard Microphone
+
* USB: 4 x USB 2.0 Host, two standard type A ports and two 2.54mm pitch pin headers
+
* MicroUSB:  1 x MicroUSB 2.0 Client, Type A
+
* LCD Interface: 0.5mm pitch 45 pin FPC seat, full color RGB 8-8-8
+
* HDMI: 1.4A Type A, 1080P
+
* DVP Camera: 0.5mm pitch 24 pin FPC seat
+
* GPIO: 2.54 mm pitch 30 pin header
+
* Serial Debug Port: 2.54mm pitch 4pin header
+
* LED: 1 x power LED , 2 x GPIO LED
+
* User Key: 1 x K1 (power), 1 x Reset
+
* Other Resource: 1 x onboard thermistor
+
* RTC Battery: RTC Seat Pins
+
* Power: DC 5V/2A
+
* Heat Sink: 1 x Heat Sink with mounting holes
+
* PCB: Six Layer, ENIG
+
* PCB Dimension: 100 mm x 60 mm
+
* Working Temperature: -40℃ to 70℃
+
* OS/Software: u-boot, Android 4.4, Android5.1 and Debian8
+
 
+
==Software Features==
+
===UbuntuCore===
+
<!---
+
* mainline kernel: Linux-4.11.2
+
* rpi-monitor: check system status and information
+
--->
+
* npi-config: system configuration utility for setting passwords, language, timezone, hostname, SSH and auto-login,and enabling/disabling i2c, spi, serial and PWM
+
<!---
+
* software utility: wiringNP to access GPIO pins
+
* software utility: RPi.GPIO_NP to access GPIO pins
+
--->
+
* networkmanager: manage network
+
* system log output from serial port
+
<!---
+
* nano editor
+
--->
+
* welcome window with basic system information and status
+
* auto-login with user account "pi" with access to npi-config
+
* UART2 enabled
+
* supports CAM500B
+
<!---
+
* sudoers include "fa"
+
* on first system boot file system will be automatically extended.
+
* supports file system auto check and repair on system boot.
+
* supports FriendlyElec's [http://wiki.friendlyarm.com/wiki/index.php/NanoHat_PCM5102A NanoHat-PCM5102A] 
+
* supports USB WiFi module: refer to [[#Connect USB WiFi to NEO]]
+
* supports audio recording and playing with 3.5mm audio jack
+
* supports USB Host and 100M Ethernet
+
* supports FriendlyElec BakeBit modules
+
* supports dynamic frequency scaling and voltage regulation
+
* relieves overheat compared to kernel Linux-3.4
+
* fixed MAC address
+
 
+
===Ubuntu OLED===
+
* mainline kernel: Linux-4.11.2
+
* supports FriendlyElec's OLED module
+
--->
+
 
+
===Debian===
+
* supports CAM500B
+
 
+
<!---
+
===Debian for NAS Dock===
+
* mainline kernel: Linux-4.11.2
+
* supports FriendlyElec's NAS Dock
+
* optimized OpenMediaVault configuration options
+
* allocated swap section
+
--->
+
===Android===
+
* supports setting up static IP
+
* supports accessing hardware with FriendlyElec's libfriendlyarm-hardware.so
+
* integrated iTest utility for testing hardware
+
 
+
==Diagram, Layout and Dimension==
+
===Layout===
+
[[File:NanoPC-T2-IF.png |thumb|600px|NanoPC-T2 Layout]]
+
 
+
* '''30Pin GPIO Pin Spec'''
+
::{| class="wikitable"
+
|-
+
|Pin# || Name          ||Pin#  || Name   
+
|-
+
|1    || SYS_3.3V  ||2    || DGND
+
|-
+
|3    || UART2_TX/GPIOD20      ||4    || UART2_RX/GPIOD16
+
|-
+
|5    || I2C0_SCL      ||6    || I2C0_SDA
+
|-
+
|7    || SPI0_MOSI/GPIOC31      ||8    || SPI0_MISO/GPIOD0
+
|-
+
|9    || SPI0_CLK/GPIOC29          ||10    || SPI0_CS/GPIOC30
+
|-
+
|11  || UART3_TX/GPIOD21      ||12    || UART3_RX/GPIOD17
+
|-
+
|13  || UART4_TX/GPIOB29      ||14    || UART4_RX/GPIOB28
+
|-
+
|15  || GPIOB31      ||16    || GPIOB30
+
|-
+
|17  || GPIOC4 ||18    || GPIOC7
+
|-
+
|19  || GPIOC8    ||20    || GPIOC24
+
|-
+
|21  || GPIOC28    ||22    || GPIOB26
+
|-
+
|23  || GPIOD1/PWM0    ||24    || GPIOD8/PPM
+
|-
+
|25  || GPIOC13/PWM1    ||26    || AliveGPIO3
+
|-
+
|27  || GPIOC14/PWM2    ||28    || AliveGPIO5
+
|-
+
|29  || VDD_5V      ||30    || DGND
+
|}
+
 
+
* '''20Pin LVDS Interface Pin Spec'''
+
::{| class="wikitable"
+
|-
+
|Pin# || Name          ||Pin#  || Name   
+
|-
+
|1    || SYS_3.3V  ||2    || SYS_3.3V
+
|-
+
|3    ||GPIOC16      ||4    || GPIOB18
+
|-
+
|5    || DGND      ||6    || DGND
+
|-
+
|7    || LVDS_D0-      ||8    || LVDS_D0+
+
|-
+
|9    || LVDS_D1-          ||10    || LVDS_D1+
+
|-
+
|11  || LVDS_D2-      ||12    || LVDS_D2+
+
|-
+
|13  || DGND        ||14    || DGND
+
|-
+
|15  || LVDS_CLK-      ||16    || LVDS_CLK+
+
|-
+
|17  || LVDS_D3- ||18    || LVDS_D3+
+
|-
+
|19  ||I2C2_SCL    ||20    || I2C2_SDA
+
|}
+
 
+
* '''DVP Camera Interface Pin Spec'''
+
::{| class="wikitable"
+
|-
+
|Pin# || Name     
+
|-
+
|1, 2 || SYS_3.3V
+
|-
+
|7,9,13,15,24 || DGND
+
|-
+
|3    || I2C0_SCL
+
|-
+
|4    || I2C0_SDA 
+
|-
+
|5    || GPIOB14
+
|-
+
|6    || GPIOB16
+
|-
+
|8,10  || NC
+
|-
+
|11  || VSYNC
+
|-
+
|12  || HREF
+
|-
+
|14  || PCLK
+
|-
+
|16-23 || Data bit7-0
+
|}
+
 
+
* '''RGB LCD IF Pin Spec'''
+
::{| class="wikitable"
+
|-
+
|Pin# || Name  || Description 
+
|-
+
|1, 2 || VDD_5V || 5V Output, it can be used to power LCD modules
+
|-
+
|11,20,29, 37,38,39,40, 45|| DGND || Ground
+
|-
+
|3-10    || Blue LSB to MSB  || RGB blue
+
|-
+
|12-19  || Green LSB to MSB || RGB green
+
|-
+
|21-28  || Red LSB to MSB  || RGB red
+
|-
+
|30      || GPIOB25          || available for users
+
|-
+
|31      || GPIOC15          || occupied by FriendlyARM one wire technology to recognize LCD models and control backlight and implement resistive touch, not applicable for users
+
|-   
+
|32      || XnRSTOUT Form CPU || low when system is reset
+
|-
+
|33      || VDEN  || signal the external LCD that data is valid on the data bus
+
|-
+
|34      || VSYNC || vertical synchronization
+
|-
+
|35      || HSYNC || horizontal synchronization
+
|-
+
|36      || LCDCLK || LCD clock, Pixel frequency
+
|-
+
|41      || I2C2_SCL  || I2C2 clock signal, for capacitive touch data transmission
+
|-
+
|42      || I2C2_SDA  || I2C2 data signal, for capacitive touch data transmission
+
|-
+
|43      || GPIOC16 || interrupt pin for capacitive touch, used with I2C2
+
|-
+
|44      || NC  || Not connected
+
|}
+
 
+
* '''MIPI-DSI Interface Pin Spec'''
+
::{| class="wikitable"
+
|-
+
|Pin# || Name     
+
|-
+
|1, 2, 3 || VDD_5V
+
|-
+
|4|| DGND
+
|-
+
|5 || I2C2_SDA 
+
|-
+
|6  || I2C2_SCL
+
|-
+
|7  || DGND
+
|-
+
|8      || GPIOC0
+
|-
+
|9      || DGND
+
|-   
+
|10      || GPIOC1
+
|-
+
|11      || DGND
+
|-
+
|12      || GPIOA28
+
|-
+
|13      || nRESETOUT
+
|-
+
|14, 15      || DGND
+
|-
+
|16      || MIPIDSI_DN3
+
|-
+
|17      || MIPIDSI_DP3
+
|-
+
|18      || DGND
+
|-
+
|19      || MIPIDSI_DN2
+
|-
+
|20    || MIPIDSI_DP2
+
|-
+
|21 || DGND
+
|-
+
|22 || MIPIDSI_DN1
+
|-
+
|23 || MIPIDSI_DP1
+
|-
+
|24 || DGND
+
|-
+
|25 || MIPIDSI_DN0
+
|-
+
|26 || MIPIDSI_DP0
+
|-
+
|27 || DGND
+
|-
+
|28 || MIPIDSI_DNCLK
+
|-
+
|29 || MIPIDSI_DPCLK
+
|-
+
|30 || DGND
+
|}
+
 
+
* '''MIPI-CSI Interface Pin Spec'''
+
::{| class="wikitable"
+
|-
+
|Pin# || Name     
+
|-
+
|1, 2 || SYS_3.3V
+
|-
+
|3|| DGND
+
|-
+
|4 || I2C0_SDA 
+
|-
+
|5  || I2C0_SCL
+
|-
+
|6  || DGND
+
|-
+
|7      || SPI2_MOSI/GPIOC12
+
|-
+
|8      || SPI2_MISO/GPIOC11
+
|-   
+
|9      || SPI2_CS/GPIOC10
+
|-
+
|10      || SPI2_CLK/GPIOC9
+
|-
+
|11      || DGND
+
|-
+
|12      || GPIOB9
+
|-
+
|13      || GPIOC2
+
|-
+
|14, 15 || DGND
+
|-
+
|16      || MIPICSI_DN3
+
|-
+
|17      || MIPICSI_DP3
+
|-
+
|18      || DGND
+
|-
+
|19      || MIPICSI_DN2
+
|-
+
|20    || MIPICSI_DP2
+
|-
+
|21 || DGND
+
|-
+
|22 || MIPICSI_DN1
+
|-
+
|23 || MIPICSI_DP1
+
|-
+
|24 || DGND
+
|-
+
|25 || MIPICSI_DN0
+
|-
+
|26 || MIPICSI_DP0
+
|-
+
|27 || DGND
+
|-
+
|28 || MIPICSI_DNCLK
+
|-
+
|29 || MIPICSI_DPCLK
+
|-
+
|30 || DGND
+
|}
+
:'''Note:'''
+
::#SYS_3.3V: 3.3V power output
+
::#VDD_5V: 5V power output
+
::#For more details refer to the document: [http://wiki.friendlyarm.com/wiki/images/0/00/NanoPC-T2_1601B_Schematic.pdf NanoPC-T2_1601B_Schematic.pdf]
+
 
+
===Board Dimension===
+
[[File:NanoPC-T2-T3-1603-Dimensions.png|frameless|800px|NanoPC-T2 Dimensions]]
+
 
+
::For more details refer to the document: [http://wiki.friendlyarm.com/wiki/images/2/24/NanoPC-T2-T3-1603-Dimensions%28dxf%29.zip NanoPC-T2-Dimensions(dxf)]
+
 
+
*'''Power Jack'''
+
::*DC 4.7~5.6V IN, 4.0*1.7mm Power Jack
+
::[[File:DC-023.png]]
+
 
+
==Notes in Hardware Design==
+
===EEPROM===
+
* The board has an EEPROM(model: 24AA025E48T-I/OT) with a unique MAC. This EEPROM is connected to I2C0 and its address is 0x51 therefore some EEPROM chips cannot be connected to I2C0 which will cause conflicts of addresses.
+
* In our tests these EEPROM chips cannot be connected to I2C0: 24C04, 24C08 and 24C16. There chips which we tested can be connected to I2C0: 24C01, 24C02 and 24C256
+
* For more details about EEPROM address issues refer to http://www.onsemi.com/pub_link/Collateral/CAT24C01-D.PDF
+
 
+
==Get Started==
+
===Essentials You Need===
+
Before starting to use your NanoPC-T2 get the following items ready
+
* NanoPC-T2
+
* SD Card: Class 10 or Above, minimum 8GB SDHC
+
* A DC 5V/2A power is a must
+
* HDMI monitor or LCD
+
* USB keyboard, mouse and possible a USB hub(or a TTL to serial board)
+
* A host computer running Ubuntu 16.04 64 bit system
+
{{S5P4418BootFromSDCard|NanoPi-T2}}
+
{{BurnOSToEMMC|NanoPC-T2|s5p4418-eflasher}}
+
{{S5PXX18MakeSDCardViaSDFusing|NanoPC-T2|sd-fuse_nanopi2}}
+
{{ResizeTFCardFS|NanoPC-T2}}
+
{{S5Pxx18HDMI|NanoPC-T2|arch/arm/plat-s5p4418/nanopi2/lcds.c}}
+
{{S5Pxx18MofidyKernelCommandLineOnHostPC|NanoPC-T2|sd-fuse_nanopi2}}
+
{{NanoPCStartToUse|NanoPC-T2}}
+
{{S5P4418Software|NanoPi-T2}}
+
{{S5P4418ChangeLog}}
+

Latest revision as of 09:58, 29 October 2024

1 安装系统到M.2或USB硬盘

可以通过使用TF卡启动eFlasher系统,将引导和系统分别安装到不同存储设备,但是由于CPU不支持直接从M.2和USB设备引导,所以虽然系统可以安装到M.2和USB设备,但是引导仍然需要安装到eMMC或者TF卡。
操作步骤如下:

  • 准备一张32G或以上容量的TF卡;
  • 访问此处的下载地址下载文件名为XXXX-eflasher-multiple-os-YYYYMMDD-30g.img.gz的固件(位于"01_系统固件/02_SD卡刷机固件(SD-to-eMMC)"目录);
  • 将固件写入TF卡,在NanoPC-T4上连接好存储设备,插入TF卡上电开机,接下来要在界面上操作,如果没有显示设备,可以使用VNC代替,请参考使用VNC操作eFlasher;
  • 在eFlasher界面上,首先选择要安装的OS,然后选择引导安装的目的地 (通常选eMMC),以及选择系统安装的目的地(可以选eMMC,M.2硬盘,USB存储设备等),如下图所示:

Eflasher-select-boot-and-system-device.png

  • 没有eMMC时可使用TF卡作为引导,方法是将另一个TF卡通过USB读卡器插入USB端口,然后选择USB设备作为引导安装目的地,从而实现从TF卡引导,但系统存放在M.2或USB硬盘的目的;
  • 烧写完成后,从NanoPC-T4弹出SD卡,引导在eMMC的情况下,NanoPC-T4会自动重启至你刚刚烧写的系统,如果引导安装在TF卡,则需要拨掉电源,插入TF引导卡再上电开机;
  • 更详细的安装指南请参考此处;

2 Installing the System to M.2 or USB Drive

You can use a TF card to boot the eFlasher system, allowing the boot and system to be installed on different storage devices. However, since the CPU doesn’t support booting directly from M.2 and USB devices, the system can be installed on M.2 and USB devices, but the boot must still be installed on eMMC or a TF card.
Steps are as follows:

  • Prepare a TF card with a capacity of 32GB or larger.
  • Visit [the download link here](http://download.friendlyelec.com/APITestPage) to download the firmware file named XXXX-eflasher-multiple-os-YYYYMMDD-30g.img.gz (located in the “01_Official images/02_SD-to-eMMC images” directory).
  • Flash the firmware to the TF card, connect the storage device you intend to use on NanoPC-T4, insert the TF card and power on, we need to perform the operations in the eFlasher GUI. If your NanoPC-T4 does not have a display interface, you can use VNC; refer to Using VNC to Operate eFlasher.
  • In the eFlasher GUI, select the OS to install, and in the OS settings interface, choose the destination for boot installation (typically eMMC), then choose the destination for system installation (options include eMMC, M.2 hard drive, USB storage, etc.), as shown below:

Eflasher-select-boot-and-system-device.png

  • If no eMMC is available, the TF card can serve as the boot by inserting another TF card into the USB port via a USB card reader and selecting it as the boot destination, enabling booting from the TF card with the system stored on the M.2 or USB drive.
  • After flashing, eject the SD card from NanoPC-T4. If booting from eMMC, NanoPC-T4 will automatically restart into the newly flashed system. If boot installation is on a TF card, power off, insert the boot TF card, and power on again.
  • For a more detailed installation guide, please refer to this link.