Difference between revisions of "ROM-8720 user guide"

From ESS-WIKI
Jump to: navigation, search
(Created page with " == '''資源特性(Features)''' == *NXP i.MX 8M Mini processor with up to 4 Arm Cortex A53 cores *1 x Arm Cortex-M4 core *Onboard LPDDR4 memory and eMMC *1 x 4 lane MIPI-...")
 
 
(46 intermediate revisions by 2 users not shown)
Line 1: Line 1:
  
== '''資源特性(Features)''' ==
+
== '''產品介紹(Product introduction )''' ==
  
*NXP i.MX 8M Mini processor with up to 4 Arm Cortex A53 cores
+
=== '''產品特性(Product Features)''' ===
*1 x Arm Cortex-M4 core
 
*Onboard LPDDR4 memory and eMMC
 
*1 x 4 lane MIPI-CSI,1 x Dual channel LVDS or 1 x Display Port
 
*4 x USB2.0, 1 x USB 2.0 OTG, 4 x UART, 4 x I2C, 12 x GPIO, 1 x PCIe2.0, 1x Gigabit LAN
 
*Support OpenGL ES 2.0/1.1 by hardware accelerators
 
*Low power consumption design
 
*Support Linux and Android BSP
 
  
== '''訂購資訊(Ordering Information)''' ==
+
*NXP LS1046A Cortex®-A72 COM Express Type 7 Computer-on-Module
 +
*COM Express® Type 7 Compact Module
 +
*Up to 4 Cores, 1.6GHz
 +
*One Channel DDR4 SODIMM, max. 16GB (Both ECC & Non-ECC)  
 +
*Up to 10GbE x2 and GbE x4
 +
*PCIe 3.0 x3, PCIe 2.0 x2, USB 3.0 x3 and USB2.0 x2
 +
*Support Ubuntu BSP
  
[[File:Z2.png|RTENOTITLE]]
+
== '''產品官網連結(Product official website link) ''' ==
  
== '''接口布局和尺寸(Layout and Sizes)''' ==
+
'''[https://www.advantech.com/zh-tw/products/495e3896-10cd-4836-ab69-f39fbcff4eb4/rom-8720/mod_16bd2379-3fcc-4459-bada-9fa6431703fc ROM-8720]'''
  
=== '''  ROM-5721 接口布局圖 Board Dimension Layout ''' ===
+
== '''硬件接口說明(Hardware interface introduction)''' ==
  
'''[[File:Z3.png|RTENOTITLE]]'''
+
=== '''接口布局和尺寸(Layout and Sizes)''' ===
  
=== '''  ROM-DB5901 接口布局圖 Board Dimension Layout''' ===
+
=== '''ROM-8720 接口布局圖 Board Dimension Layout ''' ===
  
[[File:DB-ROM-5901 5620 carrierboard.jpg|RTENOTITLE]]
+
[[File:ROM-8720 Board Dimension Layout .PNG|RTENOTITLE]]
  
[[File:ROM-DB5901 IO.jpg|RTENOTITLE]]
+
=== '''SOM-DB5920-00A1 接口布局圖 Board Dimension Layout''' ===
  
=== '''  主板内置插针式引脚排序方式 (Pin Header defination) ''' ===
+
'''[[File:SOM-DB5920 Dimension layout.PNG|RTENOTITLE]]'''
  
=== '''  Internal I/O''' ===
+
=== '''主板内置插针式引脚排序方式 (Pin Header defination) ''' ===
  
[[File:ROM-DB5901 IO2.jpg|RTENOTITLE]]
+
'''[[File:SOM-DB5920 Connector Location.PNG|RTENOTITLE]]'''
 +
 
 +
=== '''Connector List''' ===
  
 
{| border="1" cellpadding="1" cellspacing="1" style="width:500px;"
 
{| border="1" cellpadding="1" cellspacing="1" style="width:500px;"
Line 37: Line 38:
 
| '''Position'''
 
| '''Position'''
 
| '''Description'''
 
| '''Description'''
| '''Connector Type'''
 
 
|-
 
|-
| BAT1
+
| ATX1
| PIN Header for Battery
+
| ATX Connector
| WAFER 8P 2.54mm 180D(M) DIP<br/> A2543WV2-8P
+
|-
 +
| CN1
 +
| COM Express Connector
 
|-
 
|-
| BH1
+
| COM1
| RTC Battery Holder
+
| UART Connector (Tx, Rx)
| BATTERY HOLDER 24.9*23.4*8.9<br/> CR2032 BH800.4GG
 
 
|-
 
|-
| CAN1
+
| COM2
| CANBus Port 1
+
| UART Connector (Tx, Rx)
| BOX HEADER 5x2P 2.54mm 180D(M)<br/> DIP 23N6960-10S10
 
 
|-
 
|-
| CAN2
+
| DCIN1
| CANBus Port 2
+
| Wide Range DC Input&nbsp;Connector1
| BOX HEADER 5x2P 2.54mm 180D(M)<br/> DIP 23N6960-10S10
 
 
|-
 
|-
| COM1
+
| GPIO1
| COM Port 1
+
| GPIO Pin Header
| BOX HEADER 5x2P 2.54mm 180D(M)<br/> DIP 23N6960-10S10
 
 
|-
 
|-
| COM3
+
| I2C1
| COM Port 3 (Debug Port)
+
| I2C Wafer Box
| BOX HEADER 5x2P 2.54mm 180D(M)<br/> DIP 23N6960-10S10
 
 
|-
 
|-
| CN4
+
| LAN0_USB01
| PCIex1 Connector 1
+
| LAN0, USB3.0/2.0 Port0<br/> and Port1 Connector
| PCIEXPRESS 36P 180D(F) DIP<br/> 2EG01817-D2D-DF
 
 
|-
 
|-
| CN5
+
| LAN1_USB23
| PCIex1 Connector 2
+
| LAN1, USB3.0/2.0 Port2<br/> and Port3 Connector
| PCIEXPRESS 36P 180D(F) DIP<br/> 2EG01817-D2D-DF
 
 
|-
 
|-
| CN6
+
| LPC_PH1
| PCIex1 Connector 3
+
| Low Pin Count Pin Header
| PCIEXPRESS 36P 180D(F) DIP<br/> 2EG01817-D2D-DF
 
 
|-
 
|-
| CN11
+
| PCIEX16_0
| SATA Connector
+
| PCIe x16 slot
| Serial ATA 7P 1.27mm 180D(M) DIP<br/> WATM-07DBN4A3B8
 
 
|-
 
|-
| CN12
+
| PCIEX8_1
| SATA Power Connector
+
| PCIe x8 slot
| WAFER 4P 2.5mm 180D(M) DIP<br/> 24W1161-04S10-01T
 
 
|-
 
|-
| CN22
+
| PCIEX4_0
| GPIOx8 sets
+
| PCIe x4 slot
| PIN HEADER 10x2P 2.0mm 180D(M)<br/> DIP 21N22050
 
 
|-
 
|-
| CN25
+
| BH1
| MXM 3.0 Connector
+
| RTC Battery Connector
| MXM Conn. 314P 90D(F) SMD<br/> AS0B821-S78B-7H
 
 
|-
 
|-
| CN26
+
| CPU_FAN1
| M.2 Key E Slots
+
| Smart Fan Connector
| NGFF 75P 0.5mm 90D(F) H=4.2mm<br/> SMD AS0BC21-S40BE
 
 
|-
 
|-
| CN38
+
| SMB1
| FAN (Reserved)
+
| SMBus Wafer Box
| WTB Con. 3P 2.54mm 180D(M) DIP<br/> A2543WV0-3P-6T-5e
 
 
|-
 
|-
| CN39
+
| SYS_FAN1
| MIPI-CSI1 (FPC, 4-Lane
+
| System Fan Connector
| FPC 39P, 0.6mm, H0.9mm
 
 
|-
 
|-
| CN40
+
| SPI_CN1
| MIPI-CSI0 (FPC, 2-Lane)
+
| SPI BIOS PIN HEADER
| FPC 39P, 0.6mm, H0.9mm
 
 
|-
 
|-
| CN41
+
| OCP module&nbsp;connector
| MIPI-CSI0 (Mini-SAS, 2-Lane)
+
| OCP module connector
| Mini SAS 36P/0.8mm/(M)/LCP/VA/G15u/<br/> S/BK/W
 
 
|-
 
|-
| CN42
+
| SPI_BIOS1
| MIPI-CSI1 (Mini-SAS, 4-Lane)
+
| SPI BIOS Socket
| Mini SAS 36P/0.8mm/(M)/LCP/VA/G15u/<br/> S/BK/W
 
 
|-
 
|-
| ESPI_CN1
+
| DCIN2
| ESPI
+
| Wide Range DC Input&nbsp;Connector2
| PIN HEADER 6x2P 2.0mm180D(M) SMD<br/> 21N22050-12M00B
 
 
|-
 
|-
| I2C_GP_1
+
| PCIEX4_1
| I2C Pin Header
+
| PCIe x4 slot
| WAFER BOX 4P 2.00mm 180D(M) DIP<br/> 721-81-04TW00
 
 
|-
 
|-
| I2C_CN3
+
| SATA0
| Audio Codec Board
+
| SATA Connector
| PIN HEADER 2x10P 2.54mm 180D(M)<br/> DIP 21N22564
 
 
|-
 
|-
| LVDS0
+
| SATA1
| LVDS0
+
| SATA Connector
| Wafer 2x20P/1.25mm/(M)/NY9T/VA/GFL/<br/> S/WH/W
 
 
|-
 
|-
| LVDS_BK_PWR
+
| VGA
| LVDS0 Back Light
+
| CRT Connector
| WAFER BOX 5P 2.0mm 180D(M) DIP<br/> A2001WV2-5P
+
|}
 +
 
 +
=== '''Jumper, Switch, Button List''' ===
 +
 
 +
{| border="1" cellpadding="1" cellspacing="1" style="width:500px;"
 
|-
 
|-
| LVDS1
+
| '''Position'''
| LVDS1
+
| '''Description'''
| Wafer 2x20P/1.25mm/(M)/NY9T/VA/GFL/<br/> S/WH/W
 
 
|-
 
|-
| LVDS1_BK_PWR
+
| J8, J9
| LVDS1 Back Light
+
| SOM-DB5920 Voltage Input (VIN) Selection
| WAFER BOX 5P 2.0mm 180D(M) DIP<br/> A2001WV2-5P
 
 
|-
 
|-
| SD1
+
| J11
| SD Card Slot
+
| COMe Module +V5SB supply
| SD CARD 9P 90D(F) SMD WK2192CS3D-<br/> 7H
 
 
|-
 
|-
| SPI_CN1
+
| J14
| SPI Pin Header
+
| ATX / AT Mode Selection
| PIN HEADER 4x2P 2.54mm 180D(M)<br/> SMD 21N22564
+
|-
 +
| J15
 +
| Carrier Board SPI power supply
 +
|-
 +
| J16
 +
| Front Panel Connector
 +
|-
 +
| J18
 +
| Normal Operation / Clear COMS Selection
 +
|-
 +
| J19
 +
| BMC software Enable Disable Selection
 
|-
 
|-
| SW2
+
| J100
| Reset Button
+
| OCP 10G Fibber & Copper SEL
| TACT SW STS-091 SMD 4P H=3.8mm
 
 
|-
 
|-
| SW4
+
| J101
| SLP Button
+
| OCP I2C & MDIO SEL
| TACT SW STS-091 SMD 4P H=3.8mm
 
 
|-
 
|-
| SW5
+
| J102
| Power Button
+
| PCIE1X0 to PCIEX4 slot & BMC SEL
| TACT SW STS-091 SMD 4P H=3.8mm
 
 
|-
 
|-
| USB0_OTG1
+
| J103
| USB OTG
+
| PCIE1X4 to PCIEX4 slot & BMC SEL
| Micro USB 5P/0.65mm/(F)/NY9T/GFL/<br/> RA/S/BK/B
 
 
|-
 
|-
| USB-4-5
+
| J104
| USB Port 4, Port 5
+
| USB2&3 Port to LAN_USB_23 & BMC SEL
| PIN HEADER 2x5P 2.0mm 180D(M)<br/> SMD 21N22050
 
|}
 
 
 
=== '''&nbsp; Rear I/O&nbsp;''' ===
 
 
 
'''[[File:ROM-DB5901 RearIO.jpg|RTENOTITLE]]'''
 
 
 
{| border="1" cellpadding="1" cellspacing="1" style="width:500px;"
 
 
|-
 
|-
| '''Position'''
+
| J106
| '''Description'''
+
| LPC Pin Header Reset SEL
| '''Name'''
 
 
|-
 
|-
| DCIN
+
| SW_LPC_TPM1
| DC Jack
+
| TPM Enable/Disable Switch
| A
 
 
|-
 
|-
| CN15A
+
| SW_LPC_TPM2
| UART Port 0
+
| TPM Enable/Disable Switch
| B
 
 
|-
 
|-
| CN15B
+
| CB_PWROK
| UART Port 2
+
| PWROK Signal Pull Down or Floating Selection
| C
 
 
|-
 
|-
| CN1A
+
| PWRBTN1
| DP Port
+
| Power Button
| D
 
 
|-
 
|-
| CN1B
+
| RESET1
| HDMI Port
+
| Reset Button
| E
 
 
|-
 
|-
| CN33
+
| SLEEP1
| Type C Controller Programming Header (Reserved Only)
+
| Sleep Button
| F
 
 
|-
 
|-
| CN34
+
| EXT_THRM_1#
| USB Type C
+
| External Thermal Trip Button
| G
 
 
|-
 
|-
| CN8
+
| WAKE_1#
| GbE Ethernet Connector Port
+
| Wake Button
| H
 
 
|-
 
|-
| CN3
+
| LID1
| USB Port 1/ 2
+
| LID Button
| I
 
 
|-
 
|-
| Audio1
+
| RAPID1
| MIC Input/ Audio Output
+
| Rapid shutdown button
| J
 
 
|}
 
|}
  
=== '''&nbsp; 接口引脚定義 (Pin definitions)''' ===
+
=== '''机械尺寸&nbsp; ('''Mechanical Characteristics) ===
 +
 
 +
