Functional test for i.MX6 Starter Kit

From HIO Wiki
Jump to: navigation, search

1. Frame Buffer:

After power on the system, input the following commands to enable frame buffer function:

#export QT_QPA_EGLFS_DEPTH=24
#export QT_QPA_PLATFORM=eglfs

Then type the following commands:

#cd /usr/share/qt5/examples/multimedia/video/qmlvideo
#./qmlvideo

Within the qmlvideo window,
Click Select file 1 button, change directory to /home, select the test.mp4 file.
Click on video-full Screen to play the video.
Click Exit or Input ctlr+c to terminate the qmlvideo.

Use the following command to test the 3D video display in Qt Framebuffer Image:

# ./Qt5_CinematicExperience -platform eglfs

For X11 or Xfce

# ./Qt5_CinematicExperience

2. Network Connection:

Plug in the network cable, then input the following command:

#ifconfig

Check to make sure there is ip address assigned, then ping a computer within the same network, for example:

#ping 192.168.0.20

3. WiFi Connection:

(a) Plug in the USB WIFI module.
(b) Check to make sure that wlan0 wifi driver node exists:

#ifconfig –a

(c) Enable the wlan0 node:

#ifconfig wlan0 up

(d) Scan wifi hotspots:

#iwlist wlan0 scan

(e) Modify the WIFI module configuration file according to Router Setting:

#cd /usr/share/wifi
#sudo nano wpa_supplicant.conf

Input the SSID and the password of Router in the specified position.

#WPA-PSK/TKIP
ctrl_interface=/var/run/wpa_supplicant
network={
  ssid="your_SSID"
  scan_ssid=1
  key_mgmt=WPA-PSK
  pairwise=TKIP CCMP
  group=CCMP TKIP WEP104 WEP40
  psk="your_PASSWORD" 
}

(f) Run the following command, then acquire the IP address dynamically from Router's DHCP service:

#wpa_supplicant –Dwext –iwlan0 –c./wpa_supplicant.conf –B
#udhcpc –i wlan0

(g) Verify that WiFi module works:

#ifconfig –a
#ping 192.168.0.20

4. Audio Jack Connection:

(a) Plug the audio cable into the 3mm audio jacket on the board.

(b)Adjust the HP volume:

#alsamixer

Select Hp item. Use the Up and Down Arrows to adjust the Hp volume.
Hp.jpg
Note: Scroll left/right when all controls can not be put in a single screen. The name of each control is shown in the bottom below the volume bars. The selected item is highlighted in red.

(c) Test audio using the following command:

#contest /usr/bin/haoxin.mp3

5. Speaker:

(a) Plug the speaker into the J703/J704 on the board.

(b)Adjust the Speaker volume:

#alsamixer

Select speaker item,Use the Up and Down Arrows to adjust the Speaker volume.
Speaker.jpg

(c) Test audio:

#contest /usr/bin/haoxin.mp3

6.Audio record

#arecord -d 10 -f cd -t wav test.wav
#aplay test.wav

7. HDMI Audio:

Plug in the HDMI cable, then run the following command:

#aplay –Dhw:1,0 /test/playtest.wav

8. USB Drive:

Plug in a USB drive to the onboard USB slot or USB Extension slot, then input the command:

#cd /dev
#mount /dev/sda1 /media
#cp somefile.txt /media	
#sync
#umount /media

9. Console Cable:
Minicom
to install

$ sudo apt-get install minicom
$ sudo minicom -s hio
+-----------------------------------------------------------------------+ | A - Serial Device  : /dev/ttyUSB0 | | B - Lockfile Location  : /var/lock | | C - Callin Program  : | | D - Callout Program  : | | E - Bps/Par/Bits  : 115200 8N1 | | F - Hardware Flow Control : No | | G - Software Flow Control : No | | | | Change which setting? | +-----------------------------------------------------------------------+


Save the configuration as hio
Plug in the USB and turn on the board. The backend will output information on the shell.

PuTTY
(a) Connect the Development Cable to the HIO board, and connect the USB to a Windows PC.
(b) Go to Computer Management console on Windows PC, click Ports (COM&LPT)' to expand. There should be Prolific USB-to-Serial Com Port(COM4) displayed.
(c) Download the 'putty terminal software into the Windows PC > Start Putty > Change these configuration on the user interface:

Serial line: COM4
Speed:	115200

(d) Click Open, the putty console window should display.
(e) Power on the HIO board, the backend output will show on the putty console window.

10. CIFS Connection:

(a) Connect the HIO board to the same Windows PC LAN network using Ethernet cable. Find the IP address of the Windows PC (e.g. 192.168.0.10)
(b) On the Windows PC, create a new User account to access the shared folder across the LAN network. (e.g., account name: UserHio, password:111Abc)
(c) On the Windows PC, create a folder named LinuxShare, and share it in the Network using the following steps:

 (i) right click LinuxShare folder, click Sharing tab, click share button under Network File and Folder Sharing.
 (ii)select the user account(in our example, UserHio) you want to share the folder with, click Share button.

(d) Log in to the HIO board as root, input the following command:

mount –t cifs –o sec=ntlm,username=UserHio,password=111Abc //192.168.0.10/LinuxShare /mnt/

Note: username= and password= option are the username and password of the Windows PC, the //192.168.0.10/LinuxShare is the IP address and shared folder name for the Windows PC, /mnt is the Yocto system directory to mount the remote directory to.
(e) After mounting the remote directory to the /mnt system directory, it is able to navigate to the /mnt directory using:

cd /mnt

Any operation such as create, copy or delete files and folders within the /mnt directory will be synchronized to the Windows share folder remotely.
(f) After testing, unmount the remote Windows shared directory using the following command:

umount /mnt

11. COM Port:

(a) The Serial port name corresponding to the pins are as the following image:
POE 1260.jpg
(b) Download the com_arm directory from the following link, then copy it into the yocto system:
(c) Use jumper to short the pins for COM port test.
1260 loopback.jpg
(d) Test loop back, take ttymxc2 port for example:

#cd   com_arm
#./linux_send /dev/ttymxc2 115200 8 0 0 2 1 232 >t &   //send signal
#./linux_recv /dev/ttymxc2 115200 8 0 0 2 1 232       //receive signal

(e) After issue the command, if you see sequential output in the screen, like:

RecvBuf:1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz

It means the serial loopback test succeed.

(f) For other com ports test, everything is the same except changing the /dev/ttymxc2 to the corresponding device name.

12. Watchdog:

(a) Copy the watchdog testing software from the USB drive to the /home folder of the HIO-1240 system:

#mount /dev/sda1 /mnt
#cp /mnt/watchdog /home
#cd /home

(b) Run the following command to test the watchdog:

#chmod 777 watchdog
#./watchdog –e

(c) The system should reboot after 5 seconds, meaning the watchdog works fine.

13. Blue tooth: Connect the Bluetooth connector to the USB slot. Input the following commands:

#hciconfig
#hciconfig hci0 up
#hcitool scan

The Bluetooth device that is detected will be shown as output.