In part III of this guide, the installation of the final image to the SD card will be covered. The SD card will then be booted on the target. Finally, audio recording and playback will be tested.
Part III of this guide consists of the following sections.
- Write the GNU/Linux BSP image to an SD card.
- Set the physical switches on the RioTboard (Internet of Things) to boot from the uSD or SD card.
- Connect the target to the necessary peripherals for boot.
- Test audio recording, audio playback, and Internet connectivity.
1. Write the GNU/Linux BSP image to an SD card
At this point, the build should be complete, without errors. The output should be as follows.
Insert an SD card into an SD card reader, connect it to the host, and execute the following commands on the host.
host]$ cd $HOME/src/fsl-community-bsp/build /tmp/deploy/images/imx6dl-riotboard
host]$ sudo umount /dev/sd<X>
host]$ sudo dd if=bsec-image-imx6dl-riotboard.sdcard of=/dev/sd<X> bs=1M
host]$ sudo sync
2. Set the physical switches on the RioTboard to boot from the uSD or SD card.
3. Connect the target to the necessary peripherals for boot.
There are two options
4. Test audio recording, audio playback, and Internet connectivity
Execute the following commands on the target
Press arrow down so that 0 imx6-riotboard-sgtl5000 is highlighted.
Increase Headphone level to 79<>79.
Increase PCM level to 75<>75.
Increase Mic level to 59.
Increase Capture to 80<>80.
root@imx6dl-riotboard: cd /usr/share/alsa/sounds
root@imx6dl-riotboard: aplay *.wav
A sound should be played through the speakers.
root@imx6dl-riotboard: cd /tmp
root@imx6dl-riotboard: arecord -d 10 micintest.wav
Talk into the microphone for ten seconds.
root@imx6dl-riotboard: aplay micintest.wav
A recording should play through the speakers.
root@imx6dl-riotboard: ping riotboard.org
An ICMP reply should be received.