Qiyang QY-IMX6S User manual

QY-IMX6S Linux Function And Test Manual
Website:http://www.qiytech.com
©2012 Qiyangtech Copyright
Catalogue
Version Illustration: ..........................................................................................................................3
Ⅰ. Preparation..................................................................................................................................5
Ⅱ. Mainboard Test............................................................................................................................6
2.1 Buzzer Test..........................................................................................................................6
2.2 RTC Test..............................................................................................................................8
2.3. Watchdog Test..................................................................................................................12
2.4 GPIO Test..........................................................................................................................14
2.5.Serial Port Test..................................................................................................................18
2.6.SPI Test .............................................................................................................................26
2.7.CAN Test...........................................................................................................................30
2.8. Audio &Video Test...........................................................................................................35
2.9. LAN Test..........................................................................................................................40
2.10 USB Test .........................................................................................................................42
2.11.SD Card Test ...................................................................................................................46
2.12. SATA Test.......................................................................................................................48
2.13. HDMI Test .....................................................................................................................50
2.14. LCD Display and VGATest...........................................................................................51
2.15. LVDS Test......................................................................................................................55
2.16. QT Test...........................................................................................................................57
2.17. Touch Panel Test ............................................................................................................58
2.18. Camera Test....................................................................................................................61
2.19、3G/4G Test...................................................................................................................63
2.20. Wifi Test.........................................................................................................................66
2.21. RS485 Test.....................................................................................................................69
Ⅲ. Test Summary............................................................................................................................71

QY-IMX6S Linux Function And Test Manual
Website:http://www.qiytech.com
©2012 Qiyangtech Copyright
Ⅰ. Preparation
Before testing, please read QY-IMX6S Linux User Manual. pdf, and
connect to the board according to this manual.
Power on mainboard, after system starts, then input root user to enter
into file system of the board, as the following picture shown:
Mainboard test program in [/usr/test] directory, please switch to this
directory, the following testing operations will be done in this directory.
cd /usr/test/
ls

QY-IMX6S Linux Function And Test Manual
Website:http://www.qiytech.com
©2012 Qiyangtech Copyright
Ⅱ. Mainboard Test
2.1 Buzzer Test
QY-IMX6S mainboard use [GPIO 6_31] to control the buzzer on the
board. When set to low level, buzzer does not work; when set to high
level, buzzer will work.
Test Principle:
This test is to realize buzzing.
Test Process and Result:
Run buzzer testing program [buzzer_test]
Illustration: [buzzer_test <device>0] buzzer does not work, buzzer
can be closed.
[buzzer_test <device> 1] buzzer does work.
1. Open buzzer, the mainboard is buzzing continuously, press [Ctrl+C]
to exit the program.

QY-IMX6S Linux Function And Test Manual
Website:http://www.qiytech.com
©2012 Qiyangtech Copyright
/buzzer_test /dev/qiyang_buzzer 1
2. Close buzzer, press [ctrl+c] to exit the program.
/buzzer_test /dev/qiyang_buzzer 0
Device Node:
/dev/qiyang_buzzer
Test Code:
CD/Test Code/buzzer_test/buzzer_test.c
Driver Code:
linux-3.0.101/drivers/misc/buzzer.c
The Kernel Options:
Device Drivers --->
Misc devices --->
<*> BUZZER FOR QIYANG IMX6 BOARD
FAQ:
Debug UART prints information:
Please check the following items:
①,Whether [/dev] directory has [qiyang_buzzer] device node or not.
②Kernel configuration select <*> BUZZER FOR QIYANG IMX6
BOARD

QY-IMX6S Linux Function And Test Manual
Website:http://www.qiytech.com
©2012 Qiyangtech Copyright
③,Device tree file enable [qiyang_buzzer]node
2.2 RTC Test
QY-IMX6S mainboard adopts I2C2 connect DS1338 Chip on the
base board as external hardware clock. Please confirm that you put on the
battery before testing RTC.
Test Principle:
Set system time through [date] system command, and then write
system time into hardware clock through [hwclock] command. Through
[rtc_test ]program to read hardware timer and print it.After powering off,
restart to check whether the clock is accurate.
Test Process & Result:
1.Execute [date] command on the board and check the current system
clock.
date
2.Set system clock through [date] command, for example, to set on
current PC display time.

QY-IMX6S Linux Function And Test Manual
Website:http://www.qiytech.com
©2012 Qiyangtech Copyright
date 022710412014 /*month day hour minute year*/
3.Use [hwclcok] command to write system time into hardware time
chip.
[ hwclock –w]
4.Check system and hardware clock by [date] command and
[hwclock ]command.
5.After setting successfully, execute [rtc_test] test program.
./rtc_test/dev/rtc0

