Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

What can I do with IGEP SMARC iMX6

840 bytes added, 15:48, 25 October 2016
no edit summary
The board has two user bicolor (green/red) leds available that can be controlled. In its simplest form, you can control of LEDs from
userspace. LEDs appear in /sys/class/leds/igep and you can turn on and off with following commands:
<pre>
<pre>
echo 1 > /sys/class/leds/base\:blue\:led0/brightness
echo 0 > /sys/class/leds/base\:blue\:led0/brightness
echo 1 > /sys/class/leds/base\:red\:led0/brightness
echo 0 > /sys/class/leds/base\:blue\:led0/brightness
echo 0 > /sys/class/leds/base\:red\:led0/brightness
</pre>
== How to use S1200 pushbutton ==
== How to use S1200 The board has one pushbutton ==. You can see with following commands: <pre>cd /dev/inputcat event0</pre>
'''under construction'''Next step: push the button.
== How to use UART (RS485) ==
* To stop receiving data, press '''Ctrl+C''' in the listening device.
 
== Get sound out (audio out) ==
 
Connect an external output audio device to the 3.5mm jack Audio Out connector in the board, such as external stereo powered speakers.
 
The amplifiers for the headset output are disabled by default, so the first thing you'll do is enable these amplifiers with:
 
$ amixer set -D hw:0 'PCM' 0dB
$ amixer set -D hw:0 'HP DAC' 0dB
 
Then you can easily play a *.wav sound with the application Aplay, for example:
 
$ aplay /usr/share/sounds/alsa/Side_Left.wav
== Get sound in (audio in) ==
When ever you think you want to stop recording just press CTRL+C
== Get sound out microphone in (audio outin) == Connect an external microphone in the MIC-N connector.
Connect an external output audio device to Enable for the 3.5mm jack Audio Out connector in the board, such as external stereo powered speakers.input microphone:
The amplifiers for the headset output are disabled by default, so the first thing you $ amixer -c 0 sset 'll do is enable these amplifiers with:Right PGA Mixer Mic3R' on $ amixer -c 0 sset 'Left PGA Mixer Mic3L' on $ amixer -c 0 sset 'Right PGA Mixer Line1R' off $ amixer -c 0 sset 'Left PGA Mixer Line1L' off
$ amixer set -D hwYou can record microphone in with the application arecord, for example:0 'PCM' 0dB $ amixer set -D hw:0 'HP DAC' 0dB
Then you can easily play a * $ arecord -t wav -c 2 -r 44100 -f S16_LE -v audio-in.wav sound with the application Aplay, for example:
$ aplay /usr/share/sounds/alsa/Side_Left.wavWhen ever you think you want to stop recording just press CTRL+C
== Install firmware in eMMC ==
In order to access the eMMC and be capable of flashing it, we can make use of igep-flash script:
*Launch the script from terminal specifying the image you want to flash in eMMC. The script itself searches for the device to flash, so no more parameters are needed:
<pre>igep-flash --image /opt/firmware/isee-image-dev-imx6qimx6*-igep0046.tar.bz2 * --skip-nandtest</pre>''Where '''/opt/firmware/isee-image-dev-imx6qimx6*-igep0046.tar.bz2*''' is the image you want to flash (in this case, the one supplied from ISEE with the official firmware), and '''--skip-nandtest''' is an option to skip checking for bad blocks (this accelerates the process, and it's optional if you don't mind bad blocks on eMMC)''
*LEDs near U1200 should flash in orange while the eMMC is being written. They will flash in green when process successfully finishes.
In this example, we will connect to an Access Point.
* First of all, we must disable Soft Blocking on the wlan0 interface via rfkill:
<pre>rfkill unblock 0all</pre>
* Then we can set the interface up:
:To start the supplicant, we specify the interface, the configuration file and the driver to be used. In this case:
<pre>wpa_supplicant -Dnl80211 -i wlan0 -c /etc/wpa_supplicant.conf&</pre>
:*On the other hand, if it is a WEP secured Access Point, you must enter the next command. If your AP doesn't have a password, omit the key part:
| 59 Hz<br>
|}
 
== HDMI audio ==
 
Connect the HDMI connector to a monitor with speakers.
 
Then you can easily play a *.wav sound with the application Aplay, for example:
 
$ aplay -D plughw:1,0 /usr/share/sounds/alsa/Side_Left.wav
== Secondary HDMI (DVI connector on J501) ==