Difference between revisions of "UCM-iMX8M-Mini: Yocto Linux: How-To Guide"

From Compulab Mediawiki
Jump to: navigation, search
imported>Mykola.cherkunov
(Suspend / Resume)
 
imported>Mykola.cherkunov
Line 1: Line 1:
 
==Wi-Fi==
 
==Wi-Fi==
 +
{{note|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.
 
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.
Line 6: Line 7:
  
 
To start using Wi-Fi insert your network credentials into the following file:
 
To start using Wi-Fi insert your network credentials into the following file:
/etc/wpa_supplicant.conf
+
<pre>
 +
/etc/wpa_supplicant.conf
 +
</pre>
  
 
Insert the network name into '''ssid''' field, password into '''psk''' field and key into the '''key_mgmt''' field (if your network uses key management).<br>
 
Insert the network name into '''ssid''' field, password into '''psk''' field and key into the '''key_mgmt''' field (if your network uses key management).<br>
 
The file should have the following content:
 
The file should have the following content:
  ctrl_interface=/var/run/wpa_supplicant
+
<pre>
  ctrl_interface_group=0
+
ctrl_interface=/var/run/wpa_supplicant
  update_config=1
+
ctrl_interface_group=0
 +
update_config=1
 
   network={
 
   network={
 
       ssid="<the name of your internet acces point>"
 
       ssid="<the name of your internet acces point>"
Line 18: Line 22:
 
       psk="<the password of your internet access point>"
 
       psk="<the password of your internet access point>"
 
   }
 
   }
 +
</pre>
 +
 
  
 
Execute the following commands to connect to the network.
 
Execute the following commands to connect to the network.
$wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf -D nl80211
+
<pre>
$udhcpc -i wlan0
+
wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf -D nl80211
 +
udhcpc -i wlan0
 +
</pre>
  
 
==Video Playback==
 
==Video Playback==
 +
{{note|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.
 
UCM-iMX8M-Mini features 1080p60 H.264, VP8 video decoding capabilities. Before starting video playback, please, ensure that the display is connected to board.
  
Line 29: Line 39:
  
 
The following command should be used to start video playback:
 
The following command should be used to start video playback:
gst-launch-1.0 -v filesrc location=1.mov ! h264parse ! avdec_h264 ! autovideosink
+
<pre>
 +
gst-launch-1.0 -v filesrc location=1.mov ! h264parse ! avdec_h264 ! autovideosink
 +
</pre>
  
 
Where '''1.mov''' is name and extension of the video file.
 
Where '''1.mov''' is name and extension of the video file.
  
 
==Video Capturing==
 
==Video Capturing==
 +
{{note|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.
 
UCM-iMX8M-Mini features 1080p60 H.264, VP8 video encoding. Before starting video capturing, please, ensure that camera is connected to PCB.
  
Line 39: Line 53:
  
 
The following command should be used to start video capturing:
 
The following command should be used to start video capturing:
gst-launch-1.0 -v v4l2src ! vpuenc_h264 ! filesink location=1.mov
+
<pre>
 +
gst-launch-1.0 -v v4l2src ! vpuenc_h264 ! filesink location=1.mov
 +
</pre>
  
 
Where '''1.mov''' is name and extension of the file.
 
Where '''1.mov''' is name and extension of the file.
  
 
==Suspend / Resume==
 
==Suspend / Resume==
 +
{{note|The operation below requires '''root''' access.}}
  
 
UCM-iMX8M-Mini features suspend mode, which allows to minimize power consumption.  
 
UCM-iMX8M-Mini features suspend mode, which allows to minimize power consumption.  
  
 
The following command should be used to enter suspend mode:
 
The following command should be used to enter suspend mode:
echo mem >/sys/power/state
+
<pre>
 +
echo mem >/sys/power/state
 +
</pre>
  
To resume normal operation press the '''Power On''' button '''SW5'''.
+
To resume normal operation press shortly the '''Power On''' button '''SW5'''.
  
 
==See Also==
 
==See Also==

Revision as of 11:43, 5 June 2019

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