Difference between revisions of "RSB-4710 user guide"

From ESS-WIKI
Jump to: navigation, search
(Created page with "== '''資源特性(Features)''' == * Rockchip RK3399 ARM Dual Cortex-A72 and Quad Cortex-A53 1.8 GHz *Onboard LPDDR4 2GB *HDMI 1920x1080 at 60Hz, 1 Dual Channel 24 bit L...")
 
 
(66 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== '''資源特性(Features)''' ==
 
  
* Rockchip RK3399 ARM Dual Cortex-A72 and Quad Cortex-A53 1.8 GHz
+
== '''產品介紹(Product introduction )''' ==
*Onboard LPDDR4 2GB
 
*HDMI 1920x1080 at 60Hz, 1 Dual Channel 24 bit LVDS
 
*1 2-wire RS-232, 1 USB3.0, 1 USB2.0, 1 Micro SD, 1 Mic. in / Line out
 
*1 mini-PCIe for 3G/4G
 
*UIO expansion 3 USB2.0, 8 GPIO, 2 RS232 2/2-wires UART, 1 I2C
 
*Supports Debian9/10 and Android7.1/10.0
 
*Support I/O Expansions by UIO40-Express I/O boards, please refer to page #3 for more information
 
  
== '''訂購資訊(Ordering Information)''' ==
+
=== '''產品特性(Product Features)''' ===
  
[[File:RSB-3710 orderinfo2021-11-02 100552.jpg|RTENOTITLE]]
+
*Rockchip RK3399 ARM Dual Cortex-A72 and Quad Cortex-A53 1.8 GHz
 +
*Onboard 2GB LPDDR4 memory and 16GB eMMC
 +
*Dual HDMI(4K 60fps + 1080P), 1 x eDP, 1 x dual channel LVDS, 1 x MIPI CSI
 +
*Supports 4K H.264/H.265 video decoder
 +
*6 x serial, 1 x USB3.0, 4 x USB2.0 ,1 x USB OTG, 2 x GbE, 1 x SPI, 1 x I2C, 5 x GPIOs
 +
*M.2 for WIFI/BT support, mini-PCIe for 3G/4G support
 +
*Supports Debian9/10 and Android7.1/10.0
  
== '''规格(Specifications)''' ==
+
=== '''產品官網連結(Product official website link) ''' ===
  
== '''接口布局和尺寸(Layout and Sizes)''' ==
+
'''[https://www.advantech.com/zh-tw/products/b6edc1fb-ade2-4760-986c-451b7b3d6dd5/rsb-4710/mod_65fd847e-6e85-43ba-8efa-dfedf01b76b7 RSB-4710] '''
  
=== '''接口布局圖 Board Dimension Layout ''' ===
+
== '''硬件接口說明(Hardware interface introduction)''' ==
  
[[File:RSB-3710 product pic11 2021-11-02 100745.jpg|RTENOTITLE]]
+
=== '''接口布局和尺寸(Layout and Sizes)''' ===
  
 +
=== '''接口布局圖 Board Dimension Layout ''' ===
  
 +
'''[[File:Layout12021-08-04 085719.png|RTENOTITLE]]'''
  
[[File:RSB-3710 product pic22 2021-11-02 100837.jpg|RTENOTITLE]]
+
 
  
 +
'''[[File:Layout2 2021-08-04 085803.png|RTENOTITLE]]'''
  
 +
 
  
[[File:RSB-3710 product pic33 2021-11-02 100904.jpg|RTENOTITLE]]
+
[[File:RSB-4710 top.PNG|RTENOTITLE]] [[File:RSB-4710 back.PNG|RTENOTITLE]]
  
 
== ''' Connector List''' ==
 
== ''' Connector List''' ==
  
'''[[File:RSB-3710 Jumper and Connector Locations 2021-11-02 101526.jpg|RTENOTITLE]]'''
+
{| border="1" cellpadding="1" cellspacing="1" style="width:500px;"
 
 
{| border="1" cellspacing="1" cellpadding="1"
 
 
|-
 
|-
| BAT
+
| AUDIO
| RTC Battery Connector
+
| Audio pin header
|-
 
| HDMI
 
| HDMI1 CONN
 
 
|-
 
|-
| BL
+
| EDP
| LVDS BKL CONN
+
| EDP CONN
 
|-
 
|-
 
| LVDS
 
| LVDS
 
| LVDS CONN
 
| LVDS CONN
 
|-
 
|-
| LAN1
+
| BL
| LAN
+
| LVDS BKL CONN
 
|-
 
|-
| LAN2
+
| CSI
| LAN
+
| CSI CONN
 
|-
 
|-
 
| MINIPCIE
 
| MINIPCIE
| MINI PCIE 52P 
+
| MINI PCIe 52P
 
|-
 
|-
 
| SIM
 
| SIM
| Nano SIM Card
+
| Nano SIM card
 +
|-
 +
| M2
 +
| M.2 CONN
 +
|-
 +
| SD
 +
| SD slot
 +
|-
 +
| BTN
 +
| Power button and LED
 +
|-
 +
| DCIN1
 +
| 12V DC jack
 +
|-
 +
| COM1
 +
| COM1
 +
|-
 +
| COM2/Debug
 +
| COM2
 +
|-
 +
| HDMI1
 +
| HDMI1 CONN
 
|-
 
|-
| AUDIO
+
| HDMI2
| Audio PIN Header
+
| HDMI2 CONN
 
|-
 
|-
 
| USB1
 
| USB1
| USB CONN
+
| USB Type A (USB 3.0 and 2.0)
 +
|-
 +
| USB2
 +
| USB pin header
 +
|-
 +
| USB3
 +
| USB pin header
 +
|-
 +
| LAN1
 +
| LAN1
 
|-
 
|-
| COM2/Debug 
+
| LAN2
| COM2 
+
| LAN2
 
|-
 
|-
| SD
+
| BAT
| SD Slot
+
| RTC CONN
 +
|-
 +
| COM56
 +
| COM5 and COM6 with RS-232 or RS-485
 +
|-
 +
| COM34
 +
| COM3 and COM4 with RS-232
 
|-
 
|-
 
| OTG
 
| OTG
 
| USB
 
| USB
|-
 
| BTN
 
| Power BTN pin header 
 
 
|-
 
|-
 
| RST
 
| RST
| Reset Button
+
| Reset button
|-
 
| DCIN1 
 
| 12V DC Jack
 
 
|-
 
|-
| LED
+
| CN3
| LED
+
| GPIO CONN
 
|-
 
|-
| CN11
+
| CN1
| UIO1
+
| SPI
 
|-
 
|-
| CN12
+
| CN2
| UIO2
+
| I2C
 
|}
 
|}
 
 
  
 
=== '''接口引脚定義 (Pin definitions)''' ===
 
=== '''接口引脚定義 (Pin definitions)''' ===
  
*[[BAT|BAT]]
+
*[[电池扣(RTC)|<span style="color:#0000CD;">电池扣(RTC)</span>]]  
*[[HDMI1|HDMI1]]
+
*[[串口(RS-232_(COM1),RS-232/Debug_Port_(COM2/DEBUG),RS-232/485_(COM56),Internal_RS-232_(COM34))|<span style="color:#0000CD;">串口(RS-232 (COM1),RS-232/Debug Port (COM2/DEBUG),RS-232/485 (COM56),Internal RS-232 (COM34))</span>]]  
*[[BL|BL]]
+
*[[显示接口(LVDS,LVDS_BL,EDP,HDMI)|<span style="color:#0000CD;">显示接口(LVDS,LVDS_BL,EDP,HDMI)</span>]]  
*[[LVDS|LVDS]]
+
*[[LAN接口(LAN1,LAN2)|<span style="color:#0000CD;">LAN接口(LAN1,LAN2)</span>]]  
*[[LAN1,_LAN2|LAN1, LAN2]]
+
*[[USB接口(USB1,Pin_Header,OTG)|<span style="color:#0000CD;">USB接口(USB1,Pin Header,OTG)</span>]]  
*[[MINIPCIE|MINIPCIE]]
+
*[[音频接口(Audio)|<span style="color:#0000CD;">音频接口(Audio)</span>]]  
*[[SIM|SIM]]
+
*[[Micro_SD_&_Nano_SIM_Card|<span style="color:#0000CD;">Micro SD &&nbsp;Nano SIM Card</span>]]  
*[[Audio|Audio]]
+
*[[电源及指示灯和开关机复位按钮(DC_Power,Power_Button_and_LED,Power_Button_and_LED)|<span style="color:#0000CD;">电源及指示灯和开关机复位按钮(DC Power,Power Button and LED)</span>]]  
*[[USB1|USB1]]
+
*[[Mini_PCIe_&_MIPI_CSI_接口|<span style="color:#0000CD;">Mini PCIe &&nbsp;MIPI CSI 接口</span>]]  
*[[COM2/Debug|COM2/Debug]]
+
*[[M.2接口|<span style="color:#0000CD;">M.2接口</span>]]  
*[[SD|SD]]
+
*[[GPIO接口|<span style="color:#0000CD;">GPIO接口</span>]]  
*[[OTG|OTG]]
+
*[[SPI_,I2C接口|<span style="color:#0000CD;">SPI ,I2C接口</span>]]  
*[[BTN|BTN]]
+
*[[RSB-4710_Jumper_List|<span style="color:#0000CD;">RSB-4710 Jumper List</span>]]  
*[[RST|RST]]
 
*[[DCIN1|DCIN1]]
 
*[[LED|LED]]
 
*[[CN11|CN11]]
 
*[[CN12|CN12]]
 
*[[RSB-3710_Jumper_List|RSB-3710_Jumper List]]
 
  
 
=== '''机械尺寸&nbsp; ('''Mechanical Characteristics) ===
 
