Difference between revisions of "APITestPage"

From FriendlyELEC WiKi
Jump to: navigation, search
(updated by API)
(updated by API)
 
(257 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芯片最完备的工业级和商业级产品方案。
 
  
==资源特性==
+
{{BurnLinuxToExtDrive-Rockchip/zh|NanoPC-T4}}
* CPU: S5P4418, 动态运行主频400Mhz--1.4GHz
+
{{BurnLinuxToExtDrive-Rockchip|NanoPC-T4}}
* 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: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.