Difference between revisions of "ROM-5721 user guide"

From ESS-WIKI
Jump to: navigation, search
 
(81 intermediate revisions by 3 users not shown)
Line 1: Line 1:
== '''資源特性(Features)''' ==
 
  
*NXP i.MX 8M Mini processor with up to 4 Arm Cortex A53 cores
+
== '''產品介紹(Product introduction )''' ==
*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)''' ==
+
=== '''產品特性(Product Features)''' ===
  
[[File:Z2.png|RTENOTITLE]]
+
*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-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
  
== '''接口布局和尺寸(Layout and Sizes)''' ==
+
=== '''產品官網連結(Product Features)''' ===
 +
 
 +
[https://www.advantech.com/zh-tw/products/77b59009-31a9-4751-bee1-45827a844421/rom-5721/mod_271dbc68-878b-486d-85cf-30cc9f1f8f16 '''ROM-5721''']
 +
 
 +
== '''硬件接口說明(Hardware interface introduction)''' ==
 +
 
 +
=== '''接口布局和尺寸(Layout and Sizes)''' ===
  
 
=== '''ROM-5721 接口布局圖 Board Dimension Layout ''' ===
 
=== '''ROM-5721 接口布局圖 Board Dimension Layout ''' ===
  
 
'''[[File:Z3.png|RTENOTITLE]]'''
 
'''[[File:Z3.png|RTENOTITLE]]'''
 
+
<div class="_">&nbsp;</div>
=== '''ROM-DB5901&nbsp;接口布局圖&nbsp;Board Dimension Layout''' ===
 
 
 
 
[[File:DB-ROM-5901 5620 carrierboard.jpg|RTENOTITLE]]
 
[[File:DB-ROM-5901 5620 carrierboard.jpg|RTENOTITLE]]
  
 
[[File:ROM-DB5901 IO.jpg|RTENOTITLE]]
 
[[File:ROM-DB5901 IO.jpg|RTENOTITLE]]
  
 +
=== '''&nbsp; 主板内置插针式引脚排序方式 (Pin Header defination)&nbsp;''' ===
  
 
+
=== '''&nbsp; Internal I/O''' ===
=== '''主板内置插针式引脚排序方式 (Pin Header defination)&nbsp;''' ===
 
 
 
=== '''Internal I/O''' ===
 
  
 
[[File:ROM-DB5901 IO2.jpg|RTENOTITLE]]
 
[[File:ROM-DB5901 IO2.jpg|RTENOTITLE]]
  
{| border="1" cellspacing="1" cellpadding="1" style="width:500px;"
+
{| border="1" cellpadding="1" cellspacing="1" style="width:500px;"
 
|-
 
|-
 
| '''Position'''
 
| '''Position'''
Line 41: Line 42:
 
|-
 
|-
 
| BAT1
 
| BAT1
| PIN Header for Battery<br/>
+
| PIN Header for Battery
| WAFER 8P 2.54mm 180D(M) DIP<br/>A2543WV2-8P<br/>
+
| WAFER 8P 2.54mm 180D(M) DIP<br/> A2543WV2-8P
 
|-
 
|-
 
| BH1
 
| BH1
| RTC Battery Holder<br/>
+
| RTC Battery Holder
| BATTERY HOLDER 24.9*23.4*8.9<br/>CR2032 BH800.4GG<br/>
+
| BATTERY HOLDER 24.9*23.4*8.9<br/> CR2032 BH800.4GG
 
|-
 
|-
 
| CAN1
 
| CAN1
| CANBus Port 1<br/>
+
| CANBus Port 1
| BOX HEADER 5x2P 2.54mm 180D(M)<br/>DIP 23N6960-10S10<br/>
+
| BOX HEADER 5x2P 2.54mm 180D(M)<br/> DIP 23N6960-10S10
 
|-
 
|-
 
| CAN2
 
| CAN2
| CANBus Port 2<br/>
+
| CANBus Port 2
| BOX HEADER 5x2P 2.54mm 180D(M)<br/>DIP 23N6960-10S10<br/>
+
| BOX HEADER 5x2P 2.54mm 180D(M)<br/> DIP 23N6960-10S10
 
|-
 
|-
 
| COM1
 
| COM1
| COM Port 1<br/>
+
| COM Port 1
| BOX HEADER 5x2P 2.54mm 180D(M)<br/>DIP 23N6960-10S10<br/>
+
| BOX HEADER 5x2P 2.54mm 180D(M)<br/> DIP 23N6960-10S10
 
|-
 
|-
 
| COM3
 
| COM3
| COM Port 3 (Debug Port)<br/>
+
| COM Port 3 (Debug Port)
| BOX HEADER 5x2P 2.54mm 180D(M)<br/>DIP 23N6960-10S10<br/>
+
| BOX HEADER 5x2P 2.54mm 180D(M)<br/> DIP 23N6960-10S10
 
|-
 
|-
 
| CN4
 
| CN4
| PCIex1 Connector 1<br/>
+
| PCIex1 Connector 1
| PCIEXPRESS 36P 180D(F) DIP<br/>2EG01817-D2D-DF<br/>
+
| PCIEXPRESS 36P 180D(F) DIP<br/> 2EG01817-D2D-DF
 
|-
 
|-
 
| CN5
 
| CN5
| PCIex1 Connector 2<br/>
+
| PCIex1 Connector 2
| PCIEXPRESS 36P 180D(F) DIP<br/>2EG01817-D2D-DF<br/>
+
| PCIEXPRESS 36P 180D(F) DIP<br/> 2EG01817-D2D-DF
 
|-
 
|-
 
| CN6
 
| CN6
| PCIex1 Connector 3<br/>
+
| PCIex1 Connector 3
| PCIEXPRESS 36P 180D(F) DIP<br/>2EG01817-D2D-DF<br/>
+
| PCIEXPRESS 36P 180D(F) DIP<br/> 2EG01817-D2D-DF
 
|-
 
|-
 
| CN11
 
| CN11
| SATA Connector<br/>
+
| SATA Connector
| Serial ATA 7P 1.27mm 180D(M) DIP<br/>WATM-07DBN4A3B8<br/>
+
| Serial ATA 7P 1.27mm 180D(M) DIP<br/> WATM-07DBN4A3B8
 
|-
 
|-
 
| CN12
 
| CN12
| SATA Power Connector<br/>
+
| SATA Power Connector
| WAFER 4P 2.5mm 180D(M) DIP<br/>24W1161-04S10-01T<br/>
+
| WAFER 4P 2.5mm 180D(M) DIP<br/> 24W1161-04S10-01T
 
|-
 
|-
 
| CN22
 
| CN22
| GPIOx8 sets<br/>
+
| GPIOx8 sets
| PIN HEADER 10x2P 2.0mm 180D(M)<br/>DIP 21N22050<br/>
+
| PIN HEADER 10x2P 2.0mm 180D(M)<br/> DIP 21N22050
 
|-
 
|-
 
| CN25
 
| CN25
| MXM 3.0 Connector<br/>
+
| MXM 3.0 Connector
| MXM Conn. 314P 90D(F) SMD<br/>AS0B821-S78B-7H<br/>
+
| MXM Conn. 314P 90D(F) SMD<br/> AS0B821-S78B-7H
 
|-
 
|-
 
| CN26
 
| CN26
| M.2 Key E Slots<br/>
+
| M.2 Key E Slots
| NGFF 75P 0.5mm 90D(F) H=4.2mm<br/>SMD AS0BC21-S40BE<br/>
+
| NGFF 75P 0.5mm 90D(F) H=4.2mm<br/> SMD AS0BC21-S40BE
 
|-
 
|-
 
| CN38
 
| CN38
 
| FAN (Reserved)
 
| FAN (Reserved)
| WTB Con. 3P 2.54mm 180D(M) DIP<br/>A2543WV0-3P-6T-5e<br/>
+
| WTB Con. 3P 2.54mm 180D(M) DIP<br/> A2543WV0-3P-6T-5e
 
|-
 
|-
 
| CN39
 
| CN39
| MIPI-CSI1 (FPC, 4-Lane<br/>
+
| MIPI-CSI1 (FPC, 4-Lane
| FPC 39P, 0.6mm, H0.9mm<br/>
+
| FPC 39P, 0.6mm, H0.9mm
 
|-
 
|-
 
| CN40
 
| CN40
| MIPI-CSI0 (FPC, 2-Lane)<br/>
+
| MIPI-CSI0 (FPC, 2-Lane)
| FPC 39P, 0.6mm, H0.9mm<br/>
+
| FPC 39P, 0.6mm, H0.9mm
 
|-
 
|-
 
| CN41
 
| CN41
| MIPI-CSI0 (Mini-SAS, 2-Lane)<br/>
+
| MIPI-CSI0 (Mini-SAS, 2-Lane)
| Mini SAS 36P/0.8mm/(M)/LCP/VA/G15u/<br/>S/BK/W<br/>
+
| Mini SAS 36P/0.8mm/(M)/LCP/VA/G15u/<br/> S/BK/W
 
|-
 
|-
 
| CN42
 
| CN42
| MIPI-CSI1 (Mini-SAS, 4-Lane)<br/>
+
| MIPI-CSI1 (Mini-SAS, 4-Lane)
| Mini SAS 36P/0.8mm/(M)/LCP/VA/G15u/<br/>S/BK/W<br/>
+
| Mini SAS 36P/0.8mm/(M)/LCP/VA/G15u/<br/> S/BK/W
 
|-
 
|-
 
| ESPI_CN1
 
| ESPI_CN1
| ESPI<br/>
+
| ESPI
| PIN HEADER 6x2P 2.0mm180D(M) SMD<br/>21N22050-12M00B<br/>
+
| PIN HEADER 6x2P 2.0mm180D(M) SMD<br/> 21N22050-12M00B
 
|-
 
|-
 
| I2C_GP_1
 
| I2C_GP_1
| I2C Pin Header<br/>
+
| I2C Pin Header
| WAFER BOX 4P 2.00mm 180D(M) DIP<br/>721-81-04TW00<br/>
+
| WAFER BOX 4P 2.00mm 180D(M) DIP<br/> 721-81-04TW00
 
|-
 
|-
 
| I2C_CN3
 
| I2C_CN3
| Audio Codec Board<br/>
+
| Audio Codec Board
| PIN HEADER 2x10P 2.54mm 180D(M)<br/>DIP 21N22564<br/>
+
| PIN HEADER 2x10P 2.54mm 180D(M)<br/> DIP 21N22564
 
|-
 
|-
 
| LVDS0
 
| LVDS0
| LVDS0<br/>
+
| LVDS0
| Wafer 2x20P/1.25mm/(M)/NY9T/VA/GFL/<br/>S/WH/W<br/>
+
| Wafer 2x20P/1.25mm/(M)/NY9T/VA/GFL/<br/> S/WH/W
 
|-
 
|-
 
| LVDS_BK_PWR
 
| LVDS_BK_PWR
| LVDS0 Back Light<br/>
+
| LVDS0 Back Light
| WAFER BOX 5P 2.0mm 180D(M) DIP<br/>A2001WV2-5P<br/>
+
| WAFER BOX 5P 2.0mm 180D(M) DIP<br/> A2001WV2-5P
 
|-
 
|-
 
| LVDS1
 
| LVDS1
| LVDS1<br/>
+
| LVDS1
| Wafer 2x20P/1.25mm/(M)/NY9T/VA/GFL/<br/>S/WH/W<br/>
+
| Wafer 2x20P/1.25mm/(M)/NY9T/VA/GFL/<br/> S/WH/W
 
|-
 
|-
 
| LVDS1_BK_PWR
 
| LVDS1_BK_PWR
| LVDS1 Back Light<br/>
+
| LVDS1 Back Light
| WAFER BOX 5P 2.0mm 180D(M) DIP<br/>A2001WV2-5P<br/>
+
| WAFER BOX 5P 2.0mm 180D(M) DIP<br/> A2001WV2-5P
 
|-
 
|-
 
| SD1
 
| SD1
| SD Card Slot<br/>
+
| SD Card Slot
| SD CARD 9P 90D(F) SMD WK2192CS3D-<br/>7H<br/>
+
| SD CARD 9P 90D(F) SMD WK2192CS3D-<br/> 7H
 
|-
 
|-
 
| SPI_CN1
 
| SPI_CN1
| SPI Pin Header<br/>
+
| SPI Pin Header
| PIN HEADER 4x2P 2.54mm 180D(M)<br/>SMD 21N22564<br/>
+
| PIN HEADER 4x2P 2.54mm 180D(M)<br/> SMD 21N22564
 
|-
 
|-
 
| SW2
 
| SW2
| Reset Button<br/>
+
| Reset Button
| TACT SW STS-091 SMD 4P H=3.8mm<br/>
+
| TACT SW STS-091 SMD 4P H=3.8mm
 
|-
 
|-
 
| SW4
 
| SW4
| SLP Button<br/>
+
| SLP Button
| TACT SW STS-091 SMD 4P H=3.8mm<br/>
+
| TACT SW STS-091 SMD 4P H=3.8mm
 
|-
 
|-
 
| SW5
 
| SW5
| Power Button<br/>
+
| Power Button
| TACT SW STS-091 SMD 4P H=3.8mm<br/>
+
| TACT SW STS-091 SMD 4P H=3.8mm
 
|-
 
|-
 
| USB0_OTG1
 
| USB0_OTG1
| USB OTG<br/>
+
| USB OTG
| Micro USB 5P/0.65mm/(F)/NY9T/GFL/<br/>RA/S/BK/B<br/>
+
| Micro USB 5P/0.65mm/(F)/NY9T/GFL/<br/> RA/S/BK/B
 
|-
 
|-
 
| USB-4-5
 
| USB-4-5
| USB Port 4, Port 5<br/>
+
| USB Port 4, Port 5
| PIN HEADER 2x5P 2.0mm 180D(M)<br/>SMD 21N22050<br/>
+
| PIN HEADER 2x5P 2.0mm 180D(M)<br/> SMD 21N22050
 
|}
 
|}
  
 
+
=== '''&nbsp; Rear I/O&nbsp;''' ===
 
 
=== '''Rear I/O&nbsp;''' ===
 
  
 
'''[[File:ROM-DB5901 RearIO.jpg|RTENOTITLE]]'''
 
'''[[File:ROM-DB5901 RearIO.jpg|RTENOTITLE]]'''
  
{| border="1" cellspacing="1" cellpadding="1" style="width:500px;"
+
{| border="1" cellpadding="1" cellspacing="1" style="width:500px;"
 
|-
 
|-
 
| '''Position'''
 
| '''Position'''
Line 206: Line 205:
 
|-
 
|-
 
| CN33
 
| CN33
| Type C Controller Programming Header (Reserved Only)<br/>
+
| Type C Controller Programming Header (Reserved Only)
 
| F
 
| F
 
|-
 
|-
 
| CN34
 
| CN34
| USB Type C<br/>
+
| USB Type C
 
| G
 
| G
 
|-
 
|-
| CN8<br/>
+
| CN8
| GbE Ethernet Connector Port<br/>
+
| GbE Ethernet Connector Port
 
| H
 
| H
 
|-
 
|-
 
| CN3
 
| CN3
| USB Port 1/ 2<br/>
+
| USB Port 1/ 2
 
| I
 
| I
 
|-
 
|-
| Audio1<br/>
+
| Audio1
| MIC Input/ Audio Output<br/>
+
| MIC Input/ Audio Output
 
| J
 
| J
 
|}
 
|}
  
=== '''接口引脚定義 (Pin definitions)''' ===
+
=== '''&nbsp; 接口引脚定義 (Pin definitions)''' ===
  
*[[電池(BAT1)_&_電池扣(BH1)|電池(BAT1)&nbsp;& 電池扣(BH1)]]
+
*[[電池(BAT1)_&_電池扣(BH1)|電池(BAT1)&nbsp;& 電池扣(BH1)]]  
*[[CAN(CAN1,CAN2)|CAN(CAN1,CAN2)]]
+
*[[CAN(CAN1,CAN2)|CAN(CAN1,CAN2)]]  
*[[串口(COM_DB(COM3)、COM0、COM1_、COM2)|串口(COM_DB(COM3)、COM1、UART0&nbsp;、UART2)]]
+
*[[串口(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)]]
+
*[[显示接口(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)]]
+
*[[LAN接口|LAN接口(LAN)]]  
*[[USB接口(USB1-2、USB_Type_C、USB_OTG)|USB接口(USB1-2、USB-4-5、USB Type C、USB OTG)]]
+
*[[USB接口(USB1-2、USB_Type_C、USB_OTG)|USB接口(USB1-2、USB-4-5、USB Type C、USB OTG)]]  
*[[音频接口(Audio)|音频接口(Audio Output &Audio Codec)]]
+
*[[音频接口(Audio)|音频接口(Audio Output &Audio Codec)]]  
*[[电源及指示灯和开关机复位按钮(Power_、LED、Power_Button、Reset_Button、Sleep_Button)|电源及指示灯和开关机复位按钮(Power&nbsp;、LED、Power Button、Reset Button、Sleep Button)&nbsp;]]
+
*[[电源及指示灯和开关机复位按钮(Power_、LED、Power_Button、Reset_Button、Sleep_Button)|电源及指示灯和开关机复位按钮(Power&nbsp;、LED、Power Button、Reset Button、Sleep Button)&nbsp;]]  
*[[GPIO接口|GPIO接口]]
+
*[[GPIO接口|GPIO接口]]  
*[[MINI_PCIE接口_M.2接口_SPI、I2C_接口|MINI_PCIE接口_M.2接口_SPI、I2C_接口]]
+
*[[MINI_PCIE接口_M.2接口_SPI、I2C_接口|MINI_PCIE接口_M.2接口_SPI、I2C_接口]]  
  
=== '''机械尺寸&nbsp; ('''Mechanical Characteristics) ===
+
=== '''&nbsp; 机械尺寸&nbsp; ('''Mechanical Characteristics) ===
  
'''ROM-5721&nbsp;'''
+
&nbsp;
  
 
'''[[File:ROM-5620 Mechanical Specifications1.jpg|RTENOTITLE]]'''
 
'''[[File:ROM-5620 Mechanical Specifications1.jpg|RTENOTITLE]]'''
Line 247: Line 246:
 
'''[[File:ROM-5620 Mechanical Specifications2.jpg|RTENOTITLE]]'''
 
'''[[File:ROM-5620 Mechanical Specifications2.jpg|RTENOTITLE]]'''
  
 +
&nbsp;
  
 +
&nbsp;
  
 
+
&nbsp;
 
 
 
 
  
 
----
 
----
Line 257: Line 256:
 
== '''快速入门 (Quick Start)''' ==
 
== '''快速入门 (Quick Start)''' ==
  
=== '''系统下载 (OS Download)''' ===
+
=== '''&nbsp; 系统下载 (OS Download)''' ===
  
*'''Linux系统 (Linux OS)'''
+
*'''Linux系统 (Linux OS)'''  
  
 
'''​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)]
 
