EPC-R7200 user guide
Contents
- 1 資源特性(Features)
- 2 訂購資訊(Ordering Information)
- 3 接口布局和尺寸(Layout and Sizes)
- 4 快速入门 (Quick Start)
- 5 Linux系统的基本使用(Linux System Basic Operating Method)
- 5.1 UUU 使用方法(USB Connection (OTG port))
- 5.2 Display Setting (ROM-5721)
- 5.3 乙太網路使用方法(Ethernent Testing Method)
- 5.4 WiFi使用方法(WIFI Testing Method)
- 5.5 GPIO使用方法(GPIO Operating Method)
- 5.6 串口使用方法(Serial Port Operating Method)
- 5.7 蓝牙使用方法(BlueTooth Operating Method)
- 5.8 <a alt="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" href="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" title="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)</a>
- 6 通用方法(General Method)
- 7 Linux BSP編譯方法(Linux BSP Compile Method)
- 7.1 <a alt="http://ess-wiki.advantech.com.tw/view/IoTGateway/BSP/Linux/iMX8/Yocto_LBV9_User_Guide" href="http://ess-wiki.advantech.com.tw/view/IoTGateway/BSP/Linux/iMX8/Yocto_LBV9_User_Guide" title="http://ess-wiki.advantech.com.tw/view/IoTGateway/BSP/Linux/iMX8/Yocto_LBV9_User_Guide">Yocto 2.5</a>
- 7.2 <a alt="http://ess-wiki.advantech.com.tw/view/IoTGateway/BSP/Linux/iMX8/Yocto_LBVA_User_Guide" href="http://ess-wiki.advantech.com.tw/view/IoTGateway/BSP/Linux/iMX8/Yocto_LBVA_User_Guide" title="http://ess-wiki.advantech.com.tw/view/IoTGateway/BSP/Linux/iMX8/Yocto_LBVA_User_Guide">Yocto 3.0</a>
資源特性(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
訂購資訊(Ordering Information)
<img _fck_mw_filename="Z2.png" _fck_mw_origimgheight="81" _fck_mw_origimgwidth="873" alt="RTENOTITLE" src="/wiki/images/6/6a/Z2.png" style="vertical-align:middle;" title="RTENOTITLE" />
接口布局和尺寸(Layout and Sizes)
ROM-5721 接口布局圖 Board Dimension Layout
<img _fck_mw_filename="Z3.png" _fck_mw_origimgheight="355" _fck_mw_origimgwidth="567" alt="RTENOTITLE" src="/wiki/images/1/10/Z3.png" style="vertical-align:middle;" title="RTENOTITLE" />
ROM-DB5901 接口布局圖 Board Dimension Layout
<img _fck_mw_filename="DB-ROM-5901 5620 carrierboard.jpg" _fck_mw_origimgheight="552" _fck_mw_origimgwidth="663" alt="RTENOTITLE" src="/wiki/images/d/d9/DB-ROM-5901_5620_carrierboard.jpg" style="vertical-align:middle;" title="RTENOTITLE" />
<img _fck_mw_filename="ROM-DB5901 IO.jpg" _fck_mw_origimgheight="202" _fck_mw_origimgwidth="947" alt="RTENOTITLE" src="/wiki/images/1/14/ROM-DB5901_IO.jpg" style="vertical-align:middle;" title="RTENOTITLE" />
主板内置插针式引脚排序方式 (Pin Header defination)
Internal I/O
<img _fck_mw_filename="ROM-DB5901 IO2.jpg" _fck_mw_origimgheight="732" _fck_mw_origimgwidth="812" alt="RTENOTITLE" src="/wiki/images/3/3f/ROM-DB5901_IO2.jpg" style="vertical-align:middle;" title="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
<img _fck_mw_filename="ROM-DB5901 RearIO.jpg" _fck_mw_origimgheight="226" _fck_mw_origimgwidth="778" alt="RTENOTITLE" src="/wiki/images/f/ff/ROM-DB5901_RearIO.jpg" style="vertical-align:middle;" title="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)
- <a href="%E9%9B%BB%E6%B1%A0%28BAT1%29%20%26%20%E9%9B%BB%E6%B1%A0%E6%89%A3%28BH1%29">電池(BAT1) & 電池扣(BH1)</a>
- <a href="CAN%28CAN1%2CCAN2%29">CAN(CAN1,CAN2)</a>
- <a href="%E4%B8%B2%E5%8F%A3%28COM%20DB%28COM3%29%E3%80%81COM0%E3%80%81COM1%20%E3%80%81COM2%29">串口(COM_DB(COM3)、COM1、UART0 、UART2)</a>
- <a href="%E6%98%BE%E7%A4%BA%E6%8E%A5%E5%8F%A3%28LVDS%E3%80%81HDMI%29%20LAN%E6%8E%A5%E5%8F%A3%20USB%E6%8E%A5%E5%8F%A3%28USB1-2%E3%80%81USB3-4%E3%80%81USB%20OTG%29%20%E9%9F%B3%E9%A2%91%E6%8E%A5%E5%8F%A3%20%E7%94%B5%E6%BA%90%E5%8F%8A%E6%8C%87%E7%A4%BA%E7%81%AF%E5%92%8C%E5%BC%80%E5%85%B3%E6%9C%BA%E5%A4%8D%E4%BD%8D%E6%8C%89%E9%92%AE%20GPIO%E6%8E%A5%E5%8F%A3%20MINI%20PCIE%E6%8E%A5%E5%8F%A3%20M.2%E6%8E%A5%E5%8F%A3%20SPI%E3%80%81I2C%20%E6%8E%A5%E5%8F%A3">显示接口(LVDS、LVDS Backlight、HDMI、DP)</a>
- <a href="LAN%E6%8E%A5%E5%8F%A3">LAN接口(LAN)</a>
- <a href="USB%E6%8E%A5%E5%8F%A3%28USB1-2%E3%80%81USB%20Type%20C%E3%80%81USB%20OTG%29">USB接口(USB1-2、USB-4-5、USB Type C、USB OTG)</a>
- <a href="%E9%9F%B3%E9%A2%91%E6%8E%A5%E5%8F%A3%28Audio%29">音频接口(Audio Output &Audio Codec)</a>
- <a href="%E7%94%B5%E6%BA%90%E5%8F%8A%E6%8C%87%E7%A4%BA%E7%81%AF%E5%92%8C%E5%BC%80%E5%85%B3%E6%9C%BA%E5%A4%8D%E4%BD%8D%E6%8C%89%E9%92%AE%28Power%20%E3%80%81LED%E3%80%81Power%20Button%E3%80%81Reset%20Button%E3%80%81Sleep%20Button%29">电源及指示灯和开关机复位按钮(Power 、LED、Power Button、Reset Button、Sleep Button) </a>
- <a href="GPIO%E6%8E%A5%E5%8F%A3">GPIO接口</a>
- <a href="MINI%20PCIE%E6%8E%A5%E5%8F%A3%20M.2%E6%8E%A5%E5%8F%A3%20SPI%E3%80%81I2C%20%E6%8E%A5%E5%8F%A3">MINI_PCIE接口_M.2接口_SPI、I2C_接口</a>
机械尺寸 (Mechanical Characteristics)
ROM-5721
<img _fck_mw_filename="ROM-5620 Mechanical Specifications1.jpg" _fck_mw_origimgheight="522" _fck_mw_origimgwidth="757" alt="RTENOTITLE" src="/wiki/images/6/6a/ROM-5620_Mechanical_Specifications1.jpg" style="vertical-align:middle;" title="RTENOTITLE" />
<img _fck_mw_filename="ROM-5620 Mechanical Specifications2.jpg" _fck_mw_origimgheight="527" _fck_mw_origimgwidth="613" alt="RTENOTITLE" src="/wiki/images/9/96/ROM-5620_Mechanical_Specifications2.jpg" style="vertical-align:middle;" title="RTENOTITLE" />
快速入门 (Quick Start)
系统下载 (OS Download)
- Linux系统 (Linux OS)
Yocto 2.5: <a alt="http://ess-wiki.advantech.com.tw/view/IoTGateway/BSP/Linux/iMX8/OS_Support_List" href="http://ess-wiki.advantech.com.tw/view/IoTGateway/BSP/Linux/iMX8/OS_Support_List" title="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)</a>
Yocto 3.0:<a href="IoTGateway%2FBSP%2FLinux%2FiMX8%2FOS%20Support%20List%203.0">IoTGateway/BSP/Linux/iMX8/OS Support List 3.0</a>
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)
<img _fck_mw_filename="Z3.jpg" _fck_mw_origimgheight="74" _fck_mw_origimgwidth="714" alt="RTENOTITLE" src="/wiki/images/4/4d/Z3.jpg" style="vertical-align:middle;" title="RTENOTITLE" />
Step1: 創造一張可開機的SD 卡 (Create a bootable SD card)
<img _fck_mw_filename="Z4.jpg" _fck_mw_origimgheight="26" _fck_mw_origimgwidth="1307" alt="RTENOTITLE" src="/wiki/images/e/e0/Z4.jpg" style="vertical-align:middle;" title="RTENOTITLE" />
Step2: 將可開機的SD 卡插入底板SD卡卡槽(Plug the SD card into Carrier board 's SD card slot)
<img _fck_mw_filename="CarrierboardSDsolt.jpg" _fck_mw_origimgheight="492" _fck_mw_origimgwidth="362" alt="RTENOTITLE" src="/wiki/images/9/92/CarrierboardSDsolt.jpg" style="vertical-align:middle;" title="RTENOTITLE" />
Step4: 確認開機選擇指撥開關 (Check the boot switch)
SD 卡開機模式(SD boot mode):
<img _fck_mw_filename="SDBootupSwitch.jpg" _fck_mw_origimgheight="518" _fck_mw_origimgwidth="388" alt="RTENOTITLE" src="/wiki/images/9/94/SDBootupSwitch.jpg" style="vertical-align:middle;" title="RTENOTITLE" />
Step3:打開電源 和 終端機 (Turn on the Power & Terminal)
<img _fck_mw_filename="Z5.jpg" _fck_mw_origimgheight="447" _fck_mw_origimgwidth="1168" alt="RTENOTITLE" src="/wiki/images/0/09/Z5.jpg" style="vertical-align:middle;" title="RTENOTITLE" />
Step4: 解壓縮flash tools 檔案,並複製到U盤中(Unzip the flash tools file , then copy to USB Disk)
解壓縮(Unzip the file )
<img _fck_mw_filename="Z6.jpg" _fck_mw_origimgheight="125" _fck_mw_origimgwidth="909" alt="RTENOTITLE" src="/wiki/images/e/e1/Z6.jpg" style="vertical-align:middle;" title="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)
<img _fck_mw_filename="Z7.jpg" _fck_mw_origimgheight="146" _fck_mw_origimgwidth="932" alt="RTENOTITLE" src="/wiki/images/b/b4/Z7.jpg" style="vertical-align:middle;" title="RTENOTITLE" />
3. 掛載U盤在Ubuntu 系統中 (Mount the USB Disk's in Ubuntu System)
<img _fck_mw_filename="Z8.jpg" _fck_mw_origimgheight="197" _fck_mw_origimgwidth="874" alt="RTENOTITLE" src="/wiki/images/f/f6/Z8.jpg" style="vertical-align:middle;" title="RTENOTITLE" />
4. 複製檔案到U盤(Copy the file to USB disk)
<img _fck_mw_filename="Z9.jpg" _fck_mw_origimgheight="377" _fck_mw_origimgwidth="919" alt="RTENOTITLE" src="/wiki/images/5/59/Z9.jpg" style="vertical-align:middle;" title="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 |
<img _fck_mw_filename="Z10.jpg" _fck_mw_origimgheight="483" _fck_mw_origimgwidth="1059" alt="RTENOTITLE" src="/wiki/images/d/d2/Z10.jpg" style="vertical-align:middle;" title="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
<img _fck_mw_filename="TeraTerm 2021-09-10 140930n.jpg" _fck_mw_origimgheight="428" _fck_mw_origimgwidth="700" alt="RTENOTITLE" src="/wiki/images/2/25/TeraTerm_2021-09-10_140930n.jpg" style="vertical-align:middle;" title="RTENOTITLE" />
<img _fck_mw_filename="TeraTerm12021-09-10 141114n.jpg" _fck_mw_origimgheight="391" _fck_mw_origimgwidth="609" alt="RTENOTITLE" src="/wiki/images/6/6d/TeraTerm12021-09-10_141114n.jpg" style="vertical-align:middle;" title="RTENOTITLE" />
Check the Sriel port in Device Manager (查看PC端的串口号):
if you can not identify the Serial device , please check your serial driver.
<img _fck_mw_filename="COMportinx862021-09-10 141610.jpg" _fck_mw_origimgheight="640" _fck_mw_origimgwidth="588" alt="RTENOTITLE" src="/wiki/images/9/99/COMportinx862021-09-10_141610.jpg" style="vertical-align:middle;" title="RTENOTITLE" />
Debug port connection (串口連接)
<img _fck_mw_filename="Debugcom3nn 2021-09-10 140320.jpg" _fck_mw_origimgheight="500" _fck_mw_origimgwidth="203" alt="RTENOTITLE" src="/wiki/images/e/e3/Debugcom3nn_2021-09-10_140320.jpg" style="vertical-align:middle;" title="RTENOTITLE" />
Log into Terminal Tool (进入串口调试终端):
<img _fck_mw_filename="Z15.jpg" _fck_mw_origimgheight="320" _fck_mw_origimgwidth="1057" alt="RTENOTITLE" src="/wiki/images/9/9c/Z15.jpg" style="vertical-align:middle;" title="RTENOTITLE" />
Linux系统的基本使用(Linux System Basic Operating Method)
UUU 使用方法(USB Connection (OTG port))
Download uuu tool from (Release [<a alt="https://github.com/ADVANTECH-Corp/uuu/releases/tag/v20200619" href="https://github.com/ADVANTECH-Corp/uuu/releases/tag/v20200619" title="https://github.com/ADVANTECH-Corp/uuu/releases/tag/v20200619">ADV</a>v20200619 · 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.
<img _fck_mw_filename="Z11.jpg" _fck_mw_origimgheight="216" _fck_mw_origimgwidth="1044" alt="RTENOTITLE" src="/wiki/images/7/70/Z11.jpg" style="vertical-align:middle;" title="RTENOTITLE" />
Type command below to flash eMMC:
<img _fck_mw_filename="Z12.jpg" _fck_mw_origimgheight="179" _fck_mw_origimgwidth="1352" alt="RTENOTITLE" src="/wiki/images/a/a2/Z12.jpg" style="vertical-align:middle;" title="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
- DSI to LVDS
- g070vw01(LVDS0)
- adv-imx8mm-rom5721-a1.dtb
- g150xgel05(LVDS0)
- adv-imx8mm-rom5721-a1-dsi2lvds-g150xgel05.dtb
- g215hvn01(LVDS0+LVDS1,dual channel)
- adv-imx8mm-rom5721-a1-dsi2lvds-g215hvn01.dtb
- g070vw01(LVDS0)
- DSI to DP
- adv-imx8mm-rom5721-a1-dsi2dp.dtb
- DSI to HDMI(LVDS0)
- adv-imx8mm-rom5721-a1-adv7535.dtb
- DSI
- auog101uan02(LVDS0)
- adv-imx8mm-rom5721-a1-auog101uan02.dtb
- auog101uan02(LVDS0)
- DSI to LVDS
- 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)
Command : ifconfig
<img _fck_mw_filename="Z13.jpg" _fck_mw_origimgheight="487" _fck_mw_origimgwidth="861" alt="RTENOTITLE" src="/wiki/images/b/bb/Z13.jpg" style="vertical-align:middle;" title="RTENOTITLE" />
Command: Ping - I eth1 8.8.8.8 or Ping - I eth0 8.8.8.8
<img _fck_mw_filename="Z14.jpg" _fck_mw_origimgheight="241" _fck_mw_origimgwidth="781" alt="RTENOTITLE" src="/wiki/images/1/10/Z14.jpg" style="vertical-align:middle;" title="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
<img _fck_mw_filename="Z16.jpg" _fck_mw_origimgheight="344" _fck_mw_origimgwidth="663" alt="RTENOTITLE" src="/wiki/images/1/11/Z16.jpg" style="vertical-align:middle;" title="RTENOTITLE" />
GPIO使用方法(GPIO Operating Method)
<img _fck_mw_filename="Z17.jpg" _fck_mw_origimgheight="475" _fck_mw_origimgwidth="710" alt="RTENOTITLE" src="/wiki/images/9/91/Z17.jpg" style="vertical-align:middle;" title="RTENOTITLE" />
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設置)
<img _fck_mw_filename="SW6&7settingn.jpeg" alt="RTENOTITLE" src="/wiki/images/2/21/SW6%267settingn.jpeg" style="vertical-align:middle;" title="RTENOTITLE" />
MODE1 MODE0
0 0 LOOPBACK
0 1 RS232
1 0 RS485
1 1 RS422
Loopback test (eg. ttymxc0)
Connect loopback test tool
- 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
<img _fck_mw_filename="Z18.jpg" _fck_mw_origimgheight="185" _fck_mw_origimgwidth="568" alt="RTENOTITLE" src="/wiki/images/4/48/Z18.jpg" style="vertical-align:middle;" title="RTENOTITLE" />
<a alt="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" href="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" title="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)</a>
查看主板IP位址 ( Chech IP Address ):
Command : ifconfig
<img _fck_mw_filename="Z19.jpg" _fck_mw_origimgheight="202" _fck_mw_origimgwidth="838" alt="RTENOTITLE" src="/wiki/images/d/de/Z19.jpg" style="vertical-align:middle;" title="RTENOTITLE" />
Windows下SSH访问及文件传输
SSH Remote Log into Device
- SSH远程登录,以putty选择putty.exe(或者使用Xshell、SecureCRT等类似软件)
- 需要设置远程设备的IP、通讯端口(默认22)、通讯方式,登录后验证用户名密码
<img _fck_mw_filename="SSHsettingdetail.png" _fck_mw_origimgheight="600" _fck_mw_origimgwidth="748" alt="RTENOTITLE" src="/wiki/images/3/35/SSHsettingdetail.png" style="vertical-align:middle;" title="RTENOTITLE" />
<img _fck_mw_filename="Z20.jpg" _fck_mw_origimgheight="442" _fck_mw_origimgwidth="452" alt="RTENOTITLE" src="/wiki/images/2/24/Z20.jpg" style="vertical-align:middle;" title="RTENOTITLE" />
<img _fck_mw_filename="Sshsetting12021-09-10 143743n.jpg" _fck_mw_origimgheight="363" _fck_mw_origimgwidth="576" alt="RTENOTITLE" src="/wiki/images/b/b0/Sshsetting12021-09-10_143743n.jpg" style="vertical-align:middle;" title="RTENOTITLE" />
<img _fck_mw_filename="Z21.jpg" _fck_mw_origimgheight="111" _fck_mw_origimgwidth="431" alt="RTENOTITLE" src="/wiki/images/c/c1/Z21.jpg" style="vertical-align:middle;" title="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)
<a alt="http://ess-wiki.advantech.com.tw/view/IoTGateway/BSP/Linux/iMX8/Yocto_LBV9_User_Guide" href="http://ess-wiki.advantech.com.tw/view/IoTGateway/BSP/Linux/iMX8/Yocto_LBV9_User_Guide" title="http://ess-wiki.advantech.com.tw/view/IoTGateway/BSP/Linux/iMX8/Yocto_LBV9_User_Guide">Yocto 2.5</a>
<a alt="http://ess-wiki.advantech.com.tw/view/IoTGateway/BSP/Linux/iMX8/Yocto_LBVA_User_Guide" href="http://ess-wiki.advantech.com.tw/view/IoTGateway/BSP/Linux/iMX8/Yocto_LBVA_User_Guide" title="http://ess-wiki.advantech.com.tw/view/IoTGateway/BSP/Linux/iMX8/Yocto_LBVA_User_Guide">Yocto 3.0</a>
- 如果有驗證上的錯誤 請使用以下的方法
### 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' (
<a alt="https://anongit.freedesktop.org/git/gstreamer/common.git)" href="https://anongit.freedesktop.org/git/gstreamer/common.git)" title="https://anongit.freedesktop.org/git/gstreamer/common.git)">https://anongit.freedesktop.org/git/gstreamer/common.git)</a> 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 '
<a alt="https://anongit.freedesktop.org/git/gstreamer/common.git/':" href="https://anongit.freedesktop.org/git/gstreamer/common.git/':" title="https://anongit.freedesktop.org/git/gstreamer/common.git/':">https://anongit.freedesktop.org/git/gstreamer/common.git/':</a> server certificate verification fa iled. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
fatal: clone of '
<a alt="https://anongit.freedesktop.org/git/gstreamer/common.git'" href="https://anongit.freedesktop.org/git/gstreamer/common.git'" title="https://anongit.freedesktop.org/git/gstreamer/common.git'">https://anongit.freedesktop.org/git/gstreamer/common.git'</a> 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 '
<a alt="https://anongit.freedesktop.org/git/gstreamer/common.git/':" href="https://anongit.freedesktop.org/git/gstreamer/common.git/':" title="https://anongit.freedesktop.org/git/gstreamer/common.git/':">https://anongit.freedesktop.org/git/gstreamer/common.git/':</a> server certificate verification fa iled. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
fatal: clone of '
<a alt="https://anongit.freedesktop.org/git/gstreamer/common.git'" href="https://anongit.freedesktop.org/git/gstreamer/common.git'" title="https://anongit.freedesktop.org/git/gstreamer/common.git'">https://anongit.freedesktop.org/git/gstreamer/common.git'</a> 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' (
<a alt="https://anongit.freedesktop.org/git/gstreamer/common.git)" href="https://anongit.freedesktop.org/git/gstreamer/common.git)" title="https://anongit.freedesktop.org/git/gstreamer/common.git)">https://anongit.freedesktop.org/git/gstreamer/common.git)</a> 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 '
<a alt="https://anongit.freedesktop.org/git/gstreamer/common.git/':" href="https://anongit.freedesktop.org/git/gstreamer/common.git/':" title="https://anongit.freedesktop.org/git/gstreamer/common.git/':">https://anongit.freedesktop.org/git/gstreamer/common.git/':</a> server certificate verification fa iled. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
fatal: clone of '
<a alt="https://anongit.freedesktop.org/git/gstreamer/common.git'" href="https://anongit.freedesktop.org/git/gstreamer/common.git'" title="https://anongit.freedesktop.org/git/gstreamer/common.git'">https://anongit.freedesktop.org/git/gstreamer/common.git'</a> 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 '
<a alt="https://anongit.freedesktop.org/git/gstreamer/common.git/':" href="https://anongit.freedesktop.org/git/gstreamer/common.git/':" title="https://anongit.freedesktop.org/git/gstreamer/common.git/':">https://anongit.freedesktop.org/git/gstreamer/common.git/':</a> server certificate verification fa iled. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
fatal: clone of '
<a alt="https://anongit.freedesktop.org/git/gstreamer/common.git'" href="https://anongit.freedesktop.org/git/gstreamer/common.git'" title="https://anongit.freedesktop.org/git/gstreamer/common.git'">https://anongit.freedesktop.org/git/gstreamer/common.git'</a> 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
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 <a alt="https://github.blog/2021-09-01-improving-git-protocol-security-github/" href="https://github.blog/2021-09-01-improving-git-protocol-security-github/" title="https://github.blog/2021-09-01-improving-git-protocol-security-github/">https://github.blog/2021-09-01-improving-git-protocol-security-github/</a> 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 = "<a alt="git://github.com/PieVo/mdio-tool.git;protocol=" href="git://github.com/PieVo/mdio-tool.git;protocol=" title="git://github.com/PieVo/mdio-tool.git;protocol=">git://github.com/PieVo/mdio-tool.git;protocol=</a>https;branch=master"
<img _fck_mw_filename="Z74.jpg" _fck_mw_origimgheight="456" _fck_mw_origimgwidth="884" alt="RTENOTITLE" src="/wiki/images/d/d5/Z74.jpg" style="vertical-align:middle;" title="RTENOTITLE" />
_ |