Difference between revisions of "iMX8M Industrial Accessing and Testing Peripherals"

From Voipac Wiki
Jump to navigation Jump to search
 
(192 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
[[Category:iMX8M Industrial]]
 
[[Category:iMX8M Industrial]]
[[Category:iMX8M Industrial Max]]
 
 
[[Category:iMX8M Industrial Software]]
 
[[Category:iMX8M Industrial Software]]
 
[[Category:iMX8M Industrial Testing]]
 
[[Category:iMX8M Industrial Testing]]
Line 7: Line 6:
 
<div style="float:right">__TOC__</div>
 
<div style="float:right">__TOC__</div>
  
Elemental operations of iMX8M Industrial Development Kit interfaces in Max configuration are shown on this page.
+
The initial operations with the iMX8M Industrial Development Kit interfaces are presented on this page. For more specific information such as display options, camera capabilities or industrial modular extensions, refer to the dedicated [[iMX8M Industrial Max#Peripherals_and_Accessories|Peripherals and Accessories section]].
  
== Prerequisites ==
+
== Mandatory components ==
 
=== Hardware ===
 
=== Hardware ===
* DC power supply (5V, 4A)
+
* iMX8M Industrial Module
* iMX8M Industrial Development Kit Max
+
* iMX Development Baseboard
 +
* [https://www.voipac.com/power-supply-5v-40w DC power supply (5V, 8A, 40W)]
  
 
=== Peripherals and Accessories ===
 
=== Peripherals and Accessories ===
* 1x FullHD monitor with Audio output
+
* 1x FullHD HDMI monitor with Audio output (default)
* 1x MicroSD card
+
* 1x FullHD DisplayPort monitor with Audio output (optional)
* 1x MiniPCIe WiFi card
+
* [https://www.voipac.com/imx8m-wifi-and-bluetooth-antennas-set iMX8M Wifi and Bluetooth antennas set]
* 1x MiniPCIe 3G card
+
* 1x MicroSDHC card Class 10 or higher
* 1x RPi camera module
+
* 1x USB Flash drive 3.0
* 2x USB FLASH drive
+
* Headphones
 +
* Analog external microphone
  
 
=== Cables ===
 
=== Cables ===
 +
* USB Micro-B cable for serial console
 +
* USB-C cable for module flashing
 
* Ethernet cable
 
* Ethernet cable
* HDMI cable
+
* HDMI cable (default)
* Micro USB cable
+
* DisplayPort cable (optional)
* USB to UART cable
 
* Headphones
 
  
 
== Audio ==
 
== Audio ==
'''''Input:''''' Search kernel log for SGTL5000 chip<br />
+
'''''Note:''''' This audio section was tested with the iMX8M Industrial Module in Max and Pro configurations. For Basic configuration, audio capabilities can be achieved via SAI header located on the baseboard. For more information see [[iMX8M Industrial Development Kit|the iMX8M Industrial Module comparison]].<br /><br />
'''''Output:''''' Audio chip is detected and bound as an input device
+
 
 +
'''''Input:''''' Search kernel log for wm8904 chip<br />
 +
'''''Output:''''' Audio chip is detected and bound as an output and input device
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
root@imx6-openrexultra:~# dmesg | grep -i sgtl5000
+
root@imx8mq-voipac:~# dmesg | grep wm8904
sgtl5000 1-000a: sgtl5000 revision 0x11
+
[    1.864809] fsl-asoc-card sound-wm8904: failed to find codec device
sgtl5000 1-000a: Using internal LDO instead of VDDD
+
[    2.155773] wm8904 0-001a: 0-001a supply DCVDD not found, using dummy regulator
imx-sgtl5000 sound-sgtl5000: sgtl5000 <-> 2028000.ssi mapping ok
+
[    2.163163] wm8904 0-001a: 0-001a supply DBVDD not found, using dummy regulator
   #0: imx-audio-sgtl5000
+
[    2.170561] wm8904 0-001a: 0-001a supply AVDD not found, using dummy regulator
 +
[    2.177846] wm8904 0-001a: 0-001a supply CPVDD not found, using dummy regulator
 +
[    2.185209] wm8904 0-001a: 0-001a supply MICVDD not found, using dummy regulator
 +
[    2.197860] wm8904 0-001a: revision A
 +
[    2.699093] debugfs: Directory '308b0000.sai' with parent 'wm8904-audio' already present!
 +
[    2.707395] fsl-asoc-card sound-wm8904: wm8904-hifi <-> 308b0000.sai mapping ok
 +
[    2.714808] fsl-asoc-card sound-wm8904: ASoC: no DMI vendor name!
 +
[    3.145901]   #1: wm8904-audio
 
</syntaxhighlight>
 
</syntaxhighlight>
  
'''''Input:''''' Run alsamixer command<br />
+
'''''Input:''''' Run amixer command<br />
'''''Output:''''' Card imx-audio-sgtl5000 is available
+
'''''Output:''''' Current audio chip settings are displayed
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
root@imx6-openrexultra:~# alsamixer
+
root@imx8mq-voipac:~# amixer -c1
lqqqqqqqqqqqqqqqqqqqqqqqqqqqqq AlsaMixer v1.0.29 qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
+
Simple mixer control 'Headphone',0
x Card: imx-audio-sgtl5000                            F1:  Help              x
+
  Capabilities: volume pswitch
x Chip:                                               F2:  System information x
+
  Playback channels: Front Left - Front Right
x View: F3:[Playback] F4: Capture  F5: All            F6:  Select sound card  x
+
  Capture channels: Front Left - Front Right
x Item: Headphone [dB gain: -19.00, -20.00]            Esc: Exit              x
+
  Limits: 0 - 63
x                                                                              x
+
  Front Left: 46 [73%] [-11.00dB] Playback [on]
x    lqqk                      lqqk    lqqk                                x
+
  Front Right: 45 [71%] [-12.00dB] Playback [on]
x    x  x                      x  x    x  x                                x
+
Simple mixer control 'Headphone ZC',0
x    x  x                      x  x    x  x                                x
+
  Capabilities: pswitch
x    x  x                      x  x    x  x                                x
+
  Playback channels: Front Left - Front Right
x    x  x                      xaax    x  x                                x
+
  Mono:
x    x  x                      xaax    x  x                                x
+
  Front Left: Playback [on]
x    x  x                      xaax    x  x                                x
+
  Front Right: Playback [on]
x    x  x                      xaax    x  x                                x
+
Simple mixer control 'Line Output',0
x    x  x                      xaax    x  x                                x
+
  Capabilities: volume pswitch
x    xa x                      xaax    x  x                                x
+
  Playback channels: Front Left - Front Right
x    xaax                      xaax    x  x                                x
+
  Capture channels: Front Left - Front Right
x    xaax                      xaax    x  x                                x
+
  Limits: 0 - 63
x    mqqj    DAC      lqqk    mqqj    mqqj    lqqk    MIC_IN    lqqk      x
+
  Front Left: 57 [90%] [0.00dB] Playback [on]
x                      xOOx                      xMMx              xOOx      x
+
  Front Right: 57 [90%] [0.00dB] Playback [on]
x                      mqqj                      mqqj              mqqj      x
+
Simple mixer control 'Line Output ZC',0
x    24<>23                    75<>75    0                                  x
+
  Capabilities: pswitch
x  <Headphon>Headphon Headphon   PCM      Mic    Capture  Capture  Capture    x
+
  Playback channels: Front Left - Front Right
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
+
  Mono:
 +
  Front Left: Playback [on]
 +
   Front Right: Playback [on]
 +
...
 
</syntaxhighlight>
 
</syntaxhighlight>
  
'''''Input:''''' Boot-up the board with HDMI cable plugged in, connect headphones into HP_OUT connector and plug-in USB flash drive with MP3 file on it<br />
+
'''''Input:''''' Connect headphones into LINE OUT jack connector<br />
'''''Output:''''' Sound is played and heard
+
'''''Output:''''' Audio file is played and heard
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
root@imx6-openrexultra:~# aplay multimedia/sample.wav
+
root@imx8mq-voipac:~# aplay multimedia/sample.wav
 
Playing WAVE 'multimedia/sample.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
 
Playing WAVE 'multimedia/sample.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
root@imx6-openrexultra:~# #aplay -D sysdefault:CARD=imxaudiosgtl500 multimedia/sample.wav
+
root@imx8mq-voipac:~# aplay -D sysdefault:CARD=wm8904audio multimedia/sample.wav
root@imx6-openrexultra:~# aplay -D sysdefault:CARD=sgtl5000audio multimedia/sample.wav
 
 
Playing WAVE 'multimedia/sample.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
 
Playing WAVE 'multimedia/sample.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 +
'''''Input:''''' Boot-up the board with HDMI cable plugged into the monitor<br />
 +
'''''Output:''''' Audio file is played and heard
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
root@imx6-openrexultra:~# aplay -D sysdefault:CARD=imxhdmisoc multimedia/sample.wav  
+
root@imx8mq-voipac:~# aplay -D sysdefault:CARD=imxaudiohdmi multimedia/sample.wav  
 
Playing WAVE 'multimedia/sample.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
 
Playing WAVE 'multimedia/sample.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
 
</syntaxhighlight>
 
</syntaxhighlight>
  
'''''Input:''''' Plug headphones with microphone input into HP_OUT connector<br />
+
'''''Input:''''' Plug headphones into HEADPHONES jack connector and analog external microphone to MIC jack connector<br />
'''''Output:''''' Microphone sound is played in headphones
+
'''''Output:''''' Sound recorder by microphone is played in headphones
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
root@imx6-openrexultra:~# #arecord -D sysdefault:CARD=imxaudiosgtl500 -t wav -f cd | aplay -D sysdefault:CARD=imxaudiosgtl500
+
root@imx8mq-voipac:~# amixer set 'Capture' '31'
root@imx6-openrexultra:~# arecord -D sysdefault:CARD=sgtl5000audio -t wav -f cd | aplay -D sysdefault:CARD=sgtl5000audio
+
root@imx8mq-voipac:~# amixer set 'Capture Input' ADC
 +
root@imx8mq-voipac:~# amixer set 'Left Capture Inverting Mux' 'IN2L'
 +
root@imx8mq-voipac:~# amixer set 'Right Capture Inverting Mux' 'IN2R'
 +
root@imx8mq-voipac:~# arecord -D sysdefault:CARD=wm8904audio -t wav -f cd | aplay -D sysdefault:CARD=wm8904audio
 
</syntaxhighlight>
 
</syntaxhighlight>
  
'''''Input:''''' Plug headphones with microphone input into HP_OUT connector<br />
+
'''''Note:''''' Microphone and headphones setup can also be graphically displayed and adjusted:
'''''Output:''''' Sound is recorded and played afterwards
 
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
root@imx6-openrexultra:~# #arecord -D sysdefault:CARD=imxaudiosgtl500 -t wav -f cd -d 10 multimedia/recorded.wav
+
root@imx8mq-voipac:~# alsamixer
root@imx6-openrexultra:~# arecord -D sysdefault:CARD=sgtl5000audio -t wav -f cd -d 10 multimedia/recorded.wav
 
Recording WAVE 'multimedia/recorded.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
 
root@imx6-openrexultra:~# #aplay -D sysdefault:CARD=imxaudiosgtl500 multimedia/recorded.wav
 
root@imx6-openrexultra:~# aplay -D sysdefault:CARD=sgtl5000audio multimedia/recorded.wav
 
Playing WAVE 'multimedia/recorded.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
 
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
[[image:iMX8M_Industrial_Development_Kit-AlsaMixer_setup.png|800px]]<br /><br />
  
== User button ==
+
'''''Input:''''' Verify digital microphones (Mic Left, Mic Mid, Mic Right) <br />
'''''Input:''''' Press Home/Back-/Menu+ buttons<br />
+
'''''Output:''''' Microphone sound is played in headphones
'''''Output:''''' Button events 1 and 0 are generated
 
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
root@imx6-openrexultra:~# evtest /dev/input/by-path/platform-gpio-keys*-event
+
root@imx8mq-voipac:~# amixer -c1 set "Capture Input" "DMIC"
Input driver version is 1.0.1
+
root@imx8mq-voipac:~# arecord -D sysdefault:CARD=wm8904audio -t wav -f cd | aplay -D sysdefault:CARD=wm8904audio
Input device ID: bus 0x19 vendor 0x1 product 0x1 version 0x100
 
Input device name: "gpio-keys"
 
Supported events:
 
  Event type 0 (EV_SYN)
 
  Event type 1 (EV_KEY)
 
    Event code 102 (KEY_HOME)
 
    Event code 139 (KEY_MENU)
 
    Event code 158 (KEY_BACK)
 
Properties:
 
Testing ... (interrupt to exit)
 
Event: time 1473952105.010541, type 1 (EV_KEY), code 102 (KEY_HOME), value 1
 
Event: time 1473952105.010541, -------------- SYN_REPORT ------------
 
Event: time 1473952105.140569, type 1 (EV_KEY), code 102 (KEY_HOME), value 0
 
Event: time 1473952105.140569, -------------- SYN_REPORT ------------
 
Event: time 1473952106.320588, type 1 (EV_KEY), code 158 (KEY_BACK), value 1
 
Event: time 1473952106.320588, -------------- SYN_REPORT ------------
 
Event: time 1473952106.440540, type 1 (EV_KEY), code 158 (KEY_BACK), value 0
 
Event: time 1473952106.440540, -------------- SYN_REPORT ------------
 
Event: time 1473952109.630544, type 1 (EV_KEY), code 139 (KEY_MENU), value 1
 
Event: time 1473952109.630544, -------------- SYN_REPORT ------------
 
Event: time 1473952109.760589, type 1 (EV_KEY), code 139 (KEY_MENU), value 0
 
Event: time 1473952109.760589, -------------- SYN_REPORT ------------
 
 
</syntaxhighlight>
 
</syntaxhighlight>
  
=== Alternative test ===
+
== WiFi ==
'''''Input:''''' Press Home/Back-/Menu+ buttons<br />
+
'''''Note:''''' This WiFi section was tested with the iMX8M Industrial Module in Max and Pro configurations. For Basic configuration, wireless connectivity can be achieved via [[#PCI Express socket + Micro SIM slot|PCIe Mini]] and/or [[#M.2 key B socket + Micro SIM slot|M.2 key B]] slots located on the baseboard. For more information see [[iMX8M Industrial Development Kit|the iMX8M Industrial Module comparison]].<br /><br />
'''''Output:''''' Button events 1 and 0 are generated
+
 
 +
'''''Note:''''' Only the Basic configuration of iMX8M Industrial Module provides access to PCI Express signals via PCIe Mini and M.2 key B sockets soldered on the baseboard, instead of using the interface for WiFi and Bluetooth module on the COM.<br /><br />
 +
 
 +
Check if the device driver is available:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
root@imx6-openrexultra:~# hexdump -C /dev/input/by-path/platform-gpio-keys-event
+
root@imx8mq-voipac:~# dmesg | grep wlan
00000000  ef e7 da 57 ca 8e 0a 00  01 00 66 00 01 00 00 00  |...W......f.....|
+
[    6.329574] wlan: Loading MWLAN driver
00000010  ef e7 da 57 ca 8e 0a 00  00 00 00 00 00 00 00 00  |...W............|
+
[    6.333853] wlan: Register to Bus Driver...
00000020  ef e7 da 57 9f b1 0c 00  01 00 66 00 00 00 00 00  |...W......f.....|
+
[    6.338344] wlan_pcie 0000:01:00.0: enabling device (0000 -> 0002)
00000030  ef e7 da 57 9f b1 0c 00  00 00 00 00 00 00 00 00  |...W............|
+
[    8.500582] wlan: version = PCIE8997--16.92.21.p76.2-MM5X16368.p2-(FP92)
00000040  f0 e7 da 57 28 70 06 00  01 00 9e 00 01 00 00 00  |...W(p..........|
+
[    8.517033] wlan: Register to Bus Driver Done
00000050  f0 e7 da 57 28 70 06 00  00 00 00 00 00 00 00 00  |...W(p..........|
+
[    8.521409] wlan: Driver loaded successfully
00000060  f0 e7 da 57 18 93 08 00  01 00 9e 00 00 00 00 00  |...W............|
+
[    8.533204] wlan_pcie 0000:01:00.0 wlp1s0: renamed from mlan0
00000070  f0 e7 da 57 18 93 08 00  00 00 00 00 00 00 00 00  |...W............|
 
00000080  f1 e7 da 57 69 78 02 00  01 00 8b 00 01 00 00 00  |...Wix..........|
 
00000090  f1 e7 da 57 69 78 02 00  00 00 00 00 00 00 00 00  |...Wix..........|
 
000000a0  f1 e7 da 57 68 9b 04 00  01 00 8b 00 00 00 00 00  |...Wh...........|
 
000000b0  f1 e7 da 57 68 9b 04 00  00 00 00 00 00 00 00 00  |...Wh...........|
 
 
</syntaxhighlight>
 
</syntaxhighlight>
  
== Reset button ==
+
Check if the WiFi interface is present:
'''''Input:''''' Press the RESET button<br />
 
'''''Output:''''' The board will execute bootloader immediately with "Reset cause: POR"<br />
 
'''''Note:''''' iMX8M Industrial Development Kit should never freeze or hang after the reset button was pressed. Testing the operation 10 times gives a reliable result
 
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
U-Boot 2015.10+fslc+g7d8ddd7 (Dec 15 2016 - 18:52:24 +0100)
+
root@imx8mq-voipac:~# ip addr show dev wlp1s0
 +
3: wlp1s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
 +
    link/ether 78:c4:0e:a0:32:16 brd ff:ff:ff:ff:ff:ff
 +
</syntaxhighlight>
  
CPU:   Freescale i.MX6QUAD rev1.1 996 MHz (running at 792 MHz)
+
'''''Input:''''' Scan the available WiFi networks<br />
CPU:   Extended Commercial temperature grade (-20C to 105C) at 44C
+
'''''Output:''''' Networks are scanned and in-depth information are displayed<br />
Reset cause: POR
+
<syntaxhighlight lang="bash">
Board: iMX6-OpenRex
+
root@imx8mq-voipac:~# ifconfig wlp1s0 up && iw dev wlp1s0 scan
I2C:   ready
+
BSS 94:27:90:7f:c3:d3(on wlp1s0)
DRAM: 512 MiB
+
        TSF: 1213185029341 usec (14d, 00:59:45)
MMC:   FSL_SDHC: 0
+
        freq: 2442
SF: Detected SST26VF032B with page size 256 Bytes, erase size 4 KiB, total 4 MiB
+
        beacon interval: 100 TUs
In:   serial
+
        capability: ESS Privacy ShortPreamble ShortSlotTime (0x0431)
Out:   serial
+
        signal: -73.00 dBm
Err:   serial
+
        last seen: 4056 ms ago
Net:   FEC [PRIME]
+
        SSID: HH40V_C3D3
Hit any key to stop autoboot: 0  
+
        Supported rates: 1.0* 2.0* 5.5* 11.0* 6.0 9.0 12.0 18.0
OpenRex U-Boot>
+
        DS Parameter set: channel 7
 +
        Country: SK    Environment: Indoor/Outdoor
 +
                Channels [1 - 13] @ 20 dBm
 +
        ERP: <no flags>
 +
        Extended supported rates: 24.0 36.0 48.0 54.0
 +
        HT capabilities:
 +
                Capabilities: 0x1ad
 +
                        RX LDPC
 +
                        HT20
 +
                        SM Power Save disabled
 +
                        RX HT20 SGI
 +
                        TX STBC
 +
                        RX STBC 1-stream
 +
                        Max AMSDU length: 3839 bytes
 +
                        No DSSS/CCK HT40
 +
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
 +
                Minimum RX AMPDU time spacing: 8 usec (0x06)
 +
                HT TX/RX MCS rate indexes supported: 0-15
 +
        HT operation:
 +
                * primary channel: 7
 +
                * secondary channel offset: no secondary
 +
                * STA channel width: 20 MHz
 +
                * RIFS: 1
 +
                * HT protection: no
 +
                * non-GF present: 1
 +
                * OBSS non-GF present: 0
 +
                * dual beacon: 0
 +
                * dual CTS protection: 0
 +
                * STBC beacon: 0
 +
                * L-SIG TXOP Prot: 0
 +
                * PCO active: 0
 +
                * PCO phase: 0
 +
        Overlapping BSS scan params:
 +
                * passive dwell: 20 TUs
 +
                * active dwell: 10 TUs
 +
                * channel width trigger scan interval: 300 s
 +
                * scan passive total per channel: 200 TUs
 +
                * scan active total per channel: 20 TUs
 +
                * BSS width channel transition delay factor: 5
 +
                * OBSS Scan Activity Threshold: 0.25 %
 +
        Extended capabilities:
 +
                * HT Information Exchange Supported
 +
                * Extended Channel Switching
 +
                * SSID List
 +
                * Operating Mode Notification
 +
        WMM:    * Parameter version 1
 +
                * BE: CW 15-1023, AIFSN 3
 +
                * BK: CW 15-1023, AIFSN 7
 +
                * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
 +
                * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
 +
        RSN:    * Version: 1
 +
                * Group cipher: CCMP
 +
                * Pairwise ciphers: CCMP
 +
                * Authentication suites: PSK
 +
                * Capabilities: 1-PTKSA-RC 1-GTKSA-RC (0x0000)
 +
        WPS:    * Version: 1.0
 +
                * Wi-Fi Protected Setup State: 2 (Configured)
 +
                * Response Type: 3 (AP)
 +
                * UUID: 87654321-9abc-def0-1234-942790c36dc7
 +
                * Manufacturer: TCL.org
 +
                * Model: WAP
 +
                * Model Number: 123
 +
                * Serial Number: 12345
 +
                * Primary Device Type: 6-0050f204-1
 +
                * Device name: TCL AP
 +
                * Config methods:
 +
                * Unknown TLV (0x1049, 6 bytes): 00 37 2a 00 01 20
 +
BSS 34:e8:94:5c:06:80(on wlp1s0)
 +
        TSF: 787677017722 usec (9d, 02:47:57)
 +
        freq: 2462
 +
        beacon interval: 100 TUs
 +
        capability: ESS Privacy ShortSlotTime (0x0411)
 +
        signal: -73.00 dBm
 +
        last seen: 3952 ms ago
 +
        SSID: OrangeFlybox_0680
 +
        Supported rates: 1.0* 2.0* 5.5* 11.0* 9.0 18.0 36.0 54.0
 +
        DS Parameter set: channel 11
 +
        ERP: Barker_Preamble_Mode
 +
        Extended supported rates: 6.0 12.0 24.0 48.0
 +
        HT capabilities:
 +
                Capabilities: 0x106e
 +
                        HT20/HT40
 +
                        SM Power Save disabled
 +
                        RX HT20 SGI
 +
                        RX HT40 SGI
 +
                        No RX STBC
 +
                        Max AMSDU length: 3839 bytes
 +
                        DSSS/CCK HT40
 +
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
 +
                Minimum RX AMPDU time spacing: 4 usec (0x05)
 +
                HT RX MCS rate indexes supported: 0-15, 32
 +
                HT TX MCS rate indexes are undefined
 +
        HT operation:
 +
                * primary channel: 11
 +
                * secondary channel offset: no secondary
 +
                * STA channel width: 20 MHz
 +
                * RIFS: 0
 +
                * HT protection: 20 MHz
 +
                * non-GF present: 1
 +
                * OBSS non-GF present: 0
 +
                * dual beacon: 0
 +
                * dual CTS protection: 0
 +
                * STBC beacon: 0
 +
                * L-SIG TXOP Prot: 0
 +
                * PCO active: 0
 +
                * PCO phase: 0
 +
        WPA:    * Version: 1
 +
                * Group cipher: TKIP
 +
                * Pairwise ciphers: TKIP CCMP
 +
                * Authentication suites: PSK
 +
        RSN:    * Version: 1
 +
                * Group cipher: TKIP
 +
                * Pairwise ciphers: TKIP CCMP
 +
                * Authentication suites: PSK
 +
                * Capabilities: 1-PTKSA-RC 1-GTKSA-RC (0x0000)
 +
        WMM:    * Parameter version 1
 +
                * BE: CW 15-1023, AIFSN 3
 +
                * BK: CW 15-1023, AIFSN 7
 +
                * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
 +
                * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
 +
        BSS Load:
 +
                * station count: 3
 +
                * channel utilisation: 27/255
 +
                * available admission capacity: 31250 [*32us]
 +
        Overlapping BSS scan params:
 +
                * passive dwell: 20 TUs
 +
                * active dwell: 10 TUs
 +
                * channel width trigger scan interval: 300 s
 +
                * scan passive total per channel: 200 TUs
 +
                * scan active total per channel: 20 TUs
 +
                * BSS width channel transition delay factor: 5
 +
                * OBSS Scan Activity Threshold: 0.25 %
 +
        Extended capabilities:
 +
                * HT Information Exchange Supported
 +
        WPS:    * Version: 1.0
 +
                * Wi-Fi Protected Setup State: 2 (Configured)
 +
                * AP setup locked: 0x01
 +
                * Response Type: 3 (AP)
 +
                * UUID: 38833092-3092-1883-9c77-34e8945c06c4
 +
                * Manufacturer: TP-LINK
 +
                * Model: Archer MR200
 +
                * Model Number: 1.0
 +
                * Serial Number: 1.0
 +
                * Primary Device Type: 6-0050f204-1
 +
                * Device name: AC750 Wireless Dual Band 4G LTE
 +
                * Config methods: Label, Display, Keypad
 +
                * RF Bands: 0x1
 +
                * Unknown TLV (0x1049, 6 bytes): 00 37 2a 00 01 20
 +
BSS 34:e8:94:5b:f8:04(on wlp1s0)
 +
        TSF: 1210179077454 usec (14d, 00:09:39)
 +
        freq: 2462
 +
        beacon interval: 100 TUs
 +
        capability: ESS Privacy ShortSlotTime (0x0411)
 +
        signal: -50.00 dBm
 +
        last seen: 3432 ms ago
 +
        SSID: REDARROW
 +
        Supported rates: 1.0* 2.0* 5.5* 11.0* 9.0 18.0 36.0 54.0
 +
        DS Parameter set: channel 11
 +
        Extended supported rates: 6.0 12.0 24.0 48.0
 +
        TIM: DTIM Count 0 DTIM Period 1 Bitmap Control 0x0 Bitmap[0] 0x2
 +
        WPS:    * Version: 1.0
 +
                * Wi-Fi Protected Setup State: 2 (Configured)
 +
                * AP setup locked: 0x01
 +
                * UUID: 38833092-3092-1883-9c77-34e8945bf8c4
 +
                * RF Bands: 0x1
 +
                * Unknown TLV (0x1049, 6 bytes): 00 37 2a 00 01 20
 +
        ERP: Barker_Preamble_Mode
 +
        HT capabilities:
 +
                Capabilities: 0x106e
 +
                        HT20/HT40
 +
                        SM Power Save disabled
 +
                        RX HT20 SGI
 +
                        RX HT40 SGI
 +
                        No RX STBC
 +
                        Max AMSDU length: 3839 bytes
 +
                        DSSS/CCK HT40
 +
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
 +
                Minimum RX AMPDU time spacing: 4 usec (0x05)
 +
                HT RX MCS rate indexes supported: 0-15, 32
 +
                HT TX MCS rate indexes are undefined
 +
        HT operation:
 +
                * primary channel: 11
 +
                * secondary channel offset: no secondary
 +
                * STA channel width: 20 MHz
 +
                * RIFS: 0
 +
                * HT protection: no
 +
                * non-GF present: 0
 +
                * OBSS non-GF present: 0
 +
                * dual beacon: 0
 +
                * dual CTS protection: 0
 +
                * STBC beacon: 0
 +
                * L-SIG TXOP Prot: 0
 +
                * PCO active: 0
 +
                * PCO phase: 0
 +
        Overlapping BSS scan params:
 +
                * passive dwell: 20 TUs
 +
                * active dwell: 10 TUs
 +
                * channel width trigger scan interval: 300 s
 +
                * scan passive total per channel: 200 TUs
 +
                * scan active total per channel: 20 TUs
 +
                * BSS width channel transition delay factor: 5
 +
                * OBSS Scan Activity Threshold: 0.25 %
 +
        Extended capabilities:
 +
                * HT Information Exchange Supported
 +
        WPA:    * Version: 1
 +
                * Group cipher: TKIP
 +
                * Pairwise ciphers: TKIP CCMP
 +
                * Authentication suites: PSK
 +
        RSN:    * Version: 1
 +
                * Group cipher: TKIP
 +
                * Pairwise ciphers: TKIP CCMP
 +
                * Authentication suites: PSK
 +
                * Capabilities: 1-PTKSA-RC 1-GTKSA-RC (0x0000)
 +
        WMM:    * Parameter version 1
 +
                * BE: CW 15-1023, AIFSN 3
 +
                * BK: CW 15-1023, AIFSN 7
 +
                * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
 +
                * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
 +
        BSS Load:
 +
                * station count: 0
 +
                * channel utilisation: 47/255
 +
                * available admission capacity: 31250 [*32us]
 
</syntaxhighlight>
 
</syntaxhighlight>
  
== CAN ==
+
To set up the network login data, edit file located in /etc/wpa_supplicant.conf and update '''''ssid''''' and passphrase '''''psk''''' fields.
'''''Input:''''' None<br />
 
'''''Output:''''' Device driver is available
 
  
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
root@imx6-openrexultra:~# ip addr show dev can0
+
root@imx8mq-voipac:~# cat /etc/wpa_supplicant.conf
2: can0: <NOARP,ECHO> mtu 16 qdisc noop state DOWN group default qlen 10
+
ctrl_interface=/var/run/wpa_supplicant
    link/can
+
ctrl_interface_group=0
root@imx6-openrexultra:~# ip addr show dev can1
+
update_config=1
3: can1: <NOARP,ECHO> mtu 16 qdisc noop state DOWN group default qlen 10
+
 
    link/can
+
network={
 +
        ssid="SSID_FOR_WIFI_NETWORK"
 +
        scan_ssid=1
 +
        key_mgmt=WPA-PSK
 +
        psk="WIFI_NETWORK_PASSWORD"
 +
}
 +
 
 
</syntaxhighlight>
 
</syntaxhighlight>
  
== Camera Input  ==
+
To connect to the desired WiFi network, start wpa_supplicant:
'''''Input:''''' Connect RPi camera module into CSI interface and check if it is detected on I2C bus<br />
 
'''''Output:''''' I2C address 0x36 is occupied and under use<br />
 
'''''Note:''''' HDMI monitor may cause I2C communication issues
 
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
root@imx6-openrexultra:~# i2cdetect -y 1
+
root@imx8mq-voipac:~# wpa_supplicant -i wlp1s0 -c/etc/wpa_supplicant.conf &
    1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
+
root@imx8mq-voipac:~# Successfully initialized wpa_supplicant
00:         -- -- -- -- -- -- -- UU -- -- -- -- --
+
rfkill: Cannot open RFKILL control device
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
+
wlp1s0: Trying to associate with 40:a5:ef:c0:70:62 (SSID='CPE_C0[  188.254851] mwifiex_pcie 0000:01:00.0: info: trying
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
+
to associate to 'CPE_C07061' bssid 40:a5:ef:c0:70:62
30: -- -- -- -- -- -- UU -- -- -- -- -- -- -- -- --
+
7061' freq=2462 MHz)
40: UU -- -- -- -- -- -- -- UU -- -- -- -- -- -- --
+
[ 188.334475] mwifiex_pcie 0000:01:00.0: info: associated to bssid 40:a5:ef:c0:70:62 successfully
50: UU -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
+
wlp1s0: Associated with 40:a5:ef:c0:70:62
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
+
wlp1s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
70: -- -- -- -- -- -- -- -- 
+
[  188.351598] IPv6: ADDRCONF(NETDEV_CHANGE): wlp1s0: link becomes ready
 +
wlp1s0: WPA: Key negotiation completed with 40:a5:ef:c0:70:62 [PTK=CCMP GTK=CCMP]
 +
wlp1s0: CTRL-EVENT-CONNECTED - Connection to 40:a5:ef:c0:70:62 completed [id=0 id_str=]
 
</syntaxhighlight>
 
</syntaxhighlight>
  
'''''Input:''''' Connect RPi camera into CSI interface and check kernel modules<br />
+
To obtain an IP address and other network settings, run dhcp client:
'''''Output:''''' Device driver ov5647_camera_mipi_int(or ov5647_camera_mipi) is loaded
 
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
root@imx6-openrexultra:~# lsmod
+
udhcpc -i wlp1s0
Module                  Size  Used by
 
mxc_v4l2_capture      27362  1
 
ipu_bg_overlay_sdc      5230  1 mxc_v4l2_capture
 
ipu_still              2304  1 mxc_v4l2_capture
 
ipu_prp_enc            5864  1 mxc_v4l2_capture
 
ipu_csi_enc            3807  1 mxc_v4l2_capture
 
ipu_fg_overlay_sdc      6056  1 mxc_v4l2_capture
 
lm75                    4768  0
 
sht21                  2126  0
 
ov5647_camera_mipi_int    30415  0
 
v4l2_int_device        2897  3 ov5647_camera_mipi_int,ipu_csi_enc,mxc_v4l2_capture
 
at24                    5488  0
 
fxas2100x              6680  0
 
fxos8700                9014  0
 
mxc_dcic                6536  0
 
iwl4965                88394  0
 
iwlegacy              62850  1 iwl4965
 
galcore              226429  2
 
 
</syntaxhighlight>
 
</syntaxhighlight>
  
'''''Input:''''' Connect RPi camera module into CSI interface and capture image<br />
+
 
'''''Output:''''' The image is displayed on HDMI monitor
+
At this point the bandwidth measurement can be tested, showing that WiFi connection was established and is performed very reliably.<br /><br />
 +
'''''Configuration:''''' iMX8M Industrial Module in Commercial and Extended temperature range (AzureWave AW-CM276NF used):
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
root@imx6-openrexultra:~# echo 2 > /sys/bus/i2c/devices/1-0036/ov5647_mode
+
root@imx8mq-voipac:~# iperf3 -c 192.168.241.235 -t 30 -i1
root@imx6-openrexultra:~# gst-launch-1.0 v4l2src device="/dev/video0" ! video/x-bayer,width=1920,height=1080,framerate=30/1 ! queue ! bayer2rgb ! videoconvert ! fbdevsink
+
Connecting to host 192.168.241.235, port 5201
Setting pipeline to PAUSED ...
+
[  5] local 192.168.241.109 port 55212 connected to 192.168.241.235 port 5201
Pipeline is live and does not need PREROLL ...
+
[ ID] Interval          Transfer    Bitrate        Retr  Cwnd
Setting pipeline to PLAYING ...
+
[  5]  0.00-1.00  sec  3.60 MBytes  30.2 Mbits/sec    2  58.0 KBytes     
New clock: GstSystemClock
+
[  5]  1.00-2.00  sec  3.91 MBytes  32.8 Mbits/sec    0  96.2 KBytes     
ERROR: v4l2 capture: unsupported ioctrl!
+
[  5]  2.00-3.00  sec  4.04 MBytes  33.9 Mbits/sec    1   97.6 KBytes     
ERROR: v4l2 capture: unsupported ioctrl!
+
[  5]  3.00-4.00  sec  3.91 MBytes  32.8 Mbits/sec    0  90.5 KBytes     
WARNING: from element /GstPipeline:pipeline0/GstFBDEVSink:fbdevsink0: A lot of buffers are being dropped.
+
[  5]  4.00-5.00  sec  3.73 MBytes  31.3 Mbits/sec    1   96.2 KBytes     
Additional debug info:
+
[  5]  5.00-6.00  sec  4.16 MBytes  34.9 Mbits/sec    0    126 KBytes     
/home/marek/workdir/imx6/yocto/fsl-release-bsp-4.1/build-x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/gstreamer1.0/1.6.0-r0/gstreamer-1.6.0/libs/gst/base/gstbasesink.c(2846): gst_base_sink_is_too_la:
+
[  5]  6.00-7.00  sec  3.73 MBytes  31.3 Mbits/sec    0    147 KBytes     
There may be a timestamping problem, or this computer is too slow.
+
[  5]  7.00-8.00  sec  4.60 MBytes  38.6 Mbits/sec    0    167 KBytes     
mxc_hdmi 20e0000.hdmi_video: Read EDID again
+
[  5]  8.00-9.00  sec  3.73 MBytes  31.3 Mbits/sec    0    182 KBytes     
mxc_hdmi 20e0000.hdmi_video: create default modelist
+
[  5]  9.00-10.00  sec  4.04 MBytes  33.9 Mbits/sec    0    199 KBytes     
EVENT plugin
+
[  5]  10.00-11.00  sec  4.35 MBytes  36.5 Mbits/sec    0    215 KBytes     
WARNING: from element /GstPipeline:pipeline0/GstFBDEVSink:fbdevsink0: A lot of buffers are being dropped.
+
[  5]  11.00-12.00  sec  4.04 MBytes  33.9 Mbits/sec    0    229 KBytes     
Additional debug info:
+
[  5]  12.00-13.00  sec  4.41 MBytes  37.0 Mbits/sec    0    242 KBytes     
/home/marek/workdir/imx6/yocto/fsl-release-bsp-4.1/build-x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/gstreamer1.0/1.6.0-r0/gstreamer-1.6.0/libs/gst/base/gstbasesink.c(2846): gst_base_sink_is_too_la:
+
[  5]  13.00-14.00  sec  2.92 MBytes  24.5 Mbits/sec    0    270 KBytes     
There may be a timestamping problem, or this computer is too slow.
+
[  5]  14.00-15.00  sec  3.98 MBytes  33.4 Mbits/sec    1    226 KBytes     
^Chandling interrupt.
+
[  5]  15.00-16.00  sec  3.91 MBytes  32.8 Mbits/sec    0    250 KBytes     
Interrupt: Stopping pipeline ...
+
[  5]  16.00-17.00  sec  4.72 MBytes  39.6 Mbits/sec    0    264 KBytes     
Execution ended after 0:00:27.103901670
+
[  5]  17.00-18.00  sec  3.54 MBytes  29.7 Mbits/sec    0    270 KBytes     
Setting pipeline to PAUSED ...
+
[  5]  18.00-19.00  sec  4.41 MBytes  37.0 Mbits/sec    1   225 KBytes     
Setting pipeline to READY ...
+
[  5]  19.00-20.00  sec  4.04 MBytes  33.9 Mbits/sec    0    252 KBytes     
Setting pipeline to NULL ...
+
[  5]  20.00-21.00  sec  4.16 MBytes  34.9 Mbits/sec    0    264 KBytes     
Freeing pipeline ...
+
[  5]  21.00-22.00  sec  3.79 MBytes  31.8 Mbits/sec    0   272 KBytes     
power_down_callback: ipu0/csi1
+
[  5]  22.00-23.00  sec  4.04 MBytes  33.9 Mbits/sec    0    272 KBytes     
 +
[  5]  23.00-24.00  sec  3.73 MBytes  31.3 Mbits/sec    0    272 KBytes     
 +
[  5]  24.00-25.00  sec  4.29 MBytes  36.0 Mbits/sec    0    273 KBytes     
 +
[  5]  25.00-26.00  sec  4.60 MBytes  38.6 Mbits/sec    0    286 KBytes     
 +
[  5]  26.00-27.00  sec  3.73 MBytes  31.3 Mbits/sec    0    298 KBytes     
 +
[  5]  27.00-28.00  sec  4.23 MBytes  35.4 Mbits/sec    0    327 KBytes     
 +
[  5]  28.00-29.00  sec  4.23 MBytes  35.4 Mbits/sec    0    369 KBytes     
 +
[  5]  29.00-30.00  sec  4.47 MBytes  37.5 Mbits/sec    0    436 KBytes     
 +
- - - - - - - - - - - - - - - - - - - - - - - - -
 +
[ ID] Interval          Transfer    Bitrate        Retr
 +
[  5]  0.00-30.00  sec  121 MBytes  33.8 Mbits/sec    6            sender
 +
[  5]  0.00-30.00  sec  119 MBytes  33.4 Mbits/sec                  receiver
 +
 
 +
iperf Done.
 
</syntaxhighlight>
 
</syntaxhighlight>
  
=== Alternative test ===
+
'''''Configuration:''''' iMX8M Industrial Module in Industrial temperature range (H&D Wireless SPB228-D-2 used):
'''''Input:''''' Connect RPi camera module into CSI interface and capture image<br />
 
'''''Output:''''' The image is displayed on HDMI monitor
 
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
root@imx6-openrexultra:~# echo 1 > /sys/bus/i2c/devices/1-0036/ov5647_mode
+
root@imx8mq-voipac:~# iperf3 -c 192.168.241.235 -t30 -i1
root@imx6-openrexultra:~# gst-launch-1.0 v4l2src device="/dev/video0" ! video/x-bayer,width=1280,height=720,framerate=30/1 ! queue ! bayer2rgb ! videoconvert ! fbdevsink
+
Connecting to host 192.168.241.235, port 5201
Setting pipeline to PAUSED ...
+
[  5] local 192.168.241.115 port 44276 connected to 192.168.241.235 port 5201
Pipeline is live and does not need PREROLL ...
+
[ ID] Interval          Transfer    Bitrate        Retr  Cwnd
Setting pipeline to PLAYING ...
+
[  5]  0.00-1.00  sec  3.15 MBytes  26.4 Mbits/sec    4  72.1 KBytes     
New clock: GstSystemClock
+
[  5]  1.00-2.00  sec  3.73 MBytes  31.3 Mbits/sec    1   100 KBytes     
ERROR: v4l2 capture: unsupported ioctrl!
+
[  5]  2.00-3.00  sec  3.29 MBytes  27.6 Mbits/sec    0    124 KBytes     
ERROR: v4l2 capture: unsupported ioctrl!
+
[  5]  3.00-4.00  sec  3.48 MBytes  29.2 Mbits/sec    0    144 KBytes     
WARNING: from element /GstPipeline:pipeline0/GstFBDEVSink:fbdevsink0: A lot of buffers are being dropped.
+
[  5]  4.00-5.00  sec  3.60 MBytes  30.2 Mbits/sec    0    160 KBytes     
Additional debug info:
+
[  5]  5.00-6.00  sec  3.17 MBytes  26.6 Mbits/sec    1   122 KBytes     
/home/marek/workdir/imx6/yocto/fsl-release-bsp-4.1/build-x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/gstreamer1.0/1.6.0-r0/gstreamer-1.6.0/libs/gst/base/gstbasesink.c(2846): gst_base_sink_is_too_la:
+
[  5]  6.00-7.00  sec  2.86 MBytes  24.0 Mbits/sec    2    146 KBytes     
There may be a timestamping problem, or this computer is too slow.
+
[  5]  7.00-8.00  sec  3.42 MBytes  28.7 Mbits/sec    0    163 KBytes     
^Chandling interrupt.
+
[  5]  8.00-9.00  sec  3.67 MBytes  30.8 Mbits/sec    0    178 KBytes     
Interrupt: Stopping pipeline ...
+
[  5]  9.00-10.00  sec  3.42 MBytes  28.7 Mbits/sec    0    192 KBytes     
Execution ended after 0:00:06.514209667
+
[  5]  10.00-11.00  sec  3.36 MBytes  28.1 Mbits/sec    0    206 KBytes     
Setting pipeline to PAUSED ...
+
[  5]  11.00-12.00  sec  3.98 MBytes  33.4 Mbits/sec    0    219 KBytes     
Setting pipeline to READY ...
+
[  5]  12.00-13.00  sec  3.23 MBytes  27.1 Mbits/sec    0    272 KBytes     
Setting pipeline to NULL ...
+
[  5]  13.00-14.00  sec  3.79 MBytes  31.8 Mbits/sec    0    344 KBytes     
Freeing pipeline ...
+
[  5]  14.00-15.00  sec  4.16 MBytes  34.9 Mbits/sec    0    441 KBytes     
root@imx6-openrexultra:~# power_down_callback: ipu0/csi1
+
[  5]  15.00-16.00  sec  3.29 MBytes  27.6 Mbits/sec    0    567 KBytes     
 +
[  5]  16.00-17.00  sec  3.75 MBytes  31.4 Mbits/sec    0    279 KBytes     
 +
[  5]  17.00-18.00  sec  2.50 MBytes  21.0 Mbits/sec    1   564 KBytes     
 +
[  5]  18.00-19.00  sec  2.50 MBytes  21.0 Mbits/sec    0    612 KBytes     
 +
[  5]  19.00-20.00  sec  3.75 MBytes  31.5 Mbits/sec    1    474 KBytes     
 +
[  5]  20.00-21.00  sec  5.00 MBytes  42.0 Mbits/sec    0    503 KBytes     
 +
[  5]  21.00-22.00  sec  2.50 MBytes  21.0 Mbits/sec    0    519 KBytes     
 +
[  5]  22.00-23.00  sec  3.75 MBytes  31.5 Mbits/sec    0    527 KBytes     
 +
[  5]  23.00-24.00  sec  3.75 MBytes  31.5 Mbits/sec    0    529 KBytes     
 +
[  5]  24.00-25.00  sec  3.75 MBytes  31.5 Mbits/sec    1    414 KBytes     
 +
[  5]  25.00-26.00  sec  3.75 MBytes  31.5 Mbits/sec    0    462 KBytes     
 +
[  5]  26.00-27.00 sec  3.75 MBytes  31.5 Mbits/sec    0    495 KBytes     
 +
[  5]  27.00-28.00  sec  2.50 MBytes  21.0 Mbits/sec    0    513 KBytes     
 +
[  5]  28.00-29.00  sec  3.75 MBytes  31.5 Mbits/sec    0    526 KBytes     
 +
[  5]  29.00-30.00  sec  3.75 MBytes  31.5 Mbits/sec    1    369 KBytes     
 +
- - - - - - - - - - - - - - - - - - - - - - - - -
 +
[ ID] Interval          Transfer    Bitrate        Retr
 +
[  5]  0.00-30.00  sec  104 MBytes  29.2 Mbits/sec  12            sender
 +
[  5]  0.00-30.00  sec  101 MBytes  28.2 Mbits/sec                  receiver
 +
 
 +
iperf Done.
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Software integration and additional commands or settings of CSI camera interface are available on separate [[iMX6 OpenRex Camera|iMX6 OpenRex Camera page]].
+
== Bluetooth ==
 +
'''''Note:''''' This audio section was tested with the iMX8M Industrial Module in Max and Pro configurations. For Basic configuration, audio capabilities can be achieved via SAI header located on the baseboard. For more information see [[iMX8M Industrial Development Kit|the iMX8M Industrial Module comparison]].<br /><br />
 +
 
 +
'''''Input:''''' None<br />
 +
'''''Output:''''' Remote device is recognized after scan<br />
 +
 
 +
<syntaxhighlight lang="bash">
 +
# attach module
 +
root@imx8mq-voipac:~# hciattach /dev/ttymxc2 any 115200 flow                                                   
 +
[  63.137693] Bluetooth: HCI UART driver ver 2.3                                                             
 +
[  63.142196] Bluetooth: HCI UART protocol H4 registered                                                     
 +
[  63.147407] Bluetooth: HCI UART protocol BCSP registered                                                   
 +
[  63.153061] Bluetooth: HCI UART protocol LL registered                                                     
 +
[  63.158263] Bluetooth: HCI UART protocol ATH3K registered                                                   
 +
[  63.163719] Bluetooth: HCI UART protocol Three-wire (H5) registered                                         
 +
[  63.170309] Bluetooth: HCI UART protocol Broadcom registered                                               
 +
[  63.176113] Bluetooth: HCI UART protocol QCA registered                                                     
 +
Device setup complete                                           
 +
 
 +
# put hci0 device up
 +
root@imx8mq-voipac:~# hciconfig hci0 up
 +
 
 +
# scan for remote bluetooth devices (enable bluetooth on phone and make it discoverable)
 +
root@imx8mq-voipac:~# hcitool  scan                                                                           
 +
Scanning ...                    
 +
Devices:
 +
    hci0    00:0D:18:01:5A:B3
 +
</syntaxhighlight>
  
 
== Ethernet ==
 
== Ethernet ==
Line 297: Line 548:
 
'''''Note:''''' MAC address should be identical with the address on the sticker placed on the board
 
'''''Note:''''' MAC address should be identical with the address on the sticker placed on the board
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
root@imx6-openrexultra:~# ip addr show dev eth0
+
root@imx8mq-voipac:~# ip addr show dev eth0
4: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
+
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
     link/ether 00:0d:15:00:d1:75 brd ff:ff:ff:ff:ff:ff
+
     link/ether 00:0d:15:01:50:92 brd ff:ff:ff:ff:ff:ff
 +
    inet 192.168.10.122/24 brd 192.168.10.255 scope global dynamic eth0
 +
      valid_lft 86103sec preferred_lft 86103sec
 +
    inet6 fe80::20d:15ff:fe01:5092/64 scope link
 +
      valid_lft forever preferred_lft forever
 
</syntaxhighlight>
 
</syntaxhighlight>
  
'''''Input:''''' Plug Ethernet cable into connector and issue DHCP command<br />
+
'''''Input:''''' Plug Ethernet cable into connector<br />
 
'''''Output:''''' IPv4 address is assigned
 
'''''Output:''''' IPv4 address is assigned
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
root@imx6-openrexultra:~# dmesg | tail
+
[  348.300585] fec 30be0000.ethernet eth0: Link is Down
...
+
[  350.350853] fec 30be0000.ethernet eth0: Link is Up - 100Mbps/Full - flow control off
fec 2188000.ethernet eth0: Link is Down
+
</syntaxhighlight>
fec 2188000.ethernet eth0: Link is Up - 100Mbps/Full - flow control off
+
 
 +
== PCI Express socket + Micro SIM slot ==
 +
'''''Note:''''' This audio section was tested with the iMX8M Industrial Module in Max and Pro configurations. For Basic configuration, audio capabilities can be achieved via SAI header located on the baseboard. For more information see [[iMX8M Industrial Development Kit|the iMX8M Industrial Module comparison]].<br /><br />
 +
 
 +
'''''Note:''''' Only the Basic configuration of iMX8M Industrial Module provides access to PCI Express signals via PCIe Mini and M.2 key B sockets soldered on the baseboard, instead of using the interface for WiFi and Bluetooth module on the COM.<br /><br />
 +
 
 +
NOTE: Add commands and logs while using this Wireless card<br /><br />
 +
[[image:iMX8M_Industrial_Module_Basic-mPCI_Express_Wireless_Card.jpg|800px]]
 +
<br /><br />
 +
After the successful software wireless card porting, the speed test was performed using Mini PCI Express card Intel 512AN_MMW, during which it reached more than 30 Mbps connection both on the sending and receiving end:
 +
<syntaxhighlight lang="bash">
 +
root@imx8mq-voipac:~# iperf3 -c 192.168.241.235 -t30 -i1
 +
Connecting to host 192.168.241.235, port 5201
 +
[  5] local 192.168.241.114 port 43638 connected to 192.168.241.235 port 5201
 +
[ ID] Interval          Transfer    Bitrate        Retr  Cwnd
 +
[  5]  0.00-1.00  sec  3.14 MBytes  26.3 Mbits/sec    0    204 KBytes     
 +
[  5]  1.00-2.00  sec  2.92 MBytes  24.5 Mbits/sec    0    325 KBytes     
 +
[  5]  2.00-3.00  sec  6.66 MBytes  55.8 Mbits/sec    0    568 KBytes     
 +
[  5]  3.00-4.00  sec  5.00 MBytes  41.9 Mbits/sec    0    795 KBytes     
 +
[  5]  4.00-5.00  sec  6.25 MBytes  52.4 Mbits/sec    1    765 KBytes     
 +
[  5]  5.00-6.00  sec  5.00 MBytes  41.9 Mbits/sec    0    850 KBytes     
 +
[  5]  6.00-7.00  sec  6.25 MBytes  52.4 Mbits/sec    1    649 KBytes     
 +
[  5]  7.00-8.00  sec  5.00 MBytes  41.9 Mbits/sec    7    494 KBytes     
 +
[  5]  8.00-9.00  sec  3.75 MBytes  31.5 Mbits/sec  54    119 KBytes     
 +
[  5]  9.00-10.00  sec  3.75 MBytes  31.5 Mbits/sec  25    454 KBytes     
 +
[  5]  10.00-11.00  sec  6.25 MBytes  52.5 Mbits/sec    0    684 KBytes     
 +
[  5]  11.00-12.00  sec  6.25 MBytes  52.4 Mbits/sec    1    631 KBytes     
 +
[  5]  12.00-13.00  sec  6.25 MBytes  52.4 Mbits/sec    0    708 KBytes     
 +
[  5]  13.00-14.00  sec  5.00 MBytes  41.9 Mbits/sec    0    772 KBytes     
 +
[  5]  14.00-15.00  sec  3.75 MBytes  31.5 Mbits/sec    1    564 KBytes     
 +
[  5]  15.00-16.00  sec  6.25 MBytes  52.5 Mbits/sec    0    614 KBytes     
 +
[  5]  16.00-17.00  sec  5.00 MBytes  41.9 Mbits/sec    0    641 KBytes     
 +
[  5]  17.00-18.00  sec  5.00 MBytes  41.9 Mbits/sec    0    662 KBytes     
 +
[  5]  18.00-19.00  sec  3.75 MBytes  31.5 Mbits/sec  84    175 KBytes     
 +
[  5]  19.00-20.00  sec  1.25 MBytes  10.5 Mbits/sec  198    161 KBytes     
 +
[  5]  20.00-21.00  sec  2.50 MBytes  21.0 Mbits/sec  30  90.5 KBytes     
 +
[  5]  21.00-22.00  sec  2.50 MBytes  21.0 Mbits/sec    2  90.5 KBytes     
 +
[  5]  22.00-23.00  sec  3.75 MBytes  31.5 Mbits/sec    0    120 KBytes     
 +
[  5]  23.00-24.00  sec  3.75 MBytes  31.5 Mbits/sec    0    141 KBytes     
 +
[  5]  24.00-25.00  sec  5.00 MBytes  42.0 Mbits/sec    0    160 KBytes     
 +
[  5]  25.00-26.00  sec  2.50 MBytes  21.0 Mbits/sec    0    174 KBytes     
 +
[  5]  26.00-27.00  sec  2.50 MBytes  21.0 Mbits/sec    0    184 KBytes     
 +
[  5]  27.00-28.00  sec  3.75 MBytes  31.5 Mbits/sec    0    198 KBytes     
 +
[  5]  28.00-29.00  sec  3.75 MBytes  31.5 Mbits/sec    0    211 KBytes     
 +
[  5]  29.00-30.00  sec  2.50 MBytes  21.0 Mbits/sec    0    219 KBytes     
 +
- - - - - - - - - - - - - - - - - - - - - - - - -
 +
[ ID] Interval          Transfer    Bitrate        Retr
 +
[  5]  0.00-30.00  sec  129 MBytes  36.1 Mbits/sec  404            sender
 +
[  5]  0.00-30.00  sec  126 MBytes  35.3 Mbits/sec                  receiver
 +
 
 +
iperf Done.
 +
</syntaxhighlight>
 +
 
 +
== M.2 key B socket + Micro SIM slot ==
 +
'''''Note:''''' Only the Basic configuration of iMX8M Industrial Module provides access to PCI Express signals via PCIe Mini and M.2 key B sockets soldered on the baseboard, instead of using the interface for WiFi and Bluetooth module on the COM.<br /><br />
 +
 
 +
Note: Use SATA M.2 card as testing example?
 +
 
 +
== USB 3.0 ==
 +
NOTE: Perform read/write performance test
 +
'''''Input:''''' Plug USB flash drive into USB connector<br />
 +
'''''Output:''''' Plugged USB device is listed
 +
<syntaxhighlight lang="bash">
 +
root@vmx25:~# lsusb
 +
Bus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
 +
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 +
Bus 002 Device 003: ID 125f:d31a A-DATA Technology Co., Ltd.
 +
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 +
</syntaxhighlight>
 +
 
 +
'''''Input:''''' Generate a dummy file and copy it into USB flash drive<br />
 +
'''''Output:''''' Generated file and copied file have the same checksum
 +
<syntaxhighlight lang="bash">
 +
root@imx8mq-voipac:~# mount /dev/sda1 /media/
 +
root@imx8mq-voipac:~# rm -f file.txt /media/file.txt
 +
root@imx8mq-voipac:~# dd if=/dev/urandom of=file.txt count=1024 bs=1024
 +
1024+0 records in
 +
1024+0 records out
 +
root@imx8mq-voipac:~# cp file.txt /media/
 +
root@imx8mq-voipac:~# md5sum file.txt /media/file.txt
 +
200a9fd3e9850fcedf85ed50d4c4733d  file.txt
 +
200a9fd3e9850fcedf85ed50d4c4733d  /media/file.txt
 +
root@imx8mq-voipac:~# rm file.txt /media/file.txt
 +
root@imx8mq-voipac:~# umount /media
 +
</syntaxhighlight>
 +
 
 +
== USB-C ==
 +
This connector is primarily used for flashing new binaries into the iMX8M Industrial Module. More information can be found on the dedicated [[iMX8M Industrial Flashing Procedure|module flashing page]].<br /><br />
 +
 
 +
Alternatively, USB-C connector can be utilised as general USB storage:<br />
 +
[[image:iMX8M_Industrial_Development_Kit_-_USB-C_flash_drive_plugged_in.png|800px]]
 +
<syntaxhighlight lang="bash">
 +
root@imx8mq-voipac:~# fdisk -l /dev/sda
 +
Disk /dev/sda: 29 GB, 30784094208 bytes, 60125184 sectors
 +
3742 cylinders, 255 heads, 63 sectors/track
 +
Units: sectors of 1 * 512 = 512 bytes
 +
 
 +
Device  Boot StartCHS    EndCHS        StartLBA    EndLBA    Sectors  Size Id Type
 +
/dev/sda1    0,0,33      1023,254,63        32  60125183  60125152 28.6G  c Win95 FAT32 (LBA)
 +
</syntaxhighlight>
 +
 
 +
'''''Input:''''' Generate a dummy file and copy it into USB flash drive<br />
 +
'''''Output:''''' Generated file and copied file have the same checksum
 +
<syntaxhighlight lang="bash">
 +
root@imx8mq-voipac:~# mount /dev/sda1 /media/
 +
root@imx8mq-voipac:~# rm -f file.txt /media/file.txt
 +
root@imx8mq-voipac:~# dd if=/dev/urandom of=file.txt count=1024 bs=1024
 +
1024+0 records in
 +
1024+0 records out
 +
root@imx8mq-voipac:~# cp file.txt /media/
 +
root@imx8mq-voipac:~# md5sum file.txt /media/file.txt
 +
200a9fd3e9850fcedf85ed50d4c4733d  file.txt
 +
200a9fd3e9850fcedf85ed50d4c4733d  /media/file.txt
 +
root@imx8mq-voipac:~# rm file.txt /media/file.txt
 +
root@imx8mq-voipac:~# umount /media
 +
</syntaxhighlight>
 +
 
 +
== USB Micro-B serial console ==
 +
'''''Input:''''' Connect USB console cable into the baseboard connector and open serial console with baud rate 115200 8n1<br />
 +
'''''Output:''''' The board is controlled and responsive to serial terminal commands
 +
<syntaxhighlight lang="bash">
 +
root@imx8mq-voipac:~# uname -a
 +
Linux imx8mq-voipac 5.4.147-imx-5.4.24-2.1.0+ga9d96bff565a #1 SMP PREEMPT Thu Sep 16 20:18:09 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 +
== UART serial console ==
 +
Serial console is utilized via USB Micro-B connector by default. Alternatively, the communication can be established using UART headers and TTL-232R-3V3 - FTDI cable.<br /><br />
 +
NOTE:Describe jumpers position<br /><br />
 +
[[image:iMX8M_Industrial_Development_Kit-Serial_console_via_UART1.jpg|800px]]<br /><br />
 +
'''''Note:'''''Usage of UART2 CONSOLE to communicate by default requires changes in Yocto binaries and new compilation of image files. <br /><br />
 +
[[image:iMX8M_Industrial_Development_Kit-Serial_console_via_UART2.jpg|800px]]
 +
 +
== SD card ==
 +
NOTE: Perform read/write performance test
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
root@imx6-openrexultra:~# udhcpc -i eth0
+
root@imx8mq-voipac:~# fdisk -l
udhcpc (v1.23.2) started
+
Disk /dev/mmcblk0: 15 GB, 15758000128 bytes, 30777344 sectors
Sending discover...
+
240448 cylinders, 4 heads, 32 sectors/track
Sending discover...
+
Units: sectors of 1 * 512 = 512 bytes
Sending select for 192.168.1.39...
+
 
Lease of 192.168.1.39 obtained, lease time 600
+
Device      Boot StartCHS    EndCHS        StartLBA    EndLBA    Sectors  Size Id Type
/etc/udhcpc.d/50default: Adding DNS 192.168.1.1
+
/dev/mmcblk0p1 *  128,0,1    1023,3,32        16384    186775    170392 83.1M  c Win95 FAT32 (LBA)
/etc/udhcpc.d/50default: Adding DNS 192.168.1.2
+
/dev/mmcblk0p2    1023,3,32  1023,3,32      196608    1030993    834386  407M 83 Linux
 +
Disk /dev/mmcblk1: 14 GB, 15485370368 bytes, 30244864 sectors
 +
236288 cylinders, 4 heads, 32 sectors/track
 +
Units: sectors of 1 * 512 = 512 bytes
 +
 
 +
Device      Boot StartCHS    EndCHS        StartLBA    EndLBA    Sectors  Size Id Type
 +
/dev/mmcblk1p1 *  128,0,1     1023,3,32        16384    186775    170392 83.1M  c Win95 FAT32 (LBA)
 +
/dev/mmcblk1p2    1023,3,32  1023,3,32      196608    1030993    834386  407M 83 Linux
 +
Disk /dev/sda: 14 GB, 15376318464 bytes, 30031872 sectors
 +
1869 cylinders, 255 heads, 63 sectors/track
 +
Units: sectors of 1 * 512 = 512 bytes
 +
 
 +
Device  Boot StartCHS    EndCHS        StartLBA    EndLBA    Sectors  Size Id Type
 +
/dev/sda1    0,0,33      1023,254,63        32  30031871  30031840 14.3G  c Win95 FAT32 (LBA)
 +
root@imx8mq-voipac:~#
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
== HDMI Output ==
 
== HDMI Output ==
'''''Input:''''' Connect LCD monitor to the SBC<br />
+
'''''Input:''''' Connect LCD monitor to the development kit<br />
 
'''''Output:''''' Desktop UI is displayed correctly<br />
 
'''''Output:''''' Desktop UI is displayed correctly<br />
 
[[image:iMX6_TinyRex_Development_Kit-HDMI_terminal.png|580px]]
 
[[image:iMX6_TinyRex_Development_Kit-HDMI_terminal.png|580px]]
  
== I2C ==
+
== DisplayPort Output ==
'''''Input:''''' Scan I2C bus 0<br />
+
NOTE: A different boot file image and/or device tree is required!<br /><br />
'''''Output:''''' Available devices:<br />
+
'''''Input:''''' Connect LCD monitor with DisplayPort to the development kit<br />
* PMIC control (0x08)
+
'''''Output:''''' Desktop UI is displayed correctly<br />
* Compass + Accelerometer FXOS8700 (0x1C)
+
[[image:iMX6_TinyRex_Development_Kit-HDMI_terminal.png|580px]]
* Gyroscope FXAS21002 (0x20)
+
 
* EEPROM (0x50/0x57)
+
== JTAG ==
 +
[[image:iMX8M Industrial Development Kit-JTAG communication setup.jpg|800px]]<br /><br />
 +
To verify that i.MX8M CPU JTAG is functional, following command identifies and connects to the CPU's debug point:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
root@imx6-openrexultra:~# i2cdetect -y 0
+
J-Link> jtagid
    0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
 
00:          -- -- -- -- -- UU -- -- -- -- -- -- --
 
10: -- -- -- -- -- -- -- -- -- -- -- -- UU -- -- --
 
20: UU -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
 
50: UU UU UU UU UU UU UU UU -- -- -- -- -- -- -- --
 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
 
70: -- -- -- -- -- -- -- --   
 
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
[[image:iMX8M Industrial Development Kit-JTAG communication log.jpg|800px]]
  
'''''Input:''''' Scan I2C bus 1<br />
+
== Real Time Clock ==
'''''Output:''''' Available devices:<br />
+
RTC chip is detected by Linux kernel after start-up:
* Audio SGTL5000 (0x0A)
 
* CSI Camera (0x36)
 
* Humidity sensor SHT21 (0x40)
 
* Temperature sensor TMP101 (0x48)
 
* HDMI Output EDID (0x50)
 
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
root@imx6-openrexultra:~# i2cdetect -y 1
+
root@imx8mq-voipac:~# dmesg | grep rtc
    0  1 2  3  4  5  6  7  8  9  a  b  c  d  e  f
+
[    1.562666] snvs_rtc 30370000.snvs:snvs-rtc-lp: registered as rtc0
00:         -- -- -- -- -- -- -- UU -- -- -- -- --  
+
[    2.289791] rtc-pcf8563 1-0051: low voltage detected, date/time is not reliable.
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
+
[    2.297832] rtc-pcf8563 1-0051: registered as rtc1
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
+
[    2.392900] [drm] Cannot find any crtc or sizes
30: -- -- -- -- -- -- UU -- -- -- -- -- -- -- -- --
+
[    2.400347] [drm] Cannot find any crtc or sizes
40: UU -- -- -- -- -- -- -- UU -- -- -- -- -- -- --
+
[    2.401383] [drm] Cannot find any crtc or sizes
50: UU -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
+
[    3.053517] snvs_rtc 30370000.snvs:snvs-rtc-lp: setting system clock to 1970-01-01T00:09:04 UTC (544)
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
+
60.247133] rtc-pcf8563 1-0051: low voltage detected, date/time is not reliable.
70: -- -- -- -- -- -- -- --       
 
 
</syntaxhighlight>
 
</syntaxhighlight>
  
'''''Input:''''' Scan I2C bus 2<br />
+
CPU correctly recognises RTC on the I2C1 bus, the chip is under usage by the kernel:
'''''Output:''''' This I2C bus is reserved for external use and accessible via connectors<br />
 
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
root@imx6-openrexultra:~# i2cdetect -y 2
+
root@imx8mq-voipac:~# i2cdetect -r -y 1
 
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
 
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --  
+
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --  
+
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --  
+
20: -- -- -- UU -- -- -- UU -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --  
+
30: -- -- -- -- -- -- -- -- -- -- -- -- -- UU -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --  
+
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --  
+
50: -- UU -- UU -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --  
+
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --  
+
70: -- -- -- -- -- -- -- --
 
</syntaxhighlight>
 
</syntaxhighlight>
  
'''''Input:''''' Trigger I2C EEPROM detection<br />
+
Set up the current date and time, show the actual values:
'''''Output:''''' I2C EEPROM is detected
+
 
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
root@imx6-openrexultra:~# echo -n "0-0050" > /sys/bus/i2c/drivers/at24/unbind
+
root@imx8mq-voipac:~# date -s "2023-1-24 18:37:05"
root@imx6-openrexultra:~# echo -n "0-0050" > /sys/bus/i2c/drivers/at24/bind
+
Tue Jan 24 18:37:05 UTC 2023
at24 0-0050: 2048 byte 24c16 EEPROM, writable, 1 bytes/write
+
root@imx8mq-voipac:~# timedatectl
 +
              Local time: Tue 2023-01-24 18:37:09 UTC
 +
          Universal time: Tue 2023-01-24 18:37:09 UTC
 +
                RTC time: Thu 1970-01-01 00:11:24
 +
                Time zone: UTC (UTC, +0000)
 +
System clock synchronized: no
 +
              NTP service: active
 +
          RTC in local TZ: no
 +
root@imx8mq-voipac:~# grep pcf8563 /proc/interrupts
 +
140:          0          0          0          0  gpio-mxc  5 Level    rtc-pcf8563
 +
root@imx8mq-voipac:~# echo +2 > /sys/class/rtc/rtc1/wakealarm
 +
[  154.338851] rtc-pcf8563 1-0051: low voltage detected, date/time is not reliable.
 +
sh: write error: Invalid argument
 +
root@imx8mq-voipac:~# grep pcf8563 /proc/interrupts
 +
140:          0          0          0          0  gpio-mxc  5 Level    rtc-pcf8563
 
</syntaxhighlight>
 
</syntaxhighlight>
  
'''''Input:''''' Write and read data from I2C EEPROM<br />
+
== I2C EEPROM Memory - on module ==
 +
'''''Note:''''' This audio section was tested with the iMX8M Industrial Module in Max and Pro configurations. For Basic configuration, audio capabilities can be achieved via SAI header located on the baseboard. For more information see [[iMX8M Industrial Development Kit|the iMX8M Industrial Module comparison]].
 +
 
 +
== SPI Flash Memory - on baseboard ==
 +
'''''Input:''''' Trigger M25P80 flash detection<br />
 +
'''''Output:''''' SPI Flash sst25vf032b is detected
 +
<syntaxhighlight lang="bash">
 +
root@imx6-openrexultra:~# echo -n "spi2.1" > /sys/bus/spi/drivers/m25p80/unbind
 +
root@imx6-openrexultra:~# echo -n "spi2.1" > /sys/bus/spi/drivers/m25p80/bind
 +
m25p80 spi2.1: found sst26vf032b, expected m25p32
 +
m25p80 spi2.1: sst26vf032b (4096 Kbytes)
 +
</syntaxhighlight>
 +
 
 +
'''''Input:''''' Write and read data from M25P80 flash memory<br />
 
'''''Output:''''' If successful, console text 'Data are the same' should appear
 
'''''Output:''''' If successful, console text 'Data are the same' should appear
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
root@imx6-openrexultra:~# echo -n "0123" > eeprom_in
+
root@imx6-openrexultra:~# echo -n "0123" > mtd_in
root@imx6-openrexultra:~# cat eeprom_in > /sys/bus/i2c/devices/0-0050/eeprom
+
root@imx6-openrexultra:~# mtd_debug write /dev/mtd0 0 4 mtd_in
root@imx6-openrexultra:~# head -c 4 /sys/bus/i2c/devices/0-0050/eeprom > eeprom_out
+
Copied 4 bytes from mtd_in to address 0x00000000 in flash
root@imx6-openrexultra:~# diff eeprom_in eeprom_out && echo "Data are the same"
+
root@imx6-openrexultra:~# mtd_debug read /dev/mtd0 0 4 mtd_out
 +
Copied 4 bytes from address 0x00000000 in flash to mtd_out
 +
root@imx6-openrexultra:~# diff mtd_in mtd_out && echo "Data are the same"
 
Data are the same
 
Data are the same
 
</syntaxhighlight>
 
</syntaxhighlight>
  
=== Altarnative test ===
+
NOTE: Choose which code to keep!
'''''Input:''''' List I2C bus 0, 1 and 2<br />
 
'''''Output:''''' Available devices are displayed
 
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
root@imx6-openrexultra:~# ls /sys/bus/i2c/devices/i2c-0 | grep ^[0]
+
root@imx8mq-voipac:~# chmod +x devmem2
0-0008
+
root@imx8mq-voipac:~# .devmem2
0-001c
+
-sh: .devmem2: not found
0-0020
+
root@imx8mq-voipac:~# ./devmem2
0-0050
+
 
0-0051
+
Usage:  ./devmem2 { address } [ type [ data ] ]
0-0052
+
        address : memory address to act upon
0-0053
+
        type    : access operation type : [b]yte, [h]alfword, [w]ord
0-0054
+
        data    : data to be written
0-0055
+
 
0-0056
+
root@imx8mq-voipac:~# ./devmem2 0x30340008 w
0-0057
+
/dev/mem opened.
 +
Memory mapped at address 0xffff90879000.
 +
Value at address 0x30340008 (0xffff90879008): 0x0
 +
root@imx8mq-voipac:~# ./devmem2 0x30340014 w
 +
/dev/mem opened.[ 565.553857] audit: type=1701 audit(1660073163.857:3): auid=42                                                                        94967295 uid=0 gid=0 ses=4294967295 pid=389 comm="devmem2" exe="/home/root/devme                                                                        m2" sig=7 res=1
 +
 
 +
Memory mapped at address 0xffff97f2c000.
 +
Bus error
 +
root@imx8mq-voipac:~# ./devmem2 0x3033018 w
 +
/dev/mem opened.[  791.295664] audit: type=1701 audit(1660073389.596:4): auid=42                                                                        94967295 uid=0 gid=0 ses=4294967295 pid=391 comm="devmem2" exe="/home/root/devme                                                                        m2" sig=7 res=1
 +
 
 +
Memory mapped at address 0xffffa6ec6000.
 +
Bus error
 
</syntaxhighlight>
 
</syntaxhighlight>
  
== Sensors ==
+
== ON/OFF button ==
'''''Input:''''' Test Compass, Accelerometer (FXOS8700) and Gyroscope (FXAS21002) sensors<br />
+
'''''Input:''''' Press the ON/OFF button<br />
'''''Output:''''' Sensors are registered by the Linux kernel
+
'''''Output:''''' The board will shutdown. By pressing longer again, the board starts booting.<br />
 +
 
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
root@imx6-openrexultra:~# echo 1 > /sys/devices/virtual/misc/FreescaleAccelerometer/enable
+
[  OK  ] Stopped target Sound Card.
root@imx6-openrexultra:~# echo 1 > /sys/devices/virtual/misc/FreescaleMagnetometer/enable
+
[  OK  ] Stopped target System Time Synchronized.
root@imx6-openrexultra:~# echo 1 > /sys/devices/virtual/misc/FreescaleGyroscope/enable
+
[  OK  ] Stopped target System Time Set.
misc FreescaleGyroscope: mma enable setting active
+
[  OK  ] Stopped target Timers.
root@imx6-openrexultra:~# evtest
+
[  OK  ] Stopped Daily Cleanup of Temporary Directories.
No device specified, trying to scan all of /dev/input/event*
+
        Stopping Save/Restore Sound Card State...
Available devices:
+
        Stopping Kernel Logging Service...
/dev/input/event0:      gpio_ir_recv
+
        Stopping System Logging Service...
/dev/input/event1:      MCE IR Keyboard/Mouse (gpio-rc-recv)
+
        Stopping Getty on tty1...
/dev/input/event2:      gpio-keys
+
        Stopping Serial Getty on ttymxc0...
/dev/input/event3:      fxos8700
+
        Stopping Hostname Service...
/dev/input/event4:     fxas2100x
+
        Stopping Load/Save Random Seed...
Select the device event number [0-4]: 3
+
[  OK  ] Stopped Kernel Logging Service.
...
+
[  OK  ] Stopped System Logging Service.
root@imx6-openrexultra:~# evtest
+
[  OK  ] Stopped Getty on tty1.
No device specified, trying to scan all of /dev/input/event*
+
[  OK  ] Stopped Serial Getty on ttymxc0.
Available devices:
+
[  OK  ] Stopped Hostname Service.
/dev/input/event0:     gpio_ir_recv
+
[  OK  ] Stopped Save/Restore Sound Card State.
/dev/input/event1:      MCE IR Keyboard/Mouse (gpio-rc-recv)
+
[  OK  ] Stopped Load/Save Random Seed.
/dev/input/event2:     gpio-keys
+
[  OK  ] Stopped Session c1 of user root.
/dev/input/event3:     fxos8700
+
[  OK  ] Removed slice system-getty.slice.
/dev/input/event4:     fxas2100x
+
[  OK  ] Removed slice system-serial\x2dgetty.slice.
Select the device event number [0-4]: 4
+
        Stopping Login Service...
...
+
        Stopping User Manager for UID 0...
root@imx6-openrexultra:~# echo 0 > /sys/devices/virtual/misc/FreescaleAccelerometer/enable
+
[  OK  ] Stopped User Manager for UID 0.
root@imx6-openrexultra:~# echo 0 > /sys/devices/virtual/misc/FreescaleMagnetometer/enable
+
        Stopping User Runtime Directory /run/user/0...
root@imx6-openrexultra:~# echo 0 > /sys/devices/virtual/misc/FreescaleGyroscope/enable
+
[  OK  ] Unmounted /run/user/0.
 +
[  OK  ] Stopped User Runtime Directory /run/user/0.
 +
[  OK  ] Removed slice User Slice of UID 0.
 +
        Stopping D-Bus System Message Bus...
 +
        Stopping Permit User Sessions...
 +
[  OK  ] Stopped D-Bus System Message Bus.
 +
[  OK  ] Stopped Login Service.
 +
[  OK  ] Stopped Permit User Sessions.
 +
[  OK  ] Stopped target Basic System.
 +
[  OK  ] Stopped target Network.
 +
[  OK  ] Stopped target Paths.                                           
 +
[  OK  ] Stopped Dispatch Password ��…ts to Console Directory Watch.     
 +
[  OK  ] Stopped Forward Password R��…uests to Wall Directory Watch.     
 +
[  OK  ] Stopped target Remote File Systems.                             
 +
[  OK  ] Stopped target Slices.                                           
 +
[  OK  ] Removed slice User and Session Slice.
 +
[  OK  ] Stopped target Sockets.
 +
[  OK  ] Closed D-Bus System Message Bus Socket.
 +
[  OK  ] Closed dropbear.socket.
 +
[  OK  ] Stopped target System Initialization.
 +
[  OK  ] Closed Syslog Socket.
 +
        Stopping Network Name Resolution...
 +
        Stopping Network Time Synchronization...
 +
[  OK  ] Stopped Network Name Resolution.
 +
[  OK  ] Stopped Network Time Synchronization.
 +
        Stopping Network Service...
 +
[  OK  ] Stopped Create Volatile Files and Directories.
 +
[  OK  ] Stopped target Local File Systems.
 +
        Unmounting Temporary Directory (/tmp)...
 +
        Unmounting /var/volatile...
 +
[  OK  ] Stopped Network Service.
 +
[  OK  ] Unmounted Temporary Directory (/tmp).
 +
[  OK  ] Unmounted /var/volatile.
 +
[  OK  ] Stopped target Local File Systems (Pre).
 +
[  OK  ] Stopped target Swap.
 +
[  OK  ] Reached target Unmount All Filesystems.
 +
[  OK  ] Stopped Remount Root and Kernel File Systems.
 +
[  OK  ] Stopped Apply Kernel Variables.
 +
[  OK  ] Stopped Load Kernel Modules.
 +
[  OK  ] Stopped Create Static Device Nodes in /dev.
 +
[  OK  ] Reached target Shutdown.
 +
[  OK  ] Reached target Final Step.
 +
[  OK  ] Started Power-Off.
 +
[  OK  ] Reached target Power-Off.
 +
[  15.911216] systemd-shutdown[1]: Syncing filesystems and block devices.
 +
[   15.920832] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
 +
[  15.936588] systemd-journald[247]: Received SIGTERM from PID 1 (systemd-shutdow).
 +
[  15.959340] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
 +
[  15.975454] systemd-shutdown[1]: Unmounting file systems.
 +
[  15.982656] [353]: Remounting '/' read-only in with options '(null)'.
 +
[  16.020576] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
 +
[  16.031646] systemd-shutdown[1]: All filesystems unmounted.
 +
[  16.037301] systemd-shutdown[1]: Deactivating swaps.
 +
[  16.042421] systemd-shutdown[1]: All swaps deactivated.
 +
[  16.047678] systemd-shutdown[1]: Detaching loop devices.
 +
[   16.055830] systemd-shutdown[1]: All loop devices detached.
 +
[  16.061424] systemd-shutdown[1]: Detaching DM devices.
 +
[  16.066794] systemd-shutdown[1]: All DM devices detached.
 +
[  16.072226] systemd-shutdown[1]: All filesystems, swaps, loop devices and DM devices detached.
 +
[  16.086744] systemd-shutdown[1]: Syncing filesystems and block devices.
 +
[  16.093483] systemd-shutdown[1]: Powering off.
 +
[  16.097961] kvm: exiting hardware virtualization
 +
[  16.097991] imx-sdma 30bd0000.sdma: external firmware not found, using ROM firmware
 +
[  16.098546] cfg80211: failed to load regulatory.db
 +
[  16.101341] imx-sdma 302c0000.sdma: loaded firmware 4.5
 +
[  16.166426] mwifiex_pcie 0000:01:00.0: info: shutdown mwifiex...
 +
[  16.173169] mwifiex_pcie 0000:01:00.0: PREP_CMD: card is removed
 +
[  16.240963] mwifiex_pcie 0000:01:00.0: performing cancel_work_sync()...
 +
[  16.247595] mwifiex_pcie 0000:01:00.0: cancel_work_sync() done
 +
[  16.288309] reboot: Power down
 
</syntaxhighlight>
 
</syntaxhighlight>
  
'''''Input:''''' Test SHT21 humidity sensor<br />
+
Then pressing ON/OFF button again:
'''''Output:''''' Sensor provides actual humidity and temperature values
+
 
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
root@imx6-openrexultra:~# cat /sys/devices/soc0/soc/2100000.aips-bus/21a4000.i2c/i2c-1/1-0040/hwmon/hwmon*/humidity1_input
+
U-Boot 2020.04-imx_v2020.04_5.4.24_2.1.0+g4979a99482 (May 30 2020 - 06:50:01 +0000)
20741
+
 
root@imx6-openrexultra:~# cat /sys/devices/soc0/soc/2100000.aips-bus/21a4000.i2c/i2c-1/1-0040/hwmon/hwmon*/temp1_input
+
CPU:   i.MX8MQLite rev2.1 1300 MHz (running at 800 MHz)
30853
+
CPU:  Industrial temperature grade (-40C to 105C) at 62C
 +
Reset cause: POR
 +
Model: Voipac i.MX8MQ EVK
 +
DRAM:  2 GiB
 +
MMC:  FSL_SDHC: 0, FSL_SDHC: 1
 +
Loading Environment from MMC... OK
 +
[*]-Video Link 0imx8m_hdmi_probe
 +
....
 
</syntaxhighlight>
 
</syntaxhighlight>
  
'''''Input:''''' Test TMP101 temperature sensor<br />
+
== Reset button ==
'''''Output:''''' Sensor provides current temperature readout
+
'''''Input:''''' Press the RESET button<br />
 +
'''''Output:''''' The board will execute bootloader immediately with "Reset cause: POR"<br />
 +
'''''Note:''''' iMX8M Industrial Development Kit should never freeze or hang after the reset button was pressed. Testing the operation 10 times gives a reliable result
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
root@imx6-openrexultra:~# cat /sys/devices/soc0/soc/2100000.aips-bus/21a4000.i2c/i2c-1/1-0048/hwmon/hwmon*/temp1_input
+
U-Boot 2020.04-imx_v2020.04_5.4.24_2.1.0+g4979a99482 (May 30 2020 - 06:50:01 +0000)
32125
+
 
 +
CPU:  i.MX8MQLite rev2.1 1300 MHz (running at 800 MHz)
 +
CPU:  Industrial temperature grade (-40C to 105C) at 62C
 +
Reset cause: POR
 +
Model: Voipac i.MX8MQ EVK
 +
DRAM:  2 GiB
 +
MMC:  FSL_SDHC: 0, FSL_SDHC: 1
 +
Loading Environment from MMC... OK
 +
[*]-Video Link 0imx8m_hdmi_probe
 +
....
 
</syntaxhighlight>
 
</syntaxhighlight>
  
== Infrared receiver ==
+
== User buttons ==
'''''Input:''''' Press Infrared remote keys. (For Samsung Infrared remote load "nec" protocol)<br />
+
'''''Input:''''' Press Enter/Left/Right/Up/Down buttons<br />
'''''Output:''''' Events are detected
+
'''''Output:''''' Button events 1 and 0 are generated
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
root@imx6-openrexultra:~# echo nec > /sys/devices/soc0/ir-receiver/rc/rc0/protocols
+
root@imx8mq-voipac:~# evtest /dev/input/by-path/platform-gpio-buttons-event  
root@imx6-openrexultra:~# evtest /dev/input/by-path/platform-ir-receiver-event
 
 
Input driver version is 1.0.1
 
Input driver version is 1.0.1
 
Input device ID: bus 0x19 vendor 0x1 product 0x1 version 0x100
 
Input device ID: bus 0x19 vendor 0x1 product 0x1 version 0x100
Input device name: "gpio_ir_recv"
+
Input device name: "gpio-buttons"
 
Supported events:
 
Supported events:
 
   Event type 0 (EV_SYN)
 
   Event type 0 (EV_SYN)
 
   Event type 1 (EV_KEY)
 
   Event type 1 (EV_KEY)
     Event code 152 (KEY_SCREENLOCK)
+
     Event code 28 (KEY_ENTER)
  Event type 4 (EV_MSC)
+
    Event code 103 (KEY_UP)
     Event code 4 (MSC_SCAN)
+
     Event code 105 (KEY_LEFT)
Key repeat handling:
+
     Event code 106 (KEY_RIGHT)
  Repeat type 20 (EV_REP)
+
     Event code 108 (KEY_DOWN)
     Repeat code 0 (REP_DELAY)
 
      Value    500
 
     Repeat code 1 (REP_PERIOD)
 
      Value    125
 
 
Properties:
 
Properties:
 
Testing ... (interrupt to exit)
 
Testing ... (interrupt to exit)
Event: time 1474009071.488894, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70707
 
Event: time 1474009071.488894, -------------- SYN_REPORT ------------
 
Event: time 1474009072.178245, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7070b
 
Event: time 1474009072.178245, -------------- SYN_REPORT ------------
 
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
== User LED ==
 
== User LED ==
 
'''''Input:''''' None<br />
 
'''''Input:''''' None<br />
'''''Output:''''' Script switches User LED ON and OFF in one second intervals
+
'''''Output:''''' Script switches User LED on baseboard ON and OFF in one second intervals
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
root@imx6-openrexultra:~#
+
root@imx8mq-voipac:~#
for LED in /sys/devices/soc0/leds*/leds/*
+
for LED in /sys/class/leds/user
 
do
 
do
 
echo Testing ${LED}
 
echo Testing ${LED}
Line 512: Line 1,017:
  
 
'''''Input:''''' None<br />
 
'''''Input:''''' None<br />
'''''Output:''''' User LED is set to heartbeat blinking sequence
+
'''''Output:''''' User LED on baseboard is set to heartbeat blinking sequence
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
root@imx6-openrexultra:~# echo -n "heartbeat" > /sys/devices/soc0/leds*/leds/module-led/trigger
+
root@imx8mq-voipac:~# echo heartbeat > /sys/class/leds/user/trigger
 
</syntaxhighlight>
 
</syntaxhighlight>
  
== SD Activity LED ==
 
 
'''''Input:''''' None<br />
 
'''''Input:''''' None<br />
'''''Output:''''' SD activity LED is set to show the status of SD card interface
+
'''''Output:''''' User LED on SOM is set to heartbeat blinking sequence
<syntaxhighlight lang="bash">
 
root@imx6-openrexultra:~# echo -n "mmc1" > /sys/devices/soc0/leds*/leds/sd-activity-led/trigger
 
</syntaxhighlight>
 
 
 
== Microcontroller LPC1347 ==
 
'''''Input:''''' LPC1347 firmware<br />
 
'''''Output:''''' MCU program is executed and LED starts blinking
 
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
root@imx6-openrexultra:~# openrex-isp-handler.sh lpc/LPC1347-userLED.bin
+
root@imx8mq-voipac:~# echo heartbeat > /sys/class/leds/user-som/trigger
ISP low
 
RST low
 
RST high
 
lpc21isp version 1.97
 
File lpc/LPC1347-userLED.bin:
 
        loaded...
 
        image size : 1068
 
Image size : 1068
 
Synchronizing (ESC to abort). OK
 
Read bootcode version: 2
 
5
 
Read part ID: LPC1345, 32 kiB FLASH / 8 kiB SRAM (0x28010541)
 
Will start programming at Sector 1 if possible, and conclude with Sector 0 to ensure that checksum is written last.
 
Erasing sector 0 first, to invalidate checksum. OK
 
Sector 0: ..........................
 
Download Finished... taking 0 seconds
 
Now launching the brand new code
 
RST low
 
ISP high
 
RST high
 
 
</syntaxhighlight>
 
</syntaxhighlight>
 
== DDR memory ==
 
'''''Input:''''' None<br />
 
'''''Output:''''' Memory test passes without any errors
 
<syntaxhighlight lang="bash">
 
root@imx6-openrexultra:~# memtester 2G 1
 
memtester version 4.1.3 (32-bit)
 
Copyright (C) 2010 Charles Cazabon.
 
Licensed under the GNU General Public License version 2 (only).
 
 
pagesize is 4096
 
pagesizemask is 0xfffff000
 
want 2048MB (2147483648 bytes)
 
got  251MB (263602176 bytes), trying mlock ...locked.
 
Loop 1/1:
 
  Stuck Address      : ok       
 
  Random Value        : ok
 
  Compare XOR        : ok
 
  Compare SUB        : ok
 
  Compare MUL        : ok
 
  Compare DIV        : ok
 
  Compare OR
 

Latest revision as of 16:28, 11 September 2024

The initial operations with the iMX8M Industrial Development Kit interfaces are presented on this page. For more specific information such as display options, camera capabilities or industrial modular extensions, refer to the dedicated Peripherals and Accessories section.

Mandatory components

Hardware

Peripherals and Accessories

  • 1x FullHD HDMI monitor with Audio output (default)
  • 1x FullHD DisplayPort monitor with Audio output (optional)
  • iMX8M Wifi and Bluetooth antennas set
  • 1x MicroSDHC card Class 10 or higher
  • 1x USB Flash drive 3.0
  • Headphones
  • Analog external microphone

Cables

  • USB Micro-B cable for serial console
  • USB-C cable for module flashing
  • Ethernet cable
  • HDMI cable (default)
  • DisplayPort cable (optional)

Audio

Note: This audio section was tested with the iMX8M Industrial Module in Max and Pro configurations. For Basic configuration, audio capabilities can be achieved via SAI header located on the baseboard. For more information see the iMX8M Industrial Module comparison.

Input: Search kernel log for wm8904 chip
Output: Audio chip is detected and bound as an output and input device

root@imx8mq-voipac:~# dmesg | grep wm8904
[    1.864809] fsl-asoc-card sound-wm8904: failed to find codec device
[    2.155773] wm8904 0-001a: 0-001a supply DCVDD not found, using dummy regulator
[    2.163163] wm8904 0-001a: 0-001a supply DBVDD not found, using dummy regulator
[    2.170561] wm8904 0-001a: 0-001a supply AVDD not found, using dummy regulator
[    2.177846] wm8904 0-001a: 0-001a supply CPVDD not found, using dummy regulator
[    2.185209] wm8904 0-001a: 0-001a supply MICVDD not found, using dummy regulator
[    2.197860] wm8904 0-001a: revision A
[    2.699093] debugfs: Directory '308b0000.sai' with parent 'wm8904-audio' already present!
[    2.707395] fsl-asoc-card sound-wm8904: wm8904-hifi <-> 308b0000.sai mapping ok
[    2.714808] fsl-asoc-card sound-wm8904: ASoC: no DMI vendor name!
[    3.145901]   #1: wm8904-audio

Input: Run amixer command
Output: Current audio chip settings are displayed

root@imx8mq-voipac:~# amixer -c1
Simple mixer control 'Headphone',0
  Capabilities: volume pswitch
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 63
  Front Left: 46 [73%] [-11.00dB] Playback [on]
  Front Right: 45 [71%] [-12.00dB] Playback [on]
Simple mixer control 'Headphone ZC',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [on]
  Front Right: Playback [on]
Simple mixer control 'Line Output',0
  Capabilities: volume pswitch
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 63
  Front Left: 57 [90%] [0.00dB] Playback [on]
  Front Right: 57 [90%] [0.00dB] Playback [on]
Simple mixer control 'Line Output ZC',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [on]
  Front Right: Playback [on]
...

Input: Connect headphones into LINE OUT jack connector
Output: Audio file is played and heard

root@imx8mq-voipac:~# aplay multimedia/sample.wav
Playing WAVE 'multimedia/sample.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
root@imx8mq-voipac:~# aplay -D sysdefault:CARD=wm8904audio multimedia/sample.wav
Playing WAVE 'multimedia/sample.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo

Input: Boot-up the board with HDMI cable plugged into the monitor
Output: Audio file is played and heard

root@imx8mq-voipac:~# aplay -D sysdefault:CARD=imxaudiohdmi multimedia/sample.wav 
Playing WAVE 'multimedia/sample.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo

Input: Plug headphones into HEADPHONES jack connector and analog external microphone to MIC jack connector
Output: Sound recorder by microphone is played in headphones

root@imx8mq-voipac:~# amixer set 'Capture' '31'
root@imx8mq-voipac:~# amixer set 'Capture Input' ADC
root@imx8mq-voipac:~# amixer set 'Left Capture Inverting Mux' 'IN2L'
root@imx8mq-voipac:~# amixer set 'Right Capture Inverting Mux' 'IN2R'
root@imx8mq-voipac:~# arecord -D sysdefault:CARD=wm8904audio -t wav -f cd | aplay -D sysdefault:CARD=wm8904audio

Note: Microphone and headphones setup can also be graphically displayed and adjusted:

root@imx8mq-voipac:~# alsamixer

iMX8M Industrial Development Kit-AlsaMixer setup.png

Input: Verify digital microphones (Mic Left, Mic Mid, Mic Right)
Output: Microphone sound is played in headphones

root@imx8mq-voipac:~# amixer -c1 set "Capture Input" "DMIC"
root@imx8mq-voipac:~# arecord -D sysdefault:CARD=wm8904audio -t wav -f cd | aplay -D sysdefault:CARD=wm8904audio

WiFi

Note: This WiFi section was tested with the iMX8M Industrial Module in Max and Pro configurations. For Basic configuration, wireless connectivity can be achieved via PCIe Mini and/or M.2 key B slots located on the baseboard. For more information see the iMX8M Industrial Module comparison.

Note: Only the Basic configuration of iMX8M Industrial Module provides access to PCI Express signals via PCIe Mini and M.2 key B sockets soldered on the baseboard, instead of using the interface for WiFi and Bluetooth module on the COM.

Check if the device driver is available:

root@imx8mq-voipac:~# dmesg | grep wlan
[    6.329574] wlan: Loading MWLAN driver
[    6.333853] wlan: Register to Bus Driver...
[    6.338344] wlan_pcie 0000:01:00.0: enabling device (0000 -> 0002)
[    8.500582] wlan: version = PCIE8997--16.92.21.p76.2-MM5X16368.p2-(FP92) 
[    8.517033] wlan: Register to Bus Driver Done
[    8.521409] wlan: Driver loaded successfully
[    8.533204] wlan_pcie 0000:01:00.0 wlp1s0: renamed from mlan0

Check if the WiFi interface is present:

root@imx8mq-voipac:~# ip addr show dev wlp1s0
3: wlp1s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 78:c4:0e:a0:32:16 brd ff:ff:ff:ff:ff:ff

Input: Scan the available WiFi networks
Output: Networks are scanned and in-depth information are displayed

root@imx8mq-voipac:~# ifconfig wlp1s0 up && iw dev wlp1s0 scan
BSS 94:27:90:7f:c3:d3(on wlp1s0)
        TSF: 1213185029341 usec (14d, 00:59:45)
        freq: 2442
        beacon interval: 100 TUs
        capability: ESS Privacy ShortPreamble ShortSlotTime (0x0431)
        signal: -73.00 dBm
        last seen: 4056 ms ago
        SSID: HH40V_C3D3
        Supported rates: 1.0* 2.0* 5.5* 11.0* 6.0 9.0 12.0 18.0
        DS Parameter set: channel 7
        Country: SK     Environment: Indoor/Outdoor
                Channels [1 - 13] @ 20 dBm
        ERP: <no flags>
        Extended supported rates: 24.0 36.0 48.0 54.0
        HT capabilities:
                Capabilities: 0x1ad
                        RX LDPC
                        HT20
                        SM Power Save disabled
                        RX HT20 SGI
                        TX STBC
                        RX STBC 1-stream
                        Max AMSDU length: 3839 bytes
                        No DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: 8 usec (0x06)
                HT TX/RX MCS rate indexes supported: 0-15
        HT operation:
                 * primary channel: 7
                 * secondary channel offset: no secondary
                 * STA channel width: 20 MHz
                 * RIFS: 1
                 * HT protection: no
                 * non-GF present: 1
                 * OBSS non-GF present: 0
                 * dual beacon: 0
                 * dual CTS protection: 0
                 * STBC beacon: 0
                 * L-SIG TXOP Prot: 0
                 * PCO active: 0
                 * PCO phase: 0
        Overlapping BSS scan params:
                 * passive dwell: 20 TUs
                 * active dwell: 10 TUs
                 * channel width trigger scan interval: 300 s
                 * scan passive total per channel: 200 TUs
                 * scan active total per channel: 20 TUs
                 * BSS width channel transition delay factor: 5
                 * OBSS Scan Activity Threshold: 0.25 %
        Extended capabilities:
                 * HT Information Exchange Supported
                 * Extended Channel Switching
                 * SSID List
                 * Operating Mode Notification
        WMM:     * Parameter version 1
                 * BE: CW 15-1023, AIFSN 3
                 * BK: CW 15-1023, AIFSN 7
                 * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
                 * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
        RSN:     * Version: 1
                 * Group cipher: CCMP
                 * Pairwise ciphers: CCMP
                 * Authentication suites: PSK
                 * Capabilities: 1-PTKSA-RC 1-GTKSA-RC (0x0000)
        WPS:     * Version: 1.0
                 * Wi-Fi Protected Setup State: 2 (Configured)
                 * Response Type: 3 (AP)
                 * UUID: 87654321-9abc-def0-1234-942790c36dc7
                 * Manufacturer: TCL.org
                 * Model: WAP
                 * Model Number: 123
                 * Serial Number: 12345
                 * Primary Device Type: 6-0050f204-1
                 * Device name: TCL AP
                 * Config methods:
                 * Unknown TLV (0x1049, 6 bytes): 00 37 2a 00 01 20
BSS 34:e8:94:5c:06:80(on wlp1s0)
        TSF: 787677017722 usec (9d, 02:47:57)
        freq: 2462
        beacon interval: 100 TUs
        capability: ESS Privacy ShortSlotTime (0x0411)
        signal: -73.00 dBm
        last seen: 3952 ms ago
        SSID: OrangeFlybox_0680
        Supported rates: 1.0* 2.0* 5.5* 11.0* 9.0 18.0 36.0 54.0
        DS Parameter set: channel 11
        ERP: Barker_Preamble_Mode
        Extended supported rates: 6.0 12.0 24.0 48.0
        HT capabilities:
                Capabilities: 0x106e
                        HT20/HT40
                        SM Power Save disabled
                        RX HT20 SGI
                        RX HT40 SGI
                        No RX STBC
                        Max AMSDU length: 3839 bytes
                        DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: 4 usec (0x05)
                HT RX MCS rate indexes supported: 0-15, 32
                HT TX MCS rate indexes are undefined
        HT operation:
                 * primary channel: 11
                 * secondary channel offset: no secondary
                 * STA channel width: 20 MHz
                 * RIFS: 0
                 * HT protection: 20 MHz
                 * non-GF present: 1
                 * OBSS non-GF present: 0
                 * dual beacon: 0
                 * dual CTS protection: 0
                 * STBC beacon: 0
                 * L-SIG TXOP Prot: 0
                 * PCO active: 0
                 * PCO phase: 0
        WPA:     * Version: 1
                 * Group cipher: TKIP
                 * Pairwise ciphers: TKIP CCMP
                 * Authentication suites: PSK
        RSN:     * Version: 1
                 * Group cipher: TKIP
                 * Pairwise ciphers: TKIP CCMP
                 * Authentication suites: PSK
                 * Capabilities: 1-PTKSA-RC 1-GTKSA-RC (0x0000)
        WMM:     * Parameter version 1
                 * BE: CW 15-1023, AIFSN 3
                 * BK: CW 15-1023, AIFSN 7
                 * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
                 * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
        BSS Load:
                 * station count: 3
                 * channel utilisation: 27/255
                 * available admission capacity: 31250 [*32us]
        Overlapping BSS scan params:
                 * passive dwell: 20 TUs
                 * active dwell: 10 TUs
                 * channel width trigger scan interval: 300 s
                 * scan passive total per channel: 200 TUs
                 * scan active total per channel: 20 TUs
                 * BSS width channel transition delay factor: 5
                 * OBSS Scan Activity Threshold: 0.25 %
        Extended capabilities:
                 * HT Information Exchange Supported
        WPS:     * Version: 1.0
                 * Wi-Fi Protected Setup State: 2 (Configured)
                 * AP setup locked: 0x01
                 * Response Type: 3 (AP)
                 * UUID: 38833092-3092-1883-9c77-34e8945c06c4
                 * Manufacturer: TP-LINK
                 * Model: Archer MR200
                 * Model Number: 1.0
                 * Serial Number: 1.0
                 * Primary Device Type: 6-0050f204-1
                 * Device name: AC750 Wireless Dual Band 4G LTE
                 * Config methods: Label, Display, Keypad
                 * RF Bands: 0x1
                 * Unknown TLV (0x1049, 6 bytes): 00 37 2a 00 01 20
BSS 34:e8:94:5b:f8:04(on wlp1s0)
        TSF: 1210179077454 usec (14d, 00:09:39)
        freq: 2462
        beacon interval: 100 TUs
        capability: ESS Privacy ShortSlotTime (0x0411)
        signal: -50.00 dBm
        last seen: 3432 ms ago
        SSID: REDARROW
        Supported rates: 1.0* 2.0* 5.5* 11.0* 9.0 18.0 36.0 54.0
        DS Parameter set: channel 11
        Extended supported rates: 6.0 12.0 24.0 48.0
        TIM: DTIM Count 0 DTIM Period 1 Bitmap Control 0x0 Bitmap[0] 0x2
        WPS:     * Version: 1.0
                 * Wi-Fi Protected Setup State: 2 (Configured)
                 * AP setup locked: 0x01
                 * UUID: 38833092-3092-1883-9c77-34e8945bf8c4
                 * RF Bands: 0x1
                 * Unknown TLV (0x1049, 6 bytes): 00 37 2a 00 01 20
        ERP: Barker_Preamble_Mode
        HT capabilities:
                Capabilities: 0x106e
                        HT20/HT40
                        SM Power Save disabled
                        RX HT20 SGI
                        RX HT40 SGI
                        No RX STBC
                        Max AMSDU length: 3839 bytes
                        DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: 4 usec (0x05)
                HT RX MCS rate indexes supported: 0-15, 32
                HT TX MCS rate indexes are undefined
        HT operation:
                 * primary channel: 11
                 * secondary channel offset: no secondary
                 * STA channel width: 20 MHz
                 * RIFS: 0
                 * HT protection: no
                 * non-GF present: 0
                 * OBSS non-GF present: 0
                 * dual beacon: 0
                 * dual CTS protection: 0
                 * STBC beacon: 0
                 * L-SIG TXOP Prot: 0
                 * PCO active: 0
                 * PCO phase: 0
        Overlapping BSS scan params:
                 * passive dwell: 20 TUs
                 * active dwell: 10 TUs
                 * channel width trigger scan interval: 300 s
                 * scan passive total per channel: 200 TUs
                 * scan active total per channel: 20 TUs
                 * BSS width channel transition delay factor: 5
                 * OBSS Scan Activity Threshold: 0.25 %
        Extended capabilities:
                 * HT Information Exchange Supported
        WPA:     * Version: 1
                 * Group cipher: TKIP
                 * Pairwise ciphers: TKIP CCMP
                 * Authentication suites: PSK
        RSN:     * Version: 1
                 * Group cipher: TKIP
                 * Pairwise ciphers: TKIP CCMP
                 * Authentication suites: PSK
                 * Capabilities: 1-PTKSA-RC 1-GTKSA-RC (0x0000)
        WMM:     * Parameter version 1
                 * BE: CW 15-1023, AIFSN 3
                 * BK: CW 15-1023, AIFSN 7
                 * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
                 * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
        BSS Load:
                 * station count: 0
                 * channel utilisation: 47/255
                 * available admission capacity: 31250 [*32us]

To set up the network login data, edit file located in /etc/wpa_supplicant.conf and update ssid and passphrase psk fields.

root@imx8mq-voipac:~# cat /etc/wpa_supplicant.conf 
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1

network={
        ssid="SSID_FOR_WIFI_NETWORK"
        scan_ssid=1
        key_mgmt=WPA-PSK
        psk="WIFI_NETWORK_PASSWORD"
}

To connect to the desired WiFi network, start wpa_supplicant:

root@imx8mq-voipac:~# wpa_supplicant -i wlp1s0 -c/etc/wpa_supplicant.conf &
root@imx8mq-voipac:~# Successfully initialized wpa_supplicant
rfkill: Cannot open RFKILL control device
wlp1s0: Trying to associate with 40:a5:ef:c0:70:62 (SSID='CPE_C0[  188.254851] mwifiex_pcie 0000:01:00.0: info: trying 
to associate to 'CPE_C07061' bssid 40:a5:ef:c0:70:62
7061' freq=2462 MHz)
[  188.334475] mwifiex_pcie 0000:01:00.0: info: associated to bssid 40:a5:ef:c0:70:62 successfully
wlp1s0: Associated with 40:a5:ef:c0:70:62
wlp1s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
[  188.351598] IPv6: ADDRCONF(NETDEV_CHANGE): wlp1s0: link becomes ready
wlp1s0: WPA: Key negotiation completed with 40:a5:ef:c0:70:62 [PTK=CCMP GTK=CCMP]
wlp1s0: CTRL-EVENT-CONNECTED - Connection to 40:a5:ef:c0:70:62 completed [id=0 id_str=]

To obtain an IP address and other network settings, run dhcp client:

udhcpc -i wlp1s0


At this point the bandwidth measurement can be tested, showing that WiFi connection was established and is performed very reliably.

Configuration: iMX8M Industrial Module in Commercial and Extended temperature range (AzureWave AW-CM276NF used):

root@imx8mq-voipac:~# iperf3 -c 192.168.241.235 -t 30 -i1
Connecting to host 192.168.241.235, port 5201
[  5] local 192.168.241.109 port 55212 connected to 192.168.241.235 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  3.60 MBytes  30.2 Mbits/sec    2   58.0 KBytes      
[  5]   1.00-2.00   sec  3.91 MBytes  32.8 Mbits/sec    0   96.2 KBytes       
[  5]   2.00-3.00   sec  4.04 MBytes  33.9 Mbits/sec    1   97.6 KBytes      
[  5]   3.00-4.00   sec  3.91 MBytes  32.8 Mbits/sec    0   90.5 KBytes      
[  5]   4.00-5.00   sec  3.73 MBytes  31.3 Mbits/sec    1   96.2 KBytes      
[  5]   5.00-6.00   sec  4.16 MBytes  34.9 Mbits/sec    0    126 KBytes      
[  5]   6.00-7.00   sec  3.73 MBytes  31.3 Mbits/sec    0    147 KBytes      
[  5]   7.00-8.00   sec  4.60 MBytes  38.6 Mbits/sec    0    167 KBytes      
[  5]   8.00-9.00   sec  3.73 MBytes  31.3 Mbits/sec    0    182 KBytes      
[  5]   9.00-10.00  sec  4.04 MBytes  33.9 Mbits/sec    0    199 KBytes      
[  5]  10.00-11.00  sec  4.35 MBytes  36.5 Mbits/sec    0    215 KBytes      
[  5]  11.00-12.00  sec  4.04 MBytes  33.9 Mbits/sec    0    229 KBytes      
[  5]  12.00-13.00  sec  4.41 MBytes  37.0 Mbits/sec    0    242 KBytes      
[  5]  13.00-14.00  sec  2.92 MBytes  24.5 Mbits/sec    0    270 KBytes      
[  5]  14.00-15.00  sec  3.98 MBytes  33.4 Mbits/sec    1    226 KBytes       
[  5]  15.00-16.00  sec  3.91 MBytes  32.8 Mbits/sec    0    250 KBytes      
[  5]  16.00-17.00  sec  4.72 MBytes  39.6 Mbits/sec    0    264 KBytes      
[  5]  17.00-18.00  sec  3.54 MBytes  29.7 Mbits/sec    0    270 KBytes      
[  5]  18.00-19.00  sec  4.41 MBytes  37.0 Mbits/sec    1    225 KBytes      
[  5]  19.00-20.00  sec  4.04 MBytes  33.9 Mbits/sec    0    252 KBytes      
[  5]  20.00-21.00  sec  4.16 MBytes  34.9 Mbits/sec    0    264 KBytes      
[  5]  21.00-22.00  sec  3.79 MBytes  31.8 Mbits/sec    0    272 KBytes      
[  5]  22.00-23.00  sec  4.04 MBytes  33.9 Mbits/sec    0    272 KBytes      
[  5]  23.00-24.00  sec  3.73 MBytes  31.3 Mbits/sec    0    272 KBytes      
[  5]  24.00-25.00  sec  4.29 MBytes  36.0 Mbits/sec    0    273 KBytes      
[  5]  25.00-26.00  sec  4.60 MBytes  38.6 Mbits/sec    0    286 KBytes      
[  5]  26.00-27.00  sec  3.73 MBytes  31.3 Mbits/sec    0    298 KBytes      
[  5]  27.00-28.00  sec  4.23 MBytes  35.4 Mbits/sec    0    327 KBytes      
[  5]  28.00-29.00  sec  4.23 MBytes  35.4 Mbits/sec    0    369 KBytes      
[  5]  29.00-30.00  sec  4.47 MBytes  37.5 Mbits/sec    0    436 KBytes      
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-30.00  sec   121 MBytes  33.8 Mbits/sec    6             sender
[  5]   0.00-30.00  sec   119 MBytes  33.4 Mbits/sec                  receiver

iperf Done.

Configuration: iMX8M Industrial Module in Industrial temperature range (H&D Wireless SPB228-D-2 used):

root@imx8mq-voipac:~# iperf3 -c 192.168.241.235 -t30 -i1
Connecting to host 192.168.241.235, port 5201
[  5] local 192.168.241.115 port 44276 connected to 192.168.241.235 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  3.15 MBytes  26.4 Mbits/sec    4   72.1 KBytes      
[  5]   1.00-2.00   sec  3.73 MBytes  31.3 Mbits/sec    1    100 KBytes      
[  5]   2.00-3.00   sec  3.29 MBytes  27.6 Mbits/sec    0    124 KBytes       
[  5]   3.00-4.00   sec  3.48 MBytes  29.2 Mbits/sec    0    144 KBytes      
[  5]   4.00-5.00   sec  3.60 MBytes  30.2 Mbits/sec    0    160 KBytes      
[  5]   5.00-6.00   sec  3.17 MBytes  26.6 Mbits/sec    1    122 KBytes      
[  5]   6.00-7.00   sec  2.86 MBytes  24.0 Mbits/sec    2    146 KBytes      
[  5]   7.00-8.00   sec  3.42 MBytes  28.7 Mbits/sec    0    163 KBytes      
[  5]   8.00-9.00   sec  3.67 MBytes  30.8 Mbits/sec    0    178 KBytes      
[  5]   9.00-10.00  sec  3.42 MBytes  28.7 Mbits/sec    0    192 KBytes      
[  5]  10.00-11.00  sec  3.36 MBytes  28.1 Mbits/sec    0    206 KBytes      
[  5]  11.00-12.00  sec  3.98 MBytes  33.4 Mbits/sec    0    219 KBytes      
[  5]  12.00-13.00  sec  3.23 MBytes  27.1 Mbits/sec    0    272 KBytes      
[  5]  13.00-14.00  sec  3.79 MBytes  31.8 Mbits/sec    0    344 KBytes      
[  5]  14.00-15.00  sec  4.16 MBytes  34.9 Mbits/sec    0    441 KBytes      
[  5]  15.00-16.00  sec  3.29 MBytes  27.6 Mbits/sec    0    567 KBytes       
[  5]  16.00-17.00  sec  3.75 MBytes  31.4 Mbits/sec    0    279 KBytes      
[  5]  17.00-18.00  sec  2.50 MBytes  21.0 Mbits/sec    1    564 KBytes      
[  5]  18.00-19.00  sec  2.50 MBytes  21.0 Mbits/sec    0    612 KBytes      
[  5]  19.00-20.00  sec  3.75 MBytes  31.5 Mbits/sec    1    474 KBytes      
[  5]  20.00-21.00  sec  5.00 MBytes  42.0 Mbits/sec    0    503 KBytes      
[  5]  21.00-22.00  sec  2.50 MBytes  21.0 Mbits/sec    0    519 KBytes      
[  5]  22.00-23.00  sec  3.75 MBytes  31.5 Mbits/sec    0    527 KBytes      
[  5]  23.00-24.00  sec  3.75 MBytes  31.5 Mbits/sec    0    529 KBytes      
[  5]  24.00-25.00  sec  3.75 MBytes  31.5 Mbits/sec    1    414 KBytes      
[  5]  25.00-26.00  sec  3.75 MBytes  31.5 Mbits/sec    0    462 KBytes      
[  5]  26.00-27.00  sec  3.75 MBytes  31.5 Mbits/sec    0    495 KBytes      
[  5]  27.00-28.00  sec  2.50 MBytes  21.0 Mbits/sec    0    513 KBytes      
[  5]  28.00-29.00  sec  3.75 MBytes  31.5 Mbits/sec    0    526 KBytes      
[  5]  29.00-30.00  sec  3.75 MBytes  31.5 Mbits/sec    1    369 KBytes      
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-30.00  sec   104 MBytes  29.2 Mbits/sec   12             sender
[  5]   0.00-30.00  sec   101 MBytes  28.2 Mbits/sec                  receiver

iperf Done.

Bluetooth

Note: This audio section was tested with the iMX8M Industrial Module in Max and Pro configurations. For Basic configuration, audio capabilities can be achieved via SAI header located on the baseboard. For more information see the iMX8M Industrial Module comparison.

Input: None
Output: Remote device is recognized after scan

# attach module
root@imx8mq-voipac:~# hciattach /dev/ttymxc2 any 115200 flow                                                    
[   63.137693] Bluetooth: HCI UART driver ver 2.3                                                               
[   63.142196] Bluetooth: HCI UART protocol H4 registered                                                       
[   63.147407] Bluetooth: HCI UART protocol BCSP registered                                                     
[   63.153061] Bluetooth: HCI UART protocol LL registered                                                       
[   63.158263] Bluetooth: HCI UART protocol ATH3K registered                                                    
[   63.163719] Bluetooth: HCI UART protocol Three-wire (H5) registered                                          
[   63.170309] Bluetooth: HCI UART protocol Broadcom registered                                                 
[   63.176113] Bluetooth: HCI UART protocol QCA registered                                                      
Device setup complete                                             

# put hci0 device up
root@imx8mq-voipac:~# hciconfig hci0 up

# scan for remote bluetooth devices (enable bluetooth on phone and make it discoverable)
root@imx8mq-voipac:~# hcitool  scan                                                                             
Scanning ...                     
Devices:
    hci0    00:0D:18:01:5A:B3

Ethernet

Input: None
Output: Device driver is available
Note: MAC address should be identical with the address on the sticker placed on the board

root@imx8mq-voipac:~# ip addr show dev eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 00:0d:15:01:50:92 brd ff:ff:ff:ff:ff:ff
    inet 192.168.10.122/24 brd 192.168.10.255 scope global dynamic eth0
       valid_lft 86103sec preferred_lft 86103sec
    inet6 fe80::20d:15ff:fe01:5092/64 scope link 
       valid_lft forever preferred_lft forever

Input: Plug Ethernet cable into connector
Output: IPv4 address is assigned

[  348.300585] fec 30be0000.ethernet eth0: Link is Down
[  350.350853] fec 30be0000.ethernet eth0: Link is Up - 100Mbps/Full - flow control off

PCI Express socket + Micro SIM slot

Note: This audio section was tested with the iMX8M Industrial Module in Max and Pro configurations. For Basic configuration, audio capabilities can be achieved via SAI header located on the baseboard. For more information see the iMX8M Industrial Module comparison.

Note: Only the Basic configuration of iMX8M Industrial Module provides access to PCI Express signals via PCIe Mini and M.2 key B sockets soldered on the baseboard, instead of using the interface for WiFi and Bluetooth module on the COM.

NOTE: Add commands and logs while using this Wireless card

iMX8M Industrial Module Basic-mPCI Express Wireless Card.jpg

After the successful software wireless card porting, the speed test was performed using Mini PCI Express card Intel 512AN_MMW, during which it reached more than 30 Mbps connection both on the sending and receiving end:

root@imx8mq-voipac:~# iperf3 -c 192.168.241.235 -t30 -i1
Connecting to host 192.168.241.235, port 5201
[  5] local 192.168.241.114 port 43638 connected to 192.168.241.235 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  3.14 MBytes  26.3 Mbits/sec    0    204 KBytes       
[  5]   1.00-2.00   sec  2.92 MBytes  24.5 Mbits/sec    0    325 KBytes       
[  5]   2.00-3.00   sec  6.66 MBytes  55.8 Mbits/sec    0    568 KBytes       
[  5]   3.00-4.00   sec  5.00 MBytes  41.9 Mbits/sec    0    795 KBytes       
[  5]   4.00-5.00   sec  6.25 MBytes  52.4 Mbits/sec    1    765 KBytes       
[  5]   5.00-6.00   sec  5.00 MBytes  41.9 Mbits/sec    0    850 KBytes       
[  5]   6.00-7.00   sec  6.25 MBytes  52.4 Mbits/sec    1    649 KBytes       
[  5]   7.00-8.00   sec  5.00 MBytes  41.9 Mbits/sec    7    494 KBytes       
[  5]   8.00-9.00   sec  3.75 MBytes  31.5 Mbits/sec   54    119 KBytes       
[  5]   9.00-10.00  sec  3.75 MBytes  31.5 Mbits/sec   25    454 KBytes       
[  5]  10.00-11.00  sec  6.25 MBytes  52.5 Mbits/sec    0    684 KBytes       
[  5]  11.00-12.00  sec  6.25 MBytes  52.4 Mbits/sec    1    631 KBytes       
[  5]  12.00-13.00  sec  6.25 MBytes  52.4 Mbits/sec    0    708 KBytes       
[  5]  13.00-14.00  sec  5.00 MBytes  41.9 Mbits/sec    0    772 KBytes       
[  5]  14.00-15.00  sec  3.75 MBytes  31.5 Mbits/sec    1    564 KBytes       
[  5]  15.00-16.00  sec  6.25 MBytes  52.5 Mbits/sec    0    614 KBytes       
[  5]  16.00-17.00  sec  5.00 MBytes  41.9 Mbits/sec    0    641 KBytes       
[  5]  17.00-18.00  sec  5.00 MBytes  41.9 Mbits/sec    0    662 KBytes       
[  5]  18.00-19.00  sec  3.75 MBytes  31.5 Mbits/sec   84    175 KBytes       
[  5]  19.00-20.00  sec  1.25 MBytes  10.5 Mbits/sec  198    161 KBytes       
[  5]  20.00-21.00  sec  2.50 MBytes  21.0 Mbits/sec   30   90.5 KBytes       
[  5]  21.00-22.00  sec  2.50 MBytes  21.0 Mbits/sec    2   90.5 KBytes       
[  5]  22.00-23.00  sec  3.75 MBytes  31.5 Mbits/sec    0    120 KBytes       
[  5]  23.00-24.00  sec  3.75 MBytes  31.5 Mbits/sec    0    141 KBytes       
[  5]  24.00-25.00  sec  5.00 MBytes  42.0 Mbits/sec    0    160 KBytes       
[  5]  25.00-26.00  sec  2.50 MBytes  21.0 Mbits/sec    0    174 KBytes       
[  5]  26.00-27.00  sec  2.50 MBytes  21.0 Mbits/sec    0    184 KBytes       
[  5]  27.00-28.00  sec  3.75 MBytes  31.5 Mbits/sec    0    198 KBytes       
[  5]  28.00-29.00  sec  3.75 MBytes  31.5 Mbits/sec    0    211 KBytes       
[  5]  29.00-30.00  sec  2.50 MBytes  21.0 Mbits/sec    0    219 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-30.00  sec   129 MBytes  36.1 Mbits/sec  404             sender
[  5]   0.00-30.00  sec   126 MBytes  35.3 Mbits/sec                  receiver

iperf Done.

M.2 key B socket + Micro SIM slot

Note: Only the Basic configuration of iMX8M Industrial Module provides access to PCI Express signals via PCIe Mini and M.2 key B sockets soldered on the baseboard, instead of using the interface for WiFi and Bluetooth module on the COM.

Note: Use SATA M.2 card as testing example?

USB 3.0

NOTE: Perform read/write performance test Input: Plug USB flash drive into USB connector
Output: Plugged USB device is listed

root@vmx25:~# lsusb
Bus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 003: ID 125f:d31a A-DATA Technology Co., Ltd. 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Input: Generate a dummy file and copy it into USB flash drive
Output: Generated file and copied file have the same checksum

root@imx8mq-voipac:~# mount /dev/sda1 /media/
root@imx8mq-voipac:~# rm -f file.txt /media/file.txt 
root@imx8mq-voipac:~# dd if=/dev/urandom of=file.txt count=1024 bs=1024
1024+0 records in
1024+0 records out
root@imx8mq-voipac:~# cp file.txt /media/
root@imx8mq-voipac:~# md5sum file.txt /media/file.txt 
200a9fd3e9850fcedf85ed50d4c4733d  file.txt
200a9fd3e9850fcedf85ed50d4c4733d  /media/file.txt
root@imx8mq-voipac:~# rm file.txt /media/file.txt
root@imx8mq-voipac:~# umount /media

USB-C

This connector is primarily used for flashing new binaries into the iMX8M Industrial Module. More information can be found on the dedicated module flashing page.

Alternatively, USB-C connector can be utilised as general USB storage:
iMX8M Industrial Development Kit - USB-C flash drive plugged in.png

root@imx8mq-voipac:~# fdisk -l /dev/sda
Disk /dev/sda: 29 GB, 30784094208 bytes, 60125184 sectors
3742 cylinders, 255 heads, 63 sectors/track
Units: sectors of 1 * 512 = 512 bytes

Device  Boot StartCHS    EndCHS        StartLBA     EndLBA    Sectors  Size Id Type
/dev/sda1    0,0,33      1023,254,63         32   60125183   60125152 28.6G  c Win95 FAT32 (LBA)

Input: Generate a dummy file and copy it into USB flash drive
Output: Generated file and copied file have the same checksum

root@imx8mq-voipac:~# mount /dev/sda1 /media/
root@imx8mq-voipac:~# rm -f file.txt /media/file.txt 
root@imx8mq-voipac:~# dd if=/dev/urandom of=file.txt count=1024 bs=1024
1024+0 records in
1024+0 records out
root@imx8mq-voipac:~# cp file.txt /media/
root@imx8mq-voipac:~# md5sum file.txt /media/file.txt 
200a9fd3e9850fcedf85ed50d4c4733d  file.txt
200a9fd3e9850fcedf85ed50d4c4733d  /media/file.txt
root@imx8mq-voipac:~# rm file.txt /media/file.txt
root@imx8mq-voipac:~# umount /media

USB Micro-B serial console

Input: Connect USB console cable into the baseboard connector and open serial console with baud rate 115200 8n1
Output: The board is controlled and responsive to serial terminal commands

root@imx8mq-voipac:~# uname -a
Linux imx8mq-voipac 5.4.147-imx-5.4.24-2.1.0+ga9d96bff565a #1 SMP PREEMPT Thu Sep 16 20:18:09 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux

UART serial console

Serial console is utilized via USB Micro-B connector by default. Alternatively, the communication can be established using UART headers and TTL-232R-3V3 - FTDI cable.

NOTE:Describe jumpers position

iMX8M Industrial Development Kit-Serial console via UART1.jpg

Note:Usage of UART2 CONSOLE to communicate by default requires changes in Yocto binaries and new compilation of image files.

iMX8M Industrial Development Kit-Serial console via UART2.jpg

SD card

NOTE: Perform read/write performance test

root@imx8mq-voipac:~# fdisk -l
Disk /dev/mmcblk0: 15 GB, 15758000128 bytes, 30777344 sectors
240448 cylinders, 4 heads, 32 sectors/track
Units: sectors of 1 * 512 = 512 bytes

Device       Boot StartCHS    EndCHS        StartLBA     EndLBA    Sectors  Size Id Type
/dev/mmcblk0p1 *  128,0,1     1023,3,32        16384     186775     170392 83.1M  c Win95 FAT32 (LBA)
/dev/mmcblk0p2    1023,3,32   1023,3,32       196608    1030993     834386  407M 83 Linux
Disk /dev/mmcblk1: 14 GB, 15485370368 bytes, 30244864 sectors
236288 cylinders, 4 heads, 32 sectors/track
Units: sectors of 1 * 512 = 512 bytes

Device       Boot StartCHS    EndCHS        StartLBA     EndLBA    Sectors  Size Id Type
/dev/mmcblk1p1 *  128,0,1     1023,3,32        16384     186775     170392 83.1M  c Win95 FAT32 (LBA)
/dev/mmcblk1p2    1023,3,32   1023,3,32       196608    1030993     834386  407M 83 Linux
Disk /dev/sda: 14 GB, 15376318464 bytes, 30031872 sectors
1869 cylinders, 255 heads, 63 sectors/track
Units: sectors of 1 * 512 = 512 bytes

Device  Boot StartCHS    EndCHS        StartLBA     EndLBA    Sectors  Size Id Type
/dev/sda1    0,0,33      1023,254,63         32   30031871   30031840 14.3G  c Win95 FAT32 (LBA)
root@imx8mq-voipac:~#

HDMI Output

Input: Connect LCD monitor to the development kit
Output: Desktop UI is displayed correctly
iMX6 TinyRex Development Kit-HDMI terminal.png

DisplayPort Output

NOTE: A different boot file image and/or device tree is required!

Input: Connect LCD monitor with DisplayPort to the development kit
Output: Desktop UI is displayed correctly
iMX6 TinyRex Development Kit-HDMI terminal.png

JTAG

iMX8M Industrial Development Kit-JTAG communication setup.jpg

To verify that i.MX8M CPU JTAG is functional, following command identifies and connects to the CPU's debug point:

J-Link> jtagid

iMX8M Industrial Development Kit-JTAG communication log.jpg

Real Time Clock

RTC chip is detected by Linux kernel after start-up:

root@imx8mq-voipac:~# dmesg | grep rtc
[    1.562666] snvs_rtc 30370000.snvs:snvs-rtc-lp: registered as rtc0
[    2.289791] rtc-pcf8563 1-0051: low voltage detected, date/time is not reliable.
[    2.297832] rtc-pcf8563 1-0051: registered as rtc1
[    2.392900] [drm] Cannot find any crtc or sizes
[    2.400347] [drm] Cannot find any crtc or sizes
[    2.401383] [drm] Cannot find any crtc or sizes
[    3.053517] snvs_rtc 30370000.snvs:snvs-rtc-lp: setting system clock to 1970-01-01T00:09:04 UTC (544)
[   60.247133] rtc-pcf8563 1-0051: low voltage detected, date/time is not reliable.

CPU correctly recognises RTC on the I2C1 bus, the chip is under usage by the kernel:

root@imx8mq-voipac:~# i2cdetect  -r -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- UU -- -- -- UU -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- UU -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- UU -- UU -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

Set up the current date and time, show the actual values:

root@imx8mq-voipac:~# date -s "2023-1-24 18:37:05"
Tue Jan 24 18:37:05 UTC 2023
root@imx8mq-voipac:~# timedatectl
               Local time: Tue 2023-01-24 18:37:09 UTC
           Universal time: Tue 2023-01-24 18:37:09 UTC
                 RTC time: Thu 1970-01-01 00:11:24
                Time zone: UTC (UTC, +0000)
System clock synchronized: no
              NTP service: active
          RTC in local TZ: no
root@imx8mq-voipac:~# grep pcf8563 /proc/interrupts
140:          0          0          0          0  gpio-mxc   5 Level     rtc-pcf8563
root@imx8mq-voipac:~# echo +2 > /sys/class/rtc/rtc1/wakealarm
[  154.338851] rtc-pcf8563 1-0051: low voltage detected, date/time is not reliable.
sh: write error: Invalid argument
root@imx8mq-voipac:~# grep pcf8563 /proc/interrupts
140:          0          0          0          0  gpio-mxc   5 Level     rtc-pcf8563

I2C EEPROM Memory - on module

Note: This audio section was tested with the iMX8M Industrial Module in Max and Pro configurations. For Basic configuration, audio capabilities can be achieved via SAI header located on the baseboard. For more information see the iMX8M Industrial Module comparison.

SPI Flash Memory - on baseboard

Input: Trigger M25P80 flash detection
Output: SPI Flash sst25vf032b is detected

root@imx6-openrexultra:~# echo -n "spi2.1" > /sys/bus/spi/drivers/m25p80/unbind
root@imx6-openrexultra:~# echo -n "spi2.1" > /sys/bus/spi/drivers/m25p80/bind 
m25p80 spi2.1: found sst26vf032b, expected m25p32
m25p80 spi2.1: sst26vf032b (4096 Kbytes)

Input: Write and read data from M25P80 flash memory
Output: If successful, console text 'Data are the same' should appear

root@imx6-openrexultra:~# echo -n "0123" > mtd_in
root@imx6-openrexultra:~# mtd_debug write /dev/mtd0 0 4 mtd_in 
Copied 4 bytes from mtd_in to address 0x00000000 in flash
root@imx6-openrexultra:~# mtd_debug read /dev/mtd0 0 4 mtd_out
Copied 4 bytes from address 0x00000000 in flash to mtd_out
root@imx6-openrexultra:~# diff mtd_in mtd_out && echo "Data are the same"
Data are the same

NOTE: Choose which code to keep!

root@imx8mq-voipac:~# chmod +x devmem2
root@imx8mq-voipac:~# .devmem2
-sh: .devmem2: not found
root@imx8mq-voipac:~# ./devmem2

Usage:  ./devmem2 { address } [ type [ data ] ]
        address : memory address to act upon
        type    : access operation type : [b]yte, [h]alfword, [w]ord
        data    : data to be written

root@imx8mq-voipac:~# ./devmem2 0x30340008 w
/dev/mem opened.
Memory mapped at address 0xffff90879000.
Value at address 0x30340008 (0xffff90879008): 0x0
root@imx8mq-voipac:~# ./devmem2 0x30340014 w
/dev/mem opened.[  565.553857] audit: type=1701 audit(1660073163.857:3): auid=42                                                                         94967295 uid=0 gid=0 ses=4294967295 pid=389 comm="devmem2" exe="/home/root/devme                                                                         m2" sig=7 res=1

Memory mapped at address 0xffff97f2c000.
Bus error
root@imx8mq-voipac:~# ./devmem2 0x3033018 w
/dev/mem opened.[  791.295664] audit: type=1701 audit(1660073389.596:4): auid=42                                                                         94967295 uid=0 gid=0 ses=4294967295 pid=391 comm="devmem2" exe="/home/root/devme                                                                         m2" sig=7 res=1

Memory mapped at address 0xffffa6ec6000.
Bus error

ON/OFF button

Input: Press the ON/OFF button
Output: The board will shutdown. By pressing longer again, the board starts booting.

[  OK  ] Stopped target Sound Card.
[  OK  ] Stopped target System Time Synchronized.
[  OK  ] Stopped target System Time Set.
[  OK  ] Stopped target Timers.
[  OK  ] Stopped Daily Cleanup of Temporary Directories.
         Stopping Save/Restore Sound Card State...
         Stopping Kernel Logging Service...
         Stopping System Logging Service...
         Stopping Getty on tty1...
         Stopping Serial Getty on ttymxc0...
         Stopping Hostname Service...
         Stopping Load/Save Random Seed...
[  OK  ] Stopped Kernel Logging Service.
[  OK  ] Stopped System Logging Service.
[  OK  ] Stopped Getty on tty1.
[  OK  ] Stopped Serial Getty on ttymxc0.
[  OK  ] Stopped Hostname Service.
[  OK  ] Stopped Save/Restore Sound Card State.
[  OK  ] Stopped Load/Save Random Seed.
[  OK  ] Stopped Session c1 of user root.
[  OK  ] Removed slice system-getty.slice.
[  OK  ] Removed slice system-serial\x2dgetty.slice.
         Stopping Login Service...
         Stopping User Manager for UID 0...
[  OK  ] Stopped User Manager for UID 0.
         Stopping User Runtime Directory /run/user/0...
[  OK  ] Unmounted /run/user/0.
[  OK  ] Stopped User Runtime Directory /run/user/0.
[  OK  ] Removed slice User Slice of UID 0.
         Stopping D-Bus System Message Bus...
         Stopping Permit User Sessions...
[  OK  ] Stopped D-Bus System Message Bus.
[  OK  ] Stopped Login Service.
[  OK  ] Stopped Permit User Sessions.
[  OK  ] Stopped target Basic System.
[  OK  ] Stopped target Network.
[  OK  ] Stopped target Paths.                                             
[  OK  ] Stopped Dispatch Password ��…ts to Console Directory Watch.       
[  OK  ] Stopped Forward Password R��…uests to Wall Directory Watch.       
[  OK  ] Stopped target Remote File Systems.                               
[  OK  ] Stopped target Slices.                                            
[  OK  ] Removed slice User and Session Slice.
[  OK  ] Stopped target Sockets.
[  OK  ] Closed D-Bus System Message Bus Socket.
[  OK  ] Closed dropbear.socket.
[  OK  ] Stopped target System Initialization.
[  OK  ] Closed Syslog Socket.
         Stopping Network Name Resolution...
         Stopping Network Time Synchronization...
[  OK  ] Stopped Network Name Resolution.
[  OK  ] Stopped Network Time Synchronization.
         Stopping Network Service...
[  OK  ] Stopped Create Volatile Files and Directories.
[  OK  ] Stopped target Local File Systems.
         Unmounting Temporary Directory (/tmp)...
         Unmounting /var/volatile...
[  OK  ] Stopped Network Service.
[  OK  ] Unmounted Temporary Directory (/tmp).
[  OK  ] Unmounted /var/volatile.
[  OK  ] Stopped target Local File Systems (Pre).
[  OK  ] Stopped target Swap.
[  OK  ] Reached target Unmount All Filesystems.
[  OK  ] Stopped Remount Root and Kernel File Systems.
[  OK  ] Stopped Apply Kernel Variables.
[  OK  ] Stopped Load Kernel Modules.
[  OK  ] Stopped Create Static Device Nodes in /dev.
[  OK  ] Reached target Shutdown.
[  OK  ] Reached target Final Step.
[  OK  ] Started Power-Off.
[  OK  ] Reached target Power-Off.
[   15.911216] systemd-shutdown[1]: Syncing filesystems and block devices.
[   15.920832] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
[   15.936588] systemd-journald[247]: Received SIGTERM from PID 1 (systemd-shutdow).
[   15.959340] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
[   15.975454] systemd-shutdown[1]: Unmounting file systems.
[   15.982656] [353]: Remounting '/' read-only in with options '(null)'.
[   16.020576] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[   16.031646] systemd-shutdown[1]: All filesystems unmounted.
[   16.037301] systemd-shutdown[1]: Deactivating swaps.
[   16.042421] systemd-shutdown[1]: All swaps deactivated.
[   16.047678] systemd-shutdown[1]: Detaching loop devices.
[   16.055830] systemd-shutdown[1]: All loop devices detached.
[   16.061424] systemd-shutdown[1]: Detaching DM devices.
[   16.066794] systemd-shutdown[1]: All DM devices detached.
[   16.072226] systemd-shutdown[1]: All filesystems, swaps, loop devices and DM devices detached.
[   16.086744] systemd-shutdown[1]: Syncing filesystems and block devices.
[   16.093483] systemd-shutdown[1]: Powering off.
[   16.097961] kvm: exiting hardware virtualization
[   16.097991] imx-sdma 30bd0000.sdma: external firmware not found, using ROM firmware
[   16.098546] cfg80211: failed to load regulatory.db
[   16.101341] imx-sdma 302c0000.sdma: loaded firmware 4.5
[   16.166426] mwifiex_pcie 0000:01:00.0: info: shutdown mwifiex...
[   16.173169] mwifiex_pcie 0000:01:00.0: PREP_CMD: card is removed
[   16.240963] mwifiex_pcie 0000:01:00.0: performing cancel_work_sync()...
[   16.247595] mwifiex_pcie 0000:01:00.0: cancel_work_sync() done
[   16.288309] reboot: Power down

Then pressing ON/OFF button again:

U-Boot 2020.04-imx_v2020.04_5.4.24_2.1.0+g4979a99482 (May 30 2020 - 06:50:01 +0000)

CPU:   i.MX8MQLite rev2.1 1300 MHz (running at 800 MHz)
CPU:   Industrial temperature grade (-40C to 105C) at 62C
Reset cause: POR
Model: Voipac i.MX8MQ EVK
DRAM:  2 GiB
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... OK
[*]-Video Link 0imx8m_hdmi_probe
....

Reset button

Input: Press the RESET button
Output: The board will execute bootloader immediately with "Reset cause: POR"
Note: iMX8M Industrial Development Kit should never freeze or hang after the reset button was pressed. Testing the operation 10 times gives a reliable result

U-Boot 2020.04-imx_v2020.04_5.4.24_2.1.0+g4979a99482 (May 30 2020 - 06:50:01 +0000)

CPU:   i.MX8MQLite rev2.1 1300 MHz (running at 800 MHz)
CPU:   Industrial temperature grade (-40C to 105C) at 62C
Reset cause: POR
Model: Voipac i.MX8MQ EVK
DRAM:  2 GiB
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... OK
[*]-Video Link 0imx8m_hdmi_probe
....

User buttons

Input: Press Enter/Left/Right/Up/Down buttons
Output: Button events 1 and 0 are generated

root@imx8mq-voipac:~# evtest /dev/input/by-path/platform-gpio-buttons-event 
Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x1 product 0x1 version 0x100
Input device name: "gpio-buttons"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 28 (KEY_ENTER)
    Event code 103 (KEY_UP)
    Event code 105 (KEY_LEFT)
    Event code 106 (KEY_RIGHT)
    Event code 108 (KEY_DOWN)
Properties:
Testing ... (interrupt to exit)

User LED

Input: None
Output: Script switches User LED on baseboard ON and OFF in one second intervals

root@imx8mq-voipac:~#
for LED in /sys/class/leds/user
do
	echo Testing ${LED}
	echo -n "1" > ${LED}/brightness
	sleep 1
	echo -n "0" > ${LED}/brightness
	sleep 1
done

Input: None
Output: User LED on baseboard is set to heartbeat blinking sequence

root@imx8mq-voipac:~# echo heartbeat > /sys/class/leds/user/trigger

Input: None
Output: User LED on SOM is set to heartbeat blinking sequence

root@imx8mq-voipac:~# echo heartbeat > /sys/class/leds/user-som/trigger