'''​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)]
Line 267: Line 266:
 
----
 
----
  
=== '''Linux&nbsp;燒錄方法 (Linux Flash eMMC Method)''' ===
+
=== '''&nbsp; Linux&nbsp;燒錄方法 (Linux Flash eMMC Method)''' ===
  
 
'''使用Flash tool 燒錄鏡像到eMMC (Flash image into eMMC by Flash Tools)&nbsp;'''
 
'''使用Flash tool 燒錄鏡像到eMMC (Flash image into eMMC by Flash Tools)&nbsp;'''
Line 275: Line 274:
 
[[File:Z3.jpg|RTENOTITLE]]
 
[[File:Z3.jpg|RTENOTITLE]]
  
 
+
&nbsp;
  
 
Step1: 創造一張可開機的SD 卡&nbsp;(Create&nbsp;a bootable SD card)
 
Step1: 創造一張可開機的SD 卡&nbsp;(Create&nbsp;a bootable SD card)
Line 285: Line 284:
 
&nbsp;[[File:CarrierboardSDsolt.jpg|RTENOTITLE]]
 
&nbsp;[[File:CarrierboardSDsolt.jpg|RTENOTITLE]]
  
Step4: 確認開機選擇指撥開關&nbsp;
+
Step4: 確認開機選擇指撥開關 (Check the boot switch)
  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SD 卡開機模式:
+
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SD 卡開機模式(SD boot mode):
  
 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[[File:SDBootupSwitch.jpg|RTENOTITLE]]
 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[[File:SDBootupSwitch.jpg|RTENOTITLE]]
  
 
+
&nbsp;
  
 
Step3:打開電源 和 終端機&nbsp;(Turn on the Power & Terminal)
 
Step3:打開電源 和 終端機&nbsp;(Turn on the Power & Terminal)
Line 297: Line 296:
 
[[File:Z5.jpg|RTENOTITLE]]
 
[[File:Z5.jpg|RTENOTITLE]]
  
 
+
&nbsp;
  
 
Step4: 解壓縮flash tools 檔案,並複製到U盤中(Unzip the flash tools file , then copy to USB Disk)&nbsp;
 
Step4: 解壓縮flash tools 檔案,並複製到U盤中(Unzip the flash tools file , then copy to USB Disk)&nbsp;
Line 313: Line 312:
 
&nbsp;[[File:Z7.jpg|RTENOTITLE]]
 
&nbsp;[[File:Z7.jpg|RTENOTITLE]]
  
&nbsp;3. 掛載U盤在Ubuntu 系統中
+
&nbsp;3. 掛載U盤在Ubuntu 系統中 (Mount the&nbsp;USB Disk's in Ubuntu System)&nbsp;
  
 
[[File:Z8.jpg|RTENOTITLE]]
 
[[File:Z8.jpg|RTENOTITLE]]
  
4. 複製檔案到U盤
+
4. 複製檔案到U盤(Copy the file to USB disk)
  
 
[[File:Z9.jpg|RTENOTITLE]]
 
[[File:Z9.jpg|RTENOTITLE]]
  
5. 將U盤連接到ROM-5721系統, 進入flash tool下的mk_inand資料夾, 執行指令./mksd-linux.sh /dev/mmcblk2燒錄image到eMMC.
+
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"
  
{| border="1" cellspacing="1" cellpadding="1" style="width:500px;"
+
{| border="1" cellpadding="1" cellspacing="1" style="width:500px;"
 
|-
 
|-
 
| ROM-5721
 
| ROM-5721
| <br/>
+
| &nbsp;
 
|-
 
|-
 
| SD card
 
| SD card
Line 335: Line 334:
 
|}
 
|}
  
[[File:Z10.jpg]]
+
[[File:Z10.jpg|RTENOTITLE]]
  
6. Change boot switch to "1:on 2,3,4,5,6:off" to boot from eMMC. Reboot system.
+
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).
  
=== '''Debug 串口調試 (Debug port Setting)''' ===
+
=== '''&nbsp; Debug 串口調試 (Debug port Setting)''' ===
  
 
以 Tera Term&nbsp;&nbsp;为例介绍如何使用串口调试功能
 
以 Tera Term&nbsp;&nbsp;为例介绍如何使用串口调试功能
Line 348: Line 347:
 
   Flow Control流控:无</pre>
 
   Flow Control流控:无</pre>
  
:
+
:&nbsp;
  
 
Tera Term Tool&nbsp;
 
Tera Term Tool&nbsp;
Line 366: Line 365:
 
[[File:Debugcom3nn 2021-09-10 140320.jpg|RTENOTITLE]]
 
[[File:Debugcom3nn 2021-09-10 140320.jpg|RTENOTITLE]]
  
 
+
&nbsp;
  
 
Log into Terminal&nbsp; Tool (进入串口调试终端):
 
Log into Terminal&nbsp; Tool (进入串口调试终端):
  
[[File:Z15.jpg]]
+
[[File:Z15.jpg|RTENOTITLE]]
  
 
----
 
----
Line 376: Line 375:
 
== '''Linux系统的基本使用(Linux&nbsp;System Basic Operating Method)''' ==
 
== '''Linux系统的基本使用(Linux&nbsp;System Basic Operating Method)''' ==
  
=== '''UUU 使用方法(USB Connection (OTG port))''' ===
+
=== '''&nbsp; UUU 使用方法(USB Connection (OTG port))''' ===
  
 
Download uuu tool from (Release [[https://github.com/ADVANTECH-Corp/uuu/releases/tag/v20200619 ADV]v20200619 · ADVANTECH-Corp/uuu · GitHub]) or in the folder.
 
Download uuu tool from (Release [[https://github.com/ADVANTECH-Corp/uuu/releases/tag/v20200619 ADV]v20200619 · ADVANTECH-Corp/uuu · GitHub]) or in the folder.
Line 392: Line 391:
 
[[File:Z12.jpg|RTENOTITLE]]
 
[[File:Z12.jpg|RTENOTITLE]]
  
=== '''Display Setting (ROM-5721)''' ===
+
=== '''&nbsp; Display Setting (ROM-5721)''' ===
  
 
'''&nbsp; &nbsp; &nbsp; U-boot&nbsp;Command&nbsp;:'''
 
'''&nbsp; &nbsp; &nbsp; U-boot&nbsp;Command&nbsp;:'''
  
&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
+
&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
  
 
&nbsp; &nbsp; &nbsp;U-boot load fefault setting:
 
&nbsp; &nbsp; &nbsp;U-boot load fefault setting:
  
&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; &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
  
*Display
+
*Display: Default support g070vw01 LVDS panel on LVDS0
**DSI to LVDS
 
***g070vw01
 
****adv-imx8mm-rom5721-a1.dtb
 
***g150xgel05
 
****adv-imx8mm-rom5721-a1-dsi2lvds-g150xgel05.dtb
 
***g215hvn01
 
****adv-imx8mm-rom5721-a1-dsi2lvds-g215hvn01.dtb
 
**DSI to DP
 
***adv-imx8mm-rom5721-a1-dsi2dp.dtb
 
**DSI to HDMI
 
***adv-imx8mm-rom5721-a1-adv7535.dtb
 
**DSI
 
***auog101uan02
 
****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
 
  
=== '''乙太網路使用方法(Ethernent Testing Method)''' ===
+
'''Yocto 2.5'''
 +
 
 +
*
 +
**DSI to LVDS
 +
***g070vw01
 +
****adv-imx8mm-rom5721-a1.dtb 
 +
***g150xgel05
 +
****adv-imx8mm-rom5721-a1-dsi2lvds-g150xgel05.dtb 
 +
***g215hvn01
 +
****adv-imx8mm-rom5721-a1-dsi2lvds-g215hvn01.dtb   
 +
**DSI to DP
 +
***adv-imx8mm-rom5721-a1-dsi2dp.dtb 
 +
**DSI to HDMI
 +
***adv-imx8mm-rom5721-a1-adv7535.dtb 
 +
**DSI
 +
***auog101uan02
 +
****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 
 +
 
 +
'''Yocto 3.0'''
 +
 
 +
*
 +
**DSI to LVDS
 +
***g070vw01
 +
****imx8mm-rom5721-a1.dtb 
 +
***g150xgel05
 +
****imx8mm-rom5721-a1-dsi2lvds-g150xgel05.dtb 
 +
***g215hvn01
 +
****imx8mm-rom5721-a1-dsi2lvds-g215hvn01.dtb   
 +
**DSI to DP
 +
***imx8mm-rom5721-a1-dsi2dp.dtb 
 +
**DSI to HDMI
 +
***imx8mm-rom5721-a1-adv7535.dtb 
 +
**DSI
 +
***auog101uan02
 +
****imx8mm-rom5721-a1-auog101uan02.dtb     
 +
*M.2 SDIO
 +
**Adjust CN43~CN48
 +
**imx8mm-rom5721-a1-m2-sdio.dtb 
 +
 
 +
=== '''&nbsp; 乙太網路使用方法(Ethernent Testing Method)''' ===
  
 
'''Command&nbsp;: ifconfig&nbsp;'''
 
'''Command&nbsp;: ifconfig&nbsp;'''
  
[[File:Z13.jpg]]
+
[[File:Z13.jpg|RTENOTITLE]]
  
 
'''Command: Ping - I eth1 8.8.8.8&nbsp; or Ping - I eth0 8.8.8.8&nbsp;&nbsp;'''
 
'''Command: Ping - I eth1 8.8.8.8&nbsp; or Ping - I eth0 8.8.8.8&nbsp;&nbsp;'''
  
[[File:Z14.jpg]]
+
[[File:Z14.jpg|RTENOTITLE]]
  
=== '''WiFi使用方法(WIFI Testing Method)''' ===
+
=== '''&nbsp; WiFi使用方法(WIFI Testing Method)''' ===
 
<pre>Command&nbsp;:  
 
<pre>Command&nbsp;:  
  
# killall wpa_supplicant
+
preparatory work:将WIFI天线安装到ROM-5721上
# ifconfig wlan0 up
+
举例:
# iwlist mlan0 scan
+
root@imx8mmrom5721a1:~# ifconfig mlan0 up
WEP:
+
root@imx8mmrom5721a1:~#iwlist mlan0 scan
# iwconfig mlan0 txpower auto essid "SSID" channel 4
+
备注:(ESSID:"SSID"—热点名称,密码:123456789)
# udhcpc -i mlan0
+
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&nbsp;: CCMP
 +
                        Pairwise Ciphers (1)&nbsp;: CCMP
 +
                        Authentication Suites (1)&nbsp;: PSK
 +
                    IE: Unknown: DD180050F2020101810003A4000027A4000042435E0062322F00
 +
                    Extra:band=a
  
WPA/WPA2:
+
root@imx8mmrom5721a1:~# wpa_passphrase "SSID" 123456789 > /tmp/wpa.conf
# wpa_passphrase "SSID" > wpa.conf
+
root@imx8mmrom5721a1:~# sync
Type password
+
root@imx8mmrom5721a1:~# cat /tmp/wpa.conf
# wpa_supplicant -B -Dwext -imlan0 -c/home/root/wpa.conf
+
network={
# udhcpc -i mlan0
+
        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:&nbsp;::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)
  
ping 8.8.8.8
+
mlan0    Link encap:Ethernet  HWaddr c0:e4:34:6d:fa:bf
 +
          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
 
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.
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=1 ttl=50 time=287 ms
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=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:~#
  
[[File:Z16.jpg]]
+
=== '''&nbsp; GPIO使用方法(GPIO Operating Method)''' ===
 
 
=== '''GPIO使用方法(GPIO Operating Method)''' ===
 
  
 
[[File:Z17.jpg|RTENOTITLE]]
 
[[File:Z17.jpg|RTENOTITLE]]
  
 
+
&nbsp;
 
<pre>Loop-back Test (Take GPIO0 and GPIO2 as examples)   
 
<pre>Loop-back Test (Take GPIO0 and GPIO2 as examples)   
  
Line 482: Line 562:
 
1</pre>
 
1</pre>
  
=== '''串口使用方法(Serial Port Operating&nbsp;Method)''' ===
+
=== '''&nbsp; 串口使用方法(Serial Port Operating&nbsp;Method)''' ===
 +
 
 +
RS-232 Test
  
RS-232 Test&nbsp;
+
CN15上(SER0/UART3): /dev/ttymxc2
 +
 
 +
CN15 下(SER2/UART1): /dev/ttymxc0
 +
 
 +
COM 3&nbsp;(A53 debug/SER3/UART2): /dev/ttymxc1
 +
 
 +
COM 1&nbsp;(M4 debug/SER1/UART4): /dev/ttymxc3
  
 
SW7 Setting (SW7設置)&nbsp;
 
SW7 Setting (SW7設置)&nbsp;
Line 490: Line 578:
 
[[File:SW6&7settingn.jpeg|RTENOTITLE]]
 
[[File:SW6&7settingn.jpeg|RTENOTITLE]]
  
=== '''蓝牙使用方法(BlueTooth Operating&nbsp;Method)''' ===
+
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
 +
 
 +
Loopback test (eg. ttymxc0)<br/> Connect loopback test tool
 +
 
 +
#stty ‐F /dev/ttymxc0 115200<br/> # stty ‐F /dev/ttymxc0 ‐echo<br/> # cat /dev/ttymxc0 &<br/> # echo test > /dev/ttymxc0
 +
 
 +
=== '''&nbsp; 蓝牙使用方法(BlueTooth Operating&nbsp;Method)''' ===
 
<pre>Command&nbsp;:  
 
<pre>Command&nbsp;:  
  
Line 505: Line 599:
 
[[File:Z18.jpg|RTENOTITLE]]
 
[[File:Z18.jpg|RTENOTITLE]]
  
=== [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)'''] ===
+
=== &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)'''] ===
  
 
'''&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 查看主板IP位址&nbsp;(&nbsp;Chech IP Address ):'''​
 
'''&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 查看主板IP位址&nbsp;(&nbsp;Chech IP Address ):'''​
 
<pre>        Command&nbsp;: ifconfig</pre>
 
<pre>        Command&nbsp;: ifconfig</pre>
  
[[File:Eth0ssh 2021-09-10 143210.jpg|RTENOTITLE]]
+
[[File:Z19.jpg|RTENOTITLE]]
  
 
==== Windows下SSH访问及文件传输 ====
 
==== Windows下SSH访问及文件传输 ====
Line 516: Line 610:
 
SSH Remote Log into Device&nbsp;
 
SSH Remote Log into Device&nbsp;
  
*SSH远程登录,以putty选择putty.exe(或者使用Xshell、SecureCRT等类似软件)
+
*SSH远程登录,以putty选择putty.exe(或者使用Xshell、SecureCRT等类似软件)  
*需要设置远程设备的IP、通讯端口(默认22)、通讯方式,登录后验证用户名密码
+
*需要设置远程设备的IP、通讯端口(默认22)、通讯方式,登录后验证用户名密码  
 
 
  
 +
&nbsp;
  
 
[[File:SSHsettingdetail.png|RTENOTITLE]]
 
[[File:SSHsettingdetail.png|RTENOTITLE]]
  
[[File:SSHSetting2021-09-10 143631.jpg|RTENOTITLE]]
+
[[File:Z20.jpg|RTENOTITLE]]
 
 
  
 +
&nbsp;
  
 
[[File:Sshsetting12021-09-10 143743n.jpg|RTENOTITLE]]
 
[[File:Sshsetting12021-09-10 143743n.jpg|RTENOTITLE]]
  
[[File:SSHLogin 2021-09-10 143913n.jpg|RTENOTITLE]]
+
[[File:Z21.jpg|RTENOTITLE]]
  
 
== '''通用方法(General Method)''' ==
 
== '''通用方法(General Method)''' ==
  
=== &nbsp; '''&nbsp; &nbsp; 查看CPU温度(Check CPU Temperature)''' ===
+
=== &nbsp;&nbsp;'''查看CPU温度(Check CPU Temperature)''' ===
<pre>    root@imx8qxprom5620a1:/# cat /sys/devices/virtual/thermal/thermal_zone0/temp 44600
+
<pre>    root@imx8mmrom5721a1:/# cat /sys/devices/virtual/thermal/thermal_zone0/temp 44600
  
 
     # 或者直接以度爲單位顯示 echo $[$(cat /sys/class/thermal/thermal_zone0/temp)/1000]° >>> 45°</pre>
 
     # 或者直接以度爲單位顯示 echo $[$(cat /sys/class/thermal/thermal_zone0/temp)/1000]° >>> 45°</pre>
  
=== '''&nbsp; &nbsp; &nbsp;&nbsp;查看CPU频率(Check CPU Frequency)''' ===
+
=== '''&nbsp; 查看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 544: Line 638:
 
           >> 1200000</pre>
 
           >> 1200000</pre>
  
