Difference between revisions of "APITestPage"

From FriendlyELEC WiKi
Jump to: navigation, search
(updated by API)
(updated by API)
 
(88 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[NanoPC-T4/zh|查看中文]]
 
  
==Introduction==
+
{{RockchipUnbrick|NanoPC-T4}}
[[File:NanoPC-T4-01B.jpg|thumb|Overview]]
+
[[File:NanoPC-T4-A01.jpg|thumb|Front]]
+
[[File:NanoPC-T4-B01.jpg|thumb|Back]]
+
* The NanoPC-T4 is by far the smallest RK3399 based high-performance ARM board with popular ports and interfaces. Its software is fully open source. It is as small as 100 x 64 mm. It has 4GB LPDDR3 RAM, 16GB eMMC flash, onboard 2.4G & 5G dual-band WiFi module and a full standard M.2 PCIe interface which supports an NVME SSD high-speed hard drive. The NanoPC-T4 supports GPU and VPU acceleration and works with Android 7.1 and Lubuntu Desktop.
+
 
+
* The NanoPC-T4 has a MIPI-CSI dual camera interface, a MIPI-DSI and an eDP display interfaces, and an HDMI 2.0 interface. It has Type-C/DP, USB 3.0, USB2.0, MicroSD, Gbps Ethernet port, 3.5mm audio jack, infrared receiver, AD input, serial debug interface and a 40Pin RPi compatible connector.
+
 
+
* The RK3399 SoC has an internal Mali-T860 GPU which has powerful capabilities of processing 3D and HD H.265/H2.64 video streams. It supports dual camera inputs, dual ISP interface capable of doing image processing up to 13MPix/s. The NanoPC-T4 is a perfect platform for AI and deep learning applications. It can be widely used in advertisement machines, game machines, video conference applications, surveillance systems, clusters, VR/AR applications, machine vision applications and etc.
+
 
+
==Hardware Spec==
+
* SoC: Rockchip RK3399
+
** CPU: big.LITTLE,Dual-Core Cortex-A72(up to 2.0GHz) + Quad-Core Cortex-A53(up to 1.5GHz)
+
** GPU: Mali-T864 GPU,supports OpenGL ES1.1/2.0/3.0/3.1, OpenCL, DX11, and AFBC
+
** VPU: 4K VP9 and 4K 10bits H265/H264 60fps decoding, Dual VOP, etc
+
* PMU: RK808-D PMIC, cooperated with independent DC/DC, enabling DVFS, sofeware power-down, RTC wake-up, system sleep mode
+
* RAM: Dual-Channel 4GB LPDDR3-1866
+
* Flash: 16GB eMMC 5.1 Flash
+
* Ethernet: Native Gigabit Ethernet
+
* Wi-Fi/BT: 802.11a/b/g/n/ac, Bluetooth 4.1, Wi-Fi and Bluetooth combo module, 2x2 MIMO, dual antenna interface
+
* Video Input: one or two 4-Lane MIPI-CSI, dual ISP, up to 13MPix/s,supports simultaneous input of dual camera data
+
* Video output
+
** HDMI: HDMI 2.0a, supports 4K@60Hz,HDCP 1.4/2.2
+
** DP on Type-C: DisplayPort 1.2 Alt Mode on USB Type-C
+
** LCD Interface: one eDP 1.3(4-Lane,10.8Gbps), one or two 4-Lane MIPI-DSI
+
* Audio Out: 3.5mm Dual channel headphone jack, or HDMI
+
* Audio In: 2-Pin 2.54mm microphone interface
+
* USB 2.0: 2 independent native USB 2.0 Host A interfaces
+
* USB 3.0: 1 native USB 3.0 Host A type interface
+
* USB Type-C: Supports USB3.0 Type-C and DisplayPort 1.2 Alt Mode on USB Type-C
+
* PCIe: One M.2 M-Key PCIe x4 socket, compatible with PCIe 2.1, Dual operation mode; Onboard M3 PCB nut for mounting M.2 2280 module
+
* microSD Slot x 1
+
* 40Pin GPIO Extension ports:
+
** 3 X 3V/1.8V I2C, up to 1 x 3V UART, 1 X 3V SPI, 1 x SPDIF_TX, up to 8 x 3V GPIOs
+
** 1 x 1.8V I2S, 3 x 1.8V GPIOs
+
* ADC: 3 x 1.8V ADC inputs, 5 Pin 2.54mm header
+
* Debug: one Debug UART, 4 Pin 2.54mm header, 3V level, 1500000bps
+
* Keys: PowerKey, Reset, MASKROM(BOOT), Recovery
+
* LED: 1 x power LED and 1 x GPIO Controlled LED
+
* IR reciver: Onboard IR reciver, Acceptes 38KHz carrier frequency
+
* RTC Battery: 2 Pin 1.27/1.25mm RTC battery input connector
+
* Cooling: two 2.5mm PCB nuts for mounting heat sink; 3 Pin 12V cooling fan interface with PWM
+
* Power supply: DC 12V/2A
+
* PCB: Ten Layer, 100 mm x 64 mm
+
*Ambient Operating Temperature: -20℃ to 70℃
+
 
