Difference between revisions of "APITestPage"

From FriendlyELEC WiKi
Jump to: navigation, search
(updated by API)
(updated by API)
 
(255 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[NanoPC-T2|English]]
 
==介绍==
 
[[File:NanoPC-T2-1B.jpg|thumb|Overview]]
 
[[File:NanoPC-T2-A1.jpg|thumb|Front]]
 
[[File:NanoPC-T2-B1.jpg|thumb|Back]]
 
* NanoPC-T2是友善之臂专门针对企业用户而设计,它采用三星四核Cortex -A9架构的S5P4418处理器,动态运行主频400M-1.4GHz,与友善已出的NanoPi 2 和 NanoPi 2 Fire相比,NanoPC-T2配备了8GB的eMMC、音频接口、视频输入/输出接口等;与此前的NanoPC-T1相比,不仅T2的标准接口和布局和NanoPC-T1完全相同,还集成了WiFi和蓝牙,并增加千兆以太网和电源管理功能。为适应工业客户需要,NanoPC-T2加装了标配的散热片,解决了长期困扰客户的4418芯片发热问题。
 
* T2几乎是同类尺寸板卡中接口最为丰富的微型嵌入式主板,并配备更加丰富的视频输出接口,支持HDMI 1080P完美输出,不仅支持各类流行的显示设备,更完美适配友善之臂出品的各类电容和电阻屏。
 
* NanoPC-T2是友善之臂出品的目前基于三星4418芯片最完备的工业级和商业级产品方案。
 
  
==资源特性==
+
{{RockchipUnbrick|NanoPC-T4}}
* CPU: S5P4418, 动态运行主频400Mhz--1.4GHz
+
* PMU 电源管理:AXP228,支持软件关机和睡眠唤醒等
+
* DDR3 RAM: 1GB
+
* SD: 标准SD卡槽一个
+
* 网口: 千兆以太网接口(RTL8211E)
+
* Wireless:802.11 b/g/n
+
* Bluetooth:4.0 dual mode
+
* 天线: Wi-Fi和蓝牙共用, 板载陶瓷天线, 同时提供IPX接口
+
* eMMC:8GB
+
* 视频输入:DVP Camera/MIPI-CSI(双摄像头口)
+
* 视频输出:HDMI/LVDS/并行RGB-LCD/MIPI-DSI(四个视频输出接口)
+
* 音频:3.5mm耳机座/Via HDMI
+
* 麦克风: 板载麦克风
+
* USB Host: 4 x USB 2.0 Host , 其中两个是标准A型接口, 另外两个是2.54mm排针
+
* Micro USB: 1 x USB 2.0 Client
+
* LCD接口: 45pin,  0.5mm间距FPC贴片座,支持全彩TFT LCD (RGB:8-8-8)
+
* HDMI: HDMI 1.4a, Type A型口,1080P高清显示
+
* DVP Camera接口: 24pin, 0.5mm间距,FPC贴片竖座
+
* GPIO扩展接口: 30 Pin2.54mm排针, 包含3个UART, 1路I2C, 1路SPI, 3路PWM,11个GPIO
+
* 调试串口:4Pin,2.5mm间距白色座子
+
* 按键:K1(电源按键),Reset
+
* LED:一个电源指示LED, 两个GPIO控制的LED
+
* 其他: K1(电源按键),Reset, GPIO控制的LED均通过2.54mm排针引出, 板载温控电阻
+
* RTC: 支持RTC, 板上有备份电池接口
+
* PCB Size:100 x 60mm,6层,沉金工艺
+
* 散热片螺丝孔:能加螺丝固定的散热片
+
* 供电: DC 5V/2A
+
* 温度工作范围:零下30摄氏度到70摄氏度
+
* OS/Software: u-boot, Android5.1, Debian8, Android4.4
+
 
+
==接口布局和尺寸==
+
===接口布局===
+
[[File:NanoPC-T2-IF.png |thumb|600px|NanoPC-T2接口布局]]
+
 
