Difference between revisions of "ROM-2820 user guide"
(Created page with " <br/> = 產品介紹 = == '''產品特性(Features)''' == *NXP Arm® Cortex®-A35 i.MX 8ULP Dual up to 1.0 GHz <br/> *1 x Arm Cortex-M33 core <br/> *Onboa...") |
|||
Line 6: | Line 6: | ||
== '''產品特性(Features)''' == | == '''產品特性(Features)''' == | ||
− | *NXP Arm® Cortex®-A35 i.MX 8ULP Dual up to 1.0 GHz | + | *NXP Arm® Cortex®-A35 i.MX 8ULP Dual up to 1.0 GHz |
+ | |||
+ | *1 x Arm Cortex-M33 core <br/> *1 x Ethos®-U65 microNPU<br/> *1 x 2GB LPDDR4X up to 3733MT/s<br/> *1 x 4 lane MIPI-DSI <br/> *2 x USB 2.0, 5 x UART, 4 x I2C, 16 x GPIO, 2 x PWM, 2 x CAN-FD <br/> *Compact size form factor - OSM Size L (45 x 45 mm)<br/> *Support Ycoto Linux <br/> | ||
| | ||
Line 12: | Line 14: | ||
== '''產品官網連結(Product information Link)''' == | == '''產品官網連結(Product information Link)''' == | ||
− | [https://www.advantech.com/zh-tw/products/8fc6f753-ca1d-49f9-8676-10d53129570f/rom- | + | [https://www.advantech.com/zh-tw/products/8fc6f753-ca1d-49f9-8676-10d53129570f/rom-2820/mod_bb82922e-d3a2-49d7-80ff-dc57f400185e '''ROM-2820'''] |
= '''接口布局和尺寸(Layout and Sizes)''' = | = '''接口布局和尺寸(Layout and Sizes)''' = | ||
− | === '''ROM- | + | === '''ROM-2820 接口布局圖 Board Dimension Layout ''' === |
− | + | | |
| | ||
Line 24: | Line 26: | ||
=== '''ROM-ED91 接口布局圖 Board Dimension Layout''' === | === '''ROM-ED91 接口布局圖 Board Dimension Layout''' === | ||
− | + | | |
| | ||
Line 32: | Line 34: | ||
=== '''Internal I/O, Jummper/Switch List:''' === | === '''Internal I/O, Jummper/Switch List:''' === | ||
− | {| border="1" cellpadding="1" cellspacing="1" | + | {| border="1" cellpadding="1" cellspacing="1" style="width: 301px;" |
− | + | |- | |
− | | + | | |
− | |||
=== '''Rear I/O ''' === | === '''Rear I/O ''' === | ||
=== '''LED Function List ''' === | === '''LED Function List ''' === | ||
− | {| border="1" cellpadding="1" cellspacing="1" style="width: | + | {| border="1" cellpadding="1" cellspacing="1" style="" width:"="" |
− | + | |- | |
− | | + | | |
− | |||
=== '''Switch Settings''' === | === '''Switch Settings''' === | ||
− | * | + | *SW1301(BT0_CFG1/4, BT1_CFG6/7/9/11) <br/> *SW1302(BT0_CFG0, BT1_CFG4/5, BOOT_SEL0#/1#, MOD_ON) <br/> *SW1203 (UARTB_MODE0, UART_MODE1) <br/> *SW1204 (UARTB_TERM,_UARTB_SLEW) <br/> *SW1206_(U1205_RX_TERM,_U1205_MODE2) <br/> *SW1201 (UARTA_MODE0, UART_MODE1) <br/> *SW1202 (UARTA_TERM,_UARTA_SLEW) <br/> *SW1205_(U1202_RX_TERM,_U1202_MODE2) <br/> *SW1303_(Power_button) <br/> *SW1304_(Reset_button) <br/> *SD_SLT_(SD_select) <br/> *LVDS_VDD_SLT_(LVDS_power_select_select_header) <br/> *LVDS_BKLT_SLT_(LVDS_Backlight_power_select_header) |
| | ||
Line 52: | Line 52: | ||
=== '''接口引脚定義 (Connector Pin definitions)''' === | === '''接口引脚定義 (Connector Pin definitions)''' === | ||
− | * | + | *DCIN1401 <br/> *COMB <br/> *COMA <br/> *LAN <br/> *USB1 <br/> *USB0_OTG1 <br/> *AJ(Audio_Jack) <br/> *MIC <br/> *CAN <br/> *COME_DEBUG(M-core_debug) <br/> *COMC <br/> *COMD(A-code_debug) <br/> *I2C1101 <br/> *I2C1102 <br/> *CN601(M.2_Key_E) <br/> *CN701(MIPI-CSI) <br/> *LVDS <br/> *LVDS_BKLT_PWR <br/> *BAT1 <br/> *I2S_CN(I2S) <br/> *CN501(CAN0_H/CAN0_L) <br/> *GPIO1101 <br/> *SPI_CN1101(PWM) <br/> *CN1101(SPI) |
=== '''机械尺寸 ('''Mechanical Characteristics) === | === '''机械尺寸 ('''Mechanical Characteristics) === | ||
− | '''ROM- | + | '''ROM-2820''' |
[[File:ROM-2620 Module Dimension.png|RTENOTITLE]] | [[File:ROM-2620 Module Dimension.png|RTENOTITLE]] | ||
Line 66: | Line 66: | ||
=== '''系统下载 (OS Download)''' === | === '''系统下载 (OS Download)''' === | ||
− | *'''Linux系统 (Linux OS)'''''' ''' | + | *'''Linux系统 (Linux OS)'''''' ''' |
− | '''Yocto 4.0: '''[http://ess-wiki.advantech.com.tw/view/IoTGateway/BSP/Linux/iMX8/OS_Support_List_4.0_release_ROM-2620 IoTGateway/BSP/Linux/iMX8/OS Support List 4.0 release ROM- | + | '''Yocto 4.0: '''[http://ess-wiki.advantech.com.tw/view/IoTGateway/BSP/Linux/iMX8/OS_Support_List_4.0_release_ROM-2620 IoTGateway/BSP/Linux/iMX8/OS Support List 4.0 release ROM-2820 - ESS-WIKI (advantech.com.tw)] |
− | '''Yocto 4.2: '''[http://ess-wiki.advantech.com.tw/view/IoTGateway/BSP/Linux/iMX8/OS_Support_List_4.2_release_ROM-2620 IoTGateway/BSP/Linux/iMX8/OS Support List 4.2 release ROM- | + | '''Yocto 4.2: '''[http://ess-wiki.advantech.com.tw/view/IoTGateway/BSP/Linux/iMX8/OS_Support_List_4.2_release_ROM-2620 IoTGateway/BSP/Linux/iMX8/OS Support List 4.2 release ROM-2820 - ESS-WIKI (advantech.com.tw)]''' ''' |
| | ||
Line 88: | Line 88: | ||
<span style="font-size:small;">Command :</span> | <span style="font-size:small;">Command :</span> | ||
− | <span style="font-size:small;">'''~$ sudo dd if= | + | <span style="font-size:small;">'''~$ sudo dd if=2820A1AIM34LIVC0054_iMX8ULP_1G_flash_tool/image/imx-image-full-imx8ulprom2820a1-20230627062759.rootfs.wic of=/dev/sde bs=1M conv=fsync status=progress'''</span> |
[[File:ROM-2620 dd img to sd.png|RTENOTITLE]] | [[File:ROM-2620 dd img to sd.png|RTENOTITLE]] | ||
Line 96: | Line 96: | ||
Step3: 確認開機選擇指撥開關 | Step3: 確認開機選擇指撥開關 | ||
− | + | | |
− | |||
− | |||
+ | {| border="1" cellpadding="1" cellspacing="1" style="" width:"="" | ||
+ | |- | ||
+ | | | ||
Step4:打開電源 和 終端機 (Turn on the Power & Terminal) | Step4:打開電源 和 終端機 (Turn on the Power & Terminal) | ||
− | + | 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) | |
− | |||
− | 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) | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | #tar zxvf /run/media/New\ Volume-sda/2820A1AIM34LIVC0054_iMX8ULP_1G_flash_tool.tgz -C ~ | ||
+ | 5. 進入flsah tool下的mk_inand資歷夾, 執行指令./mksd-linux.sh /dev/mmcblk0燒錄image到eMMC(Connect USB Disk to ROM-2820 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: [https://github.com/ADVANTECH-Corp/RISC_tools_scripts/blob/kirkstone/imx8/mksd-linux.sh mksd-linux.sh] | ||
+ | {| border="1" cellpadding="1" cellspacing="1" style="" width:"="" | ||
+ | |- | ||
+ | | 6. 切換開機switch來設定成從eMMC開機(Change boot switch to boot from eMMC. Reboot system). | ||
=== '''Debug 串口調試 (Debug port Setting)''' === | === '''Debug 串口調試 (Debug port Setting)''' === | ||
− | + | 以 Tera Term 为例介绍如何使用串口调试功能 <pre> Baud Rate波特率:115200<br/> Data 数据位:8<br/> Parity 奇偶校验:无<br/> Stop 停止位:1<br/> Flow Control流控:无</pre> | |
− | 以 Tera Term 为例介绍如何使用串口调试功能 | ||
Tera Term Tool | Tera Term Tool | ||
Line 160: | Line 143: | ||
| | ||
− | {| border="1" cellpadding="1" cellspacing="1" style="width: | + | {| border="1" cellpadding="1" cellspacing="1" style="" width:"="" |
− | + | |- | |
− | + | | Download uuu tool from link below: [https://github.com/nxp-imx/mfgtools/releases?page=3 Releases · nxp-imx/mfgtools (github.com)] The uuu verison we tested is 1.4.193: [https://github.com/nxp-imx/mfgtools/releases/download/uuu_1.4.193/uuu uuu] uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.4.193-0-ge56424c Perpare uboot and image files below: 2820A1AIM34LIVC0064_iMX8ULP_1G_imx-boot.tgz<br/> 2820A1AIM34LIVC0064_iMX8ULP_1G_flash_tool.tgz 1. Download uuu <div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;">$ wget [https://github.com/nxp-imx/mfgtools/releases/download/uuu_1.4.193/uuu https://github.com/nxp-imx/mfgtools/releases/download/uuu_1.4.193/uuu]<br/> $ chmod a+x uuu<br/> $ tar zxvf 2820A1AIM34LIVC0064_iMX8ULP_1G_imx-boot.tgz<br/> $ tar zxvf 2820A1AIM34LIVC0064_iMX8ULP_1G_flash_tool.tgz</div> <br/> Type command below to flash eMMC: <div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;">$ sudo ./uuu -b emmc_all 2820A1AIM34LIVC0064_iMX8ULP_1G_imx-boot/imx-boot-imx8ulprom2820a1-1G.bin-flash_singleboot_m33 2820A1AIM34LIVC0064_iMX8ULP_1G_flash_tool/image/imx-image-full-imx8ulprom2820a1-20230901105531.rootfs.wic</div> <br/> [[File:ROM-2620 uuu flash.png|RTENOTITLE]] | |
− | |||
− | Download uuu tool from link below: | ||
− | |||
− | [https://github.com/nxp-imx/mfgtools/releases?page=3 Releases · nxp-imx/mfgtools (github.com)] | ||
− | |||
− | The uuu verison we tested is 1.4.193: [https://github.com/nxp-imx/mfgtools/releases/download/uuu_1.4.193/uuu uuu] | ||
− | |||
− | uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.4.193-0-ge56424c | ||
− | |||
− | Perpare uboot and image files below: | ||
− | |||
− | |||
− | |||
− | 1. Download uuu | ||
− | |||
| | ||
Line 184: | Line 152: | ||
| | ||
− | === '''Display Setting (ROM- | + | === '''Display Setting (ROM-2820)''' === |
''' U-boot Command :''' | ''' U-boot Command :''' | ||
− | *Display | + | *Display <div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;">=> setenv fdtfile imx8ulp-rom2820-a1-lt9211.dtb<br/> => saveenv<br/> => boot</div> <br/> |
| | ||
| | ||
− | + | === '''Audio(Audio Testing Methid)''' === <div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;"># cat /proc/asound/cards</div> <br/> 0 [sgtl5000 ]: sgtl5000 - sgtl5000 <br/> sgtl5000 <div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;"># amixer set Mic 50%<br/> # amixer set Lineout 100%<br/> # amixer set PCM 100%</div> <br/> '''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> <br/> | |
− | === '''Audio(Audio Testing Methid)''' === | ||
− | |||
=== '''M.2 WiFi/BT測試方法(M.2 WiFi/BT Testing Method)''' === | === '''M.2 WiFi/BT測試方法(M.2 WiFi/BT Testing Method)''' === | ||
− | *Test Wi-Fi with EWM-W167 on C0048 version: Change SD_SLT to 2-3 | + | *Test Wi-Fi with EWM-W167 on C0048 version: Change SD_SLT to 2-3 <div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;">=> setenv fdtfile imx8ulp-rom2820-a1-m2-sdio.dtb<br/> => saveenv<br/> => boot</div> <br/> In Linux user space: <div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;"># iwconfig<br/> # ifconfig wlan0 up<br/> # iwlist wlan0 scan | grep ESSID<br/> # killall wpa_supplicant<br/> # ifconfig wlan0 up<br/> # wpa_passphrase "Pilimao" "0913079939" > /tmp/wpa.conf<br/> # wpa_supplicant -BDwext -iwlan0 -c/tmp/wpa.conf<br/> # udhcpc -b -i wlan0<br/> # ping 8.8.8.8</div> <br/> Add name server: nameserver 8.8.8.8 in resolv.conf file <div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;"># vi /etc/resolv.conf<br/> # ping google.com</div> <br/> Test BT: <div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;"># cd /opt/rtl8723bs_bt/<br/> # ./start_bt.sh ttyLP0<br/> # hciconfig hci0 up<br/> # hciconfig<br/> # bluetoothctl<br/> # discoverable on<br/> # pairable on<br/> # scan on<br/> # info 84:C5:A6:D3:AF:E4<br/> # pair 84:C5:A6:D3:AF:E4<br/> # connect 84:C5:A6:D3:AF:E4<br/> # paired-devices<br/> # disconnect 84:C5:A6:D3:AF:E4<br/> # remove 84:C5:A6:D3:AF:E4</div> <br/> *Test Wi-Fi with EWM-W194M201E Module (SDIO Interface) |
− | + | Step 1: Press enter after boot. The system will stop at u-boot, and change dtb file by below command. <div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;">=> setenv fdtfile imx8ulp-rom2820-a1-m2-sdio-88w8997.dtb<br/> => saveenv<br/> => boot</div> <br/> Step 2: Install driver by below command. <div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;"># rmmod mwifiex_sdio mwifiex<br/> # modprobe moal mod_para=nxp/wifi_mod_para.conf<br/> # modprobe btnxpuart</div> <br/> Step 3: WIFI test command. <div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;"># ifconfig mlan0 up<br/> # wpa_passphrase ASUS-917C qwert12345 > /tmp/wpa.conf<br/> # wpa_supplicant -d -B -i mlan0 -c /tmp/wpa.conf<br/> # udhcpc -i mlan0</div> <br/> *Test Bluetooth with EWM-W194M201E Module (UART Interface) | |
− | Step 1: Press enter after boot. The system will stop at u-boot, and change dtb file by below command. | ||
− | |||
Step 1: Please refer to above step 1.<br/> Step 2: Please refer to above step 2. | Step 1: Please refer to above step 1.<br/> Step 2: Please refer to above step 2. | ||
− | + | Step 3: Bluetooth test command. <div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;"># hciconfig hci0 up<br/> # bluetoothctl<br/> # discoverable on<br/> # pairable on<br/> # scan on<br/> [NEW] FC:18:3C:8D:75:F4 myphone<br/> # scan off<br/> # pair FC:18:3C:8D:75:F4<br/> # connect FC:18:3C:8D:75:F4</div> <br/> | |
− | Step 3: Bluetooth test command. | ||
− | |||
| | ||
=== '''Serial Port測試方法(Serial Testing Method)(COM A/C)''' === | === '''Serial Port測試方法(Serial Testing Method)(COM A/C)''' === | ||
− | + | *'''RS-232 Loopback Test (eg. COMA: ttyLP0):''' | |
− | |||
− | *'''RS-232 Loopback Test (eg. COMA: ttyLP0) | ||
− | |||
− | |||
+ | {| border="1" cellpadding="1" cellspacing="1" style="" width:"="" | ||
+ | |- | ||
+ | | Step 1: First change ROM-ED91 SW1201 to ‘01’.<br/> Step 2: Run test command. <div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;"># stty -F /dev/ttyLP0 speed 115200 -echo<br/> # cat /dev/ttyLP0 &<br/> # echo test > /dev/ttyLP0</div> <br/> *'''RS-422 Test:''' | ||
Step 1: First change ROM-ED91 SW1201 to ‘11’.<br/> Step 2: Test RS-422 with Adam-4520. Connect Adam-4520 with COMA with DB9 as the following: | Step 1: First change ROM-ED91 SW1201 to ‘11’.<br/> Step 2: Test RS-422 with Adam-4520. Connect Adam-4520 with COMA with DB9 as the following: | ||
− | Adam-4520 RX- <-->ROM- | + | Adam-4520 RX- <-->ROM-2820 COMA DB9 Pin 1,<br/> Adam-4520 RX+ <-->ROM-2820 COMA DB9 Pin 2,<br/> Adam-4520 TX- <-->ROM-2820 COMA DB9 Pin 4,<br/> Adam-4520 TX+ <--> ROM-2820 COMA DB9 Pin 3 |
− | + | Step 3: Run below command: <div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;"># stty -F /dev/ttyLP0 speed 115200 ignbrk -brkint -icrnl -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke<br/> # cat /dev/ttyLP0 &<br/> # echo "Serial Test" > /dev/ttyLP0</div> <br/> *'''RS-485 Test:''' | |
− | Step 3: Run below command: | ||
− | |||
Step 1: First change ROM-ED91 SW1201 to ‘10’.<br/> Step 2: Test RS-485 with Adam-4520. Connect Adam-4520 with COMA with DB9 as the following: | Step 1: First change ROM-ED91 SW1201 to ‘10’.<br/> Step 2: Test RS-485 with Adam-4520. Connect Adam-4520 with COMA with DB9 as the following: | ||
− | Adam-4520 Data- <-->ROM- | + | Adam-4520 Data- <-->ROM-2820 COMA DB9 Pin 1,<br/> Adam-4520 Data+ <-->ROM-2820 COMA DB9 Pin 2 |
− | + | Step 3: Run below command: <div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;"># stty -F /dev/ttyLP0 speed 115200 ignbrk -brkint -icrnl -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke<br/> # cat /dev/ttyLP0 &<br/> # echo "Serial Test" > /dev/ttyLP0</div> <br/> | |
− | Step 3: Run below command: | ||
− | |||
| | ||
Line 233: | Line 190: | ||
=== '''I2C測試方法(I2C Testing Method)''' === | === '''I2C測試方法(I2C Testing Method)''' === | ||
− | + | Step 1: Plug in ROM-EG70<br/> Step 2: Test by below command (eg. I2C-6 I2C_1101): <div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;"># modprobe at24<br/> # echo -n $'\x06\x05\x04\x03\x02\x01' > test<br/> # dd if=test of=/sys/bus/i2c/devices/6-0050/eeprom<br/> # hexdump -C /sys/bus/i2c/devices/6-0050/eeprom -n 64</div> <br/> | |
− | Step 1: Plug in ROM-EG70<br/> Step 2: Test by below command (eg. I2C-6 I2C_1101): | ||
− | |||
| | ||
=== '''USB測試方法(USB Testing Method)''' === | === '''USB測試方法(USB Testing Method)''' === | ||
− | + | USB disk test (USB 2.0)<br/> Step 1: Issue the following command (lsusb -t) after inserting a USB disk into the USB 2.0 port to check if the USB device is listed. Step 2: Test (eg. if usb disk is /dev/sda) <div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;"># dd if=/dev/urandom of=data bs=1 count=1024<br/> # dd if=/dev/sda of=backup bs=1 count=1024 skip=4096 # dd if=data of=/dev/sda bs=1 seek=4096<br/> # dd if=/dev/sda of=data1 bs=1 count=1024 skip=4096 # diff data data1<br/> # dd if=backup of=/dev/sda bs=1 seek=4096</div> <br/> | |
− | USB disk test (USB 2.0)<br/> Step 1: Issue the following command (lsusb -t) after inserting a USB disk into the USB 2.0 port to check if the USB device is listed. Step 2: Test (eg. if usb disk is /dev/sda) | ||
− | |||
| | ||
=== '''RTC測試方法(RTC Testing Method)''' === | === '''RTC測試方法(RTC Testing Method)''' === | ||
− | + | Step 1: Set system time to current, then write to RTC <div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;"># date 021010452023 && hwclock -w && date</div> <br/> Step 2: Set one incorrect time, then read time from RTC to verify <div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;"># date 010100002000 && hwclock -r && date</div> <br/> | |
− | Step 1: Set system time to current, then write to RTC | ||
− | |||
=== '''eMMC/SD測使方法(eMMC/SD Testing Method)''' === | === '''eMMC/SD測使方法(eMMC/SD Testing Method)''' === | ||
Line 253: | Line 204: | ||
'''Test (eg. emmc)''' | '''Test (eg. emmc)''' | ||
− | + | '''Step 1: Test command:''' <div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;">'''# dd if=/dev/urandom of=data bs=1 count=1024<br/> # dd if=/dev/mmcblk0 of=backup bs=1 count=1024 skip=4096<br/> # dd if=data of=/dev/mmcblk0 bs=1 seek=4096<br/> # dd if=/dev/mmcblk0 of=data1 bs=1 count=1024 skip=4096<br/> # diff data data1<br/> # dd if=backup of=/dev/mmcblk0 bs=1 seek=4096'''</div> <br/> | |
− | '''Step 1: Test command:''' | ||
− | |||
=== '''乙太網路使用方法(Ethernent Testing Method)''' === | === '''乙太網路使用方法(Ethernent Testing Method)''' === | ||
'''Command : ifconfig ''' | '''Command : ifconfig ''' | ||
− | + | | |
'''Command: Ping - I eth1 8.8.8.8 or Ping - I eth0 8.8.8.8 ''' | '''Command: Ping - I eth1 8.8.8.8 or Ping - I eth0 8.8.8.8 ''' | ||
− | + | | |
| | ||
Line 274: | Line 223: | ||
'''GPIO pin:''' | '''GPIO pin:''' | ||
− | {| border="1" cellpadding="1" cellspacing="1" style="width: | + | {| border="1" cellpadding="1" cellspacing="1" style="" width:"="" |
− | + | |- | |
− | GPIO Loopback Test (Using GPIO1 and GPIO2 as examples) | + | | GPIO Loopback Test (Using GPIO1 and GPIO2 as examples) Step 1: Connect GPIO1 and GPIO2 Step 2: Export GPIO interface <div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;"># echo 416 > /sys/class/gpio/export<br/> # echo 417 > /sys/class/gpio/export</div> <br/> Step 3: Set GPIO direction <div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;"># echo out > /sys/class/gpio/gpio1/direction<br/> # echo in > /sys/class/gpio/gpio2/direction</div> <br/> Step 4: Read value and set output value than check <div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;"># cat /sys/class/gpio/gpio2/value 0<br/> # echo 1 > /sys/class/gpio/gpio1/value<br/> # cat /sys/class/gpio/gpio2/value<br/> 1</div> <br/> === '''Camera使用方法(Camera Testing Method)''' === |
− | |||
− | Step 1: Connect GPIO1 and GPIO2 | ||
− | |||
− | Step 2: Export GPIO interface | ||
− | |||
MIPI-CSI0 (Tested with OV5640 + mini-SAS to MIPI-CSI Cable): OV5640 CSI (CN701): Connect OV5640 camera to EG-55 CAM3 | MIPI-CSI0 (Tested with OV5640 + mini-SAS to MIPI-CSI Cable): OV5640 CSI (CN701): Connect OV5640 camera to EG-55 CAM3 | ||
− | + | Step 1: Take pictures <div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;"># gst-launch-1.0 v4l2src num-buffers=1 device=/dev/video0 ! video/x-raw,width=640,height=480 ! jpegenc ! filesink location=sample.jpeg</div> <br/> Step 2: View on panel <div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;"># gplay-1.0 sample.jpeg</div> <br/> | |
− | Step 1: Take pictures | ||
− | |||
=== '''PWM測試方法(PWM Testing Method)''' === | === '''PWM測試方法(PWM Testing Method)''' === | ||
Please use oscilloscope to check waveform. | Please use oscilloscope to check waveform. | ||
− | + | PWM1: <div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;"># echo 4 > /sys/class/pwm/pwmchip0/export<br/> # echo 1000000 > /sys/class/pwm/pwmchip0/pwm4/period<br/> # echo 500000 > /sys/class/pwm/pwmchip0/pwm4/duty_cycle<br/> # echo 1 > /sys/class/pwm/pwmchip0/pwm4/enable</div> <br/> PWM2: <div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;"># echo 5 > /sys/class/pwm/pwmchip6/export<br/> # echo 1000000 > /sys/class/pwm/pwmchip6/pwm5/period<br/> # echo 500000 > /sys/class/pwm/pwmchip6/pwm5/duty_cycle<br/> # echo 1 > /sys/class/pwm/pwmchip6/pwm5/enable</div> <br/> PWM3: <div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;"># echo 2 > /sys/class/pwm/pwmchip6/export<br/> # echo 1000000 > /sys/class/pwm/pwmchip6/pwm2/period<br/> # echo 500000 > /sys/class/pwm/pwmchip6/pwm2/duty_cycle<br/> # echo 1 > /sys/class/pwm/pwmchip6/pwm2/enable</div> <br/> PWM4: <div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;"># echo 3 > /sys/class/pwm/pwmchip6/export<br/> # echo 1000000 > /sys/class/pwm/pwmchip6/pwm3/period<br/> # echo 500000 > /sys/class/pwm/pwmchip6/pwm3/duty_cycle<br/> # echo 1 > /sys/class/pwm/pwmchip6/pwm3/enable</div> <br/> PWM5: <div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;"># echo 4 > /sys/class/pwm/pwmchip6/export<br/> # echo 1000000 > /sys/class/pwm/pwmchip6/pwm4/period<br/> # echo 500000 > /sys/class/pwm/pwmchip6/pwm4/duty_cycle<br/> # echo 1 > /sys/class/pwm/pwmchip6/pwm4/enable</div> <br/> | |
− | PWM1: | ||
− | |||
=== '''M33 Function''' === | === '''M33 Function''' === | ||
Line 306: | Line 246: | ||
==== '''CAN Bus''' ==== | ==== '''CAN Bus''' ==== | ||
− | '''Step 1: Prepare two pcs rom- | + | '''Step 1: Prepare two pcs rom-2820. One for ‘Node A’ one for ‘Node B’<br/> Step 2: Connect these two boards (HI-HI/LO-LO)<br/> Step 3: The test steps and screen are as below :''' |
[[File:ROM-2620 CAN Bus.png|RTENOTITLE]] | [[File:ROM-2620 CAN Bus.png|RTENOTITLE]] | ||
Line 328: | Line 268: | ||
==== '''LPSPI''' ==== | ==== '''LPSPI''' ==== | ||
− | Step 1: Two pcs rom- | + | Step 1: Two pcs rom-2820. One for ‘Master’ one for ‘Slave’.<br/> Step 2: Connection with these two boards by SPI Bus as below: |
LPSPI3_PCS0 -- LPSPI3_PCS0<br/> LPSPI3_GND -- LPSPI3_GND<br/> LPSPI3_PCS1 -- LPSPI3_PCS1<br/> LPSPI3_SCK -- LPSPI3_SCK<br/> LPSPI3_SOUT -- LPSPI3_SIN<br/> LPSPI3_SIN -- LPSPI3_SOUT | LPSPI3_PCS0 -- LPSPI3_PCS0<br/> LPSPI3_GND -- LPSPI3_GND<br/> LPSPI3_PCS1 -- LPSPI3_PCS1<br/> LPSPI3_SCK -- LPSPI3_SCK<br/> LPSPI3_SOUT -- LPSPI3_SIN<br/> LPSPI3_SIN -- LPSPI3_SOUT | ||
Line 353: | Line 293: | ||
=== '''遠程訪問及文件傳輸(Remote Access and File Transimmion)''' === | === '''遠程訪問及文件傳輸(Remote Access and File Transimmion)''' === | ||
− | + | ''' 查看主板IP位址 ( Chech IP Address ):''' <pre> Command : ifconfig<br/> </pre> | |
− | ''' 查看主板IP位址 ( Chech IP Address ):''' | ||
| | ||
Line 362: | Line 301: | ||
SSH Remote Log into Device | SSH Remote Log into Device | ||
− | *SSH远程登录,以putty选择putty.exe(或者使用Xshell、SecureCRT等类似软件) <br/> *需要设置远程设备的IP、通讯端口(默认22)、通讯方式,登录后验证用户名密码 | + | *SSH远程登录,以putty选择putty.exe(或者使用Xshell、SecureCRT等类似软件) <br/> *需要设置远程设备的IP、通讯端口(默认22)、通讯方式,登录后验证用户名密码 |
[[File:ROM-2620 SSH.png|RTENOTITLE]] | [[File:ROM-2620 SSH.png|RTENOTITLE]] | ||
= '''通用方法(General Method)''' = | = '''通用方法(General Method)''' = | ||
− | + | === '''查看CPU温度(Check CPU Temperature)''' === <pre>root@imx8ulprom2820a1:~# cat /sys/devices/virtual/thermal/thermal_zone0/temp<br/> 37000 </pre> | |
− | === '''查看CPU温度(Check CPU Temperature)''' === | + | === '''查看内存容量(Check Memory Capacity)''' === <pre>root@imx8ulprom2820a1:~# free -h<br/> total used free shared buff/cache available<br/> Mem: 895Mi 230Mi 469Mi 29Mi 195Mi 546Mi<br/> Swap: 0B 0B 0B<br/> root@imx8ulprom2820a1:~#<br/> </pre> |
− | + | === '''查看存储容量(Check Storage Capacity)''' === <pre>root@imx8ulprom2820a1:~# df -hT<br/> Filesystem Type Size Used Avail Use% Mounted on<br/> /dev/root ext4 15G 3.9G 9.5G 30% /<br/> devtmpfs devtmpfs 431M 4.0K 431M 1% /dev<br/> tmpfs tmpfs 448M 0 448M 0% /dev/shm<br/> tmpfs tmpfs 180M 20M 160M 11% /run<br/> tmpfs tmpfs 4.0M 0 4.0M 0% /sys/fs/cgroup<br/> tmpfs tmpfs 448M 76K 448M 1% /tmp<br/> tmpfs tmpfs 448M 1.5M 447M 1% /var/volatile<br/> tmpfs tmpfs 90M 4.0K 90M 1% /run/user/0<br/> /dev/mmcblk0p1 vfat 84M 32M 52M 38% /run/media/boot-mmcblk0p1<br/> /dev/mmcblk2p2 ext4 29G 11G 17G 40% /run/media/root-mmcblk2p2<br/> /dev/mmcblk2p1 vfat 84M 32M 52M 38% /run/media/boot-mmcblk2p1<br/> root@imx8ulprom2820a1:~#<br/> </pre> | |
− | === '''查看内存容量(Check Memory Capacity)''' === | ||
− | |||
− | === '''查看存储容量(Check Storage Capacity)''' === | ||
| | ||
− | + | === '''設置RTC (RTC Setting) ''' === <pre>root@imx8ulprom2820a1:~# systemctl stop ntpdate.service<br/> root@imx8ulprom2820a1:~# date 090816072021 && hwclock -w && date<br/> Wed Sep 8 16:07:00 UTC 2021<br/> Wed Mar 6 04:31:37 UTC 2024<br/> root@imx8ulprom2820a1:~# date<br/> Wed Mar 6 04:31:44 UTC 2024<br/> root@imx8ulprom2820a1:~#</pre> | |
− | === '''設置RTC (RTC Setting) ''' === | ||
| | ||
Line 382: | Line 317: | ||
查看系統時間 (Check the system) | 查看系統時間 (Check the system) | ||
− | root@ | + | root@imx8ulprom2820a1:/# timedatectl<br/> [ 41.402592] kauditd_printk_skb: 6 callbacks suppressed<br/> [ 41.402611] audit: type=1334 audit(45.332:16): prog-id=15 op=LOAD<br/> [ 41.417884] audit: type=1334 audit(45.344:17): prog-id=16 op=LOAD<br/> Local time: Thu 1970-01-01 00:00:46 UTC<br/> Universal time: Thu 1970-01-01 00:00:46 UTC <br/> RTC time: Thu 1970-01-01 00:00:45 <----- Real-Time Clock,RTC <br/> Time zone: Universal (UTC, +0000) <------ Time zone 目前<br/> System clock synchronized: no<br/> NTP service: active<br/> RTC in local TZ: no ''' ''' |
Note : | Note : | ||
− | + | Change Time Zone <pre><code data-highlighted="yes">sudo timedatectl set-timezone "Asia/Taipei"<br/> </code></pre> | |
− | Change Time Zone | ||
<code data-highlighted="yes"> Local time: Fri 2024-05-03 09:07:42 CST<br/> Universal time: Fri 2024-05-03 01:07:42 UTC<br/> RTC time: Fri 2024-05-03 09:07:42<br/> Time zone: Asia/Taipei (CST, +0800)<br/> System clock synchronized: yes<br/> NTP service: active<br/> RTC in local TZ: yes</code> | <code data-highlighted="yes"> Local time: Fri 2024-05-03 09:07:42 CST<br/> Universal time: Fri 2024-05-03 01:07:42 UTC<br/> RTC time: Fri 2024-05-03 09:07:42<br/> Time zone: Asia/Taipei (CST, +0800)<br/> System clock synchronized: yes<br/> NTP service: active<br/> RTC in local TZ: yes</code> | ||
Line 429: | Line 363: | ||
=== [http://ess-wiki.advantech.com.tw/view/IoTGateway/BSP/Linux/iMX8/Yocto_LBVC_User_Guide '''Yocto 4.0'''] ===<br/> | === [http://ess-wiki.advantech.com.tw/view/IoTGateway/BSP/Linux/iMX8/Yocto_LBVC_User_Guide '''Yocto 4.0'''] ===<br/> | ||
+ | |||
+ | |- | ||
+ | | | ||
+ | |} | ||
+ | |||
+ | |- | ||
+ | | | ||
+ | |} | ||
+ | |||
+ | |- | ||
+ | | | ||
+ | |} | ||
+ | |||
+ | |- | ||
+ | | | ||
+ | |} | ||
+ | |||
+ | |- | ||
+ | | | ||
+ | |} | ||
+ | |||
+ | |- | ||
+ | | | ||
+ | |} | ||
+ | |||
+ | |- | ||
+ | | | ||
+ | |} |
Revision as of 03:14, 22 May 2024
Contents
- 1 產品介紹
- 2 接口布局和尺寸(Layout and Sizes)
- 3 快速入门 (Quick Start)
- 4 Linux系统的基本使用(Linux System Basic Operating Method)
- 4.1 UUU 使用方法(USB Connection (OTG port))
- 4.2 Display Setting (ROM-2820)
- 4.3 M.2 WiFi/BT測試方法(M.2 WiFi/BT Testing Method)
- 4.4 Serial Port測試方法(Serial Testing Method)(COM A/C)
- 4.5 I2C測試方法(I2C Testing Method)
- 4.6 USB測試方法(USB Testing Method)
- 4.7 RTC測試方法(RTC Testing Method)
- 4.8 eMMC/SD測使方法(eMMC/SD Testing Method)
- 4.9 乙太網路使用方法(Ethernent Testing Method)
- 4.10 GPIO使用方法(GPIO Operating Method)
- 4.11 PWM測試方法(PWM Testing Method)
- 4.12 M33 Function
- 4.13 遠程訪問及文件傳輸(Remote Access and File Transimmion)
- 5 通用方法(General Method)
- 6 Linux BSP編譯方法(Linux BSP Compile Method)
產品介紹
產品特性(Features)
- NXP Arm® Cortex®-A35 i.MX 8ULP Dual up to 1.0 GHz
*1 x Arm Cortex-M33 core
*1 x Ethos®-U65 microNPU
*1 x 2GB LPDDR4X up to 3733MT/s
*1 x 4 lane MIPI-DSI
*2 x USB 2.0, 5 x UART, 4 x I2C, 16 x GPIO, 2 x PWM, 2 x CAN-FD
*Compact size form factor - OSM Size L (45 x 45 mm)
*Support Ycoto Linux
產品官網連結(Product information Link)
接口布局和尺寸(Layout and Sizes)
ROM-2820 接口布局圖 Board Dimension Layout
ROM-ED91 接口布局圖 Board Dimension Layout
主板内置插针式引脚排序方式 (Pin Header defination)
Internal I/O, Jummper/Switch List:
Rear I/OLED Function List
| ||||||||||||