=== '''&nbsp; &nbsp; &nbsp;&nbsp;查看内存容量(Check Memory&nbsp;Capacity)''' ===
+
=== '''&nbsp; 查看内存容量(Check Memory&nbsp;Capacity)''' ===
<pre>root@imx8qxprom5620a1:/# busybox free -m
+
<pre>root@imx8mmrom5721a1:/# busybox free -m
 
             total      used      free    shared    buffers    cached
 
             total      used      free    shared    buffers    cached
 
Mem:      1794920    516080    1278840      17252      9852        80292
 
Mem:      1794920    516080    1278840      17252      9852        80292
Line 552: Line 646:
 
</pre>
 
</pre>
  
=== '''&nbsp; &nbsp; &nbsp;&nbsp;查看存储容量(Check Storage Capacity)''' ===
+
=== '''查看存储容量(Check Storage Capacity)''' ===
<pre style="margin-left: 40px;">root@imx8qxprom5620a1:/# busybox df -h
+
<pre>root@imx8mmrom5721a1:/# busybox df -h
 
Filesystem                Size      Used Available Use% Mounted on
 
Filesystem                Size      Used Available Use% Mounted on
 
/dev/root                13.4G      1.7G    11.1G  13% /
 
/dev/root                13.4G      1.7G    11.1G  13% /
Line 568: Line 662:
 
