Difference between revisions of "ROM-2620 user guide"

From ESS-WIKI
Jump to: navigation, search
(Created page with " {{DISPLAYTITLE:ROM-3620}} {| border="0" cellpadding="5" cellspacing="0" style="width:100%;" |- | style="width: 300px;text-align: center;vertical-align: top;" | File:ROM-36...")
 
Line 1: Line 1:
  
{{DISPLAYTITLE:ROM-3620}}
 
  
{| border="0" cellpadding="5" cellspacing="0" style="width:100%;"
+
 
 +
= 產品介紹 =
 +
 
 +
 
 +
== '''產品特性(Features)''' ==
 +
 
 +
*NXP Arm® Cortex®-A53 i.MX8M Plus Quad/Dual up to 1.8 GHz
 +
*1 x Arm Cortex-M7 core
 +
*Onboard LPDDR4 6 GB, 4000MT/s memory
 +
*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, 5 x I2C, 14 x GPIO, 1 x PCIe3.0, 2 x Gigabit LAN, 2 x CAN-FD
 +
*Neural network accelerator up to 2.3 TOPS
 +
*Supports Ycoto Linux and Android
 +
 
 +
== '''產品官網連結(Product information Link)''' ==
 +
 
 +
[https://www.advantech.com/zh-tw/products/77b59009-31a9-4751-bee1-45827a844421/rom-5722/mod_11aa0c77-868e-4014-8151-ac7a7a1c5c1b '''ROM-5722''']
 +
 
 +
= '''接口布局和尺寸(Layout and Sizes)''' =
 +
 
 +
=== '''ROM-5722 接口布局圖 Board Dimension Layout ''' ===
 +
 
 +
[[File:ROM-5722 module 2021-10-20 155940.jpg|RTENOTITLE]]
 +
 
 +
 
 +
 
 +
=== '''SOM-DB2510 接口布局圖 Board Dimension Layout''' ===
 +
 
 +
[[File:SOM-DB2510.PNG|RTENOTITLE]]
 +
 
 +
 
 +
 
 +
[[File:SOM-DB2510 IO.PNG|RTENOTITLE]]
 +
 
 +
=== '''主板内置插针式引脚排序方式 (Pin Header defination) ''' ===
 +
 
 +
=== '''Internal I/O''' ===
 +
 
 +
[[File:SOM-DB2510 connect1.PNG|RTENOTITLE]]
 +
 
 +
[[File:SOM-DB2510 connect2.PNG|RTENOTITLE]]
 +
 
 +
{| border="1" cellpadding="1" cellspacing="1" style="width: 763px;"
 
|-
 
|-
| style="width: 300px;text-align: center;vertical-align: top;" | [[File:ROM-3620.png|RTENOTITLE]]
+
| '''Label'''
| style="vertical-align: top;" |  
+
| style="width: 296.422px;" | '''Function'''
<span style="font-size:14px;color:#4d4d4d;line-height:20px;">Advantech ROM-3620 RTX2.1 Computer-on-Module is powered by NXP i.MX 8X SoC which includes two to four Arm Cortex-A35 cores for mid-range automotive and industrial market segments, one Cortex-M4F core for real-time processing, and one Tensilica Hi-Fi 4 DSP for efficient audio and voice codec executio.</span>
+
| style="width: 64px;" | '''Label'''
 +
| style="width: 301px;" | '''Function'''
 +
|-
 +
| ATX1
 +
| style="width: 296.422px;" | ATX Connector
 +
| style="width: 64px;" | FAN1
 +
| style="width: 301px;" | Smart Fan Connector
 +
|-
 +
| SMARC_IN1
 +
| style="width: 296.422px;" | Wide Range Input Power Connector (3V~5.25V)
 +
| style="width: 64px;" | FAN2
 +
| style="width: 301px;" | System Fan Connector
 +
|-
 +
| DCIN1
 +
| style="width: 296.422px;" | DCIN connector
 +
| style="width: 64px;" | CAN0_1
 +
| style="width: 301px;" | CAN Bus Connector
 +
|-
 +
| DP0_HDMI
 +
| style="width: 296.422px;" | DP & HDMI Connector
 +
| style="width: 64px;" | USB0
 +
| style="width: 301px;" | USB OTG Connector
 +
|-
 +
| USB12
 +
| style="width: 296.422px;" | USB 2.0 port1~2 & USB 3.0 port0 Connector
 +
| style="width: 64px;" | COM1_3
 +
| style="width: 301px;" | COM Port Port1,3 Connector
 +
|-
 +
| TYPEC_DP1
 +
| style="width: 296.422px;" | Type-C Connector
 +
| style="width: 64px;" | COM2_4
 +
| style="width: 301px;" | COM Port Port2,4 Connector
 +
|-
 +
| LAN0_LAN1
 +
| style="width: 296.422px;" | LAN0 & LAN1 Connector
 +
| style="width: 64px;" | CN8
 +
| style="width: 301px;" | I2C connector for I2C_PM
 +
|-
 +
| LOUT1
 +
| style="width: 296.422px;" | Line Out Connector
 +
| style="width: 64px;" | CN7
 +
| style="width: 301px;" | I2C Connector for I2C_GP
 +
|-
 +
| MIC1
 +
| style="width: 296.422px;" | MIC1&nbsp;Connector
 +
| style="width: 64px;" | CN10
 +
| style="width: 301px;" | eSPI Pin Header
 +
|-
 +
| CN1_MXM1
 +
| style="width: 296.422px;" | SMARC Connector
 +
| style="width: 64px;" | SATAP1
 +
| style="width: 301px;" | SATA Power Connector
 +
|-
 +
| PCIEA-X4
 +
| style="width: 296.422px;" | PCIe x4 Connector
 +
| style="width: 64px;" | CSI0_B2B
 +
| style="width: 301px;" | MIPI B2B Connector for 2M Camera
 +
|-
 +
| SATA1
 +
| style="width: 296.422px;" | SATA Port0 Connector
 +
| style="width: 64px;" | CSI1_B2B
 +
| style="width: 301px;" | MIPI B2B Connector for 8M & 13M Camera
 +
|-
 +
| PCIED-X1
 +
| style="width: 296.422px;" | PCIe x1 Connector
 +
| style="width: 64px;" | SPI_BIOS1
 +
| style="width: 301px;" | Carrier Board BIOS Socket (SOIC)
 +
|-
 +
| M2
 +
| style="width: 296.422px;" | M.2 Key-E Connector
 +
| style="width: 64px;" | BAT1
 +
| style="width: 301px;" | Coin battery holder
 +
|-
 +
| MPCIE_C
 +
| style="width: 296.422px;" | Mini PCIe Connector
 +
| style="width: 64px;" | BAT2
 +
| style="width: 301px;" | Smart battery Connector
 +
|-
 +
| SIM
 +
| style="width: 296.422px;" | SIM card Connector
 +
| style="width: 64px;" | LINEOUT_1
 +
| style="width: 301px;" | I2S Headphone Connector
 +
|-
 +
| LVDS1
 +
| style="width: 296.422px;" | LVDS1 Connector
 +
| style="width: 64px;" | MIC_1
 +
| style="width: 301px;" | I2S MIC In Connector
 +
|-
 +
| LVDS0
 +
| style="width: 296.422px;" | LVDS0 Connector
 +
| style="width: 64px;" | CSI1_FPC
 +
| style="width: 301px;" | MIPI FPC Connector for 8M & 13M Camera
 +
|-
 +
| LVDS1_INVERTER
 +
| style="width: 296.422px;" | LVDS1 Invertor Connector
 +
| style="width: 64px;" | CSI0_FPC
 +
| style="width: 301px;" | MIPI FPC Connector for 2M Camera
 +
|-
 +
| LVDS0_INVERTER
 +
| style="width: 296.422px;" | LVDS0 Invertor Connector
 +
| style="width: 64px;" | CN5
 +
| style="width: 301px;" | I2S2 Connector
 +
|-
 +
| SPI_BIOS2
 +
| style="width: 296.422px;" | Carrier Board BIOS Socket (QFN)
 +
| style="width: 64px;" | CN17
 +
| style="width: 301px;" | I2S0 Connector
 +
|-
 +
| SD
 +
| style="width: 296.422px;" | SD Card Connector
 +
| style="width: 64px;" | &nbsp;
 +
| style="width: 301px;" | &nbsp;
 +
|}
  
*NXP i.MX 8X processor with 2-4 x Arm Cortex-A35 cores
+
&nbsp;
*Onbard LPDDR4 memory and eMMC 16GB
+
 
*Supports wide range power input 5V~24V
+
=== '''Rear I/O&nbsp;''' ===
*Supports Vivante GC7000 Lite hardware accelerators
+
 
*Supports Ultra HD 4K/ full HD 1080p video decode and HD 1080p video encode hardware engine
+
[[File:SOM-DB2510 IO.PNG|RTENOTITLE]]
*Supports 1 PCIe, 1 USB 3.0, 1 USB 2.0, 1 USB OTG2.0, 5 I2C, 1 I2S, 1 Camera in, 2 CANbus, 10 GPIO
+
 
*Low power consumption, fanless desgin
+
=== '''Jumper 位置( Jumper Locations)&nbsp;''' ===
*Supports Linux and Android BSP
+
 
 +
[[File:DB-2510 JumperLocations1.PNG|RTENOTITLE]]
 +
 
 +
[[File:DB-2510 JumperLocations2.PNG|RTENOTITLE]]
  
 +
{| border="1" cellpadding="1" cellspacing="1" style="width: 850px;"
 +
|-
 +
| Lable
 +
| style="width: 330px;" | Function
 +
| style="width: 53px;" | Lable
 +
| style="width: 305px;" | Function
 +
|-
 +
| BTN3
 +
| style="width: 330px;" | Sleep Button
 +
| style="width: 53px;" | J14
 +
| style="width: 305px;" | EDP1/LVDS1 Hot-Plug Detect Selection Header
 +
|-
 +
| BTN1
 +
| style="width: 330px;" | Power Button
 +
| style="width: 53px;" | J56
 +
| style="width: 305px;" | Standby Voltage Control Header
 +
|-
 +
| BTN2
 +
| style="width: 330px;" | Reset Button
 +
| style="width: 53px;" | J44
 +
| style="width: 305px;" | Module +3.3V/+5V Power Selection Header
 +
|-
 +
| SW4
 +
| style="width: 330px;" | BOOT SELECT Switch
 +
| style="width: 53px;" | PSON1
 +
| style="width: 305px;" | AT/ATX Selection Header
 +
|-
 +
| LID1
 +
| style="width: 330px;" | LID Switch
 +
| style="width: 53px;" | SPI_CN1
 +
| style="width: 305px;" | SPI Header
 +
|-
 +
| J30
 +
| style="width: 330px;" | Enable Battery Low# Header
 +
| style="width: 53px;" | CN14
 +
| style="width: 305px;" | For CAN Bus port0 Terminal Resistor
 +
|-
 +
| M2E_DISABLE_N1
 +
| style="width: 330px;" | M.2 Wireless Disable
 +
| style="width: 53px;" | CN15
 +
| style="width: 305px;" | For CAN Bus port1 Terminal Resistor
 +
|-
 +
| J29
 +
| style="width: 330px;" | SMB Alert Enable Header
 +
| style="width: 53px;" | J3/J4
 +
| style="width: 305px;" | DP0 EQ0 Selection
 +
|-
 +
| CN9
 +
| style="width: 330px;" | Header For GPIO Test
 +
| style="width: 53px;" | J5/J6
 +
| style="width: 305px;" | DP0 EQ1 Selection
 +
|-
 +
| J7/J8
 +
| style="width: 330px;" | LVDS0 Power Selection Header
 +
| style="width: 53px;" | J58
 +
| style="width: 305px;" | PCIE_B_CKREQ# Selection
 +
|-
 +
| J11/J12
 +
| style="width: 330px;" | LVDS1 Power Selection Header
 +
| style="width: 53px;" | J59
 +
| style="width: 305px;" | PCIE_A_CKREQ# Selection
 +
|-
 +
| J9
 +
| style="width: 330px;" | LVDS0 Inverter Power Selection Heade
 +
| style="width: 53px;" | GPIO_0
 +
| style="width: 305px;" | GPIO0/CAM0_PWR# Selection
 +
|-
 +
| J10
 +
| style="width: 330px;" | EDP0/LVDS0 Hot-Plug Detect Selection Header
 +
| style="width: 53px;" | GPIO_1
 +
| style="width: 305px;" | GPIO1/CAM1_PWR# Selection
 +
|-
 +
| J26
 +
| style="width: 330px;" | HDA/I2S Selection Header
 +
| style="width: 53px;" | GPIO_2
 +
| style="width: 305px;" | GPIO2/CAM0_RST# Selection
 +
|-
 +
| J1
 +
| style="width: 330px;" | DP1/HDMI1 Select
 +
| style="width: 53px;" | GPIO_3
 +
| style="width: 305px;" | GPIO3/CAM1_RST# Selection
 +
|-
 +
| J13
 +
| style="width: 330px;" | LVDS1 Inverter Power Selection Header
 +
| style="width: 53px;" | GPIO_4
 +
| style="width: 305px;" | GPIO4/HDA_RST# Selection
 +
|-
 +
| J31
 +
| style="width: 330px;" | Clear CMOS Header
 +
| style="width: 53px;" | GPIO_5
 +
| style="width: 305px;" | GPIO5/PWM_OUT Selection
 +
|-
 +
| J25
 +
| style="width: 330px;" | SPI Power Header
 +
| style="width: 53px;" | GPIO_6
 +
| style="width: 305px;" | GPIO6/TACHIN Selection
 +
|-
 +
| SW1
 +
| style="width: 330px;" | COM1 mode Select
 +
| style="width: 53px;" | SATA_ACT_PH1
 +
| style="width: 305px;" | SATA act# Header
 +
|-
 +
| SW2
 +
| style="width: 330px;" | COM3 mode Select
 +
| style="width: 53px;" | PWRBTN_PH1
 +
| style="width: 305px;" | Power button Header
 +
|-
 +
| J41
 +
| style="width: 330px;" | Core Power Voltage Control Header
 +
| style="width: 53px;" | SYS_RESET_PH1
 +
| style="width: 305px;" | Reset button Header
 +
|-
 +
| J2
 +
| style="width: 330px;" | DDI1 AUX/DDC Selection
 +
| style="width: 53px;" | &nbsp;
 +
| style="width: 305px;" | &nbsp;
 
|}
 
|}
  
{| border="0" cellpadding="0" cellspacing="10" style="width:100%;"
+
=== '''LED Function List&nbsp;''' ===
 +
 
 +
{| border="1" cellpadding="1" cellspacing="1" style="width: 500px;"
 +
|-
 +
| Location
 +
| Function
 +
|-
 +
| MODULE_VIN_LED1
 +
| WDT_TIME_OUT# Indicate
 +
|-
 +
| MODULE_5V_LED
 +
| Module 5V Indicate
 +
|-
 +
| MODULE_VIN_LED
 +
| Module +V_MOD_IN Indicate
 +
|-
 +
| RESET_OUT_LED
 +
| RESET_OUT Indicate
 
|-
 
|-
| style="vertical-align: top;" |
+
| RESET_OUT_LED
{| border="0" cellpadding="0" cellspacing="0" style="width:100%;"
+
| CARRIER_STBY Indicate
 
|-
 
|-
| style="width: 33.33%; vertical-align: top;padding-right: 5px;" |
+
| CARRIER_PWR_ON_LED
{| border="0" cellpadding="5" cellspacing="0" style="width:100%;"
+
| CARRIER_PWR_ON Indicate
 
|-
 
|-
| style="background-color: rgb(54, 100, 177);" | '''<span style="color:#FFFFFF;">Yocto</span>'''
+
| MODULE_3P3V_LED
 +
| Module 3.3V Indicate
 
|-
 
|-
| style="vertical-align: top;line-height:20px;" |  
+
| 3P3V_LED
'''Yocto 3.0&nbsp; (Kernel 5.4.70)'''<br/> [http://ess-wiki.advantech.com.tw/view/ROM-3620_user_guide User Guide] [http://ess-wiki.advantech.com.tw/view/IoTGateway/BSP/Linux/iMX8/OS_Support_List_3.0_release Release Note]
+
| Carrier Board +V3.3 Indicate
 +
|-
 +
| 5V_LED
 +
| Carrier Board +V5 Indicate
 +
|-
 +
| 5V_DUAL_LED
 +
| Carrier Board +V5SB Indicate
 +
|-
 +
| 3P3V_DUAL_LED
 +
| Carrier Board +V3.3SB Indicate
 +
|-
 +
| 5VA_LED
 +
| Carrier Board +V5D_MOD Indicate
 +
|-
 +
| SATA_LED
 +
| SATA Indicate
 +
|-
 +
| SOM_LED
 +
| SOM BOM Indicate
 +
|-
 +
| RISC_LED
 +
| RISC BOM Indicate
 +
|}
 +
 
 +
=== '''Switch Settings'''&nbsp; ===
 +
 
 +
*[[SW4|SW4]]&nbsp;(Boot Select/Force Recovery/Test Switches)
 +
*[[LID1|LID1]]&nbsp;(LID Button Enable/Disable Switches)
 +
*[[SW5|SW5 ]](LAN CONN LED Pull High Switches)
 +
*[[COM0_Settings|SW1]](COM0 Settings)
 +
*[[SW2|SW2]](COM2 Settings)
 +
*[[I2S_Clock_Settings|SW3&nbsp;]](I2S Clock Settings)
 +
*[[M2E_DISABLE_N1|M2E_DISABLE_N1]](M.2 Wireless Disable Switch)
 +
 
 +
=== '''接口引脚定義 (Connector Pin definitions)''' ===
 +
 
 +
*[[ATX1_Pin_Connector|&nbsp;ATX1 Pin Connector]]
 +
*[[SMARC_IN1_Pin_Connectors|SMARC_IN1 Pin Connectors]]
 +
*[[BAT1_RTC_Battery_Connectors|BAT1 RTC Battery Connectors]]
 +
*[[DCIN1_DC-IN_Power_Connectors|DCIN1 DC-IN Power Connectors]]
 +
*[[CAN0_1_CAN_Bus_Connectors|CAN0_1 CAN Bus Connectors]]
 +
*[[CN9_GPIO_Headers|CN9 GPIO Headers]]
 +
*[[COM2_4_COM_Port2&4_Connectors|COM2_4 COM Port2&4 Connectors]]
 +
*[[COM1_3_COM_Port1&_3_Connectors|COM1_3 COM Port1& 3 Connectors]]
 +
*[[CN10_ESPI_Headers|CN10 ESPI Headers]]
 +
*[[LVDS0_LVDS_Connectors|LVDS0 LVDS Connectors]]
 +
*[[LVDS0_INVERTER_LVDS_INVERTER_Connectors|LVDS0_INVERTER LVDS INVERTER Connectors]]
 +
*[[LVDS1_LVDS_Connectors|LVDS1 LVDS Connectors]]
 +
*[[LVDS1_INVERTER_LVDS_INVERTER_Connectors|LVDS1_INVERTER LVDS INVERTER Connectors]]
 +
*[[CN7_I2C_GP_Connectors|CN7 I2C_GP Connectors]]
 +
*[[SPI_CN1_SPI_Connectors|SPI_CN1 SPI Connectors]]
 +
*[[SATAP1_SATA_PWR_Connectors|SATAP1 SATA PWR Connectors]]
 +
*[[CSI0_FPC_Connectors|CSI0_FPC Connectors]]
 +
*[[CSI1_FPC_Connectors|CSI1_FPC Connectors]]
 +
*[[CN5_I2S2_Connectors|CN5 I2S2 Connectors]]
 +
*[[CN17_I2S0_Connectors|CN17 I2S0 Connectors]]
 +
*[[PWRBTN_PH1_PWRBTN_Pin_Headers|PWRBTN_PH1 PWRBTN Pin Headers]]
 +
*[[SYS_RESET_PH1_SYS_RESET_Pin_Headers|SYS_RESET_PH1 SYS RESET Pin Headers]]
 +
*[[SATA_ACT_PH1_SATA_ACT|SATA_ACT_PH1 SATA ACT# Pin Headers]]
 +
*[[J32_Power_LED_Pin_Headers|J32 Power LED Pin Headers]]
 +
*[[J30_BATLOW_Pin_Headers|J30 BATLOW Pin Headers]]
 +
*[[J29_SMBUS_Alert_Pin_Headers|J29 SMBUS Alert Pin Headers]]
 +
*[[J41_Core_Power_Controls|J41 Core Power Controls]]
 +
*[[PSON1_ATX/AT_Mode_Selection|PSON1 ATX/AT Mode Selection]]
 +
*[[J56_Standby_Power_Controls|J56 Standby Power Controls]]
 +
*[[J44_Module_Power_Settings|J44 Module Power Settings]]
 +
*[[J7,J8_LVDS0_Power_Selection|J7,J8 LVDS0 Power Selection]]
 +
*[[J9_LVDS0_Inverter_Power_Selection|J9 LVDS0 Inverter Power Selection]]
 +
*[[J11,J12_LVDS1_Power_Selection|J11,J12 LVDS1 Power Selection]]
 +
*[[LVDS1_Inverter_Power_Selection|LVDS1 Inverter Power Selection]]
 +
*[[EDP0_/LVDS0_HPD_Selection|EDP0 /LVDS0 HPD Selection]]  
 +
*[[J14_EDP1/LVDS1_HPD_Selection|J14 EDP1/LVDS1 HPD Selection]]
 +
*[[CN14_CAN0_Terminal_Resistor_Selection|CN14 CAN0 Terminal Resistor Selection]]
 +
*[[CN15_CAN1_Terminal_Resistor_Selection|CN15 CAN1 Terminal Resistor Selection]]
 +
*[[J2_DDI1_AUX/DDC_Selection|J2 DDI1 AUX/DDC Selection]]
 +
*[[J1_DP1/HDMI1_Selection|J1 DP1/HDMI1 Selection]]
 +
*[[J58_PCIE_B_CKREQ|J58 PCIE_B_CKREQ# Selection]]
 +
*[[J59_PCIE_A_CKREQ|J59 PCIE_A_CKREQ# Selection]]
 +
*[[J31_Clear_CMOS|J31 Clear CMOS]]
 +
*[[J25_+V1.8M_SPI_Power_Jumpers|J25 +V1.8M_SPI Power Jumpers]]
 +
*[[GPIO_0_GPIO0_Settings|GPIO_0 GPIO0 Settings]]
 +
*[[GPIO_1_GPIO1_Settings|GPIO_1 GPIO1 Settings]]
 +
*[[GPIO_2_GPIO2_Settings|GPIO_2 GPIO2 Settings]]
 +
*[[GPIO_3_GPIO3_Settings|GPIO_3 GPIO3 Settings]]
 +
*[[GPIO_4_GPIO4_Settings|GPIO_4 GPIO4 Settings]]
 +
*[[GPIO_5_GPIO5_Settings|GPIO_5 GPIO5 Settings]]
 +
*[[GPIO_6_GPIO6_Settings|GPIO_6 GPIO6 Settings]]
 +
*[[J26_HDA/I2S_Selection|J26 HDA/I2S Selection]]
 +
 
 +
&nbsp;
 +
 
 +
=== '''机械尺寸&nbsp; ('''Mechanical Characteristics) ===
 +
 
 +
'''ROM-5722'''
 +
 
 +
'''[[File:ROM-5620 Mechanical Specifications1.jpg|RTENOTITLE]]'''
 +
 
 +
'''[[File:ROM-5620 Mechanical Specifications2.jpg|RTENOTITLE]]'''
 +
 
 +
&nbsp;
 +
 
 +
&nbsp;
 +
 
 +
&nbsp;
  
 
----
 
----
  
'''Yocto 2.5 (Kernel 4.14.98)'''<br/> [http://ess-wiki.advantech.com.tw/view/ROM-3620_user_guide User Guide] [http://ess-wiki.advantech.com.tw/view/IoTGateway/BSP/Linux/iMX8/OS_Support_List_release Release Note]
+
 
 +
= '''快速入门 (Quick Start)''' =
 +
 
 +
=== '''系统下载 (OS Download)''' ===
 +
 
 +
*'''Linux系统 (Linux OS)''''''&nbsp; &nbsp;'''
 +
 
 +
'''Yocto 3.0:'''[[IoTGateway/BSP/Linux/iMX8/OS_Support_List_3.0|IoTGateway/BSP/Linux/iMX8/OS Support List 3.0]]
  
 
----
 
----
  
|}
+
 
 +
=== '''Linux&nbsp;燒錄方法 (Linux Flash eMMC Method)''' ===
 +
 
 +
'''使用Flash tool 燒錄鏡像到eMMC (Flash image into eMMC by Flash Tools)&nbsp;'''
 +
 
 +
Step0: 檢查SD卡在Linux 環境的代號 (check SD card symbol in Linux system)&nbsp;
 +
 
 +
[[File:Z23.jpg|RTENOTITLE]]
 +
 
 +
Step1: 創造一張可開機的SD 卡&nbsp;(Create&nbsp;a bootable SD card)
 +
 
 +
<span style="font-size:small;">Command&nbsp;:</span>
 +
 
 +
<span style="font-size:small;">'''sudo dd if=5722A1AIM30LIVA0271_iMX8MP_6G_2021-06-19.img of=/dev/sdf&nbsp; bs=1M conv=fsync status=progre'''ss&nbsp;</span>
 +
 
 +
[[File:Z24.jpg|RTENOTITLE]]
 +
 
 +
Step2: 將可開機的SD 卡插入底板SD卡卡槽(Plug the SD card into Carrier board 's SD card slot)
 +
 
 +
&nbsp;[[File:SOM-DB2510 SD Card slot sd boot.PNG|RTENOTITLE]]
 +
 
 +
Step4: 確認開機選擇指撥開關&nbsp;
 +
 
 +
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SD 卡開機模式: (2, 3:on, others off)
 +
 
 +
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[[File:SOM-DB2510 SD switch setting.PNG|RTENOTITLE]]
  
 
&nbsp;
 
&nbsp;
  
|}
+
Step3:打開電源 和 終端機&nbsp;(Turn on the Power & Terminal)
 +
 
 +
[[File:Z25.jpg|800px|Z25.jpg]]
 +
 
 +
Step4: 解壓縮flash tools 檔案,並複製到U盤中(Unzip the flash tools file , then copy to USB Disk)&nbsp;
  
 
&nbsp;
 
&nbsp;
  
| style="width: 150px; vertical-align: top;" |
+
&nbsp; &nbsp; 解壓縮(Unzip the file )
{| border="0" cellpadding="5" cellspacing="0" style="width:100%;"
+
 
 +
[[File:Z26.jpg|RTENOTITLE]]&nbsp;
 +
 
 +
&nbsp; &nbsp; 複製檔案到U盤中 (Copy the flash file to USB Disk)&nbsp;
 +
 
 +
&nbsp; 1. 插入U盤到你的Ubuntu 電腦上 (Plug the USB Disk into you Linux PC
 +
 
 +
&nbsp; 2. 檢視U盤在Ubuntu 系統代號 (Check the USB Disk's symbol in Ubuntu System)&nbsp;
 +
 
 +
[[File:Z27.jpg|RTENOTITLE]]
 +
 
 +
&nbsp;3. 掛載U盤在Ubuntu 系統中 (Mount the USB Disk's in US)
 +
 
 +
[[File:Z28.jpg|RTENOTITLE]]
 +
 
 +
4. 複製檔案到U盤(Copy the file to USB disk)
 +
 
 +
[[File:Z29.jpg|RTENOTITLE]]
 +
 
 +
5. 將U盤連接到ROM-5722系統, 進入flsah tool下的mk_inand資歷夾, 執行指令./mksd-linux.sh /dev/mmcblk2燒錄image到eMMC(Connect USB Disk to ROM-5722 system, browser to mk_inand folder and execute flash shell script "./mksd-linux.sh /dev/mmcblk2"
 +
 
 +
{| border="1" cellpadding="1" cellspacing="1" style="width:500px;"
 +
|-
 +
| ROM-5722
 +
| &nbsp;
 
|-
 
|-
| style="background-color: rgb(56, 85, 114);" | <span style="color:#FFFFFF;">App Add on</span>
+
| SD card
 +
| /dev/mmcblk1
 
|-
 
|-
| [http://ess-wiki.advantech.com.tw/view/AIMLinux/AddOn/Launcher Launcher]<br/> [http://ess-wiki.advantech.com.tw/view/AIMLinux/AddOn/Protocol Protocal]<br/> [http://ess-wiki.advantech.com.tw/view/AIMLinux/AddOn/Diagnostic Diagnostic]<br/> [http://ess-wiki.advantech.com.tw/view/IoTGateway/BSP/Linux/iMX8/Qt5Creator DevelopSDK]<br/> [http://ess-wiki.advantech.com.tw/view/AIMLinux/AddOn/Security Security]<br/> [http://ess-wiki.advantech.com.tw/view/AIMLinux/AddOn/Edge_AI Edge AI]<br/> [http://ess-wiki.advantech.com.tw/view/AIMLinux/AddOn/Management Management]<br/> [http://ess-wiki.advantech.com.tw/view/AIMLinux/AddOn/DeviceOn WISE-DeviceOn]
+
| eMMC
 +
| /dev/mmcblk2
 
|}
 
|}
  
| style="width: 150px; vertical-align: top;" |  
+
[[File:Z30.jpg|1024px|Z30.jpg]]
{| border="0" cellpadding="5" cellspacing="0" style="width:100%;"
+
 
|-
+
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).
| style="background-color: rgb(56, 85, 114);" | <span style="color:#FFFFFF;">Documentation</span>
+
 
|-
+
&nbsp; &nbsp; &nbsp;
| [https://www.advantech.com/search/?q=ROM-3620&st=support&sst=Datasheet Datasheet]<br/> [https://www.advantech.com/search/?q=ROM-3620&st=support&sst=Manual Manual]<br/> 3D Model<br/> [https://www.advantech.com/search/?q=ROM-3620&st=support&sst=Certificate Certification]<br/> Design Guideline&nbsp; Layout Checklist<br/> Schematic Pinout
+
 
|}
+
=== '''Debug 串口調試 (Debug port Setting)''' ===
 +
 
 +
以 Tera Term&nbsp;&nbsp;为例介绍如何使用串口调试功能
 +
<pre>  Baud Rate波特率:115200
 +
  Data 数据位:8
 +
  Parity 奇偶校验:无
 +
&nbsp;  Stop 停止位:1
 +
  Flow Control流控:无</pre>
 +
 
 +
:&nbsp;
 +
 
 +
Tera Term Tool&nbsp;
 +
 
 +
[[File:TeraTerm 2021-09-10 140930n.jpg|RTENOTITLE]]
 +
 
 +
[[File:TeraTerm12021-09-10 141114n.jpg|RTENOTITLE]]
 +
 
 +
Check the Sriel port in Device Manager (查看PC端的串口号):
 +
 
 +
if you can not identify the Serial device , please check your serial driver.&nbsp;
 +
 
 +
[[File:COMportinx862021-09-10 141610.jpg|RTENOTITLE]]
 +
 
 +
Debug port connection (串口連接)&nbsp;
 +
 
 +
[[File:SOM-DB2510 Debug port.PNG|RTENOTITLE]]
 +
 
 +
&nbsp;
 +
 
 +
Log into Terminal&nbsp; Tool (进入串口调试终端):
 +
 
 +
[[File:Z31.jpg|RTENOTITLE]]
 +
 
 +
 
 +
= '''Linux系统的基本使用(Linux&nbsp;System Basic Operating Method)''' =
 +
 
 +
=== '''UUU 使用方法(USB Connection (OTG port))''' ===
 +
 
 +
Download uuu tool from (Release [[https://github.com/ADVANTECH-Corp/uuu/releases/tag/v20200619 ADV]v20210429 · ADVANTECH-Corp/uuu · GitHub]) or in the folder.
 +
 
 +
uuu (Universal Update Utility) for nxp imx chips -- libuuu_'''1.3.191-67'''-ga9523ec
 +
 
 +
[[File:Z33.jpg|RTENOTITLE]]
 +
 
 +
The “imx-boot-imx8mprom5722a1-6G.bin-flash_evk” file be included in 5722A1AIM30LIVA0XXX_iMX8MP_6G_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.'''
 +
 
 +
'''[[File:Z32.jpg|RTENOTITLE]]'''Type command below to flash eMMC:
 +
 
 +
[[File:Z34.jpg|RTENOTITLE]]
 +
 
 +
=== '''Display Setting (ROM-5722)''' ===
 +
 
 +
'''&nbsp; &nbsp; &nbsp; U-boot&nbsp;Command&nbsp;:'''&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 +
 
 +
*Display
 +
**HDMI (default)
 +
***imx8mp-rom5722-a1.dtb 
 +
**LVDS
 +
***g070vw01(LVDS0) + HDMI
 +
****imx8mp-rom5722-a1-lvds0-auo.dtb 
 +
***g070vw01(LVDS1) + HDMI
 +
****imx8mp-rom5722-a1-lvds1-auo.dtb 
 +
***g215hvn01(DUAL LVDS) + HDMI
 +
****imx8mp-rom5722-a1-lvds-dual.dtb   
 +
**DSI
 +
***adv7535(DSI to HDMI)&nbsp;+ HDMI
 +
****imx8mp-rom5722-a1-adv7535.dtb 
 +
***auog101uan02(DSI) +&nbsp;HDMI
 +
****imx8mp-rom5722-a1-auog101uan02.dtb     
 +
*Camera
 +
**OV5640 (default)
 +
***imx8mp-rom5722-a1.dtb 
 +
**Basler camrea
 +
***imx8mp-rom5722-a1-basler.dtb   
 +
 
 +
=== '''乙太網路使用方法(Ethernent Testing Method)''' ===
 +
 
 +
'''Command&nbsp;: ifconfig&nbsp;'''
 +
 
 +
[[File:Z35.jpg|RTENOTITLE]]
 +
 
 +
'''Command: Ping - I eth1 8.8.8.8&nbsp; or Ping - I eth0 8.8.8.8&nbsp;&nbsp;'''
 +
 
 +
[[File:Z36.jpg|RTENOTITLE]]
 +
 
 +
=== '''WiFi使用方法(WIFI Testing Method)''' ===
 +
<pre>Command&nbsp;:
 +
 
 +
</pre>
 +
<pre># killall wpa_supplicant
 +
# ifconfig wlan0 up
 +
# iwlist mlan0 scan
 +
WEP:
 +
# iwconfig mlan0 txpower auto essid "SSID" channel 4
 +
# udhcpc -i mlan0
 +
 
 +
WPA/WPA2:
 +
# wpa_passphrase "SSID" > wpa.conf
 +
Type password
 +
# wpa_supplicant -B -Dwext -imlan0 -c/home/root/wpa.conf
 +
# udhcpc -i mlan0
 +
 
 +
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:Z37.jpg|RTENOTITLE]]
 +
 
 +
=== '''4G使用方法(4G Testing Method)''' ===
 +
<pre>Command:
 +
Test 4G: (EWM-C117FL06E - USB)
 +
Step 1: Connect EWM-C117FL06E to Mini PCIE slot on 9680015491 and connect
 +
the card to CN6 PCIe_D slot on ROM-DB5901.
 +
Step 2: Connect the antenna 1750007990-01 to the SMA (F) connector on
 +
9680015491
 +
and connect the IPEX connector to MT1 on EWM-C117FL06E module.
 +
Step 3: Connect the Mini USB cable from 9680015491 to USB 2.0 Type A port on
 +
ROM-DB5901.
 +
Step 4: Power on and execute the pppd command to connect to the network.
 +
</pre>
 +
 
 +
[[File:4GTest2021-09-09 133204.jpg|RTENOTITLE]]
 +
 
 +
[[File:4GTest12021-09-09 133648.jpg|RTENOTITLE]]
 +
 
 +
=== '''GPIO使用方法(GPIO Operating Method)''' ===
 +
 
 +
'''GPIO pin:'''
 +
 
 +
[[File:Z39.jpg|RTENOTITLE]]
 +
 
 +
&nbsp;
 +
<pre>Loop-back Test (Take GPIO0 and GPIO2 as examples) 
 +
 
 +
Step 1: Connect GPIO0 and GPIO2
 +
Step 2: Export GPIO interface
 +
 
 +
root@imx8mprom5722a1: ~# echo 114 > /sys/class/gpio/export
 +
root@imx8mprom5722a1: ~# echo 124 > /sys/class/gpio/export
 +
 
 +
Step 3: Set direction
 +
 
 +
root@imx8mprom5722a1: ~# echo out > /sys/class/gpio/gpio1/direction
 +
root@imx8mprom5722a1: ~# echo in > /sys/class/gpio/gpio2/direction
 +
 
 +
Step 4: Read value and set output value then check
 +
 
 +
root@imx8mprom5722a1: ~# cat /sys/class/gpio/gpio2/value
 +
0
 +
root@imx8mprom5722a1: ~# echo 1 > /sys/class/gpio/gpio1/value
 +
root@imx8mprom5722a1: ~# cat /sys/class/gpio/gpio2/value
 +
1</pre>
 +
 
 +
=== '''串口使用方法(Serial Port Operating&nbsp;Method)''' ===
 +
 
 +
RS-232 Test
 +
 
 +
CN15上(SER0/UART3): /dev/ttymxc2
 +
 
 +
CN15 下(SER2/UART1): /dev/ttymxc0
 +
 
 +
COM 3&nbsp;(A53 debug/SER3/UART2): /dev/ttymxc1
 +
 
 +
COM 1&nbsp;(M7&nbsp;debug/SER1/UART4): /dev/ttymxc3
 +
 
 +
SW7 Setting (SW7設置)&nbsp;
 +
 
 +
[[File:SW6&7settingn.jpeg|RTENOTITLE]]
 +
 
 +
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
 +
 
 +
=== '''蓝牙使用方法(BlueTooth Operating&nbsp;Method)''' ===
 +
<pre>Command&nbsp;:
 +
 
 +
$ 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</pre>
 +
 
 +
[[File:BTTest2021-09-09 132449.jpg|RTENOTITLE]]
 +
 
 +
=== '''&nbsp; 遠程訪問及文件傳輸(Remote Access and File Transimmion)''' ===
 +
 
 +
'''&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 查看主板IP位址&nbsp;(&nbsp;Chech IP Address ):'''​
 +
<pre>       Command&nbsp;: ifconfig</pre>
 +
 
 +
[[File:Z40.jpg|RTENOTITLE]]
 +
 
 +
==== Windows下SSH访问及文件传输 ====
 +
 
 +
SSH Remote Log into Device&nbsp;
 +
 
 +
*SSH远程登录,以putty选择putty.exe(或者使用Xshell、SecureCRT等类似软件)
 +
*需要设置远程设备的IP、通讯端口(默认22)、通讯方式,登录后验证用户名密码
 +
 
 +
&nbsp;
 +
 
 +
[[File:SSHsettingdetail.png|RTENOTITLE]]
 +
 
 +
[[File:Z42.jpg|RTENOTITLE]]
 +
 
 +
&nbsp;
 +
 
 +
[[File:Z43.jpg|RTENOTITLE]]
 +
 
 +
[[File:Z44.jpg|RTENOTITLE]]
 +
 
 +
 
 +
= '''通用方法(General Method)''' =
 +
 
 +
=== '''查看CPU温度(Check CPU Temperature)''' ===
 +
<pre>    root@imx8mprom5722a1:/# cat /sys/devices/virtual/thermal/thermal_zone0/temp 44600
 +
 
 +
    # 或者直接以度爲單位顯示 echo $[$(cat /sys/class/thermal/thermal_zone0/temp)/1000]° >>> 45°</pre>
 +
 
 +
=== '''查看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>
 +
 
 +
=== '''查看内存容量(Check Memory&nbsp;Capacity)''' ===
 +
<pre>root@imx8mprom5722a1:~# busybox free -m
 +
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; total &nbsp; &nbsp; &nbsp; &nbsp;used &nbsp; &nbsp; &nbsp; &nbsp;free &nbsp; &nbsp; &nbsp;shared &nbsp;buff/cache &nbsp; available
 +
Mem: &nbsp; &nbsp; &nbsp; &nbsp;6002516 &nbsp; &nbsp; &nbsp;402812 &nbsp; &nbsp; 5505276 &nbsp; &nbsp; &nbsp; 26668 &nbsp; &nbsp; &nbsp; 94428 &nbsp; &nbsp; 5493888
 +
Swap: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0
 +
</pre>
 +
 
 +
=== '''查看存储容量(Check Storage Capacity)''' ===
 +
<pre>root@imx8mprom5722a1:~# busybox df -h
 +
Filesystem &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Size &nbsp; &nbsp; &nbsp;Used Available Use% Mounted on
 +
/dev/root &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;14.1G &nbsp; &nbsp; &nbsp;3.6G &nbsp; &nbsp; &nbsp;9.8G &nbsp;27% /
 +
devtmpfs &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;2.4G &nbsp; &nbsp; &nbsp;4.0K &nbsp; &nbsp; &nbsp;2.4G &nbsp; 0% /dev
 +
tmpfs &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 2.9G &nbsp; &nbsp; &nbsp; &nbsp; 0 &nbsp; &nbsp; &nbsp;2.9G &nbsp; 0% /dev/shm
 +
tmpfs &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 2.9G &nbsp; &nbsp; 25.1M &nbsp; &nbsp; &nbsp;2.8G &nbsp; 1% /run
 +
tmpfs &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 2.9G &nbsp; &nbsp; &nbsp; &nbsp; 0 &nbsp; &nbsp; &nbsp;2.9G &nbsp; 0% /sys/fs/cgroup
 +
tmpfs &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 2.9G &nbsp; &nbsp; &nbsp; &nbsp; 0 &nbsp; &nbsp; &nbsp;2.9G &nbsp; 0% /tmp
 +
tmpfs &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 2.9G &nbsp; &nbsp;268.0K &nbsp; &nbsp; &nbsp;2.9G &nbsp; 0% /var/volatile
 +
/dev/mmcblk2p1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 83.0M &nbsp; &nbsp; 29.6M &nbsp; &nbsp; 53.5M &nbsp;36% /run/media/mmcblk2p1
 +
tmpfs &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 586.2M &nbsp; &nbsp; &nbsp;4.0K &nbsp; &nbsp;586.2M &nbsp; 0% /run/user/0
 +
/dev/mmcblk1p1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 83.0M &nbsp; &nbsp; 29.6M &nbsp; &nbsp; 53.5M &nbsp;36% /run/media/mmcblk1p1
 +
/dev/mmcblk1p2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 14.2G &nbsp; &nbsp; &nbsp;3.6G &nbsp; &nbsp; 10.0G &nbsp;26% /run/media/mmcblk1p2
 +
root@imx8mprom5722a1:~#</pre>
 +
 
 +
=== '''網路Ping測試(Ping Network Testing)''' ===
 +
<pre>    ping 8.8.8.8
 +
    PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
 +
    64 bytes from 8.8.8.8: icmp_seq=1 ttl=54 time=2.10 ms
 +
    64 bytes from 8.8.8.8: icmp_seq=2 ttl=54 time=2.10 ms</pre>
 +
 
 +
=== '''設置RTC (RTC Setting)&nbsp;''' ===
 +
<pre>root@imx8mprom5722a1:~# systemctl stop ntpdate.service
 +
root@imx8mprom5722a1:~# date 090816072021 && hwclock -w && date
 +
Wed Sep &nbsp;8 16:07:00 UTC 2021
 +
Tue Nov 23 07:38:50 UTC 2021
 +
root@imx8mprom5722a1:~# date
 +
Tue Nov 23 07:38:56 UTC 2021
 +
root@imx8mprom5722a1:~#</pre>
 +
 
 +
'''&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'''
 +
 
 +
 
 +
= '''Linux&nbsp;BSP編譯方法(Linux&nbsp;BSP Compile Method)''' =
 +
 
 +
=== [http://ess-wiki.advantech.com.tw/view/IoTGateway/BSP/Linux/iMX8/Yocto_LBVC_User_Guide '''Yocto 4.0'''] ===
 +
 
 +
=== [http://ess-wiki.advantech.com.tw/view/IoTGateway/BSP/Linux/iMX8/Yocto_LBVA_User_Guide '''Yocto 3.0'''] ===
 +
 
 +
'''如果有驗證上的錯誤 請使用以下的方法'''
 +
 
 +
<u>'''### repo sync failed with Server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none'''</u>&nbsp;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)]&nbsp;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/':]&nbsp;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']&nbsp;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/':]&nbsp;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']&nbsp;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) https://anongit.freedesktop.org/git/gstreamer/common.git)]&nbsp;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/':]&nbsp;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']&nbsp;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/':]&nbsp;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']&nbsp;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;
  
 
{| border="0" cellpadding="10" cellspacing="0" style="width:100%;"
 
{| border="0" cellpadding="10" cellspacing="0" style="width:100%;"
 
|-
 
|-
| <iframe height="280" key="advonline" level="campaign" path="en/aim-linux_community/" width="100%"></iframe>
+
| <iframe height="230" key="advonline" level="campaign" path="en/aim-linux_community/" width="100%"></iframe>
 
|}
 
|}

Revision as of 08:50, 29 February 2024


Contents

產品介紹

產品特性(Features)

  • NXP Arm® Cortex®-A53 i.MX8M Plus Quad/Dual up to 1.8 GHz
  • 1 x Arm Cortex-M7 core
  • Onboard LPDDR4 6 GB, 4000MT/s memory
  • 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, 5 x I2C, 14 x GPIO, 1 x PCIe3.0, 2 x Gigabit LAN, 2 x CAN-FD
  • Neural network accelerator up to 2.3 TOPS
  • Supports Ycoto Linux and Android

產品官網連結(Product information Link)

ROM-5722

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

ROM-5722 接口布局圖 Board Dimension Layout 

RTENOTITLE

 

SOM-DB2510 接口布局圖 Board Dimension Layout

RTENOTITLE

 

RTENOTITLE

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

Internal I/O

RTENOTITLE

RTENOTITLE

Label Function Label Function
ATX1 ATX Connector FAN1 Smart Fan Connector
SMARC_IN1 Wide Range Input Power Connector (3V~5.25V) FAN2 System Fan Connector
DCIN1 DCIN connector CAN0_1 CAN Bus Connector
DP0_HDMI DP & HDMI Connector USB0 USB OTG Connector
USB12 USB 2.0 port1~2 & USB 3.0 port0 Connector COM1_3 COM Port Port1,3 Connector
TYPEC_DP1 Type-C Connector COM2_4 COM Port Port2,4 Connector
LAN0_LAN1 LAN0 & LAN1 Connector CN8 I2C connector for I2C_PM
LOUT1 Line Out Connector CN7 I2C Connector for I2C_GP
MIC1 MIC1 Connector CN10 eSPI Pin Header
CN1_MXM1 SMARC Connector SATAP1 SATA Power Connector
PCIEA-X4 PCIe x4 Connector CSI0_B2B MIPI B2B Connector for 2M Camera
SATA1 SATA Port0 Connector CSI1_B2B MIPI B2B Connector for 8M & 13M Camera
PCIED-X1 PCIe x1 Connector SPI_BIOS1 Carrier Board BIOS Socket (SOIC)
M2 M.2 Key-E Connector BAT1 Coin battery holder
MPCIE_C Mini PCIe Connector BAT2 Smart battery Connector
SIM SIM card Connector LINEOUT_1 I2S Headphone Connector
LVDS1 LVDS1 Connector MIC_1 I2S MIC In Connector
LVDS0 LVDS0 Connector CSI1_FPC MIPI FPC Connector for 8M & 13M Camera
LVDS1_INVERTER LVDS1 Invertor Connector CSI0_FPC MIPI FPC Connector for 2M Camera
LVDS0_INVERTER LVDS0 Invertor Connector CN5 I2S2 Connector
SPI_BIOS2 Carrier Board BIOS Socket (QFN) CN17 I2S0 Connector
SD SD Card Connector    

 

Rear I/O 

RTENOTITLE

Jumper 位置( Jumper Locations) 

RTENOTITLE

RTENOTITLE

Lable Function Lable Function
BTN3 Sleep Button J14 EDP1/LVDS1 Hot-Plug Detect Selection Header
BTN1 Power Button J56 Standby Voltage Control Header
BTN2 Reset Button J44 Module +3.3V/+5V Power Selection Header
SW4 BOOT SELECT Switch PSON1 AT/ATX Selection Header
LID1 LID Switch SPI_CN1 SPI Header
J30 Enable Battery Low# Header CN14 For CAN Bus port0 Terminal Resistor
M2E_DISABLE_N1 M.2 Wireless Disable CN15 For CAN Bus port1 Terminal Resistor
J29 SMB Alert Enable Header J3/J4 DP0 EQ0 Selection
CN9 Header For GPIO Test J5/J6 DP0 EQ1 Selection
J7/J8 LVDS0 Power Selection Header J58 PCIE_B_CKREQ# Selection
J11/J12 LVDS1 Power Selection Header J59 PCIE_A_CKREQ# Selection
J9 LVDS0 Inverter Power Selection Heade GPIO_0 GPIO0/CAM0_PWR# Selection
J10 EDP0/LVDS0 Hot-Plug Detect Selection Header GPIO_1 GPIO1/CAM1_PWR# Selection
J26 HDA/I2S Selection Header GPIO_2 GPIO2/CAM0_RST# Selection
J1 DP1/HDMI1 Select GPIO_3 GPIO3/CAM1_RST# Selection
J13 LVDS1 Inverter Power Selection Header GPIO_4 GPIO4/HDA_RST# Selection
J31 Clear CMOS Header GPIO_5 GPIO5/PWM_OUT Selection
J25 SPI Power Header GPIO_6 GPIO6/TACHIN Selection
SW1 COM1 mode Select SATA_ACT_PH1 SATA act# Header
SW2 COM3 mode Select PWRBTN_PH1 Power button Header
J41 Core Power Voltage Control Header SYS_RESET_PH1 Reset button Header
J2 DDI1 AUX/DDC Selection    

LED Function List 

Location Function
MODULE_VIN_LED1 WDT_TIME_OUT# Indicate
MODULE_5V_LED Module 5V Indicate
MODULE_VIN_LED Module +V_MOD_IN Indicate
RESET_OUT_LED RESET_OUT Indicate
RESET_OUT_LED CARRIER_STBY Indicate
CARRIER_PWR_ON_LED CARRIER_PWR_ON Indicate
MODULE_3P3V_LED Module 3.3V Indicate
3P3V_LED Carrier Board +V3.3 Indicate
5V_LED Carrier Board +V5 Indicate
5V_DUAL_LED Carrier Board +V5SB Indicate
3P3V_DUAL_LED Carrier Board +V3.3SB Indicate
5VA_LED Carrier Board +V5D_MOD Indicate
SATA_LED SATA Indicate
SOM_LED SOM BOM Indicate
RISC_LED RISC BOM Indicate

Switch Settings 

  • SW4 (Boot Select/Force Recovery/Test Switches)
  • LID1 (LID Button Enable/Disable Switches)
  • SW5 (LAN CONN LED Pull High Switches)
  • SW1(COM0 Settings)
  • SW2(COM2 Settings)
  • SW3 (I2S Clock Settings)
  • M2E_DISABLE_N1(M.2 Wireless Disable Switch)

接口引脚定義 (Connector Pin definitions)

 

机械尺寸  (Mechanical Characteristics)

ROM-5722

RTENOTITLE

RTENOTITLE

 

 

 



快速入门 (Quick Start)

系统下载 (OS Download)

  • 'Linux系统 (Linux OS)'   

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)

Command :

sudo dd if=5722A1AIM30LIVA0271_iMX8MP_6G_2021-06-19.img of=/dev/sdf  bs=1M conv=fsync status=progress 

RTENOTITLE

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

 RTENOTITLE

Step4: 確認開機選擇指撥開關 

           SD 卡開機模式: (2, 3:on, others off)

           RTENOTITLE

 

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

Z25.jpg

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

RTENOTITLE

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

RTENOTITLE

5. 將U盤連接到ROM-5722系統, 進入flsah tool下的mk_inand資歷夾, 執行指令./mksd-linux.sh /dev/mmcblk2燒錄image到eMMC(Connect USB Disk to ROM-5722 system, browser to mk_inand folder and execute flash shell script "./mksd-linux.sh /dev/mmcblk2"

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

Z30.jpg

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 [ADVv20210429 · ADVANTECH-Corp/uuu · GitHub]) or in the folder.

uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.3.191-67-ga9523ec

RTENOTITLE

The “imx-boot-imx8mprom5722a1-6G.bin-flash_evk” file be included in 5722A1AIM30LIVA0XXX_iMX8MP_6G_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.

RTENOTITLEType command below to flash eMMC:

RTENOTITLE

Display Setting (ROM-5722)

      U-boot Command :             

  • Display
    • HDMI (default)
      • imx8mp-rom5722-a1.dtb
    • LVDS
      • g070vw01(LVDS0) + HDMI
        • imx8mp-rom5722-a1-lvds0-auo.dtb
      • g070vw01(LVDS1) + HDMI
        • imx8mp-rom5722-a1-lvds1-auo.dtb
      • g215hvn01(DUAL LVDS) + HDMI
        • imx8mp-rom5722-a1-lvds-dual.dtb
    • DSI
      • adv7535(DSI to HDMI) + HDMI
        • imx8mp-rom5722-a1-adv7535.dtb
      • auog101uan02(DSI) + HDMI
        • imx8mp-rom5722-a1-auog101uan02.dtb
  • Camera
    • OV5640 (default)
      • imx8mp-rom5722-a1.dtb
    • Basler camrea
      • imx8mp-rom5722-a1-basler.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 : 

# killall wpa_supplicant
# ifconfig wlan0 up
# iwlist mlan0 scan
WEP:
# iwconfig mlan0 txpower auto essid "SSID" channel 4
# udhcpc -i mlan0

WPA/WPA2:
# wpa_passphrase "SSID" > wpa.conf
Type password
# wpa_supplicant -B -Dwext -imlan0 -c/home/root/wpa.conf
# udhcpc -i mlan0

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

RTENOTITLE

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

Command:
Test 4G: (EWM-C117FL06E - USB)
Step 1: Connect EWM-C117FL06E to Mini PCIE slot on 9680015491 and connect
the card to CN6 PCIe_D slot on ROM-DB5901.
Step 2: Connect the antenna 1750007990-01 to the SMA (F) connector on
9680015491
and connect the IPEX connector to MT1 on EWM-C117FL06E module.
Step 3: Connect the Mini USB cable from 9680015491 to USB 2.0 Type A port on
ROM-DB5901.
Step 4: Power on and execute the pppd command to connect to the network.

RTENOTITLE

RTENOTITLE

GPIO使用方法(GPIO Operating Method)

GPIO pin:

RTENOTITLE

 

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

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

root@imx8mprom5722a1: ~# echo 114 > /sys/class/gpio/export
root@imx8mprom5722a1: ~# echo 124 > /sys/class/gpio/export

Step 3: Set direction

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

Step 4: Read value and set output value then check

root@imx8mprom5722a1: ~# cat /sys/class/gpio/gpio2/value
0
root@imx8mprom5722a1: ~# echo 1 > /sys/class/gpio/gpio1/value
root@imx8mprom5722a1: ~# 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 (M7 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@imx8mprom5722a1:/# 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@imx8mprom5722a1:~# busybox free -m
              total        used        free      shared  buff/cache   available
Mem:        6002516      402812     5505276       26668       94428     5493888
Swap:             0           0           0

查看存储容量(Check Storage Capacity)

root@imx8mprom5722a1:~# busybox df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                14.1G      3.6G      9.8G  27% /
devtmpfs                  2.4G      4.0K      2.4G   0% /dev
tmpfs                     2.9G         0      2.9G   0% /dev/shm
tmpfs                     2.9G     25.1M      2.8G   1% /run
tmpfs                     2.9G         0      2.9G   0% /sys/fs/cgroup
tmpfs                     2.9G         0      2.9G   0% /tmp
tmpfs                     2.9G    268.0K      2.9G   0% /var/volatile
/dev/mmcblk2p1           83.0M     29.6M     53.5M  36% /run/media/mmcblk2p1
tmpfs                   586.2M      4.0K    586.2M   0% /run/user/0
/dev/mmcblk1p1           83.0M     29.6M     53.5M  36% /run/media/mmcblk1p1
/dev/mmcblk1p2           14.2G      3.6G     10.0G  26% /run/media/mmcblk1p2
root@imx8mprom5722a1:~#

網路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@imx8mprom5722a1:~# systemctl stop ntpdate.service
root@imx8mprom5722a1:~# date 090816072021 && hwclock -w && date
Wed Sep  8 16:07:00 UTC 2021
Tue Nov 23 07:38:50 UTC 2021
root@imx8mprom5722a1:~# date
Tue Nov 23 07:38:56 UTC 2021
root@imx8mprom5722a1:~#

         


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

Yocto 4.0

Yocto 3.0

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

### 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
============================================================