Difference between revisions of "ROM-2620 user guide"

From ESS-WIKI
Jump to: navigation, search
( )
Line 394: Line 394:
 
'''Record and playback:'''
 
'''Record and playback:'''
 
<div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;">'''# arecord -t wav -c 2 -r 44100 -d 10 /tmp/mic.wav'''</div> <div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;">'''# aplay /tmp/mic.wav'''</div>  
 
<div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;">'''# arecord -t wav -c 2 -r 44100 -d 10 /tmp/mic.wav'''</div> <div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;">'''# aplay /tmp/mic.wav'''</div>  
=== &nbsp; ===
 
 
 
=== '''乙太網路使用方法(Ethernent Testing Method)''' ===
 
=== '''乙太網路使用方法(Ethernent Testing Method)''' ===
  

Revision as of 10:52, 5 March 2024


Contents

產品介紹

產品特性(Features)

  • NXP Arm® Cortex®-A35 i.MX 8ULP Dual up to 1.0 GHz
  • 1 x Arm Cortex-M33 core
  • Onboard LPDDR4 1GB, 2000MT/s memory
  • 1 x 4 lane MIPI-DSI ƒ 1 x USB2.0, 1 x USB 2.0 OTG, 5 x UART, 2 x I2C, 24 x GPIO, 6 x PWM, 1 x CAN
  • Ultra small size form factor - OSM
  • Support Ycoto Linux and Microsoft Azure Sphere OS

產品官網連結(Product information Link)

ROM-5722

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

ROM-2620 接口布局圖 Board Dimension Layout 

ROM-2620 1.jpgROM-2620 2.jpg

 

ROM-ED91 接口布局圖 Board Dimension Layout

ROM-2620 ED91 IO.png


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

Internal I/O, Jummper/Switch List:

Label Function Label Function
DCIN1401 12V DCIN connector SW1301 BT0_CFG1/4, BT1_CFG6/7/9/11
COMB RS232/422/485 SW1302 BT0_CFG0, BT1_CFG4/5, BOOT_SEL0#/1#, MOD_ON
COMA RS232/422/485 SW1203 UARTB_MODE0, UART_MODE1
LAN LAN Connector SW1204 UARTB_TERM, UARTB_SLEW
USB1 USB2.0 port Connector SW1206 U1205_RX_TERM, U1205_MODE2
USB0_OTG1 Micro USB Connector SW1201 UARTA_MODE0, UART_MODE1
AJ Line Out Connector SW1202 UARTA_TERM, UARTA_SLEW
MIC MIC Connector SW1205 U1202_RX_TERM, U1202_MODE2
CAN CAN Bus Connector SW1303 Power button
COME_DEBUG M-core debug console SW1304 Reset button
COMC COM I2S_CN I2S Connector
COMD A-core debug console CN501 CAN0_H, CAN0_L terminatl resistors
I2C1101 I2C Connector SD_SLT SD select
I2C1102 I2C Connector GPIO1101 GPIO header
CN601 M.2 Key E Connector SPI_CN1101 PWM header
CN701 MIPI-CSI Connector CN1101 SPI header
LVDS LVDS Connector LVDS_VDD_SLT LVDS power select select header
LVDS_BKLT_PWR LVDS Backlight Connector LVDS_BKLT_SLT LVDS Backlight power select header
BAT1 Battery Connector    

 

Rear I/O 

LED Function List 

Location Function
PD1405 +V5_MOD
PD1502 +V3.3
PD1503 +V5

 

Switch Settings 

 

接口引脚定義 (Connector Pin definitions)

机械尺寸  (Mechanical Characteristics)

ROM-2620

ROM-2620 Module Dimension.png


快速入门 (Quick Start)

系统下载 (OS Download)

  • 'Linux系统 (Linux OS)'   

Yocto 4.0: IoTGateway/BSP/Linux/iMX8/OS Support List 4.0 release ROM-2620 - ESS-WIKI (advantech.com.tw)