=== '''机械尺寸&nbsp; ('''Mechanical Characteristics) ===
  
[[File:RSB-3710 Mechanical 2021-11-02 102727.jpg|RTENOTITLE]]
+
[[File:RSB-4710 Dimension.PNG|RTENOTITLE]]
 +
 
 +
&nbsp;
  
 
== '''快速入门 (Quick Start)''' ==
 
== '''快速入门 (Quick Start)''' ==
 +
 +
  
 
=== '''系统下载 (OS Download)''' ===
 
=== '''系统下载 (OS Download)''' ===
  
[https://pan.baidu.com/s/1VOerXjiKg1pgvy0ZsJOErw Baidu for Android 7.1.2]&nbsp;&nbsp;&nbsp;'''提取码:'''1r5f
+
Note:&nbsp;&nbsp;LIV=Yocto Linux,&nbsp;UIV=Ubuntu,&nbsp;DIV=Debian, AIV=Android
  
'Android''系统 (Android&nbsp;OS)''''''&nbsp; &nbsp;'''
+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LBV=BSP, LIV=Image<br/> '''Debian 10:'''
  
{| cellspacing="0" cellpadding="0" border="1"
+
{| border="2"
 +
|-
 +
| '''Platform'''
 +
| '''Product'''
 +
| '''Image Version'''
 +
| '''Release Date'''
 +
| '''Release Version'''
 +
| '''Release notes'''
 +
| '''Image Download'''
 +
| '''BSP Download Tag'''
 +
| '''Comment'''
 
|-
 
|-
|  
+
| colspan="1" rowspan="1" | RK3399
'''Git BSP Tag Version'''
+
| colspan="1" rowspan="1" | RSB-4710
 +
| DIV251029
 +
| 2022/03/15
 +
| GA
 +
| [http://ess-wiki.advantech.com.tw/view/AIM-Linux/BSP/RockChip/Linux_Debian_OS_Release_note/RSB-4710/DIV251029 Release_Note]
 +
| [https://pan.baidu.com/s/1mn8zGNEjWBQhG2-jN3PfRQ Baidu]&nbsp;&nbsp; &nbsp; &nbsp;Password:a887
 +
[https://www.dropbox.com/sh/48ibo57qi1usf3p/AADX9Q1olz6V7tD1Hl2fowPMa?dl=0 Dropbox]
  
|  
+
| RK3399_RISC_DIV251029.xml
'''Product'''
+
| MP Version
 
+
|}
| &nbsp;'''BSP/Image'''
 
|  
 
'''Date'''
 
 
 
|
 
'''Alpha Release'''
 
 
 
|
 
'''Beta Release'''
 
 
 
|
 
'''MP Release'''
 
  
|
+
'''Debian 9 :'''
'''Release Note'''
 
  
 +
{| border="2"
 
|-
 
|-
| V1193<br/>
+
| '''Platform'''
| RSB-3710
+
| '''Product'''
| RK3399_N7_AIV1193_rsb_3710_2021-04-20.tgz
+
| '''Image Version'''
| 2021-04-20
+
| '''Release Date'''
|  
+
| '''Release Version'''
|  
+
| '''Release notes'''
| V
+
| '''Image Download'''
|
+
| '''BSP Download Tag'''
|}
+
| '''Comment'''
 
 
'Linux''系统 (Linux OS)''''''&nbsp;'''
 
 
 
[https://pan.baidu.com/s/1Ht2OzxW4NgaZC0Gf69ikIA Baidu link for Debian10]&nbsp;Password:nvpp
 
 
 
{| cellspacing="0" cellpadding="0" border="1"
 
 
|-
 
|-
|  
+
| colspan="1" rowspan="2" | RK3399
'''Git BSP Tag Version'''
+
| colspan="1" rowspan="2" | RSB-4710
 +
| DIV10030
 +
| 2020/12/11
 +
| Alpha
 +
| [http://ess-wiki.advantech.com.tw/view/AIM-Linux/BSP/RockChip/Linux_Debian_OS_Release_note/RSB-4710/DIV10030 Release_Note]
 +
| [https://pan.baidu.com/s/1ITX9LEH3vPYi_JZ4yD54yw Baidu]&nbsp;&nbsp; &nbsp; &nbsp;Password:a887
 +
[https://www.dropbox.com/sh/4cuyhhgwourmp28/AABDrZ1aGOoZATlzAZxzyopwa?dl=0 Dropbox]
  
|  
+
| RK3399_RISC_DIV10030.xml
'''Product'''
+
| &nbsp;
 
 
| &nbsp;'''BSP/Image'''
 
|
 
'''Date'''
 
 
 
|
 
'''Alpha Release'''
 
 
 
|
 
'''Beta Release'''
 
 
 
|
 
'''MP Release'''
 
 
 
|
 
'''Release Note'''
 
 
 
|-
 
| DIV251013<br/>
 
| RSB-3710
 
| RSB3710A2AIM20DIV251013_2021-04-15.img.tgz
 
| 2021-04-15
 
|
 
| V
 
|
 
| [http://ess-wiki.advantech.com.tw/wiki/images/e/e8/RSB-3710_Debian10_Release_note_2021-04-15.pdf Release Note]
 
 
|}
 
|}
  
== '''Android 燒錄方法 (Android&nbsp;Flash eMMC Method)&nbsp;''' ==
+
*Alpha: &nbsp;Basic I/O function bring up by RD;  
  
'''1. 請先準備一條 mirco USB 線材 和 Debug Cable&nbsp;'''
+
*Beta: &nbsp;Basic I/O function、performance and middleware verified by RD. Peripherals integrated;
  
'''&nbsp;mirco USB'''&nbsp;
+
*GA: &nbsp;Beta version by QE verification;  
  
 +
*RTM: &nbsp;Beta version by SI/Power/QE verification and pre-loaded;
  
 +
&nbsp;
  
 +
&nbsp;
  
 +
== '''Debian 燒錄方法 (Android&nbsp;Flash eMMC Method)&nbsp;''' ==
  
 +
There are three ways to update images:
  
 +
=== '''[[1._Using_AndroidToool.|1._Using_AndroidToool.]]''' ===
  
 +
There is no limitation by this way.
  
 +
=== '''[[2._Using_storage(such_sd_or_USB_disk)with_update.zip_in_it.|2._Using_storage(such&nbsp;sd_or_USB_disk)with_update.zip_in_it.]]''' ===
  
[[File:RSB-3710 mirco usb 2021-11-02 143011.jpg|RTENOTITLE]]
+
There are some&nbsp;limitations:
  
'''Debug Cable&nbsp;'''
+
(1)The device must be able to boot up to Android system.
  
[[File:RSB-3710 debug cable 2021-11-02 144650.jpg|RTENOTITLE]]
+
(2)Only update images from the same os,&nbsp; eg&nbsp;:&nbsp;
  
2. 插入 RSB-3710 的OTG port&nbsp;
+
&nbsp; &nbsp; &nbsp; &nbsp; Android6.0 upgrade to Android6.0 or&nbsp;Android7.1&nbsp;upgrade to Android7.1.
  
[[File:RSB-3710 OTG USBcable 2021-11-02 143356.jpg|RTENOTITLE]]
+
(3)Using update.zip to upgrade. (see more detail in "Create OTA zip" on how to create update.zip)
  
連接 Debug cable&nbsp;
+
=== '''[[3._Using_bootup_sd_disk_made_by_SDDiskTool.|3._Using_bootup_sd_disk&nbsp;made_by&nbsp;SDDiskTool.]]''' ===
  
[[File:RSB-3710 debug and debug port 1 2021-11-02 145203.jpg|RTENOTITLE]]
+
(1)Only update images from the same os,&nbsp; eg&nbsp;:&nbsp;
  
'''2. 設定終端機(Set Debug Terminal)&nbsp;'''
+
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Android6.0 upgrade to Android6.0 or&nbsp;Android7.1&nbsp;upgrade to Android7.1.
  
Debug 串口調試 (Debug port Setting)
+
(2)Using update.img to upgrade.
  
以 Tera Term&nbsp;&nbsp;为例介绍如何使用串口调试功能
+
== '''Linux系统的基本使用(Linux&nbsp;System Basic Operating Method)''' ==
<pre>  Baud Rate波特率:115200
 
  Data 数据位:8
 
  Parity 奇偶校验:无
 
&nbsp;  Stop 停止位:1
 
  Flow Control流控:无</pre>
 
  
:
+
=== '''User Guide''' ===
  
Tera Term Tool&nbsp;
+
RISC&nbsp;series(RSB-3710/RSB-4710/ROM-5780)
  
[[File:TeraTerm 2021-09-10 140930n.jpg|RTENOTITLE]]
+
*[http://ess-wiki.advantech.com.tw/view/Debian_BSP_User_Guide_for_rk3399_series_risc(RSB4710). Linux BSP User Guide for rk3399 series Debian9/Debian10]
 +
*[http://ess-wiki.advantech.com.tw/view/Getting_Start_(RSB4710). Getting Start]
 +
*[http://ess-wiki.advantech.com.tw/view/MAC_Address MAC_Address]  
  
[[File:TeraTerm12021-09-10 141114n.jpg|RTENOTITLE]]
+
DS-100&nbsp;
  
Note:
+
*[[IoTGateway/BSP/Linux/Linux_BSP_User_Guide_Debian9_for_rk|Linux BSP User Guide for rk3399 series Debian9]]
 +
*[[IoTGateway/BSP/Linux/Linux_BSP_User_Guide_DeviceOn|Linux BSP User Guide for rk3399 series DeviceOn]]
 +
*[[IoTGateway/BSP/Linux/Linux_BSP_User_Guide_SGI|Linux BSP User Guide for SGI [DMS-SA53]]]
  
Check the Sriel port in Device Manager (查看PC端的串口号):
+
== '''通用方法(General Method)''' ==
 
 
if you can not identify the Serial device , please check your serial driver.&nbsp;
 
 
 
 
 
 
 
3.打開燒錄軟體
 
 
 
&nbsp;[[File:RSB-3710 android tool 2021-11-02 150159.jpg|RTENOTITLE]]
 
 
 
4. 打開電源&nbsp;
 
 
 
5. 在終端機上可看到Debug 訊息, 按下'''"Ctrl + C" '''組合鍵. 進入u-boot&nbsp;
 
 
 
[[File:RSB-3710 CtrlC uboot 2021-11-02 150842.jpg|RTENOTITLE]]
 
 
 
6. 在u-boot ,輸入'''"rbrom "&nbsp; '''&nbsp;可進入燒錄模式 , Android tool 會同時顯示 '''"Found One MASKROM Device "&nbsp;'''
 
 
 
[[File:RSB-3710 rbrom 2021-11-02 151430.jpg|RTENOTITLE]]
 
 
 
 
 
 
 
7. 在RKDevTool 按下&nbsp;"Run"&nbsp; ,可進行燒錄.
 
 
 
[[File:RSB-3710 Run RKDevTool 2021-11-02 160456.jpg|RTENOTITLE]]
 
 
 
8.&nbsp; 燒錄完畢
 
 
 
&nbsp;&nbsp;[[File:RSB-3710 finish RKDevTool 2021-11-02 160931.jpg|RTENOTITLE]]
 
 
 
9. 重新拔插電源, 讓RSB-3710 重新開機 ,接上HDMI ,可顯示安卓的桌面.&nbsp;
 
 
 
[[File:RSB-3710 Android desktop pic.png|RTENOTITLE]]
 
 
 
== '''Linux&nbsp;燒錄方法 (Linux Flash eMMC Method)&nbsp;''' ==
 
 
 
'''1. 請先準備一條 mirco USB 線材 和 Debug Cable&nbsp;'''
 
 
 
'''&nbsp;mirco USB'''&nbsp;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
[[File:RSB-3710 mirco usb 2021-11-02 143011.jpg|RTENOTITLE]]
 
 
 
'''Debug Cable&nbsp;'''
 
 
 
[[File:RSB-3710 debug cable 2021-11-02 144650.jpg|RTENOTITLE]]
 
 
 
2. 插入 RSB-3710 的OTG port&nbsp;
 
 
 
[[File:RSB-3710 OTG USBcable 2021-11-02 143356.jpg|RTENOTITLE]]
 
 
 
連接 Debug cable&nbsp;
 
 
 
[[File:RSB-3710 debug and debug port 1 2021-11-02 145203.jpg|RTENOTITLE]]
 
 
 
'''3. 設定終端機(Set Debug Terminal)&nbsp;'''
 
 
 
Debug 串口調試 (Debug port Setting)
 
 
 
以 Tera Term&nbsp;&nbsp;为例介绍如何使用串口调试功能
 
<pre>  Baud Rate波特率:115200
 
  Data 数据位:8
 
  Parity 奇偶校验:无
 
&nbsp;  Stop 停止位:1
 
  Flow Control流控:无</pre>
 
 
 
:
 
 
 
Tera Term Tool&nbsp;
 
 
 
[[File:TeraTerm 2021-09-10 140930n.jpg|RTENOTITLE]]
 
 
 
[[File:TeraTerm12021-09-10 141114n.jpg|RTENOTITLE]]
 
 
 
Note:
 
 
 
查看PC端的串口号(Check the Sriel port in Device Manager)&nbsp;:
 
 
 
如果沒有找到 請先確認是否有安裝驅動(if you can not identify the Serial device , please check your serial driver.)&nbsp;
 
 
 
 
 
 
 
3.打開燒錄軟體
 
 
 
&nbsp;[[File:RSB-3710 RKDevTool Debian 2021-11-02 171049.jpg|RTENOTITLE]]
 
 
 
4. 打開電源&nbsp;
 
 
 
5. 在終端機上可看到Debug 訊息, 按下'''"Ctrl + C" '''組合鍵. 進入u-boot&nbsp;
 
 
 
[[File:RSB-3710 CtrlC uboot 2021-11-02 150842.jpg|RTENOTITLE]]
 
 
 
6. 如果已經安裝過了安卓&nbsp;,再燒錄Debian&nbsp; 有可能會燒錄失敗. 所以要經過此步驟,清除已經燒錄過的安卓系統.&nbsp;
 
 
 
&nbsp; &nbsp; 請參考如何清除原生系統
 
 
 
7.&nbsp; 清除後,重新上電,會直接進入 "Found One MASKROM Device" 燒錄模式
 
 
 
&nbsp; &nbsp;&nbsp;
 
 
 
 
 
 
 
 
 
 
 
8. 在RKDevTool 按下&nbsp;"Run"&nbsp; ,可進行燒錄.
 
 
 
[[File:RSB-3710 Run RKDevTool 2021-11-02 160456.jpg|RTENOTITLE]]
 
 
 
9.&nbsp; 燒錄完畢
 
 
 
&nbsp;&nbsp;[[File:RSB-3710 finish RKDevTool 2021-11-02 160931.jpg|RTENOTITLE]]
 
 
 
10. 重新拔插電源, 讓RSB-3710 重新開機 ,接上HDMI ,可顯示安卓的桌面.&nbsp;
 
 
 
 
 
 
 
'''&nbsp; &nbsp;&nbsp;'''
 
 
 
== '''Linux系统的基本使用(Linux&nbsp;System Basic Operating Method)''' ==
 
 
 
=== '''&nbsp; &nbsp; &nbsp; Display Setting (RSB-3710)''' ===
 
 
 
'''&nbsp; &nbsp; &nbsp; U-boot&nbsp;Command&nbsp;'''
 
  
 
=== '''乙太網路使用方法(Ethernent Testing Method)''' ===
 
=== '''乙太網路使用方法(Ethernent Testing Method)''' ===
  
 
'''Command&nbsp;: ifconfig&nbsp;'''
 
'''Command&nbsp;: ifconfig&nbsp;'''
 +
<pre>root@linaro-alip:~# ifconfig
 +
docker0: flags=4099<UP,BROADCAST,MULTICAST> &nbsp;mtu 1500
 +
&nbsp; &nbsp; &nbsp; &nbsp; inet 172.17.0.1 &nbsp;netmask 255.255.0.0 &nbsp;broadcast 172.17.255.255
 +
&nbsp; &nbsp; &nbsp; &nbsp; ether 02:42:83:27:77:c0 &nbsp;txqueuelen 0 &nbsp;(Ethernet)
 +
&nbsp; &nbsp; &nbsp; &nbsp; RX packets 0 &nbsp;bytes 0 (0.0 B)
 +
&nbsp; &nbsp; &nbsp; &nbsp; RX errors 0 &nbsp;dropped 0 &nbsp;overruns 0 &nbsp;frame 0
 +
&nbsp; &nbsp; &nbsp; &nbsp; TX packets 0 &nbsp;bytes 0 (0.0 B)
 +
&nbsp; &nbsp; &nbsp; &nbsp; TX errors 0 &nbsp;dropped 0 overruns 0 &nbsp;carrier 0 &nbsp;collisions 0
  
[[File:RSB-3720 ifconfig eth0 2021-10-28 142051.jpg|RTENOTITLE]]
+
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> &nbsp;mtu 1500
 +
&nbsp; &nbsp; &nbsp; &nbsp; inet 192.168.127.101 &nbsp;netmask 255.255.255.0 &nbsp;broadcast 192.168.127.255
 +
&nbsp; &nbsp; &nbsp; &nbsp; inet6 fe80::e405:b000:5963:d697 &nbsp;prefixlen 64 &nbsp;scopeid 0x20<link>
 +
&nbsp; &nbsp; &nbsp; &nbsp; ether c6:ff:6c:34:9d:7d &nbsp;txqueuelen 1000 &nbsp;(Ethernet)
 +
&nbsp; &nbsp; &nbsp; &nbsp; RX packets 23 &nbsp;bytes 7566 (7.3 KiB)
 +
&nbsp; &nbsp; &nbsp; &nbsp; RX errors 0 &nbsp;dropped 0 &nbsp;overruns 0 &nbsp;frame 0
 +
&nbsp; &nbsp; &nbsp; &nbsp; TX packets 45 &nbsp;bytes 5391 (5.2 KiB)
 +
&nbsp; &nbsp; &nbsp; &nbsp; TX errors 0 &nbsp;dropped 0 overruns 0 &nbsp;carrier 0 &nbsp;collisions 0
 +
&nbsp; &nbsp; &nbsp; &nbsp; device interrupt 24
  
[[File:RSB-3720 ifconfig eth1 2021-10-28 142202.jpg|RTENOTITLE]]
+
eth1: flags=4099<UP,BROADCAST,MULTICAST> &nbsp;mtu 1500
 +
&nbsp; &nbsp; &nbsp; &nbsp; ether 96:a4:98:8d:52:09 &nbsp;txqueuelen 1000 &nbsp;(Ethernet)
 +
&nbsp; &nbsp; &nbsp; &nbsp; RX packets 0 &nbsp;bytes 0 (0.0 B)
 +
&nbsp; &nbsp; &nbsp; &nbsp; RX errors 0 &nbsp;dropped 0 &nbsp;overruns 0 &nbsp;frame 0
 +
&nbsp; &nbsp; &nbsp; &nbsp; TX packets 0 &nbsp;bytes 0 (0.0 B)
 +
&nbsp; &nbsp; &nbsp; &nbsp; TX errors 0 &nbsp;dropped 0 overruns 0 &nbsp;carrier 0 &nbsp;collisions 0
  
'''Command: Ping 8.8.8.8&nbsp;'''
+
lo: flags=73<UP,LOOPBACK,RUNNING> &nbsp;mtu 65536
 +
&nbsp; &nbsp; &nbsp; &nbsp; inet 127.0.0.1 &nbsp;netmask 255.0.0.0
 +
&nbsp; &nbsp; &nbsp; &nbsp; inet6&nbsp;::1 &nbsp;prefixlen 128 &nbsp;scopeid 0x10<host>
 +
&nbsp; &nbsp; &nbsp; &nbsp; loop &nbsp;txqueuelen 1 &nbsp;(Local Loopback)
 +
&nbsp; &nbsp; &nbsp; &nbsp; RX packets 484 &nbsp;bytes 32428 (31.6 KiB)
 +
&nbsp; &nbsp; &nbsp; &nbsp; RX errors 0 &nbsp;dropped 0 &nbsp;overruns 0 &nbsp;frame 0
 +
&nbsp; &nbsp; &nbsp; &nbsp; TX packets 484 &nbsp;bytes 32428 (31.6 KiB)
 +
&nbsp; &nbsp; &nbsp; &nbsp; TX errors 0 &nbsp;dropped 0 overruns 0 &nbsp;carrier 0 &nbsp;collisions 0
  
[[File:RSB-3720 ping 8888 2021-10-28 142402.jpg|RTENOTITLE]]
+
</pre>
  
=== '''WiFi使用方法(WIFI Testing Method)''' ===
+
'''Command&nbsp;: ping 192.168.127.101'''
<pre># killall wpa_supplicant
+
<pre>root@linaro-alip:~# ping 192.168.127.101
# ifconfig wlan0 up
+
PING 192.168.127.101 (192.168.127.101) 56(84) bytes of data.
# wpa_passphrase "SSID" "PASSWORD" > /tmp/wpa.conf
+
64 bytes from 192.168.127.101: icmp_seq=1 ttl=64 time=0.221 ms
# cat /tmp/wpa.conf
+
64 bytes from 192.168.127.101: icmp_seq=2 ttl=64 time=0.135 ms
# wpa_supplicant -BDwext -iwlan0 -c/tmp/wpa.conf
+
64 bytes from 192.168.127.101: icmp_seq=3 ttl=64 time=0.134 ms
# udhcpc -b -i wlan0
+
64 bytes from 192.168.127.101: icmp_seq=4 ttl=64 time=0.137 ms
# ifconfig
+
64 bytes from 192.168.127.101: icmp_seq=5 ttl=64 time=0.137 ms
# ping 8.8.8.8
+
^C
Add DNS to /etc/resolv.conf
+
--- 192.168.127.101 ping statistics ---
# cat /etc/resolv.conf
+
5 packets transmitted, 5 received, 0% packet loss, time 5ms
# Generated by Connection Manager
+
rtt min/avg/max/mdev = 0.134/0.152/0.221/0.037 ms
nameserver 8.8.8.8
+
root@linaro-alip:~#
nameserver 8.8.4.4
+
</pre>
Now can ping google.com
 
# ping google.com</pre>
 
  
=== '''4G使用方法(4G Testing Method)''' ===
+
=== &nbsp; '''&nbsp; &nbsp; 查看CPU温度(Check CPU Temperature)''' ===
 +
<pre>root@linaro-alip:~# cat /sys/devices/virtual/thermal/thermal_zone0/temp  34444
 +
# 或者直接以度爲單位顯示 echo $[$(cat /sys/class/thermal/thermal_zone0/temp)/1000]° >>> 37°
 +
</pre>
  
'''Check and change module to pppd mode<br/># stty -F /dev/ttyUSB3 –echo<br/># cat /dev/ttyUSB3 &<br/># echo AT+UUSBCONF? > /dev/ttyUSB3<br/>&nbsp;[[File:RSB-3720 4G pic1.png|RTENOTITLE]]<br/>Change to pppd mode:<br/># echo AT+UUSBCONF=0 > /dev/ttyUSB3<br/>&nbsp;[[File:RSB-3720 4G pic2.png|RTENOTITLE]]<br/># echo AT+CFUN=16 > /dev/ttyUSB3<br/>&nbsp;[[File:RSB-3720 4G pic3.png|RTENOTITLE]]<br/>The module will be change to ttyACM0*, check again<br/># stty -F /dev/ttyACM0 –echo<br/># cat /dev/ttyACM0 &<br/># echo AT+UUSBCONF? > /dev/ttyACM0<br/>&nbsp;[[File:RSB-3720 4G pic4.png|RTENOTITLE]]<br/>Set module to con<br/># stty -F /dev/ttyACM0 -echo<br/># cat /dev/ttyACM0 &<br/># echo AT+csq > /dev/ttyACM0<br/># echo AT+cops? > /dev/ttyACM0<br/># echo AT+cgdcont? > /dev/ttyACM0<br/>&nbsp;[[File:RSB-3720 4G pic5.png|RTENOTITLE]]<br/>Connect to Internet:<br/># pppd connect 'chat -v -s -t 10 "" "AT" "" "ATDT*99***4#" "CONNECT" ""' user username password password /dev/ttyACM2 460800 nodetach crtscts debug usepeerdns defaultroute &<br/># ifconfig<br/>&nbsp;[[File:RSB-3720 4G pic6.png|RTENOTITLE]]<br/># ping 8.8.8.8'''
+
=== '''&nbsp; &nbsp; &nbsp;&nbsp;查看CPU频率(Check CPU Frequency)''' ===
 +
<pre>root@linaro-alip:~# cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
 +
408000
 +
root@linaro-alip:~# cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
 +
1416000
 +
</pre>
  
'''[[File:RSB-3720 4G pic7.png|RTENOTITLE]]'''
+
=== '''&nbsp; &nbsp;&nbsp; 查看内存容量(Check Memory&nbsp;Capacity)''' ===
 +
<pre>root@linaro-alip:~# busybox free -m
 +
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; total &nbsp; &nbsp; &nbsp; &nbsp;used &nbsp; &nbsp; &nbsp; &nbsp;free &nbsp; &nbsp; &nbsp;shared &nbsp;buff/cache &nbsp; available
 +
Mem: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1961 &nbsp; &nbsp; &nbsp; &nbsp; 269 &nbsp; &nbsp; &nbsp; &nbsp;1454 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;18 &nbsp; &nbsp; &nbsp; &nbsp; 237 &nbsp; &nbsp; &nbsp; &nbsp;1696
 +
Swap: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0
 +
</pre>
  
=== '''GPIO使用方法(GPIO Operating Method)''' ===
+
=== '''&nbsp; &nbsp; &nbsp;&nbsp;查看存储容量(Check Storage Capacity)''' ===
 +
<pre>root@linaro-alip:~# df -h
 +
Filesystem &nbsp; &nbsp; &nbsp; Size &nbsp;Used Avail Use% Mounted on
 +
/dev/root &nbsp; &nbsp; &nbsp; &nbsp;7.9G &nbsp;2.6G &nbsp;4.9G &nbsp;35% /
 +
devtmpfs &nbsp; &nbsp; &nbsp; &nbsp; 973M &nbsp;8.0K &nbsp;973M &nbsp; 1% /dev
 +
tmpfs &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;981M &nbsp; &nbsp; 0 &nbsp;981M &nbsp; 0% /dev/shm
 +
tmpfs &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;981M &nbsp;8.9M &nbsp;972M &nbsp; 1% /run
 +
tmpfs &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;5.0M &nbsp;4.0K &nbsp;5.0M &nbsp; 1% /run/lock
 +
tmpfs &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;981M &nbsp; &nbsp; 0 &nbsp;981M &nbsp; 0% /sys/fs/cgroup
 +
/dev/mmcblk1p10 &nbsp;6.4G &nbsp;3.8M &nbsp;6.4G &nbsp; 1% /userdata
 +
/dev/mmcblk1p7 &nbsp; &nbsp;63M &nbsp; 13M &nbsp; 48M &nbsp;21% /oem
 +
tmpfs &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;197M &nbsp;8.0K &nbsp;197M &nbsp; 1% /run/user/1000
 +
tmpfs &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;197M &nbsp; &nbsp; 0 &nbsp;197M &nbsp; 0% /run/user/0
 +
root@linaro-alip:~#
 +
</pre>
  
{| border="1" cellspacing="1" cellpadding="1"
+
=== '''設置RTC (RTC Setting)&nbsp;''' ===
|-
 
| GPIO Pin
 
| Number
 
|-
 
| GPIO2
 
| 501
 
|-
 
| GPIO4
 
| 503
 
|-
 
| GPIO5<br/>
 
| 504
 
|-
 
| GPIO6<br/>
 
| 505
 
|-
 
| GPIO7<br/>
 
| 506
 
|-
 
| GPIO8<br/>
 
| 507
 
|-
 
| GPIO9<br/>
 
| 508
 
|-
 
| GPIO10<br/>
 
| 509
 
|-
 
| GPIO11<br/>
 
| 139
 
|-
 
| GPIO12<br/>
 
| 138
 
|}
 
  
Short GPIO pin 2 & pin 4
+
&nbsp;
 +
<syntaxhighlight lang="1">root@linaro-alip:~# date
 +
Wed May 11 01:12:06 UTC 2022
 +
root@linaro-alip:~# date -s "2022-5-11 09:12:00"
 +
Wed May 11 09:12:00 UTC 2022
 +
root@linaro-alip:~# date
 +
Wed May 11 09:12:06 UTC 2022
 +
root@linaro-alip:~# hwclock -w
 +
root@linaro-alip:~# hwclock
 +
2022-05-11 09:12:17.266424+00:00</syntaxhighlight>
  
[[File:RSB-3720 gpio short24.png|RTENOTITLE]]
+
=== '''WiFi使用方法(WIFI Testing Method)''' ===
  
Short GPIO pin 5 & pin 6
+
'''1.Click Settings'''
  
[[File:RSB-3720 gpio short56.png|RTENOTITLE]]
+
'''2.Turn on Wi-Fi'''
  
Short GPIO pin 7 & pin 8
+
'''3.Choose ESSID (for example, Advantech for guest)'''
  
[[File:RSB-3720 gpio short78.png|RTENOTITLE]]
+
'''4.Input the password'''
  
Short GPIO pin 9 & pin 10&nbsp;
+
'''5.Wi-Fi connected'''
  
[[File:RSB-3720 gpio short910.png|RTENOTITLE]]
+
=== '''4G使用方法(4G Testing Method)''' ===
 
 
Short GPIO pin 11 & pin 12
 
 
 
[[File:RSB-3720 gpio short1112.png|RTENOTITLE]]
 
 
 
=== '''COM1複合使用方法(COM1 complex&nbsp;Port Operating&nbsp;Method)'''&nbsp; ===
 
 
 
'''Set GPIO#496, #497&nbsp;<br/>Set to 0,1 for RS-485<br/>Set to 1,1 for RS-422<br/>Set to 0,0 for loopback<br/>Set to 1,0 for RS-232'''
 
 
 
RS-232 default as debug console)
 
 
 
[[File:RSB-3720 COM1 2021-10-21 152125.jpg|RTENOTITLE]]
 
<pre>RS-485 test
 
Test RS-485 with Adam-4520. Adam-4520 Pin to RSB-3720 COM1
 
Data-&nbsp;: Pin 1: COM_DCD
 
Data+&nbsp;: Pin 3: COM_RXD
 
 
 
RS-485 test
 
# echo 496 > /sys/class/gpio/export
 
# echo 497 > /sys/class/gpio/export
 
# echo out > /sys/class/gpio/gpio1/direction
 
# echo out > /sys/class/gpio/gpio2/direction
 
# echo 0 > /sys/class/gpio/gpio1/value
 
# echo 1 > /sys/class/gpio/gpio2/value
 
# ./enable485 /dev/ttymxc2
 
# stty -F /dev/ttymxc2 speed 115200 ignbrk -brkint -icrnl -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke
 
# cat /dev/ttymxc2 &
 
# echo "Serial Test" > /dev/ttymxc2
 
Will print “Serial Test” through RS-485</pre>
 
 
 
'''RS-232&nbsp; --&nbsp; Disable console'''
 
 
 
:Disable debug message output can also improve boot speed
 
 
 
Disable kernel message
 
<pre>setenv mmcargs setenv bootargs ${jh_clk} console=${console} modprobe.blacklist=${modprobe.blacklist} root=${mmcroot} video=HDMI-A-1:${videores} '''quiet'''
 
env save
 
reset
 
</pre>
 
 
 
Or
 
 
 
Disable debug port
 
 
 
(1) Yocto machine setting:
 
 
 
modify /sources/meta-advantech/meta-fsl-imx/conf/machine$/${MC}.conf
 
<pre>SERIAL_CONSOLES = ";"
 
</pre>
 
 
 
(2) Uboot parameter&nbsp;setting:
 
 
 
*For the imx8mq, imx8mm,&nbsp;imx8mp:
 
<pre>setenv console disabled
 
env save
 
reset
 
</pre>
 
  
 
=== '''蓝牙使用方法(BlueTooth Operating&nbsp;Method)''' ===
 
=== '''蓝牙使用方法(BlueTooth Operating&nbsp;Method)''' ===
<pre># hciattach /dev/ttymxc0 bcm43xx 115200 flow
 
# hciconfig hci0 up
 
# hcitool scan# bluetoothctl
 
# discoverable on
 
#pairable on
 
# scan on
 
# scan off
 
# pair 84:C5:A6:D3:AF:E4
 
# connect 84:C5:A6:D3:AF:E4
 
Check BT connect info
 
# info 84:C5:A6:D3:AF:E4</pre>
 
  
 
=== '''音訊使用方法(BlueTooth Operating&nbsp;Method)''' ===
 
=== '''音訊使用方法(BlueTooth Operating&nbsp;Method)''' ===
<pre>Line-in , Line-out, MIC
 
1.Line-out
 
Command&nbsp;: gplay-1.0
 
2.MIC
 
Command&nbsp;: arecord
 
Check audio codec:
 
 
# cat /proc/asound/cards
 
0 [sgtl5000      ]: sgtl5000 - sgtl5000
 
                      sgtl5000
 
1 [audiohdmi      ]: audio-hdmi - audio-hdmi
 
                      audio-hdmi
 
root@imx8mprsb3720a1:~#
 
  Set Mic/audio volume
 
# amixer set Mic 100%
 
# amixer set Lineout 100%
 
# amixer set PCM 100%
 
 
Record and playback
 
Example command:
 
# arecord –t wav –c 1 –r 44100 –d 5 /tmp/mic.wav
 
# aplay /tmp/mic.wav
 
 
Record from MIC:
 
# arecord -D plughw:0,0 -r 16000 -f S16_LE ./f-16000.wav
 
Recording WAVE './f-16000.wav'&nbsp;: Signed 16 bit Little Endian, Rate 16000 Hz, Mono
 
# aplay f-16000.wav
 
Playing WAVE 'f-16000.wav'&nbsp;: Signed 16 bit Little Endian, Rate 16000 Hz, Mono
 
 
Play wav file from codec:
 
# aplay -D plughw:0,0 file_example_WAV_10MG.wav
 
Playing WAVE 'file_example_WAV_10MG.wav'&nbsp;: Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
 
 
Play wav file from HDMI:
 
# aplay -D plughw:1,0 file_exam
 
ple_WAV_10MG.wav
 
Playing WAVE 'file_example_WAV_10MG.wav'&nbsp;: Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
 
</pre>
 
  
 
=== '''I2C 測試( I2C Test method)&nbsp;''' ===
 
=== '''I2C 測試( I2C Test method)&nbsp;''' ===
<pre>Check I2C device (Audio codec: 0-000a)
 
# i2cdetect -y 0
 
I2C set and get:
 
# i2cset -f -y 0 0x0a 0 0xff00 w
 
# i2cget -f -y 0 0x0a 0 w
 
0x11a0
 
</pre>
 
  
 
=== '''看門狗測試 (Watch Dog Test method)&nbsp;''' ===
 
=== '''看門狗測試 (Watch Dog Test method)&nbsp;''' ===
<pre>System will reboot after 1 sec
 
# /unit_tests/Watchdog/wdt_driver_test.out 1 2 0</pre>
 
 
[[File:RSB-3720 watchdog.png|RTENOTITLE]]
 
  
 
=== '''攝像頭測試(Camera Test method)&nbsp;''' ===
 
=== '''攝像頭測試(Camera Test method)&nbsp;''' ===
<pre>Check MIPI CSI camera
 
MIPI CSI0:
 
MIPI CSI1:
 
  
MIPI CSI0 - ov5640
+
=== '''遠程訪問及文件傳輸(Remote Access and File Transimmion)'''​ ===
Preview:
 
# gst-launch-1.0 v4l2src device=/dev/video0&nbsp;! video/x-raw,width=640,height=480&nbsp;! waylandsink
 
Capture:
 
# gst-launch-1.0 v4l2src num-buffers=1 device=/dev/video0&nbsp;! video/x-raw,width=640,height=480&nbsp;! jpegenc&nbsp;! filesink location=sample.jpeg
 
MIPI CSI1 – ov5640
 
Preview:
 
# gst-launch-1.0 v4l2src device=/dev/video1&nbsp;! video/x-raw,width=640,height=480&nbsp;! waylandsink
 
Capture:
 
# gst-launch-1.0 v4l2src num-buffers=1 device=/dev/video1&nbsp;! video/x-raw,width=640,height=480&nbsp;! jpegenc&nbsp;! filesink location=sample.jpeg</pre>
 
  
=== '''遠程訪問及文件傳輸(Remote Access and File Transimmion)''' ===
+
== QT 安装步骤 ==
  
'''&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 查看主板IP位址&nbsp;(&nbsp;Chech IP Address ):'''​
+
[[Qt5Creator_toolchain_Qt_5.11.3|Qt5Creator_toolchain_Qt_5.11.3]]
<pre>        Command&nbsp;: ifconfig</pre>
 
  
[[File:Eth0ssh 2021-09-10 143210.jpg|RTENOTITLE]]
+
== How to build Debian 9 & 10 BSP (Debian 9 & 10 BSP 編譯) ==
  
==== Windows下SSH访问及文件传输 ====
+
[http://ess-wiki.advantech.com.tw/view/Debian_BSP_User_Guide_for_rk3399_risc_series http://ess-wiki.advantech.com.tw/view/Debian_BSP_User_Guide_for_rk3399_risc_series]
  
SSH Remote Log into Device&nbsp;
+
&nbsp;
  
*SSH远程登录,以putty选择putty.exe(或者使用Xshell、SecureCRT等类似软件)
+
{| border="0" cellpadding="10" cellspacing="0" style="width:100%;"
*需要设置远程设备的IP、通讯端口(默认22)、通讯方式,登录后验证用户名密码
+
|-
 
+
| <iframe height="230" key="advonline" level="campaign" path="en/aim-linux_community/" width="100%"></iframe>
 
+
|}
 
 
[[File:SSHsettingdetail.png|RTENOTITLE]]
 
 
 
[[File:SSHSetting2021-09-10 143631.jpg|RTENOTITLE]]
 
 
 
 
 
 
 
[[File:Sshsetting12021-09-10 143743n.jpg|RTENOTITLE]]
 
 
 
[[File:RSB-3720 ssh console.png|RTENOTITLE]]
 
 
 
== '''通用方法(General Method)''' ==
 
 
 
=== &nbsp; '''&nbsp; &nbsp; 查看CPU温度(Check CPU Temperature)''' ===
 
<pre>    root@imx8mprsb3720a1:/# cat /sys/devices/virtual/thermal/thermal_zone0/temp  40000
 
 
 
    # 或者直接以度爲單位顯示 echo $[$(cat /sys/class/thermal/thermal_zone0/temp)/1000]° >>> 40°</pre>
 
 
 
=== '''&nbsp; &nbsp; &nbsp;&nbsp;查看CPU频率(Check CPU Frequency)''' ===
 
<pre>          cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
 
          >> 1200000
 
          cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq   
 
          >> 1800000</pre>
 
 
 
=== '''&nbsp; &nbsp; &nbsp;&nbsp;查看内存容量(Check Memory&nbsp;Capacity)''' ===
 
<pre>root@imx8mprsb3720a1:/# busybox free -m
 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; total &nbsp; &nbsp; &nbsp; &nbsp;used &nbsp; &nbsp; &nbsp; &nbsp;free &nbsp; &nbsp; &nbsp;shared &nbsp;buff/cache &nbsp; available
 
Mem: &nbsp; &nbsp; &nbsp; &nbsp;6002524 &nbsp; &nbsp; &nbsp;393988 &nbsp; &nbsp; 5517304 &nbsp; &nbsp; &nbsp; 18460 &nbsp; &nbsp; &nbsp; 91232 &nbsp; &nbsp; 5507676
 
Swap: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0
 
</pre>
 
 
 
=== '''&nbsp; &nbsp; &nbsp;&nbsp;查看存储容量(Check Storage Capacity)''' ===
 
<pre>root@imx8qxprom5620a1:/# busybox df -h
 
Filesystem                Size      Used Available Use% Mounted on
 
/dev/root                13.4G      1.7G    11.1G  13% /
 
devtmpfs                395.8M      4.0K    395.8M  0% /dev
 
tmpfs                  876.4M        0    876.4M  0% /dev/shm
 
tmpfs                  876.4M    16.5M    859.9M  2% /run
 
tmpfs                  876.4M        0    876.4M  0% /sys/fs/cgroup
 
tmpfs                  876.4M      4.0K    876.4M  0% /tmp
 
tmpfs                  876.4M    280.0K    876.2M  0% /var/volatile
 
/dev/mmcblk0p2          13.6G      1.7G    11.3G  13% /run/media/mmcblk0p2
 
/dev/mmcblk0p1          63.9M    23.4M    40.5M  37% /run/media/mmcblk0p1
 
/dev/mmcblk1p1          63.9M    23.4M    40.5M  37% /run/media/mmcblk1p1
 
tmpfs                  175.3M    88.0K    175.2M  0% /run/user/0
 
root@imx8qxprom5620a1:/#</pre>
 
 
 
=== '''&nbsp;網路Ping測試(Ping Network Testing)''' ===
 
<pre>    ping 8.8.8.8
 
    PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
 
    64 bytes from 8.8.8.8: icmp_seq=1 ttl=54 time=2.10 ms
 
    64 bytes from 8.8.8.8: icmp_seq=2 ttl=54 time=2.10 ms</pre>
 
 
 
=== '''設置RTC (RTC Setting)&nbsp;''' ===
 
 
 
&nbsp;Disable RTC sync service<br/># systemctl disable ntpd.service<br/>&nbsp;[[File:RSB-3720 RTC pic1.png|RTENOTITLE]]<br/># systemctl stop systemd-timesyncd<br/># systemctl stop ntpdate.service<br/>&nbsp;[[File:RSB-3720 RTC pic2.png|RTENOTITLE]]<br/>Set system time to current, then write to RTC<br/># date 040710522021 && hwclock -w && date<br/>&nbsp;[[File:RSB-3720 RTC pic3.png|RTENOTITLE]]<br/>Set incorrect time, then read time from RTC<br/># date 010100002000 && hwclock -r && date<br/>&nbsp;[[File:RSB-3720 RTC pic4.png|RTENOTITLE]]<br/>Restart the RTC time to system time<br/># hwclock -s && date
 
 
 
[[File:RSB-3720 RTC pic5.png|RTENOTITLE]]&nbsp;
 
 
 
== '''Android&nbsp;BSP編譯方法(Android BSP Compile Method)''' ==
 
 
 
=== ===
 
 
 
'''如果有驗證上的錯誤 請使用以下的方法'''
 
 
 
<u>'''### repo sync failed with Server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none<br/>============================================================<br/>export GIT_SSL_NO_VERIFY=1<br/>#or<br/>git config --global http.sslverify false<br/>============================================================'''</u>
 

Latest revision as of 08:48, 26 April 2024

Contents

產品介紹(Product introduction )

產品特性(Product Features)

  • Rockchip RK3399 ARM Dual Cortex-A72 and Quad Cortex-A53 1.8 GHz
  • Onboard 2GB LPDDR4 memory and 16GB eMMC
  • Dual HDMI(4K 60fps + 1080P), 1 x eDP, 1 x dual channel LVDS, 1 x MIPI CSI
  • Supports 4K H.264/H.265 video decoder
  • 6 x serial, 1 x USB3.0, 4 x USB2.0 ,1 x USB OTG, 2 x GbE, 1 x SPI, 1 x I2C, 5 x GPIOs
  • M.2 for WIFI/BT support, mini-PCIe for 3G/4G support
  • Supports Debian9/10 and Android7.1/10.0

產品官網連結(Product official website link) 

RSB-4710 

硬件接口說明(Hardware interface introduction)

接口布局和尺寸(Layout and Sizes)

接口布局圖 Board Dimension Layout 

RTENOTITLE

 

RTENOTITLE

 

RTENOTITLE RTENOTITLE

 Connector List

AUDIO Audio pin header
EDP EDP CONN
LVDS LVDS CONN
BL LVDS BKL CONN
CSI CSI CONN
MINIPCIE MINI PCIe 52P
SIM Nano SIM card
M2 M.2 CONN
SD SD slot
BTN Power button and LED
DCIN1 12V DC jack
COM1 COM1
COM2/Debug COM2
HDMI1 HDMI1 CONN
HDMI2 HDMI2 CONN
USB1 USB Type A (USB 3.0 and 2.0)
USB2 USB pin header
USB3 USB pin header
LAN1 LAN1
LAN2 LAN2
BAT RTC CONN
COM56 COM5 and COM6 with RS-232 or RS-485
COM34 COM3 and COM4 with RS-232
OTG USB
RST Reset button
CN3 GPIO CONN
CN1 SPI
CN2 I2C

接口引脚定義 (Pin definitions)

机械尺寸  (Mechanical Characteristics)

RTENOTITLE

 

快速入门 (Quick Start)

系统下载 (OS Download)

Note:  LIV=Yocto Linux, UIV=Ubuntu, DIV=Debian, AIV=Android

             LBV=BSP, LIV=Image
Debian 10:

Platform Product Image Version Release Date Release Version Release notes Image Download BSP Download Tag Comment
RK3399 RSB-4710 DIV251029 2022/03/15 GA Release_Note Baidu      Password:a887

Dropbox

RK3399_RISC_DIV251029.xml MP Version

Debian 9 :

Platform Product Image Version Release Date Release Version Release notes Image Download BSP Download Tag Comment
RK3399 RSB-4710 DIV10030 2020/12/11 Alpha Release_Note Baidu      Password:a887

Dropbox

RK3399_RISC_DIV10030.xml  
  • Alpha:  Basic I/O function bring up by RD;
  • Beta:  Basic I/O function、performance and middleware verified by RD. Peripherals integrated;
  • GA:  Beta version by QE verification;
  • RTM:  Beta version by SI/Power/QE verification and pre-loaded;

 

 

Debian 燒錄方法 (Android Flash eMMC Method) 

There are three ways to update images:

1._Using_AndroidToool.

There is no limitation by this way.

2._Using_storage(such sd_or_USB_disk)with_update.zip_in_it.

There are some limitations:

(1)The device must be able to boot up to Android system.

(2)Only update images from the same os,  eg : 

        Android6.0 upgrade to Android6.0 or Android7.1 upgrade to Android7.1.

(3)Using update.zip to upgrade. (see more detail in "Create OTA zip" on how to create update.zip)

3._Using_bootup_sd_disk made_by SDDiskTool.

(1)Only update images from the same os,  eg : 

         Android6.0 upgrade to Android6.0 or Android7.1 upgrade to Android7.1.

(2)Using update.img to upgrade.

Linux系统的基本使用(Linux System Basic Operating Method)

User Guide

RISC series(RSB-3710/RSB-4710/ROM-5780)

DS-100 

通用方法(General Method)

乙太網路使用方法(Ethernent Testing Method)

Command : ifconfig 

root@linaro-alip:~# ifconfig
docker0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 172.17.0.1  netmask 255.255.0.0  broadcast 172.17.255.255
        ether 02:42:83:27:77:c0  txqueuelen 0  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.127.101  netmask 255.255.255.0  broadcast 192.168.127.255
        inet6 fe80::e405:b000:5963:d697  prefixlen 64  scopeid 0x20<link>
        ether c6:ff:6c:34:9d:7d  txqueuelen 1000  (Ethernet)
        RX packets 23  bytes 7566 (7.3 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 45  bytes 5391 (5.2 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 24

eth1: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 96:a4:98:8d:52:09  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 484  bytes 32428 (31.6 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 484  bytes 32428 (31.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Command : ping 192.168.127.101

root@linaro-alip:~# ping 192.168.127.101
PING 192.168.127.101 (192.168.127.101) 56(84) bytes of data.
64 bytes from 192.168.127.101: icmp_seq=1 ttl=64 time=0.221 ms
64 bytes from 192.168.127.101: icmp_seq=2 ttl=64 time=0.135 ms
64 bytes from 192.168.127.101: icmp_seq=3 ttl=64 time=0.134 ms
64 bytes from 192.168.127.101: icmp_seq=4 ttl=64 time=0.137 ms
64 bytes from 192.168.127.101: icmp_seq=5 ttl=64 time=0.137 ms
^C
--- 192.168.127.101 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 5ms
rtt min/avg/max/mdev = 0.134/0.152/0.221/0.037 ms
root@linaro-alip:~#

      查看CPU温度(Check CPU Temperature)

root@linaro-alip:~# cat /sys/devices/virtual/thermal/thermal_zone0/temp   34444
# 或者直接以度爲單位顯示 echo $[$(cat /sys/class/thermal/thermal_zone0/temp)/1000]° >>> 37°

      查看CPU频率(Check CPU Frequency)

root@linaro-alip:~# cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
408000
root@linaro-alip:~# cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
1416000

     查看内存容量(Check Memory Capacity)

root@linaro-alip:~# busybox free -m
              total        used        free      shared  buff/cache   available
Mem:           1961         269        1454          18         237        1696
Swap:             0           0           0

      查看存储容量(Check Storage Capacity)

root@linaro-alip:~# df -h
Filesystem       Size  Used Avail Use% Mounted on
/dev/root        7.9G  2.6G  4.9G  35% /
devtmpfs         973M  8.0K  973M   1% /dev
tmpfs            981M     0  981M   0% /dev/shm
tmpfs            981M  8.9M  972M   1% /run
tmpfs            5.0M  4.0K  5.0M   1% /run/lock
tmpfs            981M     0  981M   0% /sys/fs/cgroup
/dev/mmcblk1p10  6.4G  3.8M  6.4G   1% /userdata
/dev/mmcblk1p7    63M   13M   48M  21% /oem
tmpfs            197M  8.0K  197M   1% /run/user/1000
tmpfs            197M     0  197M   0% /run/user/0
root@linaro-alip:~#

設置RTC (RTC Setting) 

 

root@linaro-alip:~# date
Wed May 11 01:12:06 UTC 2022
root@linaro-alip:~# date -s "2022-5-11 09:12:00"
Wed May 11 09:12:00 UTC 2022
root@linaro-alip:~# date
Wed May 11 09:12:06 UTC 2022
root@linaro-alip:~# hwclock -w
root@linaro-alip:~# hwclock
2022-05-11 09:12:17.266424+00:00

WiFi使用方法(WIFI Testing Method)

1.Click Settings

2.Turn on Wi-Fi

3.Choose ESSID (for example, Advantech for guest)

4.Input the password

5.Wi-Fi connected

4G使用方法(4G Testing Method)

蓝牙使用方法(BlueTooth Operating Method)

音訊使用方法(BlueTooth Operating Method)

I2C 測試( I2C Test method) 

看門狗測試 (Watch Dog Test method) 

攝像頭測試(Camera Test method) 

遠程訪問及文件傳輸(Remote Access and File Transimmion)

QT 安装步骤

Qt5Creator_toolchain_Qt_5.11.3

How to build Debian 9 & 10 BSP (Debian 9 & 10 BSP 編譯)

http://ess-wiki.advantech.com.tw/view/Debian_BSP_User_Guide_for_rk3399_risc_series