'''ROM-8720'''
 +
 
 +
[[File:ROM-8720 MechanicalSpecifications.PNG|RTENOTITLE]]
 +
 
 +
&nbsp;
  
*[[電池(BAT1)_&_電池扣(BH1)|電池(BAT1)&nbsp;& 電池扣(BH1)]]
+
----
*[[CAN(CAN1,CAN2)|CAN(CAN1,CAN2)]]
 
*[[串口(COM_DB(COM3)、COM0、COM1_、COM2)|串口(COM_DB(COM3)、COM1、UART0&nbsp;、UART2)]]
 
*[[显示接口(LVDS、HDMI)_LAN接口_USB接口(USB1-2、USB3-4、USB_OTG)_音频接口_电源及指示灯和开关机复位按钮_GPIO接口_MINI_PCIE接口_M.2接口_SPI、I2C_接口|显示接口(LVDS、LVDS Backlight、HDMI、DP)]]
 
*[[LAN接口|LAN接口(LAN)]]
 
*[[USB接口(USB1-2、USB_Type_C、USB_OTG)|USB接口(USB1-2、USB-4-5、USB Type C、USB OTG)]]
 
*[[音频接口(Audio)|音频接口(Audio Output &Audio Codec)]]
 
*[[电源及指示灯和开关机复位按钮(Power_、LED、Power_Button、Reset_Button、Sleep_Button)|电源及指示灯和开关机复位按钮(Power&nbsp;、LED、Power Button、Reset Button、Sleep Button)&nbsp;]]
 
*[[GPIO接口|GPIO接口]]
 
*[[MINI_PCIE接口_M.2接口_SPI、I2C_接口|MINI_PCIE接口_M.2接口_SPI、I2C_接口]]
 
  
=== '''&nbsp; 机械尺寸&nbsp; ('''Mechanical Characteristics) ===
+
== '''快速入门 (Quick Start)''' ==
  
'''ROM-5721&nbsp;'''
+
=== '''系统下载 (OS Download)''' ===
  
'''[[File:ROM-5620 Mechanical Specifications1.jpg|RTENOTITLE]]'''
+
*'''Linux系统 (Linux OS)'''  
  
