Difference between revisions of "ROM-8720 user guide"

From ESS-WIKI
Jump to: navigation, search
 
(41 intermediate revisions by 2 users not shown)
Line 1: Line 1:
  
== '''資源特性(Features)''' ==
+
== '''產品介紹(Product introduction )''' ==
 +
 
 +
=== '''產品特性(Product Features)''' ===
  
 
*NXP LS1046A Cortex®-A72 COM Express Type 7 Computer-on-Module  
 
*NXP LS1046A Cortex®-A72 COM Express Type 7 Computer-on-Module  
Line 10: Line 12:
 
*Support Ubuntu BSP  
 
*Support Ubuntu BSP  
  
== '''訂購資訊(Ordering Information)''' ==
+
== '''產品官網連結(Product official website link) ''' ==
 +
 
 +
'''[https://www.advantech.com/zh-tw/products/495e3896-10cd-4836-ab69-f39fbcff4eb4/rom-8720/mod_16bd2379-3fcc-4459-bada-9fa6431703fc ROM-8720]'''
 +
 
 +
== '''硬件接口說明(Hardware interface introduction)''' ==
  
[[File:ROM-8720 orderinfo.PNG|RTENOTITLE]]
+
=== '''接口布局和尺寸(Layout and Sizes)''' ===
  
== '''接口布局和尺寸(Layout and Sizes)''' ==
+
=== '''ROM-8720 接口布局圖 Board Dimension Layout ''' ===
  
=== '''  ROM-8720 接口布局圖 Board Dimension Layout ''' ===
+
[[File:ROM-8720 Board Dimension Layout .PNG|RTENOTITLE]]
  
 
+
=== '''SOM-DB5920-00A1 接口布局圖 Board Dimension Layout''' ===
 +
 
 +
'''[[File:SOM-DB5920 Dimension layout.PNG|RTENOTITLE]]'''
  
=== '''  ROM-DB5920-00A1 接口布局圖 Board Dimension Layout''' ===
+
=== '''主板内置插针式引脚排序方式 (Pin Header defination) ''' ===
  
=== '''  主板内置插针式引脚排序方式 (Pin Header defination) ''' ===
+
'''[[File:SOM-DB5920 Connector Location.PNG|RTENOTITLE]]'''
  
=== '''  Internal I/O''' ===
+
=== '''Connector List''' ===
  
 
{| border="1" cellpadding="1" cellspacing="1" style="width:500px;"
 
{| border="1" cellpadding="1" cellspacing="1" style="width:500px;"
Line 30: Line 38:
 
| '''Position'''
 
| '''Position'''
 
| '''Description'''
 
| '''Description'''
| '''Connector Type'''
 
 
|-
 
|-
|  
+
| 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<br/> and Port1 Connector
 +
|-
 +
| LAN1_USB23
 +
| LAN1, USB3.0/2.0 Port2<br/> 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&nbsp;connector
 +
| OCP module connector
 +
|-
 +
| SPI_BIOS1
 +
| SPI BIOS Socket
 +
|-
 +
| DCIN2
 +
| Wide Range DC Input&nbsp;Connector2
 +
|-
 +
| PCIEX4_1
 +
| PCIe x4 slot
 +
|-
 +
| SATA0
 +
| SATA Connector
 +
|-
 +
| SATA1
 +
| SATA Connector
 +
|-
 +
| VGA
 +
| CRT Connector
 
|}
 
|}
  
=== '''&nbsp; Rear I/O&nbsp;''' ===
+
=== '''Jumper, Switch, Button List''' ===
 
 
&nbsp;
 
  
 
{| border="1" cellpadding="1" cellspacing="1" style="width:500px;"
 
{| border="1" cellpadding="1" cellspacing="1" style="width:500px;"
Line 45: Line 121:
 
| '''Position'''
 
| '''Position'''
 
| '''Description'''
 
| '''Description'''
| '''Name'''
 
 
|-
 
|-
| &nbsp;
+
| J8, J9
| &nbsp;
+
| SOM-DB5920 Voltage Input (VIN) Selection
| &nbsp;
+
|-
 +
| 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
 
|}
 
|}
  
