Difference between revisions of "APITestPage"

From FriendlyELEC WiKi
Jump to: navigation, search
(updated by API)
(updated by API)
 
(115 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[NanoPi R2S|English]]
 
  
==介绍==
+
{{RockchipUnbrick|NanoPC-T4}}
[[File:NanoPi R2S-1.jpg|thumb|frameless|250x250px|概览]]
+
[[File:NanoPi R2S_TOP.jpg|thumb|frameless|250x250px|正面]]
+
[[File:NanoPi R2S-BOT.jpg|thumb|frameless|250x250px|背面]]
+
[[File:NanoPi R1S-case1.jpg|thumb|frameless|250x250px|外壳]]
+
* NanoPi R2S(以下简称R2S)是友善电子团队最新推出的一款实现满速率双千兆的、完全开源的Iot应用神器。
+
* NanoPi R2S 使用RK3328 CPU,有两个千兆网络,1G DDR4内存,友善电子团队为NanoPi R2S专门移植了OpenWrt系统,支持Docker CE, 完全开源,用于企业物联网二次开发,个人定制NAS,家庭物联网网关等。
+
 
+
==NanoPi R2S资源特性==
+
* CPU: Rockchip RK3328, Quad-core Cortex-A53
+
* DDR4 RAM: 1GB         
+
* Network:
+
**10/100/1000M以太网口 x 1
+
**USB3.0转10/100/1000M以太网口 x 1<br />
+
* USB2.0 Host: Type-A x1
+
* MicroSD Slot x 1
+
* MicroUSB: 供电和Slave功能
+
* Debug Serial Port: 3.3V TTL电平,3Pin 2.54mm间距排针
+
* LED: LED x 3
+
* KEY: KEY x 1 用户自定义功能
+
* PC Size: 55.6 x 52mm
+
* Power Supply: DC 5V/2A
+
* Temperature measuring range: 0℃ to 80℃
+
* OS/Software: U-boot,Ubuntu-Core,OpenWrt <br />
+
<br />
+
* '''实测网络速率'''
+
::{| class="wikitable"
+
|-
+
! width=100px style="background: Light grey; color: black" |
+
! width=150px style="background: Light grey; color: black" align="center" | TX
+
! width=150px style="background: Light grey; color: black" align="center" | RX         
+
|-
+
|WAN      ||align="center" | 941 Mbps  ||align="center" |  941 Mbps 
+
|-
+
|LAN      ||align="center" | 941 Mbps  ||align="center" |  941 Mbps 
+
|-
+
|Notes:  ||colspan="2" |  1、测试工具:iperf <br />  2、使用独立IP地址段和PC机单向通讯测试
+
|}
+
 
+
==接口布局和尺寸==
+
===接口布局===
+
[[File:NanoPi R2S-layout.jpg |frameless|550px|NanoPi R2S接口布局]]
+
* '''GPIO 24Pin管脚定义'''
+
::{| class="wikitable"
+
|-
+
| style="background: PaleTurquoise; color: black" colspan="1"| '''Pin#''' || style="background: PaleTurquoise; color: black" colspan="1"| '''Name'''|| style="background: PaleTurquoise; color: black" colspan="1"| '''Linux gpio'''|| style="background: PaleTurquoise; color: black" colspan="1"| '''Pin#'''|| style="background: PaleTurquoise; color: black" colspan="1"| '''Name'''|| style="background: PaleTurquoise; color: black" colspan="1"| '''Linux gpio'''   
+
|-
+
|1    || SYS_3.3V              ||    ||2    || VDD_5V              ||
+
|-
+
|3    || I2C0_SDA / GPIO2_D1  || 89  ||4    || VDD_5V              ||
+
|-
+
|5    || I2C0_SCL / GPIO2_D0  || 88  ||6    || GND                  ||
+
|-
+
|7    || GPIO2_A2 / IR_RX        || 66  ||8  || UART1_TX / GPIO3_A4  || 100
+
|-
+
|9    || GND                  ||    ||10    || UART1_RX / GPIOG3_A6 || 102
+
|}
+
 
+
:更详细的信息请查看原理图:[http:0-1908.pdf NanoPi_R2S_V1.0_1912-Schematic.pdf]
+
:详细PCB尺寸图:[http://wik104.rar NanoPi R2S PCB的dxf文件]
+
 
+
==快速入门==
+
===准备工作===
+
要开启你的NanoPi R2S新玩具,请先准备好以下硬件
+
* NanoPi R2S主板
+
* MicroSD卡/TF卡: Class10或以上的 8GB SDHC卡
+
* 一个MicroUSB接口的外接电源,要求输出为5V/2A(可使用同规格的手机充电器)
+
* 一台电脑,需要联网,建议使用Ubuntu 16.04 64位系统
+
 
+
===经测试使用的TF卡===
+
制作启动NanoPi R2S的TF卡时,建议Class10或以上的 8GB SDHC卡。以下是经友善电子测试验证过的高速TF卡:
+
*SanDisk闪迪 TF 8G Class10 microSD 高速 TF卡:
+
[[File:SanDisk MicroSD.png|frameless|100px|SanDisk microSD 8G]]
+
*SanDisk闪迪 TF 128G 至尊高速 Class10 microSDXC TF 128G 48MB/S:
+
[[File:SanDisk MicroSD-01.png|frameless|100px|SanDisk microSD 128G]]
+
*川宇 8G手机内存卡 TF 8G 卡存储卡 C10 高速 Class10 microSD卡:
+
[[File:SanDisk MicroSD-02.png|frameless|100px|chuanyu microSD 8G]]
+
 
+
===安装系统===
+
====下载系统固件====
+
首先访问[http://download.friendlyarm.com/nanopir2s下载地址]下载需要的固件文件(officail-ROMs目录)和烧写工具(tools目录):<br />
+
 
+
::{| class="wikitable"
+
|-
+
|colspan=2|使用以下固件:
+
|-
+
|rk3328-sd-friendlycore-bionic-5.4-arm64-YYYYMMDD.img.zip || UbuntuCore 18.04系统固件,使用 5.4.12 内核
+
|-
+
|rk3328-sd-friendlywrt-5.4-YYYYMMDD.img.zip || 基于 OpenWrt 构建的 FriendlyWrt 系统固件,使用 5.4.12 内核
+
|-
+
|colspan=2|烧写工具: 
+
|-
+
|win32diskimager.rar || Windows平台下的系统烧写工具,Linux平台下可以用dd命令烧写系统
+
|-
+
|}
+
{{BurnOS-Allwinner/zh|NanoPi-R2S}}
+
{{FriendlyWrt19/zh|NanoPi-R2S}}
+
{{OfficialUbuntuCore/zh|NanoPi-R2S}}
+
 
+
==资源链接==
+
===手册原理图等开发资料===
+
* 原理图
+
** [http://wiki.fr08.pdf NanoPi_R2S_V1.0_1912-Schematic.pdf]
+
 
+
* PCB尺寸图
+
** [http://wiki1104.rar NanoPi_R2S_V1.0_1912 PCB的dxf文件]
+
* 芯片规格书
+
** RK3328芯片手册 [http://wiki.friendlyarm.com/wiki/images/d/d7/Rockchip_RK3328_Datasheet_V1.1-20170309.pdf Rockchip_RK3328_Datasheet.pdf]
+
 
+
==更新日志==
+
{{RK3328-UpdateLog/zh|NanoPi-R2S}}
+

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.