Download Print this page
Qiyang IAC-IMX6-Kit Manual

Qiyang IAC-IMX6-Kit Manual

Linux function and test manual
Hide thumbs Also See for IAC-IMX6-Kit:

Advertisement

Quick Links

IAC-IMX6-Kit Linux Function And
Test Manual
Version: V 1.0
2017.04
QIYANG INTELLIGENT TECHNOLOGY Co., Ltd
Copyright Reserved

Advertisement

loading
Need help?

Need help?

Do you have a question about the IAC-IMX6-Kit and is the answer not in the manual?

Questions and answers

Summary of Contents for Qiyang IAC-IMX6-Kit

  • Page 1 IAC-IMX6-Kit Linux Function And Test Manual Version: V 1.0 2017.04 QIYANG INTELLIGENT TECHNOLOGY Co., Ltd Copyright Reserved...
  • Page 2 IAC-IMX6-Kit Linux Function and Test Manual Catalogue Version Illustration: .......................... 3 Ⅰ. Preparation ..........................5 Ⅱ. Mainboard Test ..........................6 2.1. Buzzer Test ........................6 2.2. RTC Test ..........................7 2.3 Watchdog Test ........................13 2.4 GPIO Test ......................... 14 2.5.
  • Page 3 IAC-IMX6-Kit Linux Function and Test Manual Version Illustration: Version Hardware Platform Description Date Revisor Core Board: IAC-IMX6-CM V2.03 Carrier Board: IMX6_MB_V1.2 Launched 2017-04-25 hech Any question, please send E-mail :supports@qiyangtech.com Page 3 of 66 Sales E-mail :trade@qiyangtech.com sales@qiyangtech.com Website :http://www.qiytech.com Copyright ©2014 Qiyangtech...
  • Page 4 IAC-IMX6-Kit Linux Function and Test Manual Preface This Manual mainly introduce different interface function and testing method. Please read carefully before using: QY-IMX6-KIT Hardware Manual .pdf & QY-IMX6-KIT Linux User Manual. pdf Any question, please send E-mail :supports@qiyangtech.com Page 4 of 66 Sales E-mail :trade@qiyangtech.com sales@qiyangtech.com...
  • Page 5 IAC-IMX6-Kit Linux Function and Test Manual Ⅰ. Preparation Before testing, please read QY-IMX6-KIT Linux User Manual. pdf, and connect to the mainboard according to that 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 is in [/usr/test] directory, please switch to this directory, the following testing operations will be done in this directory.
  • Page 6: Buzzer Test

    IAC-IMX6-Kit Linux Function and Test Manual Ⅱ. Mainboard Test 2.1. Buzzer Test IAC-IMX6-Kit 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 works.
  • Page 7 (2)Whether the kernel configuration select <*> BUZZER FOR QIYANG IMX6 BOARD or not. (3) Whether the Device tree file enable [qiyang_buzzer]node or not. 2.2. RTC Test IAC-IMX6-KIT mainboard adopts I2C2 connect to DS3231 Chip on Any question, please send E-mail :supports@qiyangtech.com Page 7 of 66 Sales E-mail :trade@qiyangtech.com sales@qiyangtech.com...
  • Page 8 IAC-IMX6-Kit Linux Function and Test Manual the back plane as the external hardware clock. Please confirm you have already installed the battery on back plane before testing RTC. Test Principle: Set system time through [date] system command, and then write system time into hardware clock through [hwclock]command.
  • Page 9 IAC-IMX6-Kit Linux Function and Test Manual hwclock –w 4.Check system and hardware clock by [date] and [hwclock ]command. 5.After setting successfully, execute [rtc_test] test program. ./rtc_test /dev/rtc0 Any question, please send E-mail :supports@qiyangtech.com Page 9 of 66 Sales E-mail :trade@qiyangtech.com sales@qiyangtech.com Website :http://www.qiytech.com...
  • Page 10 IAC-IMX6-Kit Linux Function and Test Manual The current program will print 10 pcs of hardware time, then exit. If you want to exit early, please press [Ctrl+C] to check whether the RTC clock works accurately, no losing seconds. 6.Power off, then power on to check system and hardware clock again.
  • Page 11 IAC-IMX6-Kit Linux Function and Test Manual Before publishing, our board will be tested for aging test for 1 month, and the time error does not exceed 2S. For our delivery goods, we will make it for aging test for more than 24 hours, and time error does not exceed 1S.
  • Page 12 IAC-IMX6-Kit Linux Function and Test Manual 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)
  • Page 13: Watchdog Test

    IAC-IMX6-Kit Linux Function and Test Manual (3)Whether the kernel configuration option has been configured. 2.3 Watchdog Test Test Principle: Hardware Watchdog, GPIO5_20 enable Watchdog, GPIO5_18 executing ‘Feeding Dog’ operations. Test Process &Result: 1.Boot Watchdog, and execute ‘feeding dog’ operations. You can see the system will not reboot.
  • Page 14 IAC-IMX6-Kit Linux Function and Test Manual FAQ: 1. The system did not reboot, after executing [./watchdog_notfeed_test]. Please check the watchdog’s chipset if it is damaged 2.4 GPIO Test This test aim at the following 16 channel GPIO Definition: J16[GPIO1_4、GPIO1_7、GPIO1_8、GPIO1_9、GPIO7_11、 GPIO7_12、GPIO7_13、GPIO4_5] J31[GPIO4_24、GPIO4_26、GPIO4_28、GPIO4_30、GPIO5_5、...
  • Page 15 IAC-IMX6-Kit Linux Function and Test Manual 1.Run[gpio]test program [gpio_test] ./gpio_test It shows the following print information: Illustration: [gpio_test <device> 0] set [gpio] high level and low level [gpio_test <device> 1] obtain gpio level 2. GPIO on J16, J31 is without external signal, execute: ./gpio_test /dev/qiyang_imx6_gpio 0...
  • Page 16 IAC-IMX6-Kit Linux Function and Test Manual multimeter to measure each [gpio]’s actual level value to confirm whether the [gpio]is normal or not ,press [Enter], then set all [gpio] to high level to measure [gpio] actual level value to confirm whether [gpio] is normal or not.
  • Page 17 IAC-IMX6-Kit Linux Function and Test Manual As above picture shown, obtain each [gpio]’s level status, users can change the actual connected [gpio] signal to confirm whether [gpio] signal 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...
  • Page 18: Serial Port Test

    (2)Whether the kernel configuration select [ <*> IMX6 GPIO TEST FOR QIYANG BOARD]option. 2.5. Serial Port Test There are 3-ch serial ports on IAC-IMX6-KIT mainboard: 1-ch serial port is used for debug port(J6), other 2-ch serial port are regarded as common RS232 port or RS485.
  • Page 19 IAC-IMX6-Kit Linux Function and Test Manual at the same time, through multithreading way, block read serial ports data and print. Test Process & Result: When testing, you may need to use 2-ch serial port on PC: (1)1-ch is used for connecting the debugging serial port, it is used for interaction.
  • Page 20 IAC-IMX6-Kit Linux Function and Test Manual picture 1 Input[telent 192.168.1.71] in running window. Input [root]user to enter into the console, enter into [/usr/test]test directory. Any question, please send E-mail :supports@qiyangtech.com Page 20 of 66 Sales E-mail :trade@qiyangtech.com sales@qiyangtech.com Website :http://www.qiytech.com Copyright ©2014 Qiyangtech...
  • Page 21 IAC-IMX6-Kit Linux Function and Test Manual According to the relation between serial port and hardware, select the serial port which needs test, through special serial port cable, to connect the serial port to the UART from PC. Open Serial Assistant Tool in CD.
  • Page 22 IAC-IMX6-Kit Linux Function and Test Manual If it hints as follows: picture 2 It means defaulted COM on the PC is occupied by terminal, close the terminal and then open serial debugging tool. Set serial ports attribution, serial port is corresponding to COM Any question, please send E-mail :supports@qiyangtech.com...
  • Page 23 IAC-IMX6-Kit Linux Function and Test Manual number on PC, here it is COM3, Baud Rate is [115200], Data Bit [8], Stop Bit [1], Parity Bit [NONE]. After the serial port is connected and set well, then we could do the test.
  • Page 24 IAC-IMX6-Kit Linux Function and Test Manual You can receive the date after running serial assistant tool. Click [Send Ev] on serial assistant tool, you can receive the date from telent. [telnet] and Serial Debugging Assistant could also receive the data Any question, please send E-mail :supports@qiyangtech.com...
  • Page 25 IAC-IMX6-Kit Linux Function and Test Manual and the data is correct, it means the serial function is normal. After testing COM1, [Ctrl+C] to exit program, continue to test the other serial ports. Device Node: /dev/ttymxc3 /dev/ttymxc4 Test Code: CD/Test Code//serial _test/rs232 _test.c Driver Code: /linux-3.0.101/drivers/tty/serial/imx.
  • Page 26 IAC-IMX6-Kit Linux Function and Test Manual (3)Whether serial port’s hardware and testing program node are corresponded or not. (4)Whether the node of [ttymxc1,ttymxc2,ttymxc3,ttymxc4] in [/dev] directory is existed or not. (5)Whether the kernel configuration options are selected or not. 2.6. SPI Test Test Principle: There is 1-ch SPI on IAC-I.MX6-KIT mainboard, connect to nor flash...
  • Page 27 IAC-IMX6-Kit Linux Function and Test Manual cat /mnt/temp.txt 4. Unmount umount /mnt 5. Partition 1 operation process follows above steps. Device Node: /dev/mtd0 /dev/mtd1 /dev/mtdblock0 /dev/mtdblock1 Driver Code: linux-3.0.101/drivers/mtd/devices/m25p80.c The Kernel Options: Device Drivers ---> SPI support ---> <*> User mode SPI device driver support Device Drivers --->...
  • Page 28 (2)Whether the kernel configuration option is selected. 2.7. CAN Test Test Principle: IAC-IMX6-Kit mainboard has 2-ch CAN, here, we provide the CAN testing method, use CAN tool to test. can0 (H, L) -> Pin1 ,Pin2 on J4 can1 (H, L) ->Pin 3,Pin 4 on J4 Test Process &...
  • Page 29 IAC-IMX6-Kit Linux Function and Test Manual 3. Use CAN test program to test: ./can_test Illustration: ①[can_test <device> 0] set CAN to receive data. ②[can_test <device> 1] set CAN to transmit date. Here, we take the CAN on the mainboard 1 as the receiving terminal, input command in serial terminal: ./can_test can0 0...
  • Page 30 IAC-IMX6-Kit Linux Function and Test Manual At the moment, the debug UART on mainboard 1 will receive the transmitting CAN data which sent from the mainboard 2: Then exchange them to test, take the CAN on mainboard 2 as receiving terminal, take the CAN on mainboard1 as transmitting terminal.
  • Page 31 IAC-IMX6-Kit Linux Function and Test Manual <*> Virtual Local CAN Interface (vcan) <*> Platform CAN drivers with Netlink support CAN bit-timing calculation <*> Support for Freescale FLEXCAN based chips FAQ: The Debug UART prints the following information: read can datas failed.
  • Page 32 Please check whether the two terminals [bitrate] is right. (4)Please check whether the 2*CAN hardware connection is right. 2.8. Audio & Video Test IAC-IMX6-Kit mianboard supports video display function by software decoding. The file system provides [GPLAY] tool to support audio & video play.
  • Page 33 IAC-IMX6-Kit Linux Function and Test Manual After executing, we can see 1080P HD demo displaying on LCD displayer. Video play format supports [avi,mp4,flv,3gp,mov,ts,vob,mpg,dat]. 2.There is an audio test file [shinian,mp3] in [/usr/test] directory, you can play this audio file to test.
  • Page 34 IAC-IMX6-Kit Linux Function and Test Manual You will hear the MP3 music from the audio output interface. [GPLAY] support [mp2,mp3,m4a,aac,wav,ogg,amr] audio formats. [GPLAY] integrates powerful play control function, we could debug serial input to control: Button Function Play Stop Seek...
  • Page 35 IAC-IMX6-Kit Linux Function and Test Manual Switch to mute or not > Play next file < Play previous file Switch to repeated mode or not Set full screen or not resize the width and height Rotate Setting play rate Display the metadata eXit We will take an example by adjusting the volumes.
  • Page 36 IAC-IMX6-Kit Linux Function and Test Manual command. Input [V], it hints [Set volume[0-1.0] ], input range [0~1.0],input [0.3] here. You will hear the voice turns light from the audio port. Audio Record Test: Use microphone to connect J17, then input the following command in terminal for recording: arecord -d 10 -D plughw:1 test.wav...
  • Page 37: Default Setting

    IAC-IMX6-Kit Linux Function and Test Manual Test Principle: Set Board’s network, use [ping] to check whether the network is connected well. Test Process & Result: Network eth0 is J8 1. Connect J8 to Router (Switcher) by a network cable, use another network cable to connect computer and Router (Switcher), ensure it could access the network.
  • Page 38 IAC-IMX6-Kit Linux Function and Test Manual Test Internet, input: 4、 ping www.baidu.com -I eth0 If it prints the below correct information ,please input [Ctrl+C] to exit. FAQ: If there is issue, please check the below items: ① Check whether Network LAN is working.
  • Page 39 IAC-IMX6-Kit Linux Function and Test Manual 2.10. USB Test It supports 3 formats:fat32,exFAT,NTFS. There are 5-ch USB on IAC-I.MX6-KIT mainboard: (1)1-ch (J13) is as device port, download firmware program by [usb] mode. (2)1-ch (J14) is to connect the external wifi module;...
  • Page 40 IAC-IMX6-Kit Linux Function and Test Manual Test Process & Result: Here, take example of USB Flash Disk which has only 1 partition. 1.Insert USB Flash Disk to J15. Debug port prints the following information: As the above picture shown, it shows some information of USB Flash Disk, USB Flash Disk recognize device node as [sda], child node is [sda4].
  • Page 41 IAC-IMX6-Kit Linux Function and Test Manual 3. Check contents in USB Flash Disk ls /media/sda4 4.Can test USB Flash Disk read - write, by creating , copying and deleting file. 5.Use the same method to test 2* Host USB ports, after finishing test,...
  • Page 42: Sd Card Test

    IAC-IMX6-Kit Linux Function and Test Manual Device Drivers ---> USB support ---> <*> EHCI HCD (USB 2.0) support Support for Freescale controller Support for DR host port on Freescale controller Root Hub Transaction Translators <*> USB OTG pin detect support...
  • Page 43 IAC-IMX6-Kit Linux Function and Test Manual Generate device node and partition node in [/dev] directory. Then system will automatically mount all partition to [/media/] directory. Through read and write the corresponding directory files, you can judge whether interface is normal or not.
  • Page 44 IAC-IMX6-Kit Linux Function and Test Manual Here, it will automatically mount SD Card to [/media/mmcblk0p] directory, you can check SD card information directly. ls /media/mmcblk1p1 It can test SD card read and write through creating, copying, deleting files. Pull out the SD Card, it prints information as shown:...
  • Page 45 IAC-IMX6-Kit Linux Function and Test Manual [*] SDHCI platform support for the Freescale eSDHC i.MX contr FAQ: (1)After insertting a SD Card, without any printed information or can recognize but shows read and write error, it may because of SD Card damage.
  • Page 46 IAC-IMX6-Kit Linux Function and Test Manual Here, we have mounted the hardware disk to [/media/sda1]directory, you can check the content from the hardware disk directly. ls /media/sda1 You can test SD Card read and write by creating, coping ,deleting file.
  • Page 47 IAC-IMX6-Kit Linux Function and Test Manual hdparm -t /dev/sda1 If it can measure the hardware disk’s read and write speed, it means the SATA connector can work. 2.13 HDMI Test J23 is HDMI interface on board, it supports two kinds of resolutions: 1920x1080 and 1280x720.
  • Page 48 IAC-IMX6-Kit Linux Function and Test Manual Save and boot system. saveenv;boot Test Principle: Set frame buffer in uboot and start HDMI driver, set resolution. Booting development board, video output is HDMI. Test Process & Result: Connect HDMI cable to J23 on board.
  • Page 49 IAC-IMX6-Kit Linux Function and Test Manual saveenv;boot Load to kernel Test Principle: Set frame buffer in uboot and boot HDMI driver, set resolution. Boot development board, video output is HDMI. System boots, it shows penguin picture which kernel owns. Test Process & Result: Connect LVDS cable to J9 onboard, touch panel cable to J12 onboard, backlight powering cable to J11 onboard.
  • Page 50 IAC-IMX6-Kit Linux Function and Test Manual whether display normal or not. You can also run qt program to test LCD and VGA according to this chapter 2.9. After executing, you will see the demo with 1080P video on LCD or VGA.
  • Page 51 IAC-IMX6-Kit Linux Function and Test Manual If using touch panel operation, please use [ts_calibrate] to calibrate the touch panel before running QT program. After calibration, then execute [Imx6_qt_test]program. cd /usr/test/ ./Imx6_qt_test -qws After running, system will load and show QT program image, as...
  • Page 52 IAC-IMX6-Kit Linux Function and Test Manual Driver Code: None The Kernel Options: None FAQ: Please refer to touch panel and LCD display questions. 2.16. Touch Panel Test Touch panel supports resistive touch panel and capacitive touch panel, resistive touch panel pairs with LCD screen. The capacitive touch panel pairs with LVDS screen.
  • Page 53 IAC-IMX6-Kit Linux Function and Test Manual Test Process & Result: 1. The default environmental variables match capactive touch panel, if you want to use the resistive touch panel, please modify: vi /etc/QtEnv Change[event2] to [event1] Take environment variables effect: source /etc/QtEnv 2、...
  • Page 54 IAC-IMX6-Kit Linux Function and Test Manual ts_test You can click the drag button or drawing button to test, you can see the mouser or line will be moving as your touch point. Test Code: Test Tool:ts_calibrate, ts_test Relative tool source: CD/Test Code/tslib Driver Code: linux-3.0.101/drivers/input/touchscreen/ads7846.c...
  • Page 55: Camera Test

    IAC-IMX6-Kit Linux Function and Test Manual 2.17、CAMERA Test Test Principle: The board supports OV5640 camera, run command, test camera. The board has camera interface J25. We use the OV5640 camera. Connect OV5640 to J25. Test Principle & Result: 1. J25 connect OV5640 2.Display, refer to Chapter 2.13,2.14.
  • Page 56 IAC-IMX6-Kit Linux Function and Test Manual <*> Multimedia support ---> <*> Vedio caputure adapters ---> <*> MXC Video For Linux Camera ---> < > CSI camera support <*> OmniVision ov5640 camera support -*- camera clock <*> Select Overlay Rounting (Queue ipu device for overlay library)--->...
  • Page 57 IAC-IMX6-Kit Linux Function and Test Manual ② Whether kernel configuration option is selected. ③ Whether the kernel be downloaded correctly. Any question, please send E-mail :supports@qiyangtech.com Page 57 of 66 Sales E-mail :trade@qiyangtech.com sales@qiyangtech.com Website :http://www.qiytech.com Copyright ©2014 Qiyangtech...
  • Page 58 IAC-IMX6-Kit Linux Function and Test Manual 2.18、3G/4G Test IAC-IMX6-Kit 开发板引出 U30 miniPCI 接口,可以接 3G 模块及其可以接 3G 卡的 u20 支持全网通模块:SIM7100CE、SIM7600CE 支持移动 3G、联通 3G 模块:UC15 抽屉式卡槽,插上模块和模块支持的手机卡,上电,可以看到打印的信息。 IAC-I.MX6-KIT brings U30 miniPCI interface. It can connect to other 3G cards. It supports module: SIM7100CE, SIM7600CE.
  • Page 59 IAC-IMX6-Kit Linux Function and Test Manual successfully. Visit Internet, press [Ctrl+C] to exit: ping www.baidu.com -I ppp0 Any question, please send E-mail :supports@qiyangtech.com Page 59 of 66 Sales E-mail :trade@qiyangtech.com sales@qiyangtech.com Website :http://www.qiytech.com Copyright ©2014 Qiyangtech...
  • Page 60 IAC-IMX6-Kit Linux Function and Test Manual 2.19、Wifi Test IAC-I.MX6 brings J14 connector or J15 connector to connect wifi, the module supports RTL8188CUS. Inserting RTL8188CUS on J14 or J15. Output in terminal: ifconfig -a It prints [wlan0] Modify configuration file [/etc/wpa_supplicant.conf], modify [ssid] and Any question, please send E-mail :supports@qiyangtech.com...
  • Page 61 IAC-IMX6-Kit Linux Function and Test Manual [psk] to the corresponding user name and password. Input [sync], power on the board , wait for seconds, input : ifconfig If it shows [wlan0], it means the module has been loaded successfully. Test Internet ping www.baidu.com -I wlan0...
  • Page 62 IAC-IMX6-Kit Linux Function and Test Manual If it shows the above information, it means the module works normally. Any question, please send E-mail :supports@qiyangtech.com Page 62 of 66 Sales E-mail :trade@qiyangtech.com sales@qiyangtech.com Website :http://www.qiytech.com Copyright ©2014 Qiyangtech...
  • Page 63 IAC-IMX6-Kit Linux Function and Test Manual 2.20、RS485 Test On IAC-I.MX6S development board, it has reserved 2-ch RS485, multiplex with RS232. RS485, RS232 exists at same time. Relation Chart Between RS485 and Hardware: UART Hardware Location Device Node COM1 J6(A、B TO Pin7, Pin8)...
  • Page 64 IAC-IMX6-Kit Linux Function and Test Manual 2. Power on, when in Uboot, press [Enter], input the following command: set bootargs_base 'setenv bootargs console=ttymxc0,115200 imx6_feature=rs485:2' saveenv;boot 3. After system boots, Board 1 as RS485 receiving end, input: /usr/test/rs485_test /dev/ttymxc3 115200 0 4、Board 2 as RS485 transmitting end, input:...
  • Page 65 IAC-IMX6-Kit Linux Function and Test Manual Ⅲ. Test Summary IAC-IMX6-Kit mainboard’s function tests are finished. If any problems, please use the test code to check. Any question, please send E-mail :supports@qiyangtech.com Page 65 of 66 Sales E-mail :trade@qiyangtech.com sales@qiyangtech.com Website :http://www.qiytech.com...
  • Page 66 IAC-IMX6-Kit Linux Function and Test Manual Zhejiang Qiyang Intelligent Technology Co., Ltd Tel: 86 -571-87858811 / 87858822 Fax: 86-571-89935912 Technology Support: 86-571-89935913 E-MAIL: supports@qiyangtech.com Website: http://www.qiytech.com Address: 5F, Building 3A, NO.8 Xiyuanyi Road, West Lake Science Park, Hangzhou, China Post Code: 310030 Any question, please send E-mail :supports@qiyangtech.com...

This manual is also suitable for:

Iac-imx6-cm