=== '''&nbsp; 接口引脚定義 (Pin definitions)''' ===
+
=== '''机械尺寸&nbsp; ('''Mechanical Characteristics) ===
 
 
*電池(BAT1)&nbsp;& 電池扣(BH1)
 
*CAN(CAN1,CAN2)
 
*串口(COM_DB(COM3)、COM1、UART0&nbsp;、UART2)
 
*显示接口(LVDS、LVDS Backlight、HDMI、DP)
 
*LAN接口(LAN)
 
*USB接口(USB1-2、USB-4-5、USB Type C、USB OTG)
 
*音频接口(Audio Output &Audio Codec)
 
*电源及指示灯和开关机复位按钮(Power&nbsp;、LED、Power Button、Reset Button、Sleep Button)&nbsp;
 
*GPIO接口
 
*MINI_PCIE接口_M.2接口_SPI、I2C_接口
 
 
 
=== '''&nbsp; 机械尺寸&nbsp; ('''Mechanical Characteristics) ===
 
  
 
'''ROM-8720'''
 
'''ROM-8720'''
  
 
[[File:ROM-8720 MechanicalSpecifications.PNG|RTENOTITLE]]
 
[[File:ROM-8720 MechanicalSpecifications.PNG|RTENOTITLE]]
 
&nbsp;
 
 
&nbsp;
 
 
&nbsp;
 
  
 
&nbsp;
 
&nbsp;
Line 83: Line 204:
 
== '''快速入门 (Quick Start)''' ==
 
== '''快速入门 (Quick Start)''' ==
  
=== '''&nbsp; 系统下载 (OS Download)''' ===
+
=== '''系统下载 (OS Download)''' ===
  
 
*'''Linux系统 (Linux OS)'''  
 
*'''Linux系统 (Linux OS)'''  
Line 91: Line 212:
 
----
 
----
  
=== '''&nbsp; Linux&nbsp;燒錄方法 (Linux Flash eMMC Method)''' ===
+
&nbsp;
  
'''&nbsp; Debug 串口調試 (Debug port Setting)'''
+
=== '''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
  
 
以 Tera Term&nbsp;&nbsp;为例介绍如何使用串口调试功能
 
以 Tera Term&nbsp;&nbsp;为例介绍如何使用串口调试功能
Line 117: Line 240:
  
 
Debug port connection (串口連接)&nbsp;
 
Debug port connection (串口連接)&nbsp;
 +
 +
Log into Terminal&nbsp; Tool (进入串口调试终端):
  
 
&nbsp;
 
&nbsp;
 +
 +
----
 +
 +
== '''Linux系统的基本使用(Linux&nbsp;System Basic Operating Method)''' ==
 +
 +
 +
=== '''乙太網路使用方法(Ethernent Testing Method)''' ===
 +
 +
'''<span lang="EN-US" style="color:black">LAN function check</span>'''
 +
 +
<span lang="EN-US" style="color:black">CN12 (down): fm1-mac3</span>
 +
 +
<span lang="EN-US" style="color:black">CN12(up): fm1-mac4</span>
 +
 +
<span lang="EN-US" style="color:black">CN13(down): fm1-mac5</span>
 +
 +
<span lang="EN-US" style="font-size:11.0pt"><span style="font-family:"><span style="color:black">CN13(up): fm1-mac6</span></span></span>
 +
 +
<span lang="EN-US" style="font-size:11.0pt"><span style="font-family:"><span style="color:black">Command&nbsp;:&nbsp;</span></span></span>
 +
 +
<span style="line-height:18.0pt"><span style="vertical-align:baseline"><span lang="EN-US" style="color:black"># ip a</span></span></span>
 +
 +
[[File:ROM-8720 LAN function1-1.png|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-mac3:</span></span></span>
 +
 +
<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>
 +
 +
<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>
 +
 +
<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>
 +
 +
<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>
 +
 +
<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>
 +
 +
<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>
 +
 +
<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>
 +
 +
<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>
 +
 +
<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>
 +
 +
#dhclient –d fm1-mac4
 +
 +
[[File:ROM-8720 LAN function5-1.png|RTENOTITLE]]
 +
 +
ping 8.8.8.8
 +
 +
[[File:ROM-8720 LAN function6-1.png|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>
 +
 +
<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>
 +
 +
<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>
 +
 +
<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>
 +
 +
<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>
 +
 +
<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:ROM-8720 LAN function9-1.png|RTENOTITLE]]
  
 
&nbsp;
 
&nbsp;
  
Log into Terminal&nbsp; Tool (进入串口调试终端):
+
<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>
 +
 
 +
<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>
 +
 
 +
<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>
 +
 
 +
<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>
 +
 
 +
<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>
 +
 
 +
<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>
 +
 
 +
<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>
 +
 
 +
'''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>
 +
 
 +