+
==Software Features==
+
 
+
==Diagram, Layout and Dimension==
+
===Layout===
+
[[File:NanoPC-T4-1902-IF-01.jpg |thumb|600px|NanoPC-T4 Layout]]
+
* '''40 Pin GPIO Pin Spec'''
+
::{| class="wikitable"
+
|-
+
|'''Pin#''' || '''Assignment'''          ||'''Pin#'''  || '''Assignment'''   
+
|-
+
|1    || VCC3V3_SYS  ||2    || VCC5V0_SYS
+
|-
+
|3    || I2C2_SDA(3V)      ||4    || VCC5V0_SYS
+
|-
+
|5    || I2C2_SCL(3V)      ||6    || GND
+
|-
+
|7    || GPIO1_A0(3V)      ||8    || GPIO4_C1/I2C3_SCL(3V)
+
|-
+
|9    || GND          ||10    || GPIO4_C0/I2C3_SDA(3V)
+
|-
+
|11  || GPIO1_A1(3V)      ||12    || GPIO1_C2(3V)
+
|-
+
|13  || GPIO1_A3(3V)      ||14    || GND
+
|-
+
|15  || GPIO1_A4(3V)      ||16    || GPIO1_C6(3V)
+
|-
+
|17  || VCC3V3_SYS ||18    || GPIO1_C7(3V)
+
|-
+
|19  || SPI1_TXD/UART4_TX(3V)    ||20    || GND
+
|-
+
|21  || SPI1_RXD/UART4_RX(3V)    ||22    || GPIO1_D0(3V)
+
|-
+
|23  || SPI1_CLK(3V)    ||24    || SPI1_CSn0(3V)
+
|-
+
|25  || GND          ||26    || GPIO4_C5/SPDIF_TX(3V)
+
|-
+
|27  || I2C2_SDA(1.8V)      ||28    || I2C2_SCL(1.8V)
+
|-
+
|29  || I2S1_LRCK_RX(1.8V)      ||30    || GND
+
|-
+
|31  ||I2S1_LRCK_TX(1.8V)    ||32    || I2S_CLK(1.8V)
+
|-
+
|33  || I2S1_SCLK(1.8V)      ||34    || GND
+
|-
+
|35  || I2S1_SDI0(1.8V)    ||36    || I2S1_SDO0(1.8V)
+
|-
+
|37  || GPIO3_D4(1.8V)    ||38    || GPIO3_D5(1.8V)
+
|-
+
|39  || GND          ||40    || GPIO3_D6(1.8V)
+
|}
+
 