+
* '''30Pin GPIO管脚定义'''
+
::{| 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接口定义'''
+
::{| 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接口定义'''
+
::{| 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 管脚定义'''
+
::{| class="wikitable"
+
|-
+
|Pin# || Name  || Description 
+
|-
+
|1, 2 || VDD_5V || 5V输出, 可以给LCD模组供电
+
|-
+
|11,20,29, 37,38,39,40, 45|| DGND || 参考地, 0电位
+
|-
+
|3-10    || Blue LSB to MSB  || RGB的蓝色信号
+
|-
+
|12-19  || Green LSB to MSB || RGB的绿色信号
+
|-
+
|21-28  || Red LSB to MSB  || RGB的红色信号
+
|-
+
|30      || GPIOB25          || 普通GPIO, 用户可控制
+
|-
+
|31      || GPIOC15          || 一线协议信号, 以实现LCD型号识别, <br>
+
背光控制和电阻触摸的功能. 系统已占用, 用户不可重新设置.
+
|-   
+
|32      || XnRSTOUT Form CPU || 系统复位时向外输出低电平
+
|-
+
|33      || VDEN  || 指示RGB信号有效的信号
+
|-
+
|34      || VSYNC || 场信号
+
|-
+
|35      || HSYNC || 行信号
+
|-
+
|36      || LCDCLK || LCD频率, Pixel frequency
+
|-
+
|41      || I2C2_SCL  || I2C2的时钟信号, 用来传输电容屏触摸数据
+
|-
+
|42      || I2C2_SDA  || I2C2的数据信号, 用来传输电容屏触摸数据
+
|-
+
|43      || GPIOC16 || 电容触摸中断信号, 配合I2C2使用
+
|-
+
|44      || NC  || 没有任何连接
+
|}
+
 
+
* '''MIPI-DSI接口定义'''
+
::{| 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接口定义'''
+
::{| 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
+
|}
+
:'''说明'''
+
::#SYS_3.3V: 3.3V电源输出
+
::#VDD_5V: 5V电源输出
+
::#更详细的信息请查看原理图:[http://wiki.friendlyarm.com/wiki/images/0/00/NanoPC-T2_1601B_Schematic.pdf NanoPC-T2_1601B_Schematic.pdf]
+
 
+
===机械尺寸===
+
[[File:NanoPC-T2-T3-1603-Dimensions.png|frameless|800px|NanoPC-T2 Dimensions]]
+
 
+
::详细尺寸:[http://wiki.friendlyarm.com/wiki/images/2/24/NanoPC-T2-T3-1603-Dimensions%28dxf%29.zip NanoPC-T2-Dimensions(dxf)]
+
 
+
*'''电源接口'''
+
::*DC电源座子, 适合DC4.0*1.7mm电源插头, 电压范围:4.7~5.6V
+
::[[File:DC-023.png]]
+
 
+
==硬件设计注意事项==
+
===EEPROM===
+
*因为板上的集成了带MAC地址的EEPROM, 型号为24AA025E48T-I/OT, 接在I2C0上, 设备地址为0x51, 所以有些型号的EEPROM不能接在I2C0上, 否则会地址冲突.
+
*不能接在I2C0上的EEPROM: 24C04, 24C08, 24C16, 可以接在I2C0上的EEPROM:24C01, 24C02, 24C256
+
*关于EEPROM地址问题, 请看 http://www.onsemi.com/pub_link/Collateral/CAT24C01-D.PDF
+
 
+
==快速入门==
+
===准备工作===
+
要开启你的NanoPC-T2新玩具,刷机前请先准备好以下硬件
+
* NanoPC-T2主板
+
* 大SD卡/: Class10或以上的 8GB SDHC卡
+
* 一个DC接口的外接电源,要求输出为5V/2A
+
* 一台支持HDMI输入的显示器或者电视(或选购LCD配件)
+
* 一套USB键盘鼠标,同时连接还需要USB HUB (或选购串口转接板,要PC上进行操作)
+
* 一台电脑,需要联网,建议使用Ubuntu 16.04 64位系统
+
{{S5P4418BootFromSDCard/zh|NanoPi-T2}}
+
{{BurnOSToEMMC/zh|NanoPC-T2|s5p4418-eflasher}}
+
{{S5PXX18MakeSDCardViaSDFusing/zh|NanoPC-T2|sd-fuse_nanopi2}}
+
{{ResizeTFCardFS/zh|NanoPC-T2}}
+
{{S5Pxx18HDMI/zh|NanoPC-T2|arch/arm/plat-s5p4418/nanopi2/lcds.c}}
+
{{S5Pxx18MofidyKernelCommandLineOnHostPC/zh|NanoPC-T2|sd-fuse_nanopi2}}
+
{{S5P4418Software/zh|NanoPi-T2}}
+
{{S5P4418ChangeLog/zh}}
+

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.