QY-IMX6S Linux Function And Test Manual
Any question, please send E-mail :supports@qiyangtech.com Page 10 of 72
Website:http://www.qiytech.com
©2012 Qiyangtech Copyright
After the program prints 10 of the RTC time, then exit the program.
Or you can use [Ctrl+c] to exit the program early.
RTC works accurately, no losing seconds.
6.Powering off, then power on to check system and hardware clock by
using [date] and [hwclock] command, to check time is saved or not and
whether works normally.
7.After comparing with PC time, there is no error. If need to test long
time work’s accuracy, you can separate power off and power on aging test
for several days or weeks or months to test the time error.
Before published, our board has been tested for aging test for 1 month,
and the time error does not exceed 2S.
As to our delivery goods, we will make it for aging test for more than
24 hours, and time error does not exceed 1S. .
Device Node:
/dev/rtc
/dev/rtc0

QY-IMX6S Linux Function And Test Manual
Any question, please send E-mail :supports@qiyangtech.com Page 11 of 72
Website:http://www.qiytech.com
©2012 Qiyangtech Copyright
Test Code:
CD/Source Code/Test Code/ rtc_test/rtc_test.c
Driver Code:
ds1338 Driver:linux-3.0.101/drivers/rtc/rtc-ds1307.c
i2c Driver:linux-3.0.101/drivers/i2c/busses/i2c-imx.c
The Kernel Options:
I2c2:
Device Drivers --->
I2C support --->
[*] Enable compatibility bits for old user-space
< *> I2C device interface
< > I2C bus multiplexing support
[*] Autoselect pertinent helper modules
I2C Hardware Bus support --->
[ ] I2C Core debugging messages
[ ] I2C Algorithm debugging messages
[ ] I2C Bus debugging messages
rtc:
Device Drivers --->
[*] Real Time Clock --->
[*] Set system time from RTC on startup and resume
(rtc0) RTC used to set the system time
[ ] RTC debug support
*** RTC interfaces ***
[*] /sys/class/rtc/rtcN (sysfs)
[*] /proc/driver/rtc (procfs for rtc0)

QY-IMX6S Linux Function And Test Manual
Any question, please send E-mail :supports@qiyangtech.com Page 12 of 72
Website:http://www.qiytech.com
©2012 Qiyangtech Copyright
[*] /dev/rtcN (character devices)
[ ] RTC UIE emulation on dev interface
<*> Dallas/Maxim DS1307/37/38/39/40, ST M41T00, EPSON RX-8025
FAQ:
Phenomenon: Time can not be saved, time travel error is huge, can
not check hardware clock
Debug UART print the following information:
Please check the following items:
①Whether BT1 on the base board ,and supports electricity ?
②[/dev/rtc0] and [/dev/rtc1] node in [/dev ]directory ?
③.The kernel configuration has been configurated ?
2.3. Watchdog Test
Test Principle:
Hardware watchdog, [GPIO_3_23] enables watchdog, [GPIO_3_22]
executes ‘feeding dog’operations.
Test Process & Result:
1.Boot Watchdog, and execute ‘feeding dog’operations. You can see

QY-IMX6S Linux Function And Test Manual
Any question, please send E-mail :supports@qiyangtech.com Page 13 of 72
Website:http://www.qiytech.com
©2012 Qiyangtech Copyright
the system will not reboot. Press [Ctrl+C] to exit the program.
./watchdog_feed_test /dev/qy_watchdog
2.Boot Watchdog, but do not execute ‘feeding dog’operations, the
system reboots after1.6 seconds.
./watchdog_notfeed_test /dev/qy_watchdog
Device Node:
/dev/qy_watchdog
Test Code:
CD/Source Code /Test Code/watchdog_test/watchdog_feed_test.c
CD/Source Code /Test Code/watchdog_test/watchdog_notfeed_test.c
Driver Code:
linux-3.0.101/drivers/misc/watchdog.c
The kernel Options:
Device Drivers --->
[*] Misc devices --->
[*] WATCH_DOG FOR QIYANG BOARD
FAQ:
1. The system did not reboot, after executing
[./watchdog_notfeed_test]. Please check the watchdog’s chipset if
it is damaged.

QY-IMX6S Linux Function And Test Manual
Any question, please send E-mail :supports@qiyangtech.com Page 14 of 72
Website:http://www.qiytech.com
©2012 Qiyangtech Copyright
2.4 GPIO Test
This test focus on the following 16-ch GPIO pin definition:
J5[GPIO2_0,GPIO2_1, ,GPIO2-2,GPIO2-3,GPIO2-4,GPIO2_5,GPIO
2_6,GPIO2_7].
J31[ GPIO2_16,GPIO2_17,GPIO2_18,GPIO2_19,GPIO2_20,GPIO2
_21,GPIO2_22,GPIO2_23].
Test Principle:
[Gpio_test 0] test the situation when gpio does not have external
connection, set all pin to low level or high level, through external
measure gpio actual level to confirm gpio is normal or not.
[Gpio_test 1] will read external level signal directly, user can compare
read level data and connected level data to confirm gpio is normal.
Test Process & Result:
Run gpio test program [ gpio_test]
./gpio_test
It hints the below information:

