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:
[[NanoPi R2S/zh|查看中文]]
 
  
==Introduction==
+
{{BurnLinuxToExtDrive-Rockchip/zh|NanoPC-T4}}
[[File:NanoPi R2S-1.jpg|thumb|frameless|250x250px|Overview]]
+
{{BurnLinuxToExtDrive-Rockchip|NanoPC-T4}}
[[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: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.