Yocto 4.2: IoTGateway/BSP/Linux/iMX8/OS Support List 4.2 release ROM-2620 - ESS-WIKI (advantech.com.tw) 



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=2620A1AIM34LIVC0054_iMX8ULP_1G_flash_tool/image/imx-image-full-imx8ulprom2620a1-20230627062759.rootfs.wic of=/dev/sde bs=1M conv=fsync status=progress

RTENOTITLE

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

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

RTENOTITLE

EMMC boot: SW1301: 1_2_5_6 ON
SW1302: 4_6 ON
SD boot: SW1301: 1_2_3_4 ON
SW1302: 4_6 ON
Serial download: SW1301: All OFF
SW1302: 5_6 ON

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

RTENOTITLE

Step5: 複製flash tool到U盤中, 解壓縮flash tools檔案,(copy to USB Disk, then unzip the flash tools file)(Test with 32G SD card)

    複製檔案到U盤中 (Copy the flash file to USB Disk), 解壓縮flash tool到home目錄(Unzip the file to home)

  1. tar zxvf /run/media/New\ Volume-sda/2620A1AIM34LIVC0054_iMX8ULP_1G_flash_tool.tgz -C ~

RTENOTITLE

5. 進入flsah tool下的mk_inand資歷夾, 執行指令./mksd-linux.sh /dev/mmcblk0燒錄image到eMMC(Connect USB Disk to ROM-2620 system, extract the flash tool and browser to mk_inand folder and execute flash shell script "./mksd-linux.sh /dev/mmcblk0"

解壓縮後如果沒有mksd-linux.sh檔案, 可以到以下連結下載並複製到mk_inand資料夾下(If there is no mksd-linux.sh file in mk_inand directory. Please download from the link below and place it in mk_inand directory:

mksd-linux.sh

ROM-2620 Device node
SD card /dev/mmcblk2
eMMC /dev/mmcblk0

RTENOTITLE

6. 切換開機switch來設定成從eMMC開機(Change boot switch 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 (串口連接) 

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

RTENOTITLE


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

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

Connect USB cable to USB OTG port.

Change boot switch to "SW1301 all OFF, SW1302: 5_6:on" to boot from force recovery mode.

RTENOTITLE

Download uuu tool from link below:

Releases · nxp-imx/mfgtools (github.com)

The uuu verison we tested is 1.4.193: uuu

uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.4.193-0-ge56424c

Perpare uboot and image files below:

2620A1AIM34LIVC0064_iMX8ULP_1G_imx-boot.tgz
2620A1AIM34LIVC0064_iMX8ULP_1G_flash_tool.tgz

1. Download uuu

$ wget https://github.com/nxp-imx/mfgtools/releases/download/uuu_1.4.193/uuu
$ chmod a+x uuu
$ tar zxvf 2620A1AIM34LIVC0064_iMX8ULP_1G_imx-boot.tgz
$ tar zxvf 2620A1AIM34LIVC0064_iMX8ULP_1G_flash_tool.tgz

Type command below to flash eMMC:

$ sudo ./uuu -b emmc_all 2620A1AIM34LIVC0064_iMX8ULP_1G_imx-boot/imx-boot-imx8ulprom2620a1-1G.bin-flash_singleboot_m33 2620A1AIM34LIVC0064_iMX8ULP_1G_flash_tool/image/imx-image-full-imx8ulprom2620a1-20230901105531.rootfs.wic

RTENOTITLE




Display Setting (ROM-2620)

      U-boot Command :

  • Display
=> setenv fdtfile imx8ulp-rom2620-a1-lt9211.dtb
=> saveenv
=> boot

ROM-2620 2CH LVDS uboot.png


 


Audio(Audio Testing Methid)

# cat /proc/asound/cards

0 [sgtl5000 ]: sgtl5000 - sgtl5000 
                sgtl5000

# amixer set Mic 50%
# amixer set Lineout 100%
# amixer set PCM 100%

Record and playback:

# arecord -t wav -c 2 -r 44100 -d 10 /tmp/mic.wav
# aplay /tmp/mic.wav

乙太網路使用方法(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 4.2