Difference between revisions of "APITestPage"

From FriendlyELEC WiKi
Jump to: navigation, search
(updated by API)
(updated by API)
 
(86 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[NanoPi R2S/zh|查看中文]]
 
  
==Introduction==
+
{{RockchipUnbrick|NanoPC-T4}}
[[File:NanoPi R2S-1.jpg|thumb|frameless|250x250px|Overview]]
+
[[File:NanoPi R2S_TOP.jpg|thumb|frameless|250x250px|Front]]
+
[[File:NanoPi R2S-BOT.jpg|thumb|frameless|250x250px|Back]]
+
[[File:NanoPi_R2S-case1.jpg|thumb|frameless|250x250px|Case]]
+
[[File:R2sc-02.jpg|thumb|frameless|250x250px|Case]]
+
[[File:R2sc-03.jpg|thumb|frameless|250x250px|Case]]
+
[[File:R2sc-04.jpg|thumb|frameless|250x250px|Case]]
+
[[File:R2sc-05.jpg|thumb|frameless|250x250px|Case]]
+
* The NanoPi R2S(as "R2S") is an open source platform with dual-Gbps Ethernet ports designed and developed by FriendlyElec for IoT applications.
+
* The NanoPi R2S uses the RK3328 SoC. It has two Gbps Ethernet ports and 1G DDR4 RAM. FriendlyElec ported an OpenWrt system for it. It works with Docker CE. It is a good platform for developing IoT applications, NAS applications =etc.
+
 
+
==Hardware Spec==
+
* CPU: Rockchip RK3328, Quad-core Cortex-A53
+
* DDR4 RAM: 1GB         
+
* Network:
+
**Internal 10/100/1000M Ethernet Port x 1
+
**USB3.0 converted 10/100/1000M Ethernet Port x 1<br />
+
* USB2.0 Host: Type-A x1
+
* MicroSD Slot x 1
+
* MicroUSB: power input and USB Slave
+
* Debug Serial Port: 3.3V TTL, 3-pin 2.54mm pitch connector, 1500000 bauds
+
* LED: LED x 3
+
* KEY: KEY x 1 programmable
+
* 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 />
+
* '''Network Transmission Rates'''
+
::{| 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. test utility: iperf <br />  2. use indepedent IP address section and test with a PC in simplex communication mode
+
|}
+
 
+
==Diagram, Layout and Dimension==
+
===Layout===
+
[[File:NanoPi R2S-layout.jpg |frameless|550px|NanoPi R2S Layout]]
+
* '''GPIO 24-Pin Spec'''
+
::{| 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
+
|}
+
 
+
:For more details refer to:[http://wiki.friendlyelec.com/wiki/images/5/59/SCH_NanoPi_R2S_V1.0-1912.pdf NanoPi_R2S_V1.0_1912-Schematic.pdf]
+
:Dimensional Diagram:[http://wiki.friendlyelec.com/wiki/index.php/File:Dimension_NanoPi_R2S_V1.0-1912_PCB.rar NanoPi R2S PCB file in dxf format]
+
 
+
==Get Started==
+
===Essentials You Need===
+
Before starting to use your NanoPi R2S get the following items ready
+
* NanoPi R2S
+
* MicroSD Card/TF Card: Class 10 or Above, minimum 8GB SDHC
+
* MicroUSB 5V/2A power adapter
+
* If you need to develop and compile,you need a computer that can connect to the Internet. It is recommended to install Ubuntu 20.04 64-bit system and use the following script to initialize the development environment, or use docker container: <br />
+
**[https://github.com/friendlyarm/build-env-on-ubuntu-bionic How to setup the Compiling Environment on Ubuntu bionic]<br />
+
**[https://github.com/friendlyarm/docker-cross-compiler-novnc docker-cross-compiler-novnc]<br />
+
 
+
 
+
===TF Cards We Tested===
+
Refer to: [[Template:TFCardsWeTested/zh|TFCardsWeTested]]
+
{{1500000SerialPortDebugSetting}}
+
===Install OS===
+
{{Downloads-RK3328|NanoPi-R2S}}
+
{{BurnLinuxToSD-Rockchip|NanoPi-R2S}}
+
{{FriendlyWrt21|NanoPi-R2S}}
+
{{OfficialUbuntuCore|NanoPi-R2S}}
+
{{FriendlyCoreRemoveQt}}
+
{{OfficialDebianCore|NanoPi-R2S}}
+
==Buildroot Linux==
+
{{RK3399 Buildroot Intro|NanoPi-R2S}}
+
<br />
+
For a more detailed description of the Buildroot system, please refer to: [[Buildroot|Buildroot]]<br />
+
 
+
==How to Compile==
+
{{Rockchip-DevEnv|NanoPi-R2S}}
+
{{RK3328-BuildFromSource|NanoPi-R2S}}
+
{{RK3328-HWAccess|NanoPi-R2S}}
+
{{RockchipMiscCustome|RK3328}}
+
 
+
{{MoreOS}}
+
==Resources==
+
===Datasheets and Schematics===
+
* Schematics
+
** [http://wiki.friendlyelec.com/wiki/images/5/59/SCH_NanoPi_R2S_V1.0-1912.pdf NanoPi_R2S_V1.0_1912-Schematic.pdf]
+
** [https://wiki.friendlyelec.com/wiki/images/0/0f/NanoPi-R2S-V1.1-2009-Schematic.pdf NanoPi-R2S-V1.1-2009-Schematic.pdf]
+
 
+
* PCB Dimensional Diagram
+
** [http://wiki.friendlyelec.com/wiki/index.php/File:Dimension_NanoPi_R2S_V1.0-1912_PCB.rar NanoPi_R2S_V1.0_1912 PCB file in dxf format]
+
* Datasheet
+
** RK3328 Datasheet [http://wiki.friendlyelec.com/wiki/images/d/d7/Rockchip_RK3328_Datasheet_V1.1-20170309.pdf Rockchip_RK3328_Datasheet.pdf]
+
 
+
==Update Logs==
+
{{RK3328-UpdateLog|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.