<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>
 +
 
 +
'''Command&nbsp;: ip a&nbsp;'''
 +
 
 +
[[File:ROM-8720 LAN function1.png|RTENOTITLE]]
  
[[File:Z15.jpg|RTENOTITLE]]
+
'''&nbsp;'''
  
----
+
#ifconfig fm1-mac9 up
  
== '''Linux系统的基本使用(Linux&nbsp;System Basic Operating Method)''' ==
+
#ifconfig fm1-mac10 up
  
=== '''&nbsp; UUU 使用方法(USB Connection (OTG port))''' ===
+
[[File:ROM-8720 LAN function2.png|RTENOTITLE]]
  
 
&nbsp;
 
&nbsp;
  
=== '''&nbsp; 乙太網路使用方法(Ethernent Testing Method)''' ===
+
<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>
 +
 
 +
<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>
 +
 
 +
<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>
 +
 
 +
<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>
 +
 
 +
<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;#ping 8.8.8.8
 +
 
 +
[[File:ROM-8720 LAN function5.png|RTENOTITLE]]
 +
 
 +
Ping google.com
  
'''Command&nbsp;: ifconfig&nbsp;'''
+
Edit /etc/resolv.conf to add nameserver
  
&nbsp;
+
[[File:ROM-8720 LAN function7.png|RTENOTITLE]]
 +
 
 +
#ping google.com
  
'''Command: Ping - I eth1 8.8.8.8&nbsp; or Ping - I eth0 8.8.8.8&nbsp;&nbsp;'''
+
[[File:ROM-8720 LAN function8.png|RTENOTITLE]]
  
 
&nbsp;
 
&nbsp;
  
=== '''&nbsp; WiFi使用方法(WIFI Testing Method)''' ===
+
=== '''WiFi使用方法(WIFI Testing Method)''' ===
<pre>&nbsp;</pre>
 
  
=== '''&nbsp; 串口使用方法(Serial Port Operating&nbsp;Method)''' ===
+
Test WIFI (EWM-W168)
  
RS-232 Test
+
Connect mini PCIe to PCIe
  
CN15上(SER0/UART3): /dev/ttymxc2
+
Connect to SOM-1A10 PCIE2 or 3
  
CN15 下(SER2/UART1): /dev/ttymxc0
+
The I/F may different with the PCIE slot
  
COM 3&nbsp;(A53 debug/SER3/UART2): /dev/ttymxc1
+
I/F:
  
COM 1&nbsp;(M4 debug/SER1/UART4): /dev/ttymxc3
+
wlP1p1s0(PCIE2) or wlP2p1s0(PCIE3)
  
SW7 Setting (SW7設置)&nbsp;
+
----
  
&nbsp;
+
Need to install wpa_supplicant first
  
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
+
<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>
  
Loopback test (eg. ttymxc0)<br/> Connect loopback test tool
+
#killall wpa_supplicant
  
