UCM-iMX8M-Mini: Yocto Linux: How-To Guide

From Compulab Mediawiki
Revision as of 11:43, 5 June 2019 by imported>Mykola.cherkunov
Jump to: navigation, search

Wi-Fi

Admolition note.png The operation below requires root access.

UCM-iMX8M-Mini features certified 802.11ac Wi-Fi interface (Broadcom BCM43353 chipset). Before working with Wi-Fi, please, ensure that Wi-Fi antenna is connected.

For hardware setup and Wi-Fi antenna connection instructions please refer to evaluation kit hardware guide.

To start using Wi-Fi insert your network credentials into the following file:

/etc/wpa_supplicant.conf

Insert the network name into ssid field, password into psk field and key into the key_mgmt field (if your network uses key management).
The file should have the following content:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1
  network={
      ssid="<the name of your internet acces point>"
      key_mgmt=WPA-PSK
      psk="<the password of your internet access point>"
   }


Execute the following commands to connect to the network.

wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf -D nl80211
udhcpc -i wlan0

Video Playback

Admolition note.png The operation below requires root access.

UCM-iMX8M-Mini features 1080p60 H.264, VP8 video decoding capabilities. Before starting video playback, please, ensure that the display is connected to board.

For hardware setup and display connection instructions please refer to evaluation kit hardware guide.

The following command should be used to start video playback:

gst-launch-1.0 -v filesrc location=1.mov ! h264parse ! avdec_h264 ! autovideosink

Where 1.mov is name and extension of the video file.

Video Capturing

Admolition note.png The operation below requires root access.

UCM-iMX8M-Mini features 1080p60 H.264, VP8 video encoding. Before starting video capturing, please, ensure that camera is connected to PCB.

For hardware setup and camera connection instructions please refer to evaluation kit hardware guide.

The following command should be used to start video capturing:

gst-launch-1.0 -v v4l2src ! vpuenc_h264 ! filesink location=1.mov

Where 1.mov is name and extension of the file.

Suspend / Resume

Admolition note.png The operation below requires root access.

UCM-iMX8M-Mini features suspend mode, which allows to minimize power consumption.

The following command should be used to enter suspend mode:

echo mem >/sys/power/state

To resume normal operation press shortly the Power On button SW5.

See Also