+
* '''eDP Interface Pin Spec'''
+
:: Connector P/N: I-PEX-20455-030E
+
::{| class="wikitable"
+
|-
+
|'''Pin#''' || '''Assignment'''      || '''Description'''   
+
|-
+
|1    || GND        || Signal ground
+
|-
+
|2    || EDP_TX3N  || eDP data lane 3 negative output
+
|-
+
|3    || EDP_TX3P  || eDP data lane 3 positive output 
+
|-
+
|4    || GND        || Signal ground
+
|-
+
|5    || EDP_TX2N  || eDP data lane 2 negative output
+
|-
+
|6    || EDP_TX2P  || eDP data lane 2 positive output     
+
|-
+
|7    || GND        || Signal ground
+
|-
+
|8    || EDP_TX1N  || eDP data lane 1 negative output 
+
|-
+
|9    || EDP_TX1P  || eDP data lane 1 positive output     
+
|-
+
|10    || GND      || Signal ground
+
|-
+
|11    || EDP_TX0N  || eDP data lane 0 negative output 
+
|-
+
|12    || EDP_TX0P  || eDP data lane 0 positive output 
+
|-
+
|13    || GND      || Signal ground
+
|-
+
|14    || EDPAUXP  || eDP CH-AUX positive differential output
+
|-
+
|15    || EDPAUXN  || eDP CH-AUX negative differential output 
+
|-
+
|16    || GND      || Signal ground
+
|-
+
|17    || VCC3V3_SYS || 3.3V Power output for logic
+
|-
+
|18    || VCC3V3_SYS || 3.3V Power output for logic
+
|-
+
|19    || I2C4_SDA  || 3V I2C data signal, Connect to touch panel
+
|-
+
|20    || I2C4_SCL  || 3V I2C clock signal, Connect to touch panel
+
|-
+
|21    || GPIO1_C4_TP_INT ||  3V interrupt input, Connect to the interrupt output of touch panel
+
|-
+
|22    || GPIO1_B5_TP_RST ||  3V output for reseting touch panel, Connect to the reset input of touch panel 
+
|-
+
|23    || PWM0_BL        || 3V PWM output, for LCD backlight dimming. pull up to VCC3V3_SYS on LCD side.
+
|-
+
|24    || GPIO4_D5_LCD_BL_EN || 3V output for turning on/off the LCD backlight
+
|-
+
|25    || GND        || Backlight ground
+
|-
+
|26    || GND        || Backlight ground
+
|-
+
|27    || GND        || Backlight ground
+
|-
+
|28    || VCC12V0_SYS || 12V Power output for Backlight Power
+
|-
+
|29    || VCC12V0_SYS || 12V Power output for Backlight Power
+
|-
+
|30    || VCC12V0_SYS || 12V Power output for Backlight Power 
+
|}
+
* '''MIPI-DSI Interface Pin Spec'''
+
:: 0.5mm FPC connector
+
::{| class="wikitable"
+
|-
+
|'''Pin#''' || '''Assignment'''            || '''Description '''
+
|-
+
|1, 2, 3 || VCC5V0_SYS  || 5V power output
+
|-
+
|4|| GND                || Return current path
+
|-
+
|5 || I2C4_SDA          || 3V I2C data signal, Connect to touch panel
+
|-
+
|6  || I2C4_SCL        || 3V I2C clock signal, Connect to touch panel
+
|-
+
|7  || GND              || Return current path
+
|-
+
|8      || GPIO1_C4_TP_INT || 3V interrupt input, Connect to the interrupt output of touch panel 
+
|-
+
|9      || GND        || Return current path
+
|-   
+
|10      || PWM0_BL    || 3V PWM output, for LCD backlight dimming
+
|-
+
|11      || GND        || Return current path
+
|-
+
|12      || GPIO4_D5_LCD_BL_EN || 3V output for turning on/off the LCD backlight
+
|-
+
|13      || GPIO4_D6_LCD_RST_H  || 3V output for reseting the LCD module
+
|-
+
|14      || GPIO1_B5_TP_RST    || 3V output for reseting touch panel, Connect to the reset input of touch panel
+
|-
+
|15      || GND              || Return current path
+
|-
+
|16      || MIPI_TX0_D3N    || MIPI DSI negative differential data line transceiver output
+
|-
+
|17      || MIPI_TX0_D3P    || MIPI DSI positive differential data line transceiver output
+
|-
+
|18      || GND    ||  Return current path
+
|-
+
|19      || MIPI_TX0_D2N  || MIPI DSI negative differential data line transceiver output
+
|-
+
|20    || MIPI_TX0_D2P  || MIPI DSI positive differential data line transceiver output
+
|-
+
|21    || GND    ||  Return current path
+
|-
+
|22    || MIPI_TX0_D1N  || MIPI DSI negative differential data line transceiver output
+
|-
+
|23 || MIPI_TX0_D1P  || MIPI DSI positive differential data line transceiver output
+
|-
+
|24 || GND  ||  Return current path
+
|-
+
|25 || MIPI_TX0_D0N || MIPI DSI negative differential data line transceiver output
+
|-
+
|26 || MIPI_TX0_D0P  || MIPI DSI positive differential data line transceiver output
+
|-
+
|27 || GND    || Return current path
+
|-
+
|28 || MIPI_TX0_CLKN  || MIPI DSI negative differential clock line transceiver output
+
|-
+
|29 || MIPI_TX0_CLKP  || MIPI DSI positive differential clock line transceiver output
+
|-
+
|30 || GND    || Return current path
+
|}
+
* '''MIPI-CSI Interface Pin Spec'''
+
:: 0.5mm FPC Connector
+
:: MIPI-CSI2 can be configured to MIPI-DSI
+
::{| class="wikitable"
+
|-
+
|'''Pin#''' ||  '''MIPI-CSI1'''  ||  '''MIPI-CSI2'''  ||  '''Description ''' 
+
|-
+
|1    ||  VCC5V0_SYS  || VCC5V0_SYS  ||  5V Power ouput
+
|-
+
|2    ||  VCC5V0_SYS || VCC5V0_SYS    ||  5V Power ouput
+
|-
+
|3    ||    GND    ||  GND          ||  Return current path
+
|-
+
|4    || VCC_CSI_AF2.8V || VCC_CSI_AF2.8V || 2.8V Power for VCM
+
|-
+
|5    || VCC_CSI_1.2V  || VCC_CSI_1.2V  || 1.2V Power for image sensor core circuit
+
|-
+
|6    ||  VCC1V8_CAM  ||  VCC1V8_CAM  || 1.8V power for I/O circuit
+
|-
+
|7    ||  VCC_CSI_2.8V || VCC_CSI_2.8V || 2.8V power for image sensor analog circuit
+
|-
+
|8    ||  VCC_CSI_1.0V || VCC_CSI_1.0V || 1.0V Power for image sensor core circuit
+
|-
+
|9    || I2C1_SCL ||  I2C2_SCL        || 1.8V I2C clock signal
+
|-
+
|10    || I2C1_SDA || I2C2_SDA        ||  1.8V I2C data signal
+
|-
+
|11    || MIPI_CSI0_RST || MIPI_CSI1_RST || reset  camera module
+
|-
+
|12    || MIPI_CSI0_PWN || MIPI_CSI1_PWN  || Power down camera module
+
|-
+
|13    ||  GND          ||      GND          || Return current path
+
|-
+
|14    || GPIO2_B3_CIF_CLKOUTA || GPIO2_B3_CIF_CLKOUTA || MCLK to camera module
+
|-
+
|15      || GND          ||    GND            || Return current path
+
|-
+
|16    ||  MIPI_RX0_D3P  || MIPI_TX1/RX1_D3P  || MIPI CSI positive differential data line transceiver output
+
|-
+
|17    ||  MIPI_RX0_D3N || MIPI_TX1/RX1_D3N    || MIPI CSI negative differential data line transceiver output
+
|-
+
|18    ||  GND    || GND                      || Return current path
+
|-
+
|19    || MIPI_RX0_D2P || MIPI_TX1/RX1_D2P  || MIPI CSI positive differential data line transceiver output
+
|-
+
|20    || MIPI_RX0_D2N || MIPI_TX1/RX1_D2N    || MIPI CSI negative differential data line transceiver output
+
|-
+
|21    || GND || GND    || Return current path
+
|-
+
|22    ||  MIPI_RX0_D1P  || MIPI_TX1/RX1_D1P  || MIPI CSI positive differential data line transceiver output
+
|-
+
|23    || MIPI_RX0_D1N || MIPI_TX1/RX1_D1N    || MIPI CSI negative differential data line transceiver output
+
|-
+
|24    || GND || GND    || Return current path
+
|-
+
|25    || MIPI_RX0_CLKP || MIPI_TX1/RX1_CLKP  || MIPI CSI positive differential clock line transceiver output
+
|-
+
|26    || MIPI_RX0_CLKN || MIPI_TX1/RX1_CLKN    || MIPI CSI negative differential clock line transceiver output
+
|-
+
|27    || GND ||  GND  || Return current path
+
|-
+
|28    || MIPI_RX0_D0P || MIPI_TX1/RX1_D0P || MIPI CSI positive differential data line transceiver output
+
|-
+
|29    || MIPI_RX0_D0N || MIPI_TX1/RX1_D0N  || MIPI CSI negative differential data line transceiver output
+
|-
+
|30    || GND      ||  GND    || Return current path
+
|}
+
* '''M.2 PCIe Pin Spec'''
+
:: PCIe Gen 2.1 x4
+
:: M.2 Key M Connector for Socket 2/Socket 3 PCIe-based Module, such as PCIe SSD
+
:: Connector P/N: [https://www.amphenolcanada.com/ProductSearch/drawings/AC/MDTXXXXXX001.pdf MDT-420-M-01002]
+
::{| class="wikitable"
+
|-
+
|'''Pin#''' || '''Assignment'''  || '''Description'''                      ||'''Pin#'''  || '''Assignment'''      || '''Description'''
+
|-
+
|1          || GND              || Return current path                    ||  2        || VCC3V3_SYS            || 3.3V Power output     
+
|-
+
|3          || GND              || Return current path                    ||  4        || VCC3V3_SYS            || 3.3V Power output
+
|-
+
|5          || PCIE_RX3_N      || PCIe differential data input signals  ||  6        || N/C                  || no connection
+
|-
+
|7          || PCIE_RX3_P      || PCIe differential data input signals  ||    8      || N/C                  ||  no connection
+
|-
+
|9          || GND              || Return current path                    ||  10      ||  N/C                  ||  no connection
+
|-
+
|11        || PCIE_TX3N        || PCIe differential data output signals  ||  12      ||  VCC3V3_SYS          ||  3.3V Power output
+
|-
+
|13        || PCIE_TX3P        || PCIe differential data output signals    || 14      ||  VCC3V3_SYS          ||  3.3V Power output
+
|- 
+
|15        ||  GND            || Return current path                      || 16        ||  VCC3V3_SYS        ||  3.3V Power output
+
|-
+
|17        || PCIE_RX2_N      || PCIe differential data input signals      || 18      || VCC3V3_SYS          || 3.3V Power output
+
|-
+
|19        || PCIE_RX2_P      || PCIe differential data input signals      || 20      || N/C                  || no connection
+
|-
+
|21        ||  GND            ||  Return current path                  || 22      || N/C                  || no connection
+
|-
+
|23          ||  PCIE_TX2N    ||  PCIe differential data output signals    || 24      ||    N/C              ||  no connection
+
|-
+
|25          || PCIE_TX2P  ||  PCIe differential data output signals      ||    26    ||      N/C          || no connection
+
|-
+
|27        ||  GND          ||    Return current path                  ||  28    ||  N/C                || no connection       
+
|-
+
|29        || PCIE_RX1_N    ||      PCIe differential data input signals    || 30    ||  N/C                || no connection     
+
|-
+
|31        ||  PCIE_RX1_P  ||    PCIe differential data input signals      || 32    ||  N/C                || no connection     
+
|-
+
|33        ||  GND        ||    Return current path                    ||  34    ||  N/C                    || no connection     
+
|-
+
|35        ||  PCIE_TX1N    ||    PCIe differential data output signals    || 36    ||  N/C                || no connection     
+
|-
+
|37        ||  PCIE_TX1P  ||    PCIe differential data output signals    ||  38    || DEVSLP/NC            || internal pull up to VCC3V3_SYS with 10K
+
|-
+
|39        ||  GND        ||    Return current path                      ||  40    ||  I2C2_SCL              || 1.8V I2C clock signal
+
|-
+
|41        ||  PCIE_RX0_N    ||    PCIe differential data input signals  || 42    ||  I2C2_SDA            ||  1.8V I2C data signal
+
|-
+
|43        ||  PCIE_RX0_P  ||  PCIe differential data input signals      || 44    ||  GPIO2_A2_PCIE_ALERT#    ||  1.8V GPIO signal
+
|-
+
|45        ||  GND          ||  Return current path                        || 46    ||  N/C                    ||  no connection
+
|-
+
|47        ||  PCIE_TX0N  ||  PCIe differential data output signals    || 48    ||  N/C                  ||  no connection
+
|-
+
|49        ||  PCIE_TX0P  ||  PCIe differential data output signals      || 50    || GPIO2_A4_PCIE_RESET#    ||  1.8V GPIO signal
+
|-
+
|51        ||  GND          ||    Return current path                      || 52    ||  CLKREQ#/NC              ||  internal pull down to GND with 0R
+
|-
+
|53        || PCIE_REF_CLKN || differential reference clock out for PCIe peripheral      || 54    ||  GPIO2_A3_PCIE_WAKE#    ||  1.8V GPIO signal
+
|-
+
|55        || PCIE_REF_CLKP || differential reference clock out for PCIe peripheral    || 56    || N/C            ||  no connection
+
|-
+
|57        ||  GND          ||  Return current path                                  || 58    ||        N/C                ||  no connection
+
|-
+
|59        ||  Connector Key    || Connector Key                      || 60    ||  Connector Key          ||  Connector Key
+
|-
+
|60        ||  Connector Key  || Connector Key                              || 61    ||  Connector Key            ||  Connector Key
+
|-
+
|62        || Connector Key  || Connector Key                || 63    ||    Connector Key    ||  Connector Key
+
|-
+
|64        ||  Connector Key    ||  Connector Key            || 65    ||    Connector Key        || Connector Key
+
|-
+
|66        || Connector Key    ||  Connector Key                    || 67    ||    N/C      ||  no connection
+
|-
+
|68        ||  RTC_CLKO_SOC  ||  1.8V 32.768KHz  clock output            || 69    ||    N/C        ||  no connection
+
|-
+
|70        ||  VCC3V3_SYS ||    3.3V Power output                  || 71    ||    GND                    ||  Return current path
+
|-
+
|72        || VCC3V3_SYS  ||    3.3V Power output                        || 73    ||  GND                      || Return current path
+
|-
+
|74        ||  VCC3V3_SYS  ||  3.3V Power output                        || 75    ||  GND                      || Return current path
+
|}
+
* '''ADC interface Pin Spec'''
+
:: ADC input rang : 0~1.8V
+
::{| class="wikitable"
+
|-
+
|'''Pin#''' ||'''Assignment'''     
+
|-
+
|1    || GND   
+
|-
+
|2    || VCC_1V8   
+
|-
+
|3    || ADC_IN0
+
|-
+
|4    || ADC_IN2
+
|-
+
|5    || ADC_IN3
+
|}
+
* '''Cooling Fan interface Pin Spec'''
+
:: Connector P/N: JST GH connector,BM03B-GHS-TBT
+
::{| class="wikitable"
+
|-
+
|'''Pin#''' ||'''Assignment'''  || '''Description '''   
+
|-
+
|1    || GND                || 0V
+
|-
+
|2    || 12V                || 12V output ,controlled by GPIO4_C6/PWM1
+
|-
+
|3    || GPIO2_A6_FAN_TACH  || connect to tachometer output signal , or float
+
|}
+
* '''Debug UART Pin Spec'''
+
:: 3V level signals, 1500000bps
+
::{| class="wikitable"
+
|-
+
|'''Pin#''' ||'''Assignment''' ||  '''Description ''' 
+
|-
+
|1    || GND                || 0V
+
|-
+
|2    || VCC5V0_SYS          || 5V power output
+
|-
+
|3    || UART2DBG_TX        || output
+
|-
+
|4    || UART2DBG_RX        || intput
+
|}
+
*'''Power Jack'''
+
::*DC-12V/2A IN, 5.5*2.1mm Power Jack
+
::[[File:DC-007B.png]]
+
*'''Power Key'''
+
::Plug in 12V power at power jack, then press the Power Key ( > 0.5s ) to boot NanoPC-T4.
+
*'''USB Port'''
+
::USB Type-C port has 2A overcurrent protection.
+
::USB 3.0 port has 2A overcurrent protection.
+
::Two USB 2.0 host port share 2A overcurrent protection.
+
*'''BOOT Key'''
+
::Press BOOT key to prevent the board from eMMC booting, making the board enter MASKROM mode.
+
*'''RTC'''
+
::RTC backup current is 27uA.
+
::Connector P/N: Molex 53398-0271
+
:'''Notes'''
+
::#The Power Jack is the only power input port. All power pins at other ports are output.
+
::#[[Modify_T4_PWRON|How to make T4(1802) start automatically when power is plugged in]]
+
::#For more details refer to [[#Schematic.2C_PCB_CAD_File|Schematics]]
+
 
+
===Board Dimension===
+
[[File:NanoPC-T4_1802_Drawing.png|frameless|800px|NanoPC-T4 Dimensions]]
+
 
+
::For more details refer to the CAD document: [http://wiki.friendlyelec.com/wiki/images/b/bc/NanoPC-T4_1802_Drawing%28dxf%29.zip NanoPC-T4_1802_Drawing(dxf).zip]
+
 
+
==Get Started==
+
===Essentials You Need===
+
Before starting to use your NanoPC-T4 get the following items ready
+
* NanoPC-T4
+
* Type-C cable
+
* TF Card: Class 10 or Above, minimum 8GB SDHC
+
* USB to serial adapter(optinal, for debugging or access from PC host)
+
* A DC 12V/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 <b>Ubuntu 18.04 64-bit system</b>
+
 
+
{{RK3399-DebugPort|NanoPC-T4}}
+
===Install OS===
+
{{Downloads-RK3399|NanoPC-T4}}
+
{{RK3399-BurnOS-To-EMMC|NanoPC-T4}}
+
{{RK3399-BurnOS-with-TypeC|NanoPC-T4}}
+
{{RK3399-BootFromSDCard|NanoPC-T4}}
+
==Work with Debian11 Desktop==
+
===Introduction to Debian11 Desktop===
+
{{DebianBullseyeDesktop-Intro|NanoPC-T4}}
+
{{DebianBullseyeDesktop-Common|NanoPC-T4}}
+
{{DebianBullseyeDesktop-WithHDMI|NanoPC-T4}}
+
==Work with Debian10 Desktop==
+
* Refer to:
+
** [[Debian Buster Desktop|Debian Buster]]
+
==Work with FriendlyDesktop==
+
{{FriendlyDesktop-Intro|NanoPC-T4}}
+
{{FriendlyDesktop-Contents|NanoPC-T4}}
+
===Using NVME SSD on FriendlyDesktop===
+
Please see this article: [[Template:How to Initialize and Format New SSD And HDD|How to Initialize and Format New SSD And HDD]]<br />
+
===How to setup WiFiAP on FriendlyDesktop===
+
Please see this article: [[Template:Linux-Create-WiFiAP]]<br />
+
{{FriendlyCoreGeneral|NanoPC-T4}}
+
{{FriendlyCoreRunX11Application|NanoPC-T4}}
+
{{RK3399 Linux mpv|NanoPC-T4}}
+
===Change startup LOGO===
+
Replace the following two files in the kernel source code directory and recompile the kernel:<br/>
+
kernel/logo.bmp<br/>
+
kernel/logo_kernel.bmp<br/>
+
Or use the script to operate, as shown below:
+
<syntaxhighlight lang="bash">
+
git clone https://github.com/friendlyarm/sd-fuse_rk3399
+
cd sd-fuse_rk3399
+
convert files/logo.jpg -type truecolor /tmp/logo.bmp
+
convert files/logo.jpg -type truecolor /tmp/logo_kernel.bmp
+
LOGO=/tmp/logo.bmp KERNEL_LOGO=/tmp/logo_kernel.bmp ./build-kernel.sh eflasher
+
LOGO=/tmp/logo.bmp KERNEL_LOGO=/tmp/logo_kernel.bmp ./build-kernel.sh friendlydesktop-arm64
+
./mk-emmc-image.sh friendlydesktop-arm64
+
</syntaxhighlight>
+
==Features applicable to FriendlyDesktop and FriendlyCore==
+
{{Linux-RK3399MIPICamera|NanoPC-T4}}
+
{{RK3399-Linux-Install-Docker|NanoPC-T4}}
+
{{RK3399 Linux FFmpeg|NanoPC-T4}}
+
{{How to Initialize and Format New SSD And HDD|NanoPC-T4}}
+
{{RK3399 Linux PWMFan|NanoPC-T4}}
+
===Using 4G Module EC20 on Linux===
+
Please see this article: [[How to use 4G Module on NanoPC-T4]]<br />
+
==Buildroot Linux==
+
{{RK3399 Buildroot Intro|NanoPC-T4}}
+
<br />
+
For a more detailed description of the Buildroot system, please refer to: [[Buildroot|Buildroot]]<br />
+
==Work with Lubuntu==
+
See here: [[Lubuntu desktop 16.04 for RK3399]]<br />
+
Using NVME SSD on Lubuntu: [[Template:How to Initialize and Format New SSD And HDD|How to Initialize and Format New SSD And HDD]]<br />
+
{{RK3399-Android8|NanoPC-T4}}
+
{{RK3399-Android-RemoteController|NanoPC-T4}}
+
{{RK3399-Android-USBCamera|NanoPC-T4}}
+
{{RK3399-Android-4G-EC20|NanoPC-T4}}
+
{{RK3399-Android-SSD|NanoPC-T4}}
+
{{RK3399 Android PWMFan|NanoPC-T4}}
+
==Work with Android7.1==
+
See here: [[RK3399-Android7|Android7]]
+
==How to Compile==
+
{{Rockchip-DevEnv|NanoPC-T4}}
+
{{RK3399-BuildFromSource|NanoPC-T4}}
+
{{RK3399-HWAccess|NanoPC-T4}}
+
{{RockchipMiscCustome|RK3399}}
+
 
+
{{MoreOS}}
+
==Link to Rockchip Resources==
+
*Link to Rockchip's resources: https://gitlab.com/friendlyelec/rk3399-nougat/tree/nanopc-t4-nougat/RKDocs
+
*[http://opensource.rock-chips.com/images/d/d7/Rockchip_RK3399_Datasheet_V2.1-20200323.pdf RK3399 datasheet V2.1]
+
*[http://opensource.rock-chips.com/images/e/ee/Rockchip_RK3399TRM_V1.4_Part1-20170408.pdf RK3399TRM V1.4]
+
 
+
==Schematic, PCB CAD File==
+
*Schematic: [http://wiki.friendlyelec.com/wiki/images/f/f4/NanoPC-T4-1802-Schematic.pdf NanoPC-T4-1802-Schematic.pdf]
+
*Schematic: [http://wiki.friendlyelec.com/wiki/images/e/e0/NanoPC-T4-1902-Schematic.pdf NanoPC-T4-1902-Schematic.pdf]
+
*PCB CAD File:[http://wiki.friendlyelec.com/wiki/images/b/bc/NanoPC-T4_1802_Drawing%28dxf%29.zip NanoPC-T4_1802_Drawing(dxf).zip]
+
 
+
==Update Log==
+
{{RK3399-UpdateLog|NanoPC-T4}}
+

Latest revision as of 09:23, 4 June 2024

1 Unbricking Method

If the ROM is not installed correctly, causing the development board to become bricked, and you might not have the opportunity to reinstall the ROM via an SD card, you need to enter Maskrom mode to unbrick it by erasing the storage device.

1.1 Windows Users

1.1.1 Download Required Files

  • Get the necessary tools: Visit here, find RKDevTool_v3.19_for_window.zip and DriverAssitant_v5.12.zip in the 05_Tools directory, and download them to your local machine.
  • Install Rockchip USB driver and RKDevTool: Extract DriverAssitant_v5.12.zip to install the Rockchip USB driver, and extract RKDevTool_v3.19_for_window.zip to obtain the Rockchip flashing tool RKDevTool.
  • Get the loader: Visit here, enter the tools directory corresponding to your CPU model, and download MiniLoaderAll.bin.

1.1.2 Enter Maskrom Mode to Erase the Storage Device

  • Connect NanoPC-T4 to your computer using a USB data cable.
  • Start RKDevTool on your computer.
  • Disconnect the power from NanoPC-T4, hold down the MASK button, connect the power, and release the button when you see Found One MASKROM Device displayed at the bottom of the interface, as shown below:

Rkdevtool found one maskrom device.png

  • Click the Advanced Function tab in the RKDevTool interface.
  • In the Boot text box, select MiniLoaderAll.bin, then click the Download button.
  • Select EMMC, click Switch Storage, then click the EraseAll button to erase the eMMC.

Rkdevtool erase emmc.png

  • At this point, NanoPC-T4 is restored to its initial state and can be normally booted via SD card or eMMC.

1.2 Linux/Mac Users

1.2.1 Download the Required Files

  • Get the necessary tools: Visit here and find upgrade_tool_v2.30_for_linux.tgz (or for Mac users, select upgrade_tool_v2.25_for_mac.tgz) in the 05_Tools directory and download it locally.
  • Get the loader: Visit here, enter the tools directory corresponding to your CPU model, and download MiniLoaderAll.bin.

1.2.2 Installation for upgrade_tool

The following commands are for Linux, with only slight differences in file and directory names for Mac users:

tar xzf upgrade_tool_v2.30_for_linux.tgz
cd upgrade_tool_v2.30_for_linux
sudo cp upgrade_tool /usr/local/sbin/
sudo chmod 755 /usr/local/sbin/upgrade_tool

1.2.3 Enter Maskrom Mode to Erase the Storage Device

  • Connect NanoPC-T4 to the computer using a USB data cable.
  • Disconnect the power from NanoPC-T4, hold down the MASK button, connect the power, and release the button after 4 seconds.
  • Check the connection with the following command:
upgrade_tool LD

A result similar to "DevNo=1 Vid=0x2207,Pid=0x350b,LocationID=13 Mode=Maskrom SerialNo=" indicates that the device has been detected.

  • Erase the eMMC with the following command:
upgrade_tool EF MiniLoaderAll.bin
  • At this point, NanoPC-T4 has been restored to its initial state and can boot the system normally via SD card or eMMC.