#stty ‐F /dev/ttymxc0 115200<br/> # stty ‐F /dev/ttymxc0 ‐echo<br/> # cat /dev/ttymxc0 &<br/> # echo test > /dev/ttymxc0
+
#ifconfig wlP2p1s0 up
  
=== '''&nbsp; 蓝牙使用方法(BlueTooth Operating&nbsp;Method)''' ===
+
#wpa_passphrase "Pilimao" "0913079939" > /tmp/wpa.conf
<pre>Command&nbsp;:
 
  
$ hciconfig hci0 up
+
<span lang="EN-US" style="font-size:11.0pt"><span style="font-family:"># wpa_supplicant -BDwext -i wlP2p1s0 -c /tmp/wpa.conf</span></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]]
+
[[File:ROM-8720 WIFI 1.png|RTENOTITLE]]
  
=== &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)'''] ===
+
Request IP Addr:
  
'''&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 查看主板IP位址&nbsp;(&nbsp;Chech IP Address ):'''​
+
#dhclient -d wlP2p1s0
<pre>        Command&nbsp;: ifconfig</pre>
 
  
&nbsp;
+
[[File:ROM-8720 WIFI 2.png|RTENOTITLE]]
  
==== Windows下SSH访问及文件传输 ====
+
#ping 8.8.8.8:
  
SSH Remote Log into Device&nbsp;
+
[[File:ROM-8720 WIFI 3.png|RTENOTITLE]]
  
*SSH远程登录,以putty选择putty.exe(或者使用Xshell、SecureCRT等类似软件)
+
Add nameserver:
*需要设置远程设备的IP、通讯端口(默认22)、通讯方式,登录后验证用户名密码
 
  
&nbsp;
+
#vi /etc/resolv.conf
  
[[File:SSHsettingdetail.png|RTENOTITLE]]
+
#ping google.com:  
  
[[File:Z20.jpg|RTENOTITLE]]
+
[[File:ROM-8720 WIFI 4.png|RTENOTITLE]]
  
 
&nbsp;
 
&nbsp;
  
[[File:Sshsetting12021-09-10 143743n.jpg|RTENOTITLE]]
+
=== '''串口使用方法(Serial Port Operating&nbsp;Method)''' ===
  
 
&nbsp;
 
&nbsp;
 +
 +
<span lang="EN-US" style="color:black">RS-232 test: Connect RS-232 loopback</span>
 +
 +
<span lang="EN-US" style="color:black">COM2: /dev/ttyS1</span>
 +
 +
<span lang="EN-US" style="color:black">Test script:</span>
 +
<pre><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></pre>
 +
<pre>RS-232: ttyS1(COM2 loopback test):
 +
 +
# ./RS-232_test.sh /dev/ttyS1</pre>
 +
 +
[[File:ROM-8720 RS232.png|RTENOTITLE]]
 +
 +
=== '''Watch Dog Function''' ===
 +
 +
System will reboot after enable watchdog and count 60 sec&nbsp;:
 +
 +
Check default watchdog time:
 +
 +
[[File:ROM-8720 WTD1.png|RTENOTITLE]]
 +
 +
Enable watchdog, system will reboot after 60 sec.
 +
 +
#echo 1 > /dev/watchdog
 +
 +
[[File:ROM-8720 WTD2.png|RTENOTITLE]]
 +
 +
System poweroff after 60 sec. cannot reboot again
 +
 +
&nbsp;Set timeout to 10 and pin rate to 13, the system will reboot after 10 seconds.
 +
 +
#./watchdog-test-adv -t 10 -p 13
 +
 +
[[File:ROM-8720 WTD3.png|RTENOTITLE]]
 +
 +
=== '''RTC test''' ===
 +
 +
Disable RTC sync service:
 +
 +
#systemctl stop systemd-timesyncd
 +
 +
Set system time to current, then write to RTC:
 +
 +
[[File:ROM-8720 RTC1.png|RTENOTITLE]]
 +
 +
#date 110415302022 && hwclock -w && date
 +
 +
Set one incorrect time, then read time from RTC to verify:
 +
 +
[[File:ROM-8720 RTC2.png|RTENOTITLE]]
 +
 +
#date 010100002000 && hwclock -r && date
 +
 +
Set the system time from the RTC:
 +
 +
[[File:ROM-8720 RTC3.png|RTENOTITLE]]
 +
 +
#hwclock -s && date
 +
 +
[[File:ROM-8720 RTC4.png|RTENOTITLE]]
 +
 +
=== '''Storage Function Test&nbsp;:''' ===
 +
 +
=== '''SATA DISK:''' ===
 +
 +
&nbsp;&nbsp;Read/write data and compare sha512 result
 +
 +
[[File:ROM-8720 SATA1.png|RTENOTITLE]]
 +
 +
[[File:ROM-8720 SATA2.png|RTENOTITLE]]
 +
 +
SPI Read/Write test
 +
 +
Write/Read/Verify data in the start/end 4 byte of flash
 +
 +
[[File:ROM-8720 SPI1.png|RTENOTITLE]]
 +
 +
#Note: Make sure the content of SPI nor flash is erased
 +
 +
#echo -n $'\x06\x05\x04\x03\x02\x01' > test
 +
 +
#dd if=test of=/dev/mtdblock0
 +
 +
#hexdump -C /dev/mtdblock0 -n 64
 +
 +
[[File:ROM-8720 SPI2.png|RTENOTITLE]]
  
 
== '''通用方法(General Method)''' ==
 
== '''通用方法(General Method)''' ==
  
=== &nbsp;&nbsp;'''查看CPU温度(Check CPU Temperature)''' ===
+
=== '''查看CPU温度(Check CPU Temperature)''' ===
 
<pre>&nbsp;</pre>
 
<pre>&nbsp;</pre>
  
=== '''&nbsp; 查看CPU频率(Check CPU Frequency)''' ===
+
=== '''查看CPU频率(Check CPU Frequency)''' ===
 
<pre>          cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq  
 
<pre>          cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq  
 
           >> 900000
 
           >> 900000
Line 221: Line 564:
 
           >> 1200000</pre>
 
           >> 1200000</pre>
  
=== '''&nbsp; 查看内存容量(Check Memory&nbsp;Capacity)''' ===
+
=== '''查看内存容量(Check Memory&nbsp;Capacity)''' ===
 
<pre>  busybox free -m
 
<pre>  busybox free -m
 
  </pre>
 
  </pre>
 +
 +
&nbsp;
  
 
=== '''查看存储容量(Check Storage Capacity)''' ===
 
=== '''查看存储容量(Check Storage Capacity)''' ===
Line 229: Line 574:
 
  </pre>
 
  </pre>
  
=== '''&nbsp; 網路Ping測試(Ping Network Testing)''' ===
+
=== '''網路Ping測試(Ping Network Testing)''' ===
 
<pre>    ping 8.8.8.8
 
<pre>    ping 8.8.8.8
 
     PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
 
     PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
Line 235: Line 580:
 
     64 bytes from 8.8.8.8: icmp_seq=2 ttl=54 time=2.10 ms</pre>
 
     64 bytes from 8.8.8.8: icmp_seq=2 ttl=54 time=2.10 ms</pre>
  
=== '''&nbsp; 設置RTC (RTC Setting)&nbsp;''' ===
+
=== '''Linux&nbsp;BSP編譯方法(Linux&nbsp;BSP Compile Method)''' ===
<pre> &nbsp;</pre>
 
 
 
'''&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'''
 
 
 
== '''Linux&nbsp;BSP編譯方法(Linux&nbsp;BSP Compile Method)''' ==
 
  
=== &nbsp;&nbsp;[http://ess-wiki.advantech.com.tw/view/Linux_BSP_build_User_Guide_(LSDK20.12) '''Ubuntu18.04'''] ===
+
=== [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