'''[[File:ROM-5620 Mechanical Specifications2.jpg|RTENOTITLE]]'''
+
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[http://ess-wiki.advantech.com.tw/view/OS_Support_List_(based_on_Ubutu_18.04) '''OS Support List (based on Ubutu 18.04)''']
  
&nbsp;
+
----
  
 
&nbsp;
 
&nbsp;
  
&nbsp;
+
=== '''Debug 串口調試 (Debug port Setting)''' ===
  
----
+
1. Connect RS-232 Cable (1700019474) to debug port (COM1)(up side) on SOM-DB5920.<br/> 2. Connect it to your PC with RS-232 Cable (1700019474).<br/> 3. J14 need to set to AT mode<br/> 4. root/root
  
== '''快速入门 (Quick Start)''' ==
+
以 Tera Term&nbsp;&nbsp;为例介绍如何使用串口调试功能
 +
<pre>  Baud Rate波特率:115200
 +
  Data 数据位:8
 +
  Parity 奇偶校验:无
 +
&nbsp;  Stop 停止位:1
 +
  Flow Control流控:无</pre>
  
=== '''&nbsp; 系统下载 (OS Download)''' ===
+
:&nbsp;  
  
*'''Linux系统 (Linux OS)'''
+
Tera Term Tool&nbsp;
  
'''​Yocto 2.5:&nbsp;'''[http://ess-wiki.advantech.com.tw/view/IoTGateway/BSP/Linux/iMX8/OS_Support_List IoTGateway/BSP/Linux/iMX8/OS Support List - ESS-WIKI (advantech.com.tw)]
+
[[File:TeraTerm 2021-09-10 140930n.jpg|RTENOTITLE]]
  
'''Yocto 3.0:'''[[IoTGateway/BSP/Linux/iMX8/OS_Support_List_3.0|IoTGateway/BSP/Linux/iMX8/OS Support List 3.0]]
+
[[File:TeraTerm12021-09-10 141114n.jpg|RTENOTITLE]]
  
----
+
Check the Sriel port in Device Manager (查看PC端的串口号):
  
=== '''&nbsp; Linux&nbsp;燒錄方法 (Linux Flash eMMC Method)''' ===
+
if you can not identify the Serial device , please check your serial driver.&nbsp;
  
'''使用Flash tool 燒錄鏡像到eMMC (Flash image into eMMC by Flash Tools)&nbsp;'''
+
[[File:COMportinx862021-09-10 141610.jpg|RTENOTITLE]]
  
Step0: 檢查SD卡在Linux 環境的代號 (check SD card symbol in Linux system)&nbsp;
+
Debug port connection (串口連接)&nbsp;
  
[[File:Z3.jpg|RTENOTITLE]]
+
Log into Terminal&nbsp; Tool (进入串口调试终端):
  
 
&nbsp;
 
&nbsp;
  
Step1: 創造一張可開機的SD 卡&nbsp;(Create&nbsp;a bootable SD card)
+
----
  
[[File:Z4.jpg|RTENOTITLE]]
+
== '''Linux系统的基本使用(Linux&nbsp;System Basic Operating Method)''' ==
 +
 
 +
 
 +
=== '''乙太網路使用方法(Ethernent Testing Method)''' ===
  
Step2: 將可開機的SD 卡插入底板SD卡卡槽(Plug the SD card into Carrier board 's SD card slot)
+
'''<span lang="EN-US" style="color:black">LAN function check</span>'''
  
&nbsp;[[File:CarrierboardSDsolt.jpg|RTENOTITLE]]
+
<span lang="EN-US" style="color:black">CN12 (down): fm1-mac3</span>
  
Step4: 確認開機選擇指撥開關 (Check the boot switch)
+
<span lang="EN-US" style="color:black">CN12(up): fm1-mac4</span>
  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SD 卡開機模式(SD boot mode):
+
<span lang="EN-US" style="color:black">CN13(down): fm1-mac5</span>
  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[[File:SDBootupSwitch.jpg|RTENOTITLE]]
+
<span lang="EN-US" style="font-size:11.0pt"><span style="font-family:"><span style="color:black">CN13(up): fm1-mac6</span></span></span>
  
&nbsp;
+
<span lang="EN-US" style="font-size:11.0pt"><span style="font-family:"><span style="color:black">Command&nbsp;:&nbsp;</span></span></span>
  
Step3:打開電源 和 終端機&nbsp;(Turn on the Power & Terminal)
+
<span style="line-height:18.0pt"><span style="vertical-align:baseline"><span lang="EN-US" style="color:black"># ip a</span></span></span>
  
[[File:Z5.jpg|RTENOTITLE]]
+
[[File:ROM-8720 LAN function1-1.png|RTENOTITLE]]
  
&nbsp;
+
<span style="line-height:18.0pt"><span style="vertical-align:baseline"><span lang="EN-AU" style="color:black">Up and ping with I/F fm1-mac3:</span></span></span>
  
Step4: 解壓縮flash tools 檔案,並複製到U盤中(Unzip the flash tools file , then copy to USB Disk)&nbsp;
+
<span style="line-height:18.0pt"><span style="vertical-align:baseline"><span lang="EN-US" style="color:black"># ifconfig fm1-mac3 up</span></span></span>
  
&nbsp; &nbsp; 解壓縮(Unzip the file )&nbsp;
+
<span style="line-height:18.0pt"><span style="vertical-align:baseline"><span lang="EN-US" style="color:black">[[File:ROM-8720 LAN function2-1.png|RTENOTITLE]]</span></span></span>
  
[[File:Z6.jpg|RTENOTITLE]]&nbsp; &nbsp; &nbsp; &nbsp;
+
<span style="line-height:18.0pt"><span style="vertical-align:baseline"><span lang="EN-US" style="color:black"># dhclient –d fm1-mac3</span></span></span>
  
複製檔案到U盤中 (Copy the flash file to USB Disk)&nbsp;
+
<span style="line-height:18.0pt"><span style="vertical-align:baseline"><span lang="EN-US" style="color:black">[[File:ROM-8720 LAN function3-1.png|RTENOTITLE]]</span></span></span>
  
&nbsp; 1. 插入U盤到你的Ubuntu 電腦上 (Plug the USB Disk into you Linux PC
+
<span style="line-height:18.0pt"><span style="vertical-align:baseline"><span lang="EN-US" style="color:black"># ping 8.8.8.8</span></span></span>
  
&nbsp; 2. 檢視U盤在Ubuntu 系統代號 (Check the USB Disk's symbol in Ubuntu System)&nbsp;
+
<span style="line-height:18.0pt"><span style="vertical-align:baseline"><span lang="EN-US" style="color:black">[[File:ROM-8720 LAN function3-2.png|RTENOTITLE]]</span></span></span>
  
&nbsp;[[File:Z7.jpg|RTENOTITLE]]
+
<span style="line-height:18.0pt"><span style="vertical-align:baseline"><span lang="EN-AU" style="color:black">Up and ping with I/F fm1-mac4:</span></span></span>
  
&nbsp;3. 掛載U盤在Ubuntu 系統中 (Mount the&nbsp;USB Disk's in Ubuntu System)&nbsp;
+
<span style="line-height:18.0pt"><span style="vertical-align:baseline"><span lang="EN-US" style="color:black"># ifconfig fm1-mac4 up</span></span></span>
  
[[File:Z8.jpg|RTENOTITLE]]
+
<span style="line-height:18.0pt"><span style="vertical-align:baseline"><span lang="EN-US" style="color:black">[[File:ROM-8720 LAN function4-1.png|RTENOTITLE]]</span></span></span>
  
4. 複製檔案到U盤(Copy the file to USB disk)
+
#dhclient –d fm1-mac4
  
[[File:Z9.jpg|RTENOTITLE]]
+
[[File:ROM-8720 LAN function5-1.png|RTENOTITLE]]
  
5. 將U盤連接到ROM-5721系統, 進入flash tool下的mk_inand資料夾, 執行指令./mksd-linux.sh /dev/mmcblk2燒錄image到eMMC (Connect USB Disk to ROM-5721 system, browser to mk_inand folder and execute flash shell script "./mksd-linux.sh /dev/mmcblk2"
+
ping 8.8.8.8
  
{| border="1" cellpadding="1" cellspacing="1" style="width:500px;"
+
[[File:ROM-8720 LAN function6-1.png|RTENOTITLE]]
|-
 
| ROM-5721
 
| &nbsp;
 
|-
 
| SD card
 
| /dev/mmcblk1
 
|-
 
| eMMC
 
| /dev/mmcblk2
 
|}
 
  
[[File:Z10.jpg|RTENOTITLE]]
+
<span style="line-height:18.0pt"><span style="vertical-align:baseline"><span lang="EN-AU" style="color:black">Up and ping with I/F fm1-mac5:</span></span></span>
  
6. 切換開機switch 1:on 2,3,4,5,6:off來設定成從eMMC開機(Change boot switch to "1:on 2,3,4,5,6:off" to boot from eMMC. Reboot system).
+
<span style="line-height:18.0pt"><span style="vertical-align:baseline"><span lang="EN-US" style="color:black"># ifconfig fm1-mac5 up</span></span></span>
  
=== '''&nbsp; Debug 串口調試 (Debug port Setting)''' ===
+
<span style="line-height:18.0pt"><span style="vertical-align:baseline"><span lang="EN-US" style="color:black">[[File:ROM-8720 LAN function7-1.png|RTENOTITLE]]</span></span></span>
  
以 Tera Term&nbsp;&nbsp;为例介绍如何使用串口调试功能
+
<span style="line-height:18.0pt"><span style="vertical-align:baseline"><span lang="EN-US" style="color:black"># dhclient –d fm1-mac5</span></span></span>
<pre>   Baud Rate波特率:115200
 
  Data 数据位:8
 
  Parity 奇偶校验:无
 
&nbsp;  Stop 停止位:1
 
  Flow Control流控:无</pre>
 
  
:&nbsp;
+
<span style="line-height:18.0pt"><span style="vertical-align:baseline"><span lang="EN-US" style="color:black">[[File:ROM-8720 LAN function8-1.png|RTENOTITLE]]</span></span></span>
  
Tera Term Tool&nbsp;
+
<span style="line-height:18.0pt"><span style="vertical-align:baseline"><span lang="EN-US" style="color:black"># ping 8.8.8.8</span></span></span>
  
[[File:TeraTerm 2021-09-10 140930n.jpg|RTENOTITLE]]
+
[[File:ROM-8720 LAN function9-1.png|RTENOTITLE]]
  
[[File:TeraTerm12021-09-10 141114n.jpg|RTENOTITLE]]
+
&nbsp;
  
Check the Sriel port in Device Manager (查看PC端的串口号):
+
<span style="line-height:18.0pt"><span style="vertical-align:baseline"><span lang="EN-AU" style="color:black">Up and ping with I/F fm1-mac6:</span></span></span>
  
if you can not identify the Serial device , please check your serial driver.&nbsp;
+
<span style="line-height:18.0pt"><span style="vertical-align:baseline"><span lang="EN-US" style="color:black"># ifconfig fm1-mac6 up</span></span></span>
  
[[File:COMportinx862021-09-10 141610.jpg|RTENOTITLE]]
+
<span style="line-height:18.0pt"><span style="vertical-align:baseline"><span lang="EN-US" style="color:black">[[File:ROM-8720 LAN function10-1.png|RTENOTITLE]]</span></span></span>
  
Debug port connection (串口連接)&nbsp;
+
<span style="line-height:18.0pt"><span style="vertical-align:baseline"><span lang="EN-US" style="color:black"># dhclient –d fm6-mac6</span></span></span>
  
[[File:Debugcom3nn 2021-09-10 140320.jpg|RTENOTITLE]]
+
<span style="line-height:18.0pt"><span style="vertical-align:baseline"><span lang="EN-US" style="color:black">[[File:ROM-8720 LAN function11-1.png|RTENOTITLE]]</span></span></span>
  
&nbsp;
+
<span style="line-height:18.0pt"><span style="vertical-align:baseline"><span lang="EN-US" style="color:black"># ping 8.8.8.8</span></span></span>
  
Log into Terminal&nbsp; Tool (进入串口调试终端):
+
<span style="line-height:18.0pt"><span style="vertical-align:baseline"><span lang="EN-US" style="color:black">[[File:ROM-8720 LAN function12-1.png|RTENOTITLE]]</span></span></span>
  
[[File:Z15.jpg|RTENOTITLE]]
+
'''ROM-EG60 Function:'''
  
----
+
<span style="font-size:medium;">'''<span lang="EN-US" style="color:black">&nbsp;</span>'''<span style="font-family:Arial,Helvetica,sans-serif;"><span lang="EN-US" style="color:black">&nbsp; RJ45_CN1: fm1-mac9</span></span></span>
  
== '''Linux系统的基本使用(Linux&nbsp;System Basic Operating Method)''' ==
+
<span style="font-size:medium;"><span style="font-family:Arial,Helvetica,sans-serif;"><span lang="EN-US"><span style="color:black">&nbsp; &nbsp; RJ45_CN2: fm1-mac10</span></span></span></span>
  
=== '''&nbsp; UUU 使用方法(USB Connection (OTG port))''' ===
+
'''Command&nbsp;: ip a&nbsp;'''
  
Download uuu tool from (Release [[https://github.com/ADVANTECH-Corp/uuu/releases/tag/v20200619 ADV]v20200619 · ADVANTECH-Corp/uuu · GitHub]) or in the folder.
+
[[File:ROM-8720 LAN function1.png|RTENOTITLE]]
  
The “imx-boot-imx8mmrom5721a1-sd.bin-flash_evk” file be included in 5721A1AIM20LIV90XXX_iMX8MM_misc.tgz. XXX is the version.
+
'''&nbsp;'''
  
'''Connect USB cable to USB OTG port.'''
+
#ifconfig fm1-mac9 up
  
'''Change boot switch to "4:on 1,2,3,5,6:off" to boot from force recovery mode.'''
+
#ifconfig fm1-mac10 up
  
[[File:Z11.jpg|RTENOTITLE]]
+
[[File:ROM-8720 LAN function2.png|RTENOTITLE]]
  
Type command below to flash eMMC:
+
&nbsp;
  
[[File:Z12.jpg|RTENOTITLE]]
+
<span style="line-height:18.0pt"><span style="vertical-align:baseline"><span lang="EN-AU" style="color:black">Up and ping with I/F fm1-mac9:</span></span></span>
  
=== '''&nbsp; Display Setting (ROM-5721)''' ===
+
<span style="line-height:18.0pt"><span style="vertical-align:baseline"><span lang="EN-US" style="color:black"># dhclient –d fm1-mac9</span></span></span>
  
'''&nbsp; &nbsp; &nbsp; U-boot&nbsp;Command&nbsp;:'''
+
<span style="line-height:18.0pt"><span style="vertical-align:baseline"><span lang="EN-US" style="color:black"># ping 8.8.8.8</span></span></span>
  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; setenv fdt_file xxxx.dtb<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; env save<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; boot
+
<span style="line-height:18.0pt"><span style="vertical-align:baseline"><span lang="EN-US" style="color:black">[[File:ROM-8720 LAN function3.png|RTENOTITLE]]</span></span></span>
 +
<ol start="12" style="list-style-type:lower-alpha">
 +
<li><span style="line-height:18.0pt"><span style="vertical-align:baseline"><span lang="EN-AU" style="color:black">Up and ping with I/F fm1-mac10:</span></span></span></li>
 +
</ol>
  
&nbsp; &nbsp; &nbsp;U-boot load fefault setting:
+
<span style="line-height:18.0pt"><span style="vertical-align:baseline"><span lang="EN-US" style="color:black"># dhclient –d fm1-mac10</span></span></span>
  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;env default -a<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; env save<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; reset
+
&nbsp;#ping 8.8.8.8
  
*Display: Default support g070vw01 LVDS panel on LVDS0
+
[[File:ROM-8720 LAN function5.png|RTENOTITLE]]
=== '''Yocto 2.5''' ===
 
**DSI to LVDS
 
***g070vw01(LVDS0)
 
****adv-imx8mm-rom5721-a1.dtb 
 
***g150xgel05(LVDS0)
 
****adv-imx8mm-rom5721-a1-dsi2lvds-g150xgel05.dtb 
 
***g215hvn01(LVDS0+LVDS1,dual channel)
 
****adv-imx8mm-rom5721-a1-dsi2lvds-g215hvn01.dtb   
 
**DSI to DP
 
***adv-imx8mm-rom5721-a1-dsi2dp.dtb 
 
**DSI to HDMI(LVDS0)
 
***adv-imx8mm-rom5721-a1-adv7535.dtb 
 
**DSI
 
***auog101uan02(LVDS0)
 
****adv-imx8mm-rom5721-a1-auog101uan02.dtb     
 
*M.2 SDIO
 
**Adjust CN43~CN48
 
**adv-imx8mm-rom5721-a1-m2-sdio.dtb 
 
*M.2 I2S
 
**adv-imx8mm-rom5721-a1-m2-i2s.dtb 
 
  
=== '''&nbsp; 乙太網路使用方法(Ethernent Testing Method)''' ===
+
Ping google.com
  
'''Command&nbsp;: ifconfig&nbsp;'''
+
Edit /etc/resolv.conf to add nameserver
  
[[File:Z13.jpg|RTENOTITLE]]
+
[[File:ROM-8720 LAN function7.png|RTENOTITLE]]
  
'''Command: Ping - I eth1 8.8.8.8&nbsp; or Ping - I eth0 8.8.8.8&nbsp;&nbsp;'''
+
#ping google.com
  
[[File:Z14.jpg|RTENOTITLE]]
+
[[File:ROM-8720 LAN function8.png|RTENOTITLE]]
  
=== '''&nbsp; WiFi使用方法(WIFI Testing Method)''' ===
+
&nbsp;
<pre>Command&nbsp;:
 
  
preparatory work:将WIFI天线安装到ROM-5721上
+
=== '''WiFi使用方法(WIFI Testing Method)''' ===
举例:
 
root@imx8mmrom5721a1:~# ifconfig mlan0 up
 
root@imx8mmrom5721a1:~#iwlist mlan0 scan
 
备注:(ESSID:"SSID"—热点名称,密码:123456789)
 
Cell 41 - Address: E2:92:00:7C:81:95
 
                    ESSID:"SSID" [41]
 
                    Mode:Master
 
                    Frequency=5.785 GHz
 
                    Quality:5/5  Signal level:-46 dBm  Noise level:-96 dBm
 
                    Encryption key:on
 
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s
 
                              36 Mb/s; 48 Mb/s; 54 Mb/s
 
                    Extra:Beacon interval=200
 
                    IE: IEEE 802.11i/WPA2 Version 1
 
                        Group Cipher : CCMP
 
                        Pairwise Ciphers (1) : CCMP
 
                        Authentication Suites (1) : PSK
 
                    IE: Unknown: DD180050F2020101810003A4000027A4000042435E0062322F00
 
                    Extra:band=a
 
  
root@imx8mmrom5721a1:~# wpa_passphrase "SSID" 123456789 > /tmp/wpa.conf
+
Test WIFI (EWM-W168)
root@imx8mmrom5721a1:~# sync
 
root@imx8mmrom5721a1:~# cat /tmp/wpa.conf
 
network={
 
        ssid="SSID" 
 
        #psk="123456789"
 
        psk=63079f1c4891c9bb8a0496498d793993b5a0927e042358833eef89f1a90719a1
 
}
 
root@imx8mmrom5721a1:~# wpa_supplicant -BDwext -imlan0 -c/tmp/wpa.conf
 
Successfully initialized wpa_supplicant
 
rfkill: Cannot get wiphy information
 
[  189.719149] wlan: SCAN COMPLETED: scanned AP count=41
 
ioctl[SIOCSIWESSID]: Bad address
 
root@imx8mmrom5721a1:~# [  191.724260] EXT_SCAN: wlan_interpret_bss_desc_with_ie returned error
 
[  197.337568] wlan: SCAN COMPLETED: scanned AP count=41
 
[  197.370146] IPv6: ADDRCONF(NETDEV_CHANGE): mlan0: link becomes ready
 
^C
 
root@imx8mmrom5721a1:~#
 
root@imx8mmrom5721a1:~# udhcpc -b -i mlan0
 
udhcpc: started, v1.31.0
 
udhcpc: sending discover
 
udhcpc: sending select for 192.168.43.132
 
udhcpc: lease of 192.168.43.132 obtained, lease time 3600
 
/etc/udhcpc.d/50default: Adding DNS 192.168.43.1
 
root@imx8mmrom5721a1:~# ifconfig
 
lo        Link encap:Local Loopback
 
          inet addr:127.0.0.1  Mask:255.0.0.0
 
          inet6 addr: ::1/128 Scope:Host
 
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
 
          RX packets:214 errors:0 dropped:0 overruns:0 frame:0
 
          TX packets:214 errors:0 dropped:0 overruns:0 carrier:0
 
          collisions:0 txqueuelen:1000
 
          RX bytes:15212 (14.8 KiB)  TX bytes:15212 (14.8 KiB)
 
  
mlan0    Link encap:Ethernet  HWaddr c0:e4:34:6d:fa:bf
+
Connect mini PCIe to PCIe
          inet addr:192.168.43.132  Bcast:192.168.43.255  Mask:255.255.255.0
 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
 
          RX packets:9 errors:0 dropped:0 overruns:0 frame:0
 
          TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
 
          collisions:0 txqueuelen:1000
 
          RX bytes:1248 (1.2 KiB)  TX bytes:7034 (6.8 KiB)
 
备注:以上步骤完成,就可以查看到mlan0 是否有连接到wifi或热点。
 
  
root@imx8mmrom5721a1:~# ping 8.8.8.8
+
Connect to SOM-1A10 PCIE2 or 3
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=50 time=287 ms
 
64 bytes from 8.8.8.8: icmp_seq=2 ttl=50 time=104 ms
 
64 bytes from 8.8.8.8: icmp_seq=3 ttl=50 time=331 ms
 
64 bytes from 8.8.8.8: icmp_seq=4 ttl=50 time=149 ms
 
^C
 
--- 8.8.8.8 ping statistics ---
 
4 packets transmitted, 4 received, 0% packet loss, time 3005ms
 
rtt min/avg/max/mdev = 104.162/217.722/331.103/93.911 ms
 
root@imx8mmrom5721a1:~#
 
  
=== '''&nbsp; GPIO使用方法(GPIO Operating Method)''' ===
+
The I/F may different with the PCIE slot
  
[[File:Z17.jpg|RTENOTITLE]]
+
I/F:
  
&nbsp;
+
wlP1p1s0(PCIE2) or wlP2p1s0(PCIE3)
<pre>Loop-back Test (Take GPIO0 and GPIO2 as examples) 
+
 
 +
----
 +
 
 +
Need to install wpa_supplicant first
  
Step 1: Connect GPIO0 and GPIO2
+
<span style="line-height:18.0pt"><span style="vertical-align:baseline"><span lang="EN-AU" style="color:black">Up and ping with I/F </span>wlP1p1s0:</span></span>
Step 2: Export GPIO interface
 
  
root@imx8mmrom5721a1: ~# echo 496 > /sys/class/gpio/export
+
#killall wpa_supplicant
root@imx8mmrom5721a1: ~# echo 497 > /sys/class/gpio/export
 
  
Step 3: Set direction
+
#ifconfig wlP2p1s0 up
  
root@imx8mmrom5721a1: ~# echo out > /sys/class/gpio/gpio1/direction
+
#wpa_passphrase "Pilimao" "0913079939" > /tmp/wpa.conf
root@imx8mmrom5721a1: ~# echo in > /sys/class/gpio/gpio2/direction
 
  
Step 4: Read value and set output value then check
+
<span lang="EN-US" style="font-size:11.0pt"><span style="font-family:"># wpa_supplicant -BDwext -i wlP2p1s0 -c /tmp/wpa.conf</span></span>
  
root@imx8mmrom5721a1: ~# cat /sys/class/gpio/gpio2/value
+
[[File:ROM-8720 WIFI 1.png|RTENOTITLE]]
0
 
root@imx8mmrom5721a1: ~# echo 1 > /sys/class/gpio/gpio1/value
 
root@imx8mmrom5721a1: ~# cat /sys/class/gpio/gpio2/value
 
1</pre>
 
  
=== '''&nbsp; 串口使用方法(Serial Port Operating&nbsp;Method)''' ===
+
Request IP Addr:
  
RS-232 Test
+
#dhclient -d wlP2p1s0
  
CN15上(SER0/UART3): /dev/ttymxc2
+
[[File:ROM-8720 WIFI 2.png|RTENOTITLE]]
  
CN15 下(SER2/UART1): /dev/ttymxc0
+
#ping 8.8.8.8:  
  
COM 3&nbsp;(A53 debug/SER3/UART2): /dev/ttymxc1
+
[[File:ROM-8720 WIFI 3.png|RTENOTITLE]]
  
COM 1&nbsp;(M4 debug/SER1/UART4): /dev/ttymxc3
+
Add nameserver:
  
SW7 Setting (SW7設置)&nbsp;
+
#vi /etc/resolv.conf
  
[[File:SW6&7settingn.jpeg|RTENOTITLE]]
+
#ping google.com:  
  
MODE1&nbsp; MODE0<br/> &nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LOOPBACK<br/> &nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RS232<br/> &nbsp; &nbsp; 1&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RS485<br/> &nbsp; &nbsp; 1&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RS422
+
[[File:ROM-8720 WIFI 4.png|RTENOTITLE]]
  
Loopback test (eg. ttymxc0)<br/> Connect loopback test tool
+
&nbsp;
  
#stty ‐F /dev/ttymxc0 115200<br/> # stty ‐F /dev/ttymxc0 ‐echo<br/> # cat /dev/ttymxc0 &<br/> # echo test > /dev/ttymxc0
+
=== '''串口使用方法(Serial Port Operating&nbsp;Method)''' ===
  
=== '''&nbsp; 蓝牙使用方法(BlueTooth Operating&nbsp;Method)''' ===
+
&nbsp;
<pre>Command&nbsp;:
 
  
$ hciconfig hci0 up
+
<span lang="EN-US" style="color:black">RS-232 test: Connect RS-232 loopback</span>
$ bluetoothctl
 
$ discoverable on
 
$ pairable on
 
$ scan on
 
[NEW] FC:18:3C:8D:75:F4 myphone
 
$ scan off
 
$ pair FC:18:3C:8D:75:F4
 
$ connect FC:18:3C:8D:75:F4</pre>
 
  
[[File:Z18.jpg|RTENOTITLE]]
+
<span lang="EN-US" style="color:black">COM2: /dev/ttyS1</span>
  
=== &nbsp;&nbsp;[http://ess-wiki.advantech.com.tw/view/ROM-5721_user_guide#.E9.81.A0.E7.A8.8B.E8.A8.AA.E5.95.8F.E5.8F.8A.E6.96.87.E4.BB.B6.E5.82.B3.E8.BC.B8.28Remote_Access_and_File_Transimmion.29 '''遠程訪問及文件傳輸(Remote Access and File Transimmion)'''] ===
+
<span lang="EN-US" style="color:black">Test script:</span>
 +
<pre><span lang="EN-US" style="color:black">#!/bin/bash</span>
  
'''&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 查看主板IP位址&nbsp;(&nbsp;Chech IP Address ):'''​
+
<span lang="EN-US" style="color:black">#set -x #echo on</span>
<pre>       Command&nbsp;: ifconfig</pre>
 
  
[[File:Z19.jpg|RTENOTITLE]]
 
  
==== Windows下SSH访问及文件传输 ====
+
<span lang="EN-US" style="color:black">echo "Enable and Set RS-232 $1..."</span>
  
SSH Remote Log into Device&nbsp;
+
<span lang="EN-US" style="color:black">stty -F $1 speed 115200 -onlcr -echo</span>
  
*SSH远程登录,以putty选择putty.exe(或者使用Xshell、SecureCRT等类似软件)
+
<span lang="EN-US" style="color:black">sleep 1</span>
*需要设置远程设备的IP、通讯端口(默认22)、通讯方式,登录后验证用户名密码
 
  
&nbsp;
 
  
[[File:SSHsettingdetail.png|RTENOTITLE]]
+
<span lang="EN-US" style="color:black">echo "Check RS-232 $1... speed"</span>
  
[[File:Z20.jpg|RTENOTITLE]]
+
<span lang="EN-US" style="color:black">stty -F $1 speed</span>
  
&nbsp;
+
<span lang="EN-US" style="color:black">sleep 1</span>
  
[[File:Sshsetting12021-09-10 143743n.jpg|RTENOTITLE]]
 
  
[[File:Z21.jpg|RTENOTITLE]]
+
<span lang="EN-US" style="color:black">echo "echo Test_RS-232 to $1 x5..."</span>
  
== '''通用方法(General Method)''' ==
+
<span lang="EN-US" style="color:black">sleep 1</span>
  
=== &nbsp;&nbsp;'''查看CPU温度(Check CPU Temperature)''' ===
 
<pre>    root@imx8mmrom5721a1:/# cat /sys/devices/virtual/thermal/thermal_zone0/temp 44600
 
  
    # 或者直接以度爲單位顯示 echo $[$(cat /sys/class/thermal/thermal_zone0/temp)/1000]° >>> 45°</pre>
+
<span lang="EN-US" style="color:black">cat $1 &</span>
  
=== '''&nbsp; 查看CPU频率(Check CPU Frequency)''' ===
+
<span lang="EN-US" style="color:black">sleep 1</span>
<pre>          cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
 
          >> 900000
 
          cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq   
 
          >> 1200000</pre>
 
  
=== '''&nbsp; 查看内存容量(Check Memory&nbsp;Capacity)''' ===
+
<span lang="EN-US" style="color:black">for ((i=1;i<=5;i++))</span>
<pre>root@imx8mmrom5721a1:/# busybox free -m
 
            total      used      free    shared    buffers    cached
 
Mem:      1794920    516080    1278840      17252      9852        80292
 
-/+ buffers/cache:    425936    1368984
 
Swap:            0          0          0
 
</pre>
 
  
=== '''查看存储容量(Check Storage Capacity)''' ===
+
<span lang="EN-US" style="color:black">do</span>
<pre>root@imx8mmrom5721a1:/# 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)''' ===
+
<span lang="EN-US" style="color:black">    echo "Test_RS-232 to $1 +$i" > $1</span>
<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>
 
  
=== '''&nbsp; 設置RTC (RTC Setting)&nbsp;''' ===
+
<span lang="EN-US" style="color:black">   sleep 0.5</span>
<pre>     root@imx8mmrom5721a1:/# systemctl stop ntpdate.service
 
    root@imx8mmrom5721a1:/# date 090816072021 && hwclock -w && date
 
            Wed Sep  8 16:07:00 UTC 2021
 
            Wed Sep  8 16:07:00 UTC 2021
 
    root@imx8mmrom5721a1:/# date
 
            Wed Sep  8 16:07:06 UTC 2021
 
    root@imx8mmrom5721a1:/#'''</pre>
 
  
'''&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'''
+
<span lang="EN-US" style="color:black">done</span>
  
== '''Linux&nbsp;BSP編譯方法(Linux&nbsp;BSP Compile Method)''' ==
+
<span lang="EN-US" style="font-size:11.0pt"><span style="font-family:" times",serif"=""><span style="color:black">echo "Finished RS-232 Test..."</span></span></span></pre>
 +
<pre>RS-232: ttyS1(COM2 loopback test):
  
=== &nbsp;&nbsp;[http://ess-wiki.advantech.com.tw/view/IoTGateway/BSP/Linux/iMX8/Yocto_LBV9_User_Guide '''Yocto 2.5'''] ===
+
# ./RS-232_test.sh /dev/ttyS1</pre>
  
=== <u>&nbsp;&nbsp;[http://ess-wiki.advantech.com.tw/view/IoTGateway/BSP/Linux/iMX8/Yocto_LBVA_User_Guide '''Yocto&nbsp;3.0''']</u> ===
+
[[File:ROM-8720 RS232.png|RTENOTITLE]]
  
*'''如果有驗證上的錯誤 請使用以下的方法'''  
+
=== '''Watch Dog Function''' ===
  
<u>'''### repo sync failed with Server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none'''</u> ERROR: gstreamer1.0-1.14.4.imx-r0 do_unpack: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export PATH="/hom e/adv/adv-release-bsp/build_x11/tmp/work/aarch64-poky-linux/gstreamer1.0/1.14.4.imx-r0/recipe-sysroot-native/usr/bin/py thon3-native:/home/adv/adv-release-bsp/sources/poky/scripts:/home/adv/adv-release-bsp/build_x11/tmp/work/aarch64-poky-l inux/gstreamer1.0/1.14.4.imx-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux:/home/adv/adv-release-bsp/build_x11/tm p/work/aarch64-poky-linux/gstreamer1.0/1.14.4.imx-r0/recipe-sysroot/usr/bin/crossscripts:/home/adv/adv-release-bsp/buil d_x11/tmp/work/aarch64-poky-linux/gstreamer1.0/1.14.4.imx-r0/recipe-sysroot-native/usr/sbin:/home/adv/adv-release-bsp/b uild_x11/tmp/work/aarch64-poky-linux/gstreamer1.0/1.14.4.imx-r0/recipe-sysroot-native/usr/bin:/home/adv/adv-release-bsp /build_x11/tmp/work/aarch64-poky-linux/gstreamer1.0/1.14.4.imx-r0/recipe-sysroot-native/sbin:/home/adv/adv-release-bsp/ build_x11/tmp/work/aarch64-poky-linux/gstreamer1.0/1.14.4.imx-r0/recipe-sysroot-native/bin:/home/adv/adv-release-bsp/so urces/poky/bitbake/bin:/home/adv/adv-release-bsp/build_x11/tmp/hosttools"; export HOME="/home/adv"; git -c core.fsyncob jectfiles=0 submodule update --init --recursive failed with exit code 1, output:
+
System will reboot after enable watchdog and count 60 sec&nbsp;:
  
Submodule 'common' (
+
Check default watchdog time:
  
[https://anongit.freedesktop.org/git/gstreamer/common.git) https://anongit.freedesktop.org/git/gstreamer/common.git)] registered for path 'common'
+
[[File:ROM-8720 WTD1.png|RTENOTITLE]]
  
Cloning into '/home/adv/adv-release-bsp/build_x11/tmp/work/aarch64-poky-linux/gstreamer1.0/1.14.4.imx-r0/git/common'...
+
Enable watchdog, system will reboot after 60 sec.
  
fatal: unable to access '
+
#echo 1 > /dev/watchdog
  
[https://anongit.freedesktop.org/git/gstreamer/common.git/': https://anongit.freedesktop.org/git/gstreamer/common.git/':] server certificate verification fa iled. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
+
[[File:ROM-8720 WTD2.png|RTENOTITLE]]
  
fatal: clone of '
+
System poweroff after 60 sec. cannot reboot again
  
[https://anongit.freedesktop.org/git/gstreamer/common.git' https://anongit.freedesktop.org/git/gstreamer/common.git'] into submodule path '/home/adv/adv-release-b sp/build_x11/tmp/work/aarch64-poky-linux/gstreamer1.0/1.14.4.imx-r0/git/common' failed
+
&nbsp;Set timeout to 10 and pin rate to 13, the system will reboot after 10 seconds.
  
Failed to clone 'common'. Retry scheduled
+
#./watchdog-test-adv -t 10 -p 13
  
Cloning into '/home/adv/adv-release-bsp/build_x11/tmp/work/aarch64-poky-linux/gstreamer1.0/1.14.4.imx-r0/git/common'...
+
[[File:ROM-8720 WTD3.png|RTENOTITLE]]
  
fatal: unable to access '
+
=== '''RTC test''' ===
  
[https://anongit.freedesktop.org/git/gstreamer/common.git/': https://anongit.freedesktop.org/git/gstreamer/common.git/':] server certificate verification fa iled. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
+
Disable RTC sync service:
  
fatal: clone of '
+
#systemctl stop systemd-timesyncd
  
[https://anongit.freedesktop.org/git/gstreamer/common.git' https://anongit.freedesktop.org/git/gstreamer/common.git'] into submodule path '/home/adv/adv-release-b sp/build_x11/tmp/work/aarch64-poky-linux/gstreamer1.0/1.14.4.imx-r0/git/common' failed
+
Set system time to current, then write to RTC:
  
Failed to clone 'common' a second time, aborting
+
[[File:ROM-8720 RTC1.png|RTENOTITLE]]
  
ERROR: gstreamer1.0-1.14.4.imx-r0 do_unpack: Function failed: base_do_unpack
+
#date 110415302022 && hwclock -w && date
  
ERROR: Logfile of failure stored in: /home/adv/adv-release-bsp/build_x11/tmp/work/aarch64-poky-linux/gstreamer1.0/1.14. 4.imx-r0/temp/log.do_unpack.42631
+
Set one incorrect time, then read time from RTC to verify:
  
ERROR: Task (/home/adv/adv-release-bsp/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-multimedia/gstreamer/gstreamer 1.0_1.14.imx.bb:do_unpack) failed with exit code '1'
+
[[File:ROM-8720 RTC2.png|RTENOTITLE]]
  
ERROR: gstreamer1.0-plugins-base-1.14.4.imx-r0 do_unpack: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; expo rt PATH="/home/adv/adv-release-bsp/build_x11/tmp/work/aarch64-mx8mm-poky-linux/gstreamer1.0-plugins-base/1.14.4.imx-r0/ recipe-sysroot-native/usr/bin/python3-native:/home/adv/adv-release-bsp/sources/poky/scripts:/home/adv/adv-release-bsp/b uild_x11/tmp/work/aarch64-mx8mm-poky-linux/gstreamer1.0-plugins-base/1.14.4.imx-r0/recipe-sysroot-native/usr/bin/aarch6 4-poky-linux:/home/adv/adv-release-bsp/build_x11/tmp/work/aarch64-mx8mm-poky-linux/gstreamer1.0-plugins-base/1.14.4.imx -r0/recipe-sysroot/usr/bin/crossscripts:/home/adv/adv-release-bsp/build_x11/tmp/work/aarch64-mx8mm-poky-linux/gstreamer 1.0-plugins-base/1.14.4.imx-r0/recipe-sysroot-native/usr/sbin:/home/adv/adv-release-bsp/build_x11/tmp/work/aarch64-mx8m m-poky-linux/gstreamer1.0-plugins-base/1.14.4.imx-r0/recipe-sysroot-native/usr/bin:/home/adv/adv-release-bsp/build_x11/ tmp/work/aarch64-mx8mm-poky-linux/gstreamer1.0-plugins-base/1.14.4.imx-r0/recipe-sysroot-native/sbin:/home/adv/adv-rele ase-bsp/build_x11/tmp/work/aarch64-mx8mm-poky-linux/gstreamer1.0-plugins-base/1.14.4.imx-r0/recipe-sysroot-native/bin:/ home/adv/adv-release-bsp/sources/poky/bitbake/bin:/home/adv/adv-release-bsp/build_x11/tmp/hosttools"; export HOME="/hom e/adv"; git -c core.fsyncobjectfiles=0 submodule update --init --recursive failed with exit code 1, output:
+
#date 010100002000 && hwclock -r && date
  
Submodule 'common' (
+
Set the system time from the RTC:
  
[https://anongit.freedesktop.org/git/gstreamer/common.git) https://anongit.freedesktop.org/git/gstreamer/common.git)] registered for path 'common'
+
[[File:ROM-8720 RTC3.png|RTENOTITLE]]
  
Cloning into '/home/adv/adv-release-bsp/build_x11/tmp/work/aarch64-mx8mm-poky-linux/gstreamer1.0-plugins-base/1.14.4.im x-r0/git/common'...
+
#hwclock -s && date
  
fatal: unable to access '
+
[[File:ROM-8720 RTC4.png|RTENOTITLE]]
  
[https://anongit.freedesktop.org/git/gstreamer/common.git/': https://anongit.freedesktop.org/git/gstreamer/common.git/':] server certificate verification fa iled. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
+
=== '''Storage Function Test&nbsp;:''' ===
  
fatal: clone of '
+
=== '''SATA DISK:''' ===
  
[https://anongit.freedesktop.org/git/gstreamer/common.git' https://anongit.freedesktop.org/git/gstreamer/common.git'] into submodule path '/home/adv/adv-release-b sp/build_x11/tmp/work/aarch64-mx8mm-poky-linux/gstreamer1.0-plugins-base/1.14.4.imx-r0/git/common' failed
+
&nbsp;&nbsp;Read/write data and compare sha512 result
  
Failed to clone 'common'. Retry scheduled
+
[[File:ROM-8720 SATA1.png|RTENOTITLE]]
  
Cloning into '/home/adv/adv-release-bsp/build_x11/tmp/work/aarch64-mx8mm-poky-linux/gstreamer1.0-plugins-base/1.14.4.im x-r0/git/common'...
+
[[File:ROM-8720 SATA2.png|RTENOTITLE]]
  
fatal: unable to access '
+
SPI Read/Write test
  
[https://anongit.freedesktop.org/git/gstreamer/common.git/': https://anongit.freedesktop.org/git/gstreamer/common.git/':] server certificate verification fa iled. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
+
Write/Read/Verify data in the start/end 4 byte of flash
  
fatal: clone of '
+
[[File:ROM-8720 SPI1.png|RTENOTITLE]]
  
[https://anongit.freedesktop.org/git/gstreamer/common.git' https://anongit.freedesktop.org/git/gstreamer/common.git'] into submodule path '/home/adv/adv-release-b sp/build_x11/tmp/work/aarch64-mx8mm-poky-linux/gstreamer1.0-plugins-base/1.14.4.imx-r0/git/common' failed
+
#Note: Make sure the content of SPI nor flash is erased
  
Failed to clone 'common' a second time, aborting
+
#echo -n $'\x06\x05\x04\x03\x02\x01' > test
  
ERROR: gstreamer1.0-plugins-base-1.14.4.imx-r0 do_unpack: Function failed: base_do_unpack
+
#dd if=test of=/dev/mtdblock0
  
ERROR: Logfile of failure stored in: /home/adv/adv-release-bsp/build_x11/tmp/work/aarch64-mx8mm-poky-linux/gstreamer1.0 -plugins-base/1.14.4.imx-r0/temp/log.do_unpack.51633
+
#hexdump -C /dev/mtdblock0 -n 64
  
ERROR: Task (/home/adv/adv-release-bsp/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-multimedia/gstreamer/gstreamer 1.0-plugins-base_1.14.imx.bb:do_unpack) failed with exit code '1'
+
[[File:ROM-8720 SPI2.png|RTENOTITLE]]
  
<u>'''============================================================<br/> export GIT_SSL_NO_VERIFY=1<br/> #or<br/> git config --global http.sslverify false<br/> ============================================================'''</u>
+
== '''通用方法(General Method)''' ==
  
&nbsp;
+
=== '''查看CPU温度(Check CPU Temperature)''' ===
 +
<pre>&nbsp;</pre>
  
*Build error with git protocal:
+
=== '''查看CPU频率(Check CPU Frequency)''' ===
 +
<pre>          cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
 +
          >> 900000
 +
          cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq   
 +
          >> 1200000</pre>
  
ERROR: ExpansionError during parsing /home/adv/adv-release-bsp/sources/meta-advantech/meta-tools/recipes-utils/mdio-tool/mdio-tool_1.0.bb
+
=== '''查看内存容量(Check Memory&nbsp;Capacity)''' ===
 +
<pre>  busybox free -m
 +
</pre>
  
fatal: remote error:<br/> &nbsp; The unauthenticated git protocol on port 9418 is no longer supported.<br/> Please see <u>[https://github.blog/2021-09-01-improving-git-protocol-security-github/ https://github.blog/2021-09-01-improving-git-protocol-security-github/]</u> for more information.
+
&nbsp;
  
Modify: "/home/adv/adv-release-bsp/sources/meta-advantech/meta-tools/recipes-utils/mdio-tool/mdio-tool_1.0.bb" file to
+
=== '''查看存储容量(Check Storage Capacity)''' ===
 +
<pre> busybox df -h
 +
</pre>
  
SRC_URI = "[git://github.com/PieVo/mdio-tool.git;protocol= git://github.com/PieVo/mdio-tool.git;protocol=]<span style="background-color:#FFFF00;">https</span>;branch=master"
+
=== '''網路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>
  
[[File:Z74.jpg|RTENOTITLE]]
+
=== '''Linux&nbsp;BSP編譯方法(Linux&nbsp;BSP Compile Method)''' ===
  
 +
=== [http://ess-wiki.advantech.com.tw/view/Linux_BSP_build_User_Guide_(LSDK20.12) '''Ubuntu18.04'''] ===
  
 
{| border="0" cellpadding="10" cellspacing="0" style="width:100%;"
 
{| border="0" cellpadding="10" cellspacing="0" style="width:100%;"

Latest revision as of 07:32, 28 June 2024

產品介紹(Product introduction )

產品特性(Product Features)

  • NXP LS1046A Cortex®-A72 COM Express Type 7 Computer-on-Module
  • COM Express® Type 7 Compact Module
  • Up to 4 Cores, 1.6GHz
  • One Channel DDR4 SODIMM, max. 16GB (Both ECC & Non-ECC)
  • Up to 10GbE x2 and GbE x4
  • PCIe 3.0 x3, PCIe 2.0 x2, USB 3.0 x3 and USB2.0 x2
  • Support Ubuntu BSP

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

ROM-8720

硬件接口說明(Hardware interface introduction)

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

ROM-8720 接口布局圖 Board Dimension Layout 

RTENOTITLE

SOM-DB5920-00A1 接口布局圖 Board Dimension Layout

RTENOTITLE

主板内置插针式引脚排序方式 (Pin Header defination) 

RTENOTITLE

Connector List

Position Description
ATX1 ATX Connector
CN1 COM Express Connector
COM1 UART Connector (Tx, Rx)
COM2 UART Connector (Tx, Rx)
DCIN1 Wide Range DC Input Connector1
GPIO1 GPIO Pin Header
I2C1 I2C Wafer Box
LAN0_USB01 LAN0, USB3.0/2.0 Port0
and Port1 Connector
LAN1_USB23 LAN1, USB3.0/2.0 Port2
and Port3 Connector
LPC_PH1 Low Pin Count Pin Header
PCIEX16_0 PCIe x16 slot
PCIEX8_1 PCIe x8 slot
PCIEX4_0 PCIe x4 slot
BH1 RTC Battery Connector
CPU_FAN1 Smart Fan Connector
SMB1 SMBus Wafer Box
SYS_FAN1 System Fan Connector
SPI_CN1 SPI BIOS PIN HEADER
OCP module connector OCP module connector
SPI_BIOS1 SPI BIOS Socket
DCIN2 Wide Range DC Input Connector2
PCIEX4_1 PCIe x4 slot
SATA0 SATA Connector
SATA1 SATA Connector
VGA CRT Connector

Jumper, Switch, Button List

Position Description
J8, J9 SOM-DB5920 Voltage Input (VIN) Selection
J11 COMe Module +V5SB supply
J14 ATX / AT Mode Selection
J15 Carrier Board SPI power supply
J16 Front Panel Connector
J18 Normal Operation / Clear COMS Selection
J19 BMC software Enable Disable Selection
J100 OCP 10G Fibber & Copper SEL
J101 OCP I2C & MDIO SEL
J102 PCIE1X0 to PCIEX4 slot & BMC SEL
J103 PCIE1X4 to PCIEX4 slot & BMC SEL
J104 USB2&3 Port to LAN_USB_23 & BMC SEL
J106 LPC Pin Header Reset SEL
SW_LPC_TPM1 TPM Enable/Disable Switch
SW_LPC_TPM2 TPM Enable/Disable Switch
CB_PWROK PWROK Signal Pull Down or Floating Selection
PWRBTN1 Power Button
RESET1 Reset Button
SLEEP1 Sleep Button
EXT_THRM_1# External Thermal Trip Button
WAKE_1# Wake Button
LID1 LID Button
RAPID1 Rapid shutdown button

机械尺寸  (Mechanical Characteristics)

ROM-8720

RTENOTITLE

 


快速入门 (Quick Start)

系统下载 (OS Download)

  • Linux系统 (Linux OS)

           OS Support List (based on Ubutu 18.04)


 

Debug 串口調試 (Debug port Setting)

1. Connect RS-232 Cable (1700019474) to debug port (COM1)(up side) on SOM-DB5920.
2. Connect it to your PC with RS-232 Cable (1700019474).
3. J14 need to set to AT mode
4. root/root

以 Tera Term  为例介绍如何使用串口调试功能

   Baud Rate波特率:115200
   Data 数据位:8
   Parity 奇偶校验:无
   Stop 停止位:1
   Flow Control流控:无
 

Tera Term Tool 

RTENOTITLE

RTENOTITLE

Check the Sriel port in Device Manager (查看PC端的串口号):

if you can not identify the Serial device , please check your serial driver. 

RTENOTITLE

Debug port connection (串口連接) 

Log into Terminal  Tool (进入串口调试终端):

 


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

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

LAN function check

CN12 (down): fm1-mac3

CN12(up): fm1-mac4

CN13(down): fm1-mac5

CN13(up): fm1-mac6

Command : 

# ip a

RTENOTITLE

Up and ping with I/F fm1-mac3:

# ifconfig fm1-mac3 up

RTENOTITLE

# dhclient –d fm1-mac3

RTENOTITLE

# ping 8.8.8.8

RTENOTITLE

Up and ping with I/F fm1-mac4:

# ifconfig fm1-mac4 up

RTENOTITLE

  1. dhclient –d fm1-mac4

RTENOTITLE

ping 8.8.8.8

RTENOTITLE

Up and ping with I/F fm1-mac5:

# ifconfig fm1-mac5 up

RTENOTITLE

# dhclient –d fm1-mac5

RTENOTITLE

# ping 8.8.8.8

RTENOTITLE

 

Up and ping with I/F fm1-mac6:

# ifconfig fm1-mac6 up

RTENOTITLE

# dhclient –d fm6-mac6

RTENOTITLE

# ping 8.8.8.8

RTENOTITLE

ROM-EG60 Function:

   RJ45_CN1: fm1-mac9

    RJ45_CN2: fm1-mac10

Command : ip a 

RTENOTITLE

 

  1. ifconfig fm1-mac9 up
  1. ifconfig fm1-mac10 up

RTENOTITLE

 

Up and ping with I/F fm1-mac9:

# dhclient –d fm1-mac9

# ping 8.8.8.8

RTENOTITLE

  1. Up and ping with I/F fm1-mac10:

# dhclient –d fm1-mac10

 #ping 8.8.8.8

RTENOTITLE

Ping google.com

Edit /etc/resolv.conf to add nameserver

RTENOTITLE

  1. ping google.com

RTENOTITLE

 

WiFi使用方法(WIFI Testing Method)

Test WIFI (EWM-W168)

Connect mini PCIe to PCIe

Connect to SOM-1A10 PCIE2 or 3

The I/F may different with the PCIE slot

I/F:

wlP1p1s0(PCIE2) or wlP2p1s0(PCIE3)


Need to install wpa_supplicant first

Up and ping with I/F wlP1p1s0:

  1. killall wpa_supplicant
  1. ifconfig wlP2p1s0 up
  1. wpa_passphrase "Pilimao" "0913079939" > /tmp/wpa.conf

# wpa_supplicant -BDwext -i wlP2p1s0 -c /tmp/wpa.conf

RTENOTITLE

Request IP Addr:

  1. dhclient -d wlP2p1s0

RTENOTITLE

  1. ping 8.8.8.8:

RTENOTITLE

Add nameserver:

  1. vi /etc/resolv.conf
  1. ping google.com:

RTENOTITLE

 

串口使用方法(Serial Port Operating Method)

 

RS-232 test: Connect RS-232 loopback

COM2: /dev/ttyS1

Test script:

<span lang="EN-US" style="color:black">#!/bin/bash</span>

<span lang="EN-US" style="color:black">#set -x #echo on</span>


<span lang="EN-US" style="color:black">echo "Enable and Set RS-232 $1..."</span>

<span lang="EN-US" style="color:black">stty -F $1 speed 115200 -onlcr -echo</span>

<span lang="EN-US" style="color:black">sleep 1</span>


<span lang="EN-US" style="color:black">echo "Check RS-232 $1... speed"</span>

<span lang="EN-US" style="color:black">stty -F $1 speed</span>

<span lang="EN-US" style="color:black">sleep 1</span>


<span lang="EN-US" style="color:black">echo "echo Test_RS-232 to $1 x5..."</span>

<span lang="EN-US" style="color:black">sleep 1</span>


<span lang="EN-US" style="color:black">cat $1 &</span>

<span lang="EN-US" style="color:black">sleep 1</span>

<span lang="EN-US" style="color:black">for ((i=1;i<=5;i++))</span>

<span lang="EN-US" style="color:black">do</span>

<span lang="EN-US" style="color:black">    echo "Test_RS-232 to $1 +$i" > $1</span>

<span lang="EN-US" style="color:black">    sleep 0.5</span>

<span lang="EN-US" style="color:black">done</span>

<span lang="EN-US" style="font-size:11.0pt"><span style="font-family:" times",serif"=""><span style="color:black">echo "Finished RS-232 Test..."</span></span></span>
RS-232: ttyS1(COM2 loopback test):

# ./RS-232_test.sh /dev/ttyS1

RTENOTITLE

Watch Dog Function

System will reboot after enable watchdog and count 60 sec :

Check default watchdog time:

RTENOTITLE

Enable watchdog, system will reboot after 60 sec.

  1. echo 1 > /dev/watchdog

RTENOTITLE

System poweroff after 60 sec. cannot reboot again

 Set timeout to 10 and pin rate to 13, the system will reboot after 10 seconds.

  1. ./watchdog-test-adv -t 10 -p 13

RTENOTITLE

RTC test

Disable RTC sync service:

  1. systemctl stop systemd-timesyncd

Set system time to current, then write to RTC:

RTENOTITLE

  1. date 110415302022 && hwclock -w && date

Set one incorrect time, then read time from RTC to verify:

RTENOTITLE

  1. date 010100002000 && hwclock -r && date

Set the system time from the RTC:

RTENOTITLE

  1. hwclock -s && date

RTENOTITLE

Storage Function Test :

SATA DISK:

  Read/write data and compare sha512 result

RTENOTITLE

RTENOTITLE

SPI Read/Write test

Write/Read/Verify data in the start/end 4 byte of flash

RTENOTITLE

  1. Note: Make sure the content of SPI nor flash is erased
  1. echo -n $'\x06\x05\x04\x03\x02\x01' > test
  1. dd if=test of=/dev/mtdblock0
  1. hexdump -C /dev/mtdblock0 -n 64

RTENOTITLE

通用方法(General Method)

查看CPU温度(Check CPU Temperature)

 

查看CPU频率(Check CPU Frequency)

           cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq 
           >> 900000
           cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq    
           >> 1200000

查看内存容量(Check Memory Capacity)

  busybox free -m
 

 

查看存储容量(Check Storage Capacity)

 busybox df -h
 

網路Ping測試(Ping Network Testing)

     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

Linux BSP編譯方法(Linux BSP Compile Method)

Ubuntu18.04