root@imx8qxprom5620a1:/#</pre>
 
root@imx8qxprom5620a1:/#</pre>
  
=== '''&nbsp; &nbsp; &nbsp; 網路Ping測試(Ping Network Testing)''' ===
+
=== '''&nbsp; 網路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 574: Line 668:
 
     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; &nbsp; &nbsp; 設置RTC (RTC Setting)&nbsp;''' ===
+
=== '''&nbsp; 設置RTC (RTC Setting)&nbsp;''' ===
<pre>    root@imx8qxprom5620a1:/# systemctl stop ntpdate.service
+
<pre>    root@imx8mmrom5721a1:/# systemctl stop ntpdate.service
     root@imx8qxprom5620a1:/# date 090816072021 && hwclock -w && date
+
     root@imx8mmrom5721a1:/# date 090816072021 && hwclock -w && date
 
             Wed Sep  8 16:07:00 UTC 2021
 
             Wed Sep  8 16:07:00 UTC 2021
 
             Wed Sep  8 16:07:00 UTC 2021
 
             Wed Sep  8 16:07:00 UTC 2021
     root@imx8qxprom5620a1:/# date
+
     root@imx8mmrom5721a1:/# date
 
             Wed Sep  8 16:07:06 UTC 2021
 
             Wed Sep  8 16:07:06 UTC 2021
     root@imx8qxprom5620a1:/#'''</pre>
+
     root@imx8mmrom5721a1:/#'''</pre>
  
 
'''&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'''
 
'''&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'''
  
== '''Linux&nbsp;BSP編譯方法(Android BSP Compile Method)''' ==
+
== '''Linux&nbsp;BSP編譯方法(Linux&nbsp;BSP Compile Method)''' ==
 +
 
 +
=== [https://ess-wiki.advantech.com.tw/view/IoTGateway/BSP/Linux/iMX8/Yocto_LBVD_User_Guide '''Yocto 4.2&nbsp;'''] ===
 +
 
 +
=== [http://ess-wiki.advantech.com.tw/view/IoTGateway/BSP/Linux/iMX8/Yocto_LBVC_User_Guide '''Yocto 4.0'''] ===
 +
 
 +
=== <u>Y[http://ess-wiki.advantech.com.tw/view/IoTGateway/BSP/Linux/iMX8/Yocto_LBVA_User_Guide '''octo&nbsp;3.0''']</u> ===
 +
 
 +
=== [http://ess-wiki.advantech.com.tw/view/IoTGateway/BSP/Linux/iMX8/Yocto_LBV9_User_Guide '''Yocto 2.5'''] ===
 +
 
 +
*'''如果有驗證上的錯誤 請使用以下的方法'''
 +
 
 +
<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:
 +
 
 +
Submodule 'common' (
 +
 
 +
[https://anongit.freedesktop.org/git/gstreamer/common.git) https://anongit.freedesktop.org/git/gstreamer/common.git)] registered for path 'common'
 +
 
 +
Cloning into '/home/adv/adv-release-bsp/build_x11/tmp/work/aarch64-poky-linux/gstreamer1.0/1.14.4.imx-r0/git/common'...
 +
 
 +
fatal: unable to access '
 +
 
 +
[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
 +
 
 +
fatal: clone of '
 +
 
 +
[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
 +
 
 +
Failed to clone 'common'. Retry scheduled
 +
 
 +
Cloning into '/home/adv/adv-release-bsp/build_x11/tmp/work/aarch64-poky-linux/gstreamer1.0/1.14.4.imx-r0/git/common'...
 +
 
 +
fatal: unable to access '
 +
 
 +
[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
 +
 
 +
fatal: clone of '
 +
 
 +
[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
 +
 
 +
Failed to clone 'common' a second time, aborting
 +
 
 +
ERROR: gstreamer1.0-1.14.4.imx-r0 do_unpack: Function failed: base_do_unpack
 +
 
 +
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
 +
 
 +
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'
 +
 
 +
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:
  
=== '''Yocto 2.5''' ===
+
Submodule 'common' (
 +
 
 +
[https://anongit.freedesktop.org/git/gstreamer/common.git) https://anongit.freedesktop.org/git/gstreamer/common.git)] registered for path 'common'
 +
 
 +
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'...
 +
 
 +
fatal: unable to access '
 +
 
 +
[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
 +
 
 +
fatal: clone of '
 +
 
 +
[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
 +
 
 +
Failed to clone 'common'. Retry scheduled
 +
 
 +
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'...
 +
 
 +
fatal: unable to access '
 +
 
 +
[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
 +
 
 +
fatal: clone of '
 +
 
 +
[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
 +
 
 +
Failed to clone 'common' a second time, aborting
 +
 
 +
ERROR: gstreamer1.0-plugins-base-1.14.4.imx-r0 do_unpack: Function failed: base_do_unpack
 +
 
 +
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
 +
 
 +
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'
 +
 
 +
<u>'''============================================================<br/> export GIT_SSL_NO_VERIFY=1<br/> #or<br/> git config --global http.sslverify false<br/> ============================================================'''</u>
 +
 
 +
&nbsp;
 +
 
 +
*Build error with git protocal:
 +
 
 +
ERROR: ExpansionError during parsing /home/adv/adv-release-bsp/sources/meta-advantech/meta-tools/recipes-utils/mdio-tool/mdio-tool_1.0.bb
 +
 
 +
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.
 +
 
 +
Modify: "/home/adv/adv-release-bsp/sources/meta-advantech/meta-tools/recipes-utils/mdio-tool/mdio-tool_1.0.bb" file to
 +
 
 +
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"
 +
 
 +
[[File:Z74.jpg|RTENOTITLE]]
 +
 
 +
&nbsp;
 +
 
 +
{| border="0" cellpadding="10" cellspacing="0" style="width:100%;"
 +
|-
 +
| <iframe height="230" key="advonline" level="campaign" path="en/aim-linux_community/" width="100%"></iframe>
 +
|}

Latest revision as of 09:13, 10 May 2024

Contents

產品介紹(Product introduction )

產品特性(Product 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-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

產品官網連結(Product Features)

ROM-5721

硬件接口說明(Hardware interface introduction)

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

ROM-5721 接口布局圖 Board Dimension Layout 

RTENOTITLE

 

RTENOTITLE

RTENOTITLE

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

  Internal I/O

RTENOTITLE

Position Description Connector Type
BAT1 PIN Header for Battery WAFER 8P 2.54mm 180D(M) DIP
A2543WV2-8P
BH1 RTC Battery Holder BATTERY HOLDER 24.9*23.4*8.9
CR2032 BH800.4GG
CAN1 CANBus Port 1 BOX HEADER 5x2P 2.54mm 180D(M)
DIP 23N6960-10S10
CAN2 CANBus Port 2 BOX HEADER 5x2P 2.54mm 180D(M)
DIP 23N6960-10S10
COM1 COM Port 1 BOX HEADER 5x2P 2.54mm 180D(M)
DIP 23N6960-10S10
COM3 COM Port 3 (Debug Port) BOX HEADER 5x2P 2.54mm 180D(M)
DIP 23N6960-10S10
CN4 PCIex1 Connector 1 PCIEXPRESS 36P 180D(F) DIP
2EG01817-D2D-DF
CN5 PCIex1 Connector 2 PCIEXPRESS 36P 180D(F) DIP
2EG01817-D2D-DF
CN6 PCIex1 Connector 3 PCIEXPRESS 36P 180D(F) DIP
2EG01817-D2D-DF
CN11 SATA Connector Serial ATA 7P 1.27mm 180D(M) DIP
WATM-07DBN4A3B8
CN12 SATA Power Connector WAFER 4P 2.5mm 180D(M) DIP
24W1161-04S10-01T
CN22 GPIOx8 sets PIN HEADER 10x2P 2.0mm 180D(M)
DIP 21N22050
CN25 MXM 3.0 Connector MXM Conn. 314P 90D(F) SMD
AS0B821-S78B-7H
CN26 M.2 Key E Slots NGFF 75P 0.5mm 90D(F) H=4.2mm
SMD AS0BC21-S40BE
CN38 FAN (Reserved) WTB Con. 3P 2.54mm 180D(M) DIP
A2543WV0-3P-6T-5e
CN39 MIPI-CSI1 (FPC, 4-Lane FPC 39P, 0.6mm, H0.9mm
CN40 MIPI-CSI0 (FPC, 2-Lane) FPC 39P, 0.6mm, H0.9mm
CN41 MIPI-CSI0 (Mini-SAS, 2-Lane) Mini SAS 36P/0.8mm/(M)/LCP/VA/G15u/
S/BK/W
CN42 MIPI-CSI1 (Mini-SAS, 4-Lane) Mini SAS 36P/0.8mm/(M)/LCP/VA/G15u/
S/BK/W
ESPI_CN1 ESPI PIN HEADER 6x2P 2.0mm180D(M) SMD
21N22050-12M00B
I2C_GP_1 I2C Pin Header WAFER BOX 4P 2.00mm 180D(M) DIP
721-81-04TW00
I2C_CN3 Audio Codec Board PIN HEADER 2x10P 2.54mm 180D(M)
DIP 21N22564
LVDS0 LVDS0 Wafer 2x20P/1.25mm/(M)/NY9T/VA/GFL/
S/WH/W
LVDS_BK_PWR LVDS0 Back Light WAFER BOX 5P 2.0mm 180D(M) DIP
A2001WV2-5P
LVDS1 LVDS1 Wafer 2x20P/1.25mm/(M)/NY9T/VA/GFL/
S/WH/W
LVDS1_BK_PWR LVDS1 Back Light WAFER BOX 5P 2.0mm 180D(M) DIP
A2001WV2-5P
SD1 SD Card Slot SD CARD 9P 90D(F) SMD WK2192CS3D-
7H
SPI_CN1 SPI Pin Header PIN HEADER 4x2P 2.54mm 180D(M)
SMD 21N22564
SW2 Reset Button TACT SW STS-091 SMD 4P H=3.8mm
SW4 SLP Button TACT SW STS-091 SMD 4P H=3.8mm
SW5 Power Button TACT SW STS-091 SMD 4P H=3.8mm
USB0_OTG1 USB OTG Micro USB 5P/0.65mm/(F)/NY9T/GFL/
RA/S/BK/B
USB-4-5 USB Port 4, Port 5 PIN HEADER 2x5P 2.0mm 180D(M)
SMD 21N22050

  Rear I/O 

RTENOTITLE

Position Description Name
DCIN DC Jack A
CN15A UART Port 0 B
CN15B UART Port 2 C
CN1A DP Port D
CN1B HDMI Port E
CN33 Type C Controller Programming Header (Reserved Only) F
CN34 USB Type C G
CN8 GbE Ethernet Connector Port H
CN3 USB Port 1/ 2 I
Audio1 MIC Input/ Audio Output J

  接口引脚定義 (Pin definitions)

  机械尺寸  (Mechanical Characteristics)

 

RTENOTITLE

RTENOTITLE

 

 

 


快速入门 (Quick Start)

  系统下载 (OS Download)

  • Linux系统 (Linux OS)

​Yocto 2.5: IoTGateway/BSP/Linux/iMX8/OS Support List - ESS-WIKI (advantech.com.tw)

Yocto 3.0:IoTGateway/BSP/Linux/iMX8/OS Support List 3.0


  Linux 燒錄方法 (Linux Flash eMMC Method)

使用Flash tool 燒錄鏡像到eMMC (Flash image into eMMC by Flash Tools) 

Step0: 檢查SD卡在Linux 環境的代號 (check SD card symbol in Linux system) 

RTENOTITLE

 

Step1: 創造一張可開機的SD 卡 (Create a bootable SD card)

RTENOTITLE

Step2: 將可開機的SD 卡插入底板SD卡卡槽(Plug the SD card into Carrier board 's SD card slot)

 RTENOTITLE

Step4: 確認開機選擇指撥開關 (Check the boot switch)

           SD 卡開機模式(SD boot mode):

           RTENOTITLE

 

Step3:打開電源 和 終端機 (Turn on the Power & Terminal)

RTENOTITLE

 

Step4: 解壓縮flash tools 檔案,並複製到U盤中(Unzip the flash tools file , then copy to USB Disk) 

    解壓縮(Unzip the file ) 

RTENOTITLE       

複製檔案到U盤中 (Copy the flash file to USB Disk) 

  1. 插入U盤到你的Ubuntu 電腦上 (Plug the USB Disk into you Linux PC

  2. 檢視U盤在Ubuntu 系統代號 (Check the USB Disk's symbol in Ubuntu System) 

 RTENOTITLE

 3. 掛載U盤在Ubuntu 系統中 (Mount the USB Disk's in Ubuntu System) 

RTENOTITLE

4. 複製檔案到U盤(Copy the file to USB disk)

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"

ROM-5721  
SD card /dev/mmcblk1
eMMC /dev/mmcblk2

RTENOTITLE

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).

  Debug 串口調試 (Debug port Setting)

以 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 (串口連接) 

RTENOTITLE

 

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

RTENOTITLE


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

  UUU 使用方法(USB Connection (OTG port))

Download uuu tool from (Release [ADVv20200619 · ADVANTECH-Corp/uuu · GitHub]) or in the folder.

The “imx-boot-imx8mmrom5721a1-sd.bin-flash_evk” file be included in 5721A1AIM20LIV90XXX_iMX8MM_misc.tgz. XXX is the version.

Connect USB cable to USB OTG port.

Change boot switch to "4:on 1,2,3,5,6:off" to boot from force recovery mode.

RTENOTITLE

Type command below to flash eMMC:

RTENOTITLE

  Display Setting (ROM-5721)

      U-boot Command :

                          setenv fdt_file xxxx.dtb
                          env save
                          boot

     U-boot load fefault setting:

                          env default -a
                          env save
                          reset

  • Display: Default support g070vw01 LVDS panel on LVDS0

Yocto 2.5

    • DSI to LVDS
      • g070vw01
        • adv-imx8mm-rom5721-a1.dtb
      • g150xgel05
        • adv-imx8mm-rom5721-a1-dsi2lvds-g150xgel05.dtb
      • g215hvn01
        • adv-imx8mm-rom5721-a1-dsi2lvds-g215hvn01.dtb
    • DSI to DP
      • adv-imx8mm-rom5721-a1-dsi2dp.dtb
    • DSI to HDMI
      • adv-imx8mm-rom5721-a1-adv7535.dtb
    • DSI
      • auog101uan02
        • 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

Yocto 3.0

    • DSI to LVDS
      • g070vw01
        • imx8mm-rom5721-a1.dtb
      • g150xgel05
        • imx8mm-rom5721-a1-dsi2lvds-g150xgel05.dtb
      • g215hvn01
        • imx8mm-rom5721-a1-dsi2lvds-g215hvn01.dtb
    • DSI to DP
      • imx8mm-rom5721-a1-dsi2dp.dtb
    • DSI to HDMI
      • imx8mm-rom5721-a1-adv7535.dtb
    • DSI
      • auog101uan02
        • imx8mm-rom5721-a1-auog101uan02.dtb
  • M.2 SDIO
    • Adjust CN43~CN48
    • imx8mm-rom5721-a1-m2-sdio.dtb

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

Command : ifconfig 

RTENOTITLE

Command: Ping - I eth1 8.8.8.8  or Ping - I eth0 8.8.8.8  

RTENOTITLE

  WiFi使用方法(WIFI Testing Method)

Command : 

preparatory work:将WIFI天线安装到ROM-5721上
举例:
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
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
          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
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:~#

=== '''  GPIO使用方法(GPIO Operating Method)''' ===

[[File:Z17.jpg|RTENOTITLE]]

 
<pre>Loop-back Test (Take GPIO0 and GPIO2 as examples)  

Step 1: Connect GPIO0 and GPIO2
Step 2: Export GPIO interface

root@imx8mmrom5721a1: ~# echo 496 > /sys/class/gpio/export
root@imx8mmrom5721a1: ~# echo 497 > /sys/class/gpio/export

Step 3: Set direction

root@imx8mmrom5721a1: ~# echo out > /sys/class/gpio/gpio1/direction
root@imx8mmrom5721a1: ~# echo in > /sys/class/gpio/gpio2/direction

Step 4: Read value and set output value then check

root@imx8mmrom5721a1: ~# cat /sys/class/gpio/gpio2/value
0
root@imx8mmrom5721a1: ~# echo 1 > /sys/class/gpio/gpio1/value
root@imx8mmrom5721a1: ~# cat /sys/class/gpio/gpio2/value
1

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

RS-232 Test

CN15上(SER0/UART3): /dev/ttymxc2

CN15 下(SER2/UART1): /dev/ttymxc0

COM 3 (A53 debug/SER3/UART2): /dev/ttymxc1

COM 1 (M4 debug/SER1/UART4): /dev/ttymxc3

SW7 Setting (SW7設置) 

RTENOTITLE

MODE1  MODE0
    0            0            LOOPBACK
    0            1            RS232
    1            0            RS485
    1            1            RS422

Loopback test (eg. ttymxc0)
Connect loopback test tool

  1. stty ‐F /dev/ttymxc0 115200
    # stty ‐F /dev/ttymxc0 ‐echo
    # cat /dev/ttymxc0 &
    # echo test > /dev/ttymxc0

  蓝牙使用方法(BlueTooth Operating Method)

Command : 

$ hciconfig hci0 up
$ 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

RTENOTITLE

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

              查看主板IP位址 ( Chech IP Address ):

        Command : ifconfig

RTENOTITLE

Windows下SSH访问及文件传输

SSH Remote Log into Device 

  • SSH远程登录,以putty选择putty.exe(或者使用Xshell、SecureCRT等类似软件)
  • 需要设置远程设备的IP、通讯端口(默认22)、通讯方式,登录后验证用户名密码

 

RTENOTITLE

RTENOTITLE

 

RTENOTITLE

RTENOTITLE

通用方法(General Method)

  查看CPU温度(Check CPU Temperature)

    root@imx8mmrom5721a1:/# cat /sys/devices/virtual/thermal/thermal_zone0/temp 44600

    # 或者直接以度爲單位顯示 echo $[$(cat /sys/class/thermal/thermal_zone0/temp)/1000]° >>> 45°

  查看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)

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

查看存储容量(Check Storage Capacity)

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:/#

  網路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

  設置RTC (RTC Setting) 

     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:/#'''

         

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

Yocto 4.2 

Yocto 4.0

Yocto 3.0

Yocto 2.5

  • 如果有驗證上的錯誤 請使用以下的方法

### repo sync failed with Server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none 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:

Submodule 'common' (

https://anongit.freedesktop.org/git/gstreamer/common.git) registered for path 'common'

Cloning into '/home/adv/adv-release-bsp/build_x11/tmp/work/aarch64-poky-linux/gstreamer1.0/1.14.4.imx-r0/git/common'...

fatal: unable to access '

https://anongit.freedesktop.org/git/gstreamer/common.git/': server certificate verification fa iled. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none

fatal: clone of '

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

Failed to clone 'common'. Retry scheduled

Cloning into '/home/adv/adv-release-bsp/build_x11/tmp/work/aarch64-poky-linux/gstreamer1.0/1.14.4.imx-r0/git/common'...

fatal: unable to access '

https://anongit.freedesktop.org/git/gstreamer/common.git/': server certificate verification fa iled. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none

fatal: clone of '

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

Failed to clone 'common' a second time, aborting

ERROR: gstreamer1.0-1.14.4.imx-r0 do_unpack: Function failed: base_do_unpack

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

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'

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:

Submodule 'common' (

https://anongit.freedesktop.org/git/gstreamer/common.git) registered for path 'common'

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'...

fatal: unable to access '

https://anongit.freedesktop.org/git/gstreamer/common.git/': server certificate verification fa iled. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none

fatal: clone of '

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

Failed to clone 'common'. Retry scheduled

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'...

fatal: unable to access '

https://anongit.freedesktop.org/git/gstreamer/common.git/': server certificate verification fa iled. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none

fatal: clone of '

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

Failed to clone 'common' a second time, aborting

ERROR: gstreamer1.0-plugins-base-1.14.4.imx-r0 do_unpack: Function failed: base_do_unpack

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

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'

============================================================
export GIT_SSL_NO_VERIFY=1
#or
git config --global http.sslverify false
============================================================

 

  • Build error with git protocal:

ERROR: ExpansionError during parsing /home/adv/adv-release-bsp/sources/meta-advantech/meta-tools/recipes-utils/mdio-tool/mdio-tool_1.0.bb

fatal: remote error:
  The unauthenticated git protocol on port 9418 is no longer supported.
Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.

Modify: "/home/adv/adv-release-bsp/sources/meta-advantech/meta-tools/recipes-utils/mdio-tool/mdio-tool_1.0.bb" file to

SRC_URI = "git://github.com/PieVo/mdio-tool.git;protocol=https;branch=master"

RTENOTITLE