QY-IMX6S Linux Function And Test Manual
Any question, please send E-mail :supports@qiyangtech.com Page 15 of 72
Website:http://www.qiytech.com
©2012 Qiyangtech Copyright
Illustration: [gpio_test <device> 0] set gpio high level and low level
[gpio_test <device> 1] obtain gpio level
2. J5 and J31 GPIO is without external signal, execute
./gpio_test /dev/qiyang_imx6_gpio 0
As the above picture shown, set each [GPIO] to low level. Use
multimeter to measure corresponding GPIO’s actual level value to
confirm GPIO is normal or not. Then press [Enter] to set all GPIO to high
level, to measure corresponding GPIO’s actual level value to confirm
GPIO is normal or not.

QY-IMX6S Linux Function And Test Manual
Any question, please send E-mail :supports@qiyangtech.com Page 16 of 72
Website:http://www.qiytech.com
©2012 Qiyangtech Copyright
Then press [Enter], it hints test [OK].
3.External connect 3.3V to the pin (Internal Pin is weak pull-up)
./gpio_test /dev/qiyang_imx6_gpio 1

QY-IMX6S Linux Function And Test Manual
Any question, please send E-mail :supports@qiyangtech.com Page 17 of 72
Website:http://www.qiytech.com
©2012 Qiyangtech Copyright
As above picture shown, obtaining each gpio level status, users can
change the actual connected gpio signal to confirm gpio is normal or not.
Device Node:
/dev/qiyang_imx6_gpio
Test Code:
CD/Test Code/gpio_test/gpio_test.c
Driver Code:
linux-3.0.101/drivers/misc/qy_imx6_gpio.c
The Kernel Option:
Device Drivers --->
Misc devices --->
<*> IMX6 GPIO TEST FOR QIYANG BOARD
FAQ:
Debug UART shows:

QY-IMX6S Linux Function And Test Manual
Any question, please send E-mail :supports@qiyangtech.com Page 18 of 72
Website:http://www.qiytech.com
©2012 Qiyangtech Copyright
QY-IMX6S-v1.x Gpio Start Testing...
Please check the following items:
①Whether there is [/dev/qiyang_imx6_gpio node] in [/dev directory]
②Whether the kernel configuration select [ <*> IMX6 GPIO TEST
FOR QIYANG BOARD].
2.5. Serial Port Test
There are 5-ch serial ports: J6 is as the debug UART. The other 4-ch
could be used as the RS232 serial port.
COM1(J31) and COM2(J31) are 5 wire serial ports and multiplexes
with RS485 interface.
COM3(J2) and COM4(J2) is 3 wire serial ports.
This test program only aims at testing of common RS232.
The relations between serial port and hardware:
Serial Port
Hardware Location
Device Node
DBG(Debug
UART)
J6(Rx、Tx、GND TO Pin 2、Pin1、Pin3)
/dev/ttymxc0
COM1
J31(Rx、Tx、GND TO Pin11、Pin13、Pin9)
/dev/ttymxc1
COM2
J31(Rx、Tx、GND TO Pin12、Pin14、Pin10)
/dev/ttymxc2
COM3
J2(Rx、Tx、GND TO Pin1、Pin3、Pin5)
/dev/ttymxc3

QY-IMX6S Linux Function And Test Manual
Any question, please send E-mail :supports@qiyangtech.com Page 19 of 72
Website:http://www.qiytech.com
©2012 Qiyangtech Copyright
COM4
J2(Rx、Tx、GND TO Pin2、Pin4、Pin6)
/dev/ttymxc4
Test Principle:
Test program realizes that 1 serial port send character data
“/dev/ttymxcx" test string!!”every other 1s, X is actual testing device node,
through multithreading way to block reading serial ports data and then
print.
Test Process & Result:
When do serial ports testing, PC needs 2 serial ports
②.One connect to debugging port for interaction
③.One connect to under test ports to receive and transmit data
If there is only 1 serial port, port connect to under test ports , connect
development board by network cable. Through [telnet] function to log in
development system as debugging ports operation.
Development board defaulted IP address is 192.168.1.71. Click start
button on PC, select [RUN], then type [cmd] and click confirm.

QY-IMX6S Linux Function And Test Manual
Any question, please send E-mail :supports@qiyangtech.com Page 20 of 72
Website:http://www.qiytech.com
©2012 Qiyangtech Copyright
Input [telent 192.168.1.71] in running Windows.
Input username [root] and password , users can access console, enter
[/usr/test] test directory.
Other manuals for QY-IMX6S
1
Table of contents
Other Qiyang Single Board Computer manuals
Popular Single Board Computer manuals by other brands

Artesyn
Artesyn iVPX7225 RTM Installation and use

Nuvoton
Nuvoton ISD91200 Series Technical reference manual

StarFive
StarFive VisionFive 2 quick start guide

ADLINK Technology
ADLINK Technology NuPRO-E43 manual

National Instruments
National Instruments NI sbRIO-9627 Getting started guide

Alinx
Alinx AC7A035 manual