“MY-IMX6 Linux-3.14 测试手册”的版本间的差异

来自明远智睿的wiki
跳转至: 导航搜索
第1行: 第1行:
<div>
 
  
 
= '''测试前的准备(preparation before test)''' =
 
= '''测试前的准备(preparation before test)''' =
 +
 
----
 
----
1)请按照《Linux快速启动手册》中的“Linux快速启动” -> “连接设备”进行连接。<br>
+
1)请按照《Linux快速启动手册》中的“Linux快速启动” -> “连接设备”进行连接。<br>
  <span style="background:#CCCCCC">please connect following the path of 《Linux fast boot manual》->“Linux fast boot” -> “device connection”。</span><br>
+
<span style="background:#CCCCCC">please connect following the path of 《Linux fast boot manual》->“Linux fast boot” -> “device connection”。</span><br>
2)请按照《Linux快速启动手册》中的“Linux快速启动” -> “启动设备”进行启动。<br>
+
2)请按照《Linux快速启动手册》中的“Linux快速启动” -> “启动设备”进行启动。<br>
  <span style="background:#CCCCCC">please boot following the path of 《Linux fast boot manual》->“Linux fast boot” -> “device booting”。</span><br>
+
<span style="background:#CCCCCC">please boot following the path of 《Linux fast boot manual》->“Linux fast boot” -> “device booting”。</span><br>
  
  
 
= '''测试项目(test item)''' =
 
= '''测试项目(test item)''' =
 +
 
----
 
----
 
== '''网口测试(network inferface test)''' ==
 
== '''网口测试(network inferface test)''' ==
第19行: 第20行:
  
 
=== 接口属性(interface property) ===
 
=== 接口属性(interface property) ===
 +
<div>
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
第46行: 第48行:
 
|eth1
 
|eth1
 
|}
 
|}
 +
</div>
  
  
第115行: 第118行:
 
== '''USB测试(USB test)''' ==
 
== '''USB测试(USB test)''' ==
 
=== 接口属性(interface property) ===
 
=== 接口属性(interface property) ===
 +
<div>
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
第129行: 第133行:
 
|480 Mbits/s
 
|480 Mbits/s
 
|}
 
|}
 +
</div>
  
  
第152行: 第157行:
 
== '''SD卡测试(SD card test)''' ==
 
== '''SD卡测试(SD card test)''' ==
 
=== 接口属性(interface property) ===
 
=== 接口属性(interface property) ===
{| class="wikitable"
+
<div>
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
第173行: 第178行:
 
|SD
 
|SD
 
|}
 
|}
|}
+
</div>
  
  
第202行: 第207行:
 
== '''音频测试(audio test)''' ==
 
== '''音频测试(audio test)''' ==
 
=== 测试说明(test instruction) ===
 
=== 测试说明(test instruction) ===
这项测试是通过播放音频文件验证评估板的音频功能。<br>
+
这项测试是通过播放音频文件验证评估板的音频功能。<br>
  <span style="background:#CCCCCC">the test is to verify audio function of evaluation board by playing audio file。</span><br>
+
<span style="background:#CCCCCC">the test is to verify audio function of evaluation board by playing audio file。</span><br>
  
 
===  测试方法(test method) ===
 
===  测试方法(test method) ===
1)准备测试<br>
+
1)准备测试<br>
  <span style="background:#CCCCCC">prepare test</span><br>
+
<span style="background:#CCCCCC">prepare test</span><br>
连接音频输出设备到底板正面的音频座子,音频座子在底板正面“J20”,丝印名称是“HP”。<br>
+
<span style="background:#CCCCCC">connect audio output device to audio element in front view of base board,audio element is “J20”in front view of base board,silkscreened as“HP”。</span><br>
  <span style="background:#CCCCCC">connect audio output device to audio element in front view of base board,audio element is “J20”in front view of base board,silkscreened as“HP”。</span><br>
 
  
2)执行测试<br>
+
2)执行测试<br>
  <span style="background:#CCCCCC">execute test</span><br>
+
<span style="background:#CCCCCC">execute test</span><br>
使用aplay播放一个视频,示例命令如下:<br>
+
使用aplay播放一个视频,示例命令如下:<br>
  <span style="background:#CCCCCC">play a video with gplay,commanded as below:</span><br>
+
<span style="background:#CCCCCC">play a video with gplay,commanded as below:</span><br>
 
<span style="background:#ffff00"># aplay /unit_tests/audio8k16S.wav<br></span>
 
<span style="background:#ffff00"># aplay /unit_tests/audio8k16S.wav<br></span>
上面这条命令会使用aplay播放命令中指定的文件。<br>
+
上面这条命令会使用aplay播放命令中指定的文件。<br>
  <span style="background:#CCCCCC">the above command will play a file designated by command with gplay。</span><br>
+
<span style="background:#CCCCCC">the above command will play a file designated by command with gplay。</span><br>
  
3)测试结果<br>
+
3)测试结果<br>
  <span style="background:#CCCCCC">test result</span><br>
+
<span style="background:#CCCCCC">test result</span><br>
执行上面的测试命令后会听到音频设备输出的声音。<br>
+
执行上面的测试命令后会听到音频设备输出的声音。<br>
  <span style="background:#CCCCCC">you can see the vedeo played on display screen of evaluation board and hear the voices outputed by audio device。</span><br>
+
<span style="background:#CCCCCC">you can see the vedeo played on display screen of evaluation board and hear the voices outputed by audio device。</span><br>
  
 
===  附图(figures) ===
 
===  附图(figures) ===
第230行: 第234行:
 
== '''视频测试(video test)''' ==
 
== '''视频测试(video test)''' ==
 
===  测试说明(test instruction) ===
 
===  测试说明(test instruction) ===
这项测试是通过播放视频验证评估板的音频视频功能。<br>
+
这项测试是通过播放视频验证评估板的音频视频功能。<br>
  <span style="background:#CCCCCC">the test is to verify audio&video function of evaluation board by playing audio file。</span><br>
+
<span style="background:#CCCCCC">the test is to verify audio&video function of evaluation board by playing audio file。</span><br>
  
 
===  测试方法(test method) ===
 
===  测试方法(test method) ===
使用gplay播放一个视频,示例命令如下:<br>
+
使用gplay播放一个视频,示例命令如下:<br>
  <span style="background:#CCCCCC">play a video with gplay,commanded as below:</span><br>
+
<span style="background:#CCCCCC">play a video with gplay,commanded as below:</span><br>
<span style="background:#ffff00"># gplay-1.0 /unit_tests/akiyo.mp4<br></span>
+
<span style="background:#ffff00"># gplay-1.0 /unit_tests/akiyo.mp4<br></span>
上面这条命令会使用gplay播放命令中指定的文件。<br>
+
上面这条命令会使用gplay播放命令中指定的文件。<br>
  <span style="background:#CCCCCC">the above command will play a file designated by command with gplay。</span><br>
+
<span style="background:#CCCCCC">the above command will play a file designated by command with gplay。</span><br>
 
*测试结果<br>
 
*测试结果<br>
 
<span style="background:#CCCCCC">test result</span><br>
 
<span style="background:#CCCCCC">test result</span><br>
执行上面的测试命令后会在评估板显示屏上看到大约1秒钟的视频图像。<br>
+
执行上面的测试命令后会在评估板显示屏上看到大约1秒钟的视频图像。<br>
  <span style="background:#CCCCCC">you can see the vedeo image for about 1 second on display screen of evaluation board after execution of test command。</span><br>
+
<span style="background:#CCCCCC">you can see the vedeo image for about 1 second on display screen of evaluation board after execution of test command。</span><br>
  
  
第249行: 第253行:
 
== '''标准GPIO测试(standard GPIO test)''' ==
 
== '''标准GPIO测试(standard GPIO test)''' ==
 
=== 接口属性(interface property) ===
 
=== 接口属性(interface property) ===
 +
<div>
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
第274行: 第279行:
 
|192 ||GPIO7_IO00 ||J21:12 ||J21:11 ||GPIO3_IO30 ||94
 
|192 ||GPIO7_IO00 ||J21:12 ||J21:11 ||GPIO3_IO30 ||94
 
|}
 
|}
 +
</div>
  
 +
<div>
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
第324行: 第331行:
 
|116 ||GPIO4_IO20 ||U14:37 ||U14:38 ||gpio-leds ||--
 
|116 ||GPIO4_IO20 ||U14:37 ||U14:38 ||gpio-leds ||--
 
|}
 
|}
 +
</div>
  
  
第391行: 第399行:
 
== '''GPIO-LED测试(GPIO-LED test)''' ==
 
== '''GPIO-LED测试(GPIO-LED test)''' ==
 
=== 接口属性(interface property) ===
 
=== 接口属性(interface property) ===
 +
<div>
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
第437行: 第446行:
 
|gpio
 
|gpio
 
|}
 
|}
 +
</div>
  
  
第483行: 第493行:
 
== '''GPIO-KEY测试(GPIO-KEY test)''' ==
 
== '''GPIO-KEY测试(GPIO-KEY test)''' ==
 
=== 接口属性(interface property) ===
 
=== 接口属性(interface property) ===
 +
<div>
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
第521行: 第532行:
 
|Volume Down
 
|Volume Down
 
|}
 
|}
 +
</div>
  
  
第537行: 第549行:
 
[[文件:MY-IMX6 Linux-3.14_2.9.2.1 .png]]<br>
 
[[文件:MY-IMX6 Linux-3.14_2.9.2.1 .png]]<br>
  
3)进行交互测试<br>
+
3)进行交互测试<br>
 
<span style="background:#CCCCCC">proceed with interactive test</span><br>
 
<span style="background:#CCCCCC">proceed with interactive test</span><br>
 
在终端会看到“Testing ... (interrupt to exit)”,这时我们按下或松开SW4、SW3、SW2。会看到如下类似信息:<br>
 
在终端会看到“Testing ... (interrupt to exit)”,这时我们按下或松开SW4、SW3、SW2。会看到如下类似信息:<br>
第545行: 第557行:
 
Event: time 1452590477.115958, -------------- SYN_REPORT ------------<br>
 
Event: time 1452590477.115958, -------------- SYN_REPORT ------------<br>
 
Event: time 1452590478.415953, type 1 (EV_KEY), code 115 (KEY_VOLUMEUP), value 1<br>
 
Event: time 1452590478.415953, type 1 (EV_KEY), code 115 (KEY_VOLUMEUP), value 1<br>
其中“value 1”信息是在按键被按下的时候被输出,“value 0”信息是在按键被松开的时候被输出。<br>
+
其中“value 1”信息是在按键被按下的时候被输出,“value 0”信息是在按键被松开的时候被输出。<br>
 
<span style="background:#CCCCCC">message of“value 1”is outputed with press of key,message of“value 0”is outputed with release of key。</span><br>
 
<span style="background:#CCCCCC">message of“value 1”is outputed with press of key,message of“value 0”is outputed with release of key。</span><br>
[[文件:MY-IMX6 Linux-3.14_2.9.2.2 .png]]<br>
+
[[文件:MY-IMX6 Linux-3.14_2.9.2.2 .png]]<br>
 
 
3)结束测试<br>
+
3)结束测试<br>
 
<span style="background:#CCCCCC">end test</span><br>
 
<span style="background:#CCCCCC">end test</span><br>
按计算机上的“Ctrl”+“C”可结束按键测试程序。<br>
+
按计算机上的“Ctrl”+“C”可结束按键测试程序。<br>
 
<span style="background:#CCCCCC">press “Ctrl”+“C”on computer to end the test program for keys。</span><br>
 
<span style="background:#CCCCCC">press “Ctrl”+“C”on computer to end the test program for keys。</span><br>
  
第563行: 第575行:
  
 
=== 用户串口属性(user serial port property) ===
 
=== 用户串口属性(user serial port property) ===
 +
<div>
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
第619行: 第632行:
 
|ttymxc4
 
|ttymxc4
 
|}
 
|}
  提示:这里列出串口的收发管脚,串口其它管脚的定义请看原理图。<br>
+
</div>
  <span style="background:#CCCCCC">tips:transceiver pins of serial port are listed here,but please refer to schematic for definition of all pins of serial port。</span><br>
+
提示:这里列出串口的收发管脚,串口其它管脚的定义请看原理图。<br>
 +
<span style="background:#CCCCCC">tips:transceiver pins of serial port are listed here,but please refer to schematic for definition of all pins of serial port。</span><br>
  
 
=== 串口测试(serial port test) ===
 
=== 串口测试(serial port test) ===
第704行: 第718行:
 
== '''RTC测试(RTC test) ''' ==
 
== '''RTC测试(RTC test) ''' ==
 
===  测试说明(test instruction) ===
 
===  测试说明(test instruction) ===
受快递运输影响,MY-IMX6 系列评估板发货时不带电池。测试RTC前请自备纽扣电池并安装到评估板上。<br>
+
受快递运输影响,MY-IMX6 系列评估板发货时不带电池。测试RTC前请自备纽扣电池并安装到评估板上。<br>
  <span style="background:#CCCCCC">due to restrictions in transportation,MY-I.MX6 evaluation board doesn't contatin battery in delivery。before RTC test please prepare button cell to install on evaluation board。</span><br>
+
<span style="background:#CCCCCC">due to restrictions in transportation,MY-I.MX6 evaluation board doesn't contatin battery in delivery。before RTC test please prepare button cell to install on evaluation board。</span><br>
MY-IMX6-EK200的电池座在底板背面的“BT1”位置。<br>
+
MY-IMX6-EK200的电池座在底板背面的“BT1”位置。<br>
  <span style="background:#CCCCCC">MY-IMX6-EK200 battery holder is located in“BT1”on rear view of base board。</span><br>
+
<span style="background:#CCCCCC">MY-IMX6-EK200 battery holder is located in“BT1”on rear view of base board。</span><br>
MY-IMX6-EK314的电池座在底板正面的“BT1”位置。<br>
+
MY-IMX6-EK314的电池座在底板正面的“BT1”位置。<br>
  <span style="background:#CCCCCC">MY-IMX6-EK314 battery holder is located in“BT1”on front view of base board。</span><br>
+
<span style="background:#CCCCCC">MY-IMX6-EK314 battery holder is located in“BT1”on front view of base board。</span><br>
  
  
 
=== 测试方法(test method ) ===
 
=== 测试方法(test method ) ===
1)断电重启设备,查看当前系统时间和硬件时间。<br>
+
1)断电重启设备,查看当前系统时间和硬件时间。<br>
  <span style="background:#CCCCCC">power off then reboot device,to check the time of system and hardware。</span><br>
+
<span style="background:#CCCCCC">power off then reboot device,to check the time of system and hardware。</span><br>
 
*查看当前系统时钟命令如下:<br>
 
*查看当前系统时钟命令如下:<br>
 
<span style="background:#CCCCCC">command to check clock of current system as below</span><br>
 
<span style="background:#CCCCCC">command to check clock of current system as below</span><br>
第723行: 第737行:
 
<span style="background:#c0c0c0">Thu Aug  6 05:35:17 UTC 2015</span><br>
 
<span style="background:#c0c0c0">Thu Aug  6 05:35:17 UTC 2015</span><br>
  
2)查看当前RTC芯片时钟命令如下:<br>
+
2)查看当前RTC芯片时钟命令如下:<br>
  <span style="background:#CCCCCC">command to check clock of RTC chip as below:</span><br>
+
<span style="background:#CCCCCC">command to check clock of RTC chip as below:</span><br>
 
<span style="background:#ffff00"># hwclock <br></span>
 
<span style="background:#ffff00"># hwclock <br></span>
  
第730行: 第744行:
 
<span style="background:#CCCCCC">message outputed by system as below:</span><br>
 
<span style="background:#CCCCCC">message outputed by system as below:</span><br>
 
<span style="background:#c0c0c0">Thu Aug  6 05:35:59 2015  0.000000 seconds</span><br>
 
<span style="background:#c0c0c0">Thu Aug  6 05:35:59 2015  0.000000 seconds</span><br>
3)设置系统时钟,并同步到RTC芯片<br>
+
3)设置系统时钟,并同步到RTC芯片<br>
  <span style="background:#CCCCCC">set system clock and synchronously set to RTC chip</span><br>
+
<span style="background:#CCCCCC">set system clock and synchronously set to RTC chip</span><br>
  
 
*设置系统时钟命令参考如下:<br>
 
*设置系统时钟命令参考如下:<br>
 
<span style="background:#CCCCCC">command to set system clock are with below reference:</span><br>
 
<span style="background:#CCCCCC">command to set system clock are with below reference:</span><br>
<span style="background:#ffff00"># date -s "2015-08-20 12:34:56"<br></span>
+
<span style="background:#ffff00"># date -s "2015-08-20 12:34:56"<br></span>
 
 
 
*将系统时钟写入硬件时钟命令如下:<br>
 
*将系统时钟写入硬件时钟命令如下:<br>
 
<span style="background:#CCCCCC">command to write system clock into hardware as below:</span><br>
 
<span style="background:#CCCCCC">command to write system clock into hardware as below:</span><br>
<span style="background:#ffff00"># hwclok –w<br></span>
+
<span style="background:#ffff00"># hwclok –w<br></span>
4)断电重启评估板,查看当前系统时钟和硬件时钟<br>
+
4)断电重启评估板,查看当前系统时钟和硬件时钟<br>
  <span style="background:#CCCCCC">power off and reboot evaluation board,to check current system clock and hardware clock</span><br>
+
<span style="background:#CCCCCC">power off and reboot evaluation board,to check current system clock and hardware clock</span><br>
请参考第1步<br>
+
请参考第1步<br>
  <span style="background:#CCCCCC">please refer to step 1</span><br>
+
<span style="background:#CCCCCC">please refer to step 1</span><br>
 
5)测试结果<br>
 
5)测试结果<br>
 
<span style="background:#CCCCCC">test Results</span><br>
 
<span style="background:#CCCCCC">test Results</span><br>
第754行: 第768行:
 
<span style="background:#CCCCCC">below image is screenshots for step1 and step 2 in the test</span><br>
 
<span style="background:#CCCCCC">below image is screenshots for step1 and step 2 in the test</span><br>
 
[[文件:MY-IMX6 Linux-3.14_2.11.3.1 .png]]<br>
 
[[文件:MY-IMX6 Linux-3.14_2.11.3.1 .png]]<br>
下图为测试方法中步骤3的截图<br>
+
下图为测试方法中步骤3的截图<br>
  <span style="background:#CCCCCC">below image is screenshots for step3 in the test</span><br>
+
<span style="background:#CCCCCC">below image is screenshots for step3 in the test</span><br>
 
[[文件:MY-IMX6 Linux-3.14_2.11.3.2.png]]<br>
 
[[文件:MY-IMX6 Linux-3.14_2.11.3.2.png]]<br>
  
第761行: 第775行:
 
== '''WatchDog测试(WatchDog test)''' ==
 
== '''WatchDog测试(WatchDog test)''' ==
 
=== 测试说明(test instruction) ===
 
=== 测试说明(test instruction) ===
WatchDog测试包括2项:一项是复位测试,一项是喂狗测试。<br>
+
WatchDog测试包括2项:一项是复位测试,一项是喂狗测试。<br>
  <span style="background:#CCCCCC">WatchDog test includes two items:one is reset test,the other is feed dog test。</span><br>
+
<span style="background:#CCCCCC">WatchDog test includes two items:one is reset test,the other is feed dog test。</span><br>
  
  
第775行: 第789行:
 
<span style="background:#ffff00"># /unit_tests/wdt_driver_test.out 10 15 1<br></span>
 
<span style="background:#ffff00"># /unit_tests/wdt_driver_test.out 10 15 1<br></span>
  
3)测试结果<br>
+
3)测试结果<br>
  <span style="background:#CCCCCC">test result</span><br>
+
<span style="background:#CCCCCC">test result</span><br>
运行测试命令后等待10秒后,WatchDog超时,系统被复位。将会在终端看到系统重新启动输出的信息。<br>
+
运行测试命令后等待10秒后,WatchDog超时,系统被复位。将会在终端看到系统重新启动输出的信息。<br>
  <span style="background:#CCCCCC">wait for 10 seconds after running of test command,WatchDog timeout,system is resetted。you can see message outputed by system rebooting on terminal。</span><br>
+
<span style="background:#CCCCCC">wait for 10 seconds after running of test command,WatchDog timeout,system is resetted。you can see message outputed by system rebooting on terminal。</span><br>
 
[[文件:MY-IMX6 Linux-3.14_2.12.2.1 .png]]<br>
 
[[文件:MY-IMX6 Linux-3.14_2.12.2.1 .png]]<br>
 
===  喂狗测试(feed dog test) ===
 
===  喂狗测试(feed dog test) ===
  
1)测试说明<br>
+
1)测试说明<br>
  <span style="background:#CCCCCC">test instruction</span><br>
+
<span style="background:#CCCCCC">test instruction</span><br>
 
喂狗测试将启动WatchDog,并且每2秒钟进行1次喂狗,系统将不会因为WatchDog超时而复位。<br>
 
喂狗测试将启动WatchDog,并且每2秒钟进行1次喂狗,系统将不会因为WatchDog超时而复位。<br>
 
<span style="background:#CCCCCC">feeding dog test will boot WatchDog,and feed dog every 2 second,system won't reset because of WatchDog timeout。</span><br>
 
<span style="background:#CCCCCC">feeding dog test will boot WatchDog,and feed dog every 2 second,system won't reset because of WatchDog timeout。</span><br>
  
2)执行测试<br>
+
2)执行测试<br>
  <span style="background:#CCCCCC">execute test</span><br>
+
<span style="background:#CCCCCC">execute test</span><br>
 
*启动WatchDog<br>
 
*启动WatchDog<br>
 
<span style="background:#CCCCCC">boot WatchDog</span><br>
 
<span style="background:#CCCCCC">boot WatchDog</span><br>
第798行: 第812行:
 
[[文件:MY-IMX6 Linux-3.14_2.12.3.1 .png]]<br>
 
[[文件:MY-IMX6 Linux-3.14_2.12.3.1 .png]]<br>
  
3)验证<br>
+
3)验证<br>
  <span style="background:#CCCCCC">verify</span><br>
+
<span style="background:#CCCCCC">verify</span><br>
 
*查看当前时间<br>
 
*查看当前时间<br>
 
<span style="background:#CCCCCC">check current time</span><br>
 
<span style="background:#CCCCCC">check current time</span><br>
第824行: 第838行:
 
测试需要用到SPI接口的MISO和MOSI管脚,在下表中列出。<br>
 
测试需要用到SPI接口的MISO和MOSI管脚,在下表中列出。<br>
 
<span style="background:#CCCCCC">pins of MISO and MOSI need to be used for test,listed as below。</span><br>
 
<span style="background:#CCCCCC">pins of MISO and MOSI need to be used for test,listed as below。</span><br>
 +
<div>
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
第851行: 第866行:
 
|J13:11
 
|J13:11
 
|}
 
|}
 +
</div>
  
 
=== 测试说明(test specification) ===
 
=== 测试说明(test specification) ===
第862行: 第878行:
  
 
=== 测试方法(test method) ===
 
=== 测试方法(test method) ===
1)准备测试<br>
+
1)准备测试<br>
  <span style="background:#CCCCCC">prepare test</span><br>
+
<span style="background:#CCCCCC">prepare test</span><br>
短接SPI2的MISO和MOSI管脚。<br>
+
短接SPI2的MISO和MOSI管脚。<br>
  <span style="background:#CCCCCC">short connect MISO pin and MOSI pin of SPI2。</span><br>
+
<span style="background:#CCCCCC">short connect MISO pin and MOSI pin of SPI2。</span><br>
2)执行测试<br>
+
2)执行测试<br>
  <span style="background:#CCCCCC">execute test</span><br>
+
<span style="background:#CCCCCC">execute test</span><br>
<span style="background:#ffff00"># ~/my-demo/linux-3.14.52/spidev_test.out -D /dev/spidev1.0<br></span>
+
<span style="background:#ffff00"># ~/my-demo/linux-3.14.52/spidev_test.out -D /dev/spidev1.0<br></span>
3)测试结果<br>
+
3)测试结果<br>
  <span style="background:#CCCCCC">test result</span><br>
+
<span style="background:#CCCCCC">test result</span><br>
如果SPI正常,在终端上会看到如下字符:<br>
+
如果SPI正常,在终端上会看到如下字符:<br>
  <span style="background:#CCCCCC">if SPI is normal,you can see following charaters on terminal:</span><br>
+
<span style="background:#CCCCCC">if SPI is normal,you can see following charaters on terminal:</span><br>
 
FF FF FF FF FF FF <br>
 
FF FF FF FF FF FF <br>
 
40 00 00 00 00 95 <br>
 
40 00 00 00 00 95 <br>
第891行: 第907行:
  
 
=== 接口属性(interface property) ===
 
=== 接口属性(interface property) ===
 +
<div>
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
第923行: 第940行:
 
|can1
 
|can1
 
|}
 
|}
 +
</div>
  
 
=== 测试说明(test instruction) ===
 
=== 测试说明(test instruction) ===
第971行: 第989行:
  
 
=== 测试方法(test method) ===
 
=== 测试方法(test method) ===
1)执行测试<br>
+
1)执行测试<br>
 
<span style="background:#CCCCCC">execute test</span><br>
 
<span style="background:#CCCCCC">execute test</span><br>
进入测试程序所在目录(一定要进入测试程序所在目录才能正常执行测试脚本)<br>
+
进入测试程序所在目录(一定要进入测试程序所在目录才能正常执行测试脚本)<br>
 
<span style="background:#CCCCCC">enter directory where test program is located(must enter directory where test program is locased for a normal test script)</span><br>
 
<span style="background:#CCCCCC">enter directory where test program is located(must enter directory where test program is locased for a normal test script)</span><br>
 
<span style="background:#ffff00"># cd /unit_tests/<br></span>
 
<span style="background:#ffff00"># cd /unit_tests/<br></span>
执行测试脚本<br>
+
执行测试脚本<br>
 
<span style="background:#CCCCCC">execute test script</span><br>
 
<span style="background:#CCCCCC">execute test script</span><br>
 
<span style="background:#ffff00"># ./autorun-ipu.sh<br></span>
 
<span style="background:#ffff00"># ./autorun-ipu.sh<br></span>
2)测试结果<br>
+
2)测试结果<br>
 
<span style="background:#CCCCCC">test result</span><br>
 
<span style="background:#CCCCCC">test result</span><br>
在整个测试过程中,可以看到显示屏显示的内容在不停的变化。<br>
+
在整个测试过程中,可以看到显示屏显示的内容在不停的变化。<br>
 
<span style="background:#CCCCCC">in the whole test process,you can see a constant change of content on the display screen。</span><br>
 
<span style="background:#CCCCCC">in the whole test process,you can see a constant change of content on the display screen。</span><br>
测试完成后,在终端上可以看到类似如下信息:<br>
+
测试完成后,在终端上可以看到类似如下信息:<br>
 
<span style="background:#CCCCCC">after test,you can see message like below on terminal:</span><br>
 
<span style="background:#CCCCCC">after test,you can see message like below on terminal:</span><br>
 
test stop at Thu Jan 1 00:33:38 UTC 1970<br>
 
test stop at Thu Jan 1 00:33:38 UTC 1970<br>
第1,008行: 第1,026行:
 
*测试过程<br>
 
*测试过程<br>
 
<span style="background:#CCCCCC">test process</span><br>
 
<span style="background:#CCCCCC">test process</span><br>
执行测试命令时,可以看到显示屏显示的内容在变化。更多请参照/unit_test/gpu.sh<br>
+
执行测试命令时,可以看到显示屏显示的内容在变化。更多请参照/unit_test/gpu.sh<br>
  <span style="background:#CCCCCC">after execution of test commands,you can see a constant change of content on the display screen。for more details please refer to /unit_test/gpu.sh</span><br>
+
<span style="background:#CCCCCC">after execution of test commands,you can see a constant change of content on the display screen。for more details please refer to /unit_test/gpu.sh</span><br>
  
  
第1,023行: 第1,041行:
 
*执行测试<br>
 
*执行测试<br>
 
<span style="background:#CCCCCC">execute test</span><br>
 
<span style="background:#CCCCCC">execute test</span><br>
进入测试程序所在目录(一定要进入测试程序所在目录才能正常执行测试脚本)<br>
+
进入测试程序所在目录(一定要进入测试程序所在目录才能正常执行测试脚本)<br>
 
<span style="background:#CCCCCC">enter directory where test program is located(must enter directory where test program is locased for a normal test script)</span><br>
 
<span style="background:#CCCCCC">enter directory where test program is located(must enter directory where test program is locased for a normal test script)</span><br>
 
<span style="background:#ffff00"># cd /unit_tests/<br></span>
 
<span style="background:#ffff00"># cd /unit_tests/<br></span>
第1,033行: 第1,051行:
 
*测试现象<br>
 
*测试现象<br>
 
<span style="background:#CCCCCC">test phenomenon</span><br>
 
<span style="background:#CCCCCC">test phenomenon</span><br>
在整个测试过程中,从显示屏上可以看到VPU解码的视频。<br>
+
在整个测试过程中,从显示屏上可以看到VPU解码的视频。<br>
 
<span style="background:#CCCCCC">in the whole test process,you can see the vedio decoded by VPU on the display screen。</span><br>
 
<span style="background:#CCCCCC">in the whole test process,you can see the vedio decoded by VPU on the display screen。</span><br>
  
第1,137行: 第1,155行:
 
=> setenv display ${fb0_hdmi} ${fb1_lvds0}<br>
 
=> setenv display ${fb0_hdmi} ${fb1_lvds0}<br>
 
=> saveenv; boot<br>
 
=> saveenv; boot<br>
</div>
 

2018年6月11日 (一) 17:42的版本

目录

测试前的准备(preparation before test)


1)请按照《Linux快速启动手册》中的“Linux快速启动” -> “连接设备”进行连接。
please connect following the path of 《Linux fast boot manual》->“Linux fast boot” -> “device connection”。
2)请按照《Linux快速启动手册》中的“Linux快速启动” -> “启动设备”进行启动。
please boot following the path of 《Linux fast boot manual》->“Linux fast boot” -> “device booting”。

测试项目(test item)


网口测试(network inferface test)

MY-IMX6-EK200支持两个百兆网口。
MY-IMX6-EK200 support two 100 Mbps ethernet interfaces。
MY-IMX6-EK314支持一个千兆网口,一个百兆网口。
MY-IMX6-EK314 support one Gbps and one 100 Mbps ethernet interface。

接口属性(interface property)

评估板型号
(evaluation board model no)
接口位置
(interface position)
接口速率标准
(interface rate standard)
系统接口
(system interface)
MY-IMX6-EK200 P4 10/100Mbps eth0
P3 10/100Mbps eth1
MY-IMX6-EK314 U12 10/100/1000Mbps eth0
P1 10/100Mbps eth1

测试方法(test method)

1) 配置计算机IP
configure computer IP

设置计算机有线网卡IP为192.168.18.18
set wired network card IP of computer as 192.168.18.18
MY-IMX6 Linux-3.14 2.1.2.1 .png

2) Eth0连接测试
Eth0 connect test

  • 连接网线:将评估板“eth0”对应的接口与计算机有线网卡的接口用网线相连接

connect lan line: connect “eth0”on evaluation board with corresponding wired network card interface on computer with lan line

  • 设置评估板IP:

set evaluation board IP:
<span style="background:#ffff00># ifconfig eth0 192.168.18.36</span>      # configure the eth0

  • 执行测试命令:

execute test command:
# ifconfig eth1 down      # eth1 to be shut down
# ping 192.168.18.18 -c 2 -w 4      # send ICMP to HOST

  • 观察测试结果:系统会输出类似如下信息:

observe test result:system will output message like following
--- 192.168.18.18 ping statistics ---
2packets transmitted, 2 packets received, 0% packet loss

  • 测试结果:“0% packet loss”表示测试通过

test result:“0% packet loss”represent test passing

  • 附图

figure
MY-IMX6 Linux-3.14 2.1.2.2.png

3) Eth1连接测试
Eth1 connect test

  • 连接网线:将网线插入“eth1”对应的评估板接口,网线另一端保持与计算机有线网卡的接口连接。

connect lan line:insert one end of lan line into “eth1”on evaluation board and another end into wired network card interface on computer。

  • 设置第2个网口IP:

set the second network inter face IP:
# ifconfig eth1 192.168.18.27      # configure the eth1

设置后系统会输出第2个网口的工作状态信息,类似如下:
after setting the system will output message on working condition of second network interface,like following:
smsc95xx 1-1.1:1.0 eth1: link up, 100Mbps, full-duplex, lpa 0x4DE1

  • 执行测试命令:

execute test command:
# ifconfig eth0 down      # eth0 to be shut down
# ping 192.168.18.18 -c 2 -w 4      # send ICMP to HOST

  • 观察测试结果:系统会输出类似如下信息:

observe test result:system will output message like following:
--- 192.168.18.18 ping statistics ---
2packets transmitted, 2 packets received, 0% packet loss

  • 测试结果:“0% packet loss”表示测试通过

test result:“0% packet loss”represent test passing

  • 附图

figures
MY-IMX6 Linux-3.14 2.1.2.3.png

USB测试(USB test)

接口属性(interface property)

评估板型号
(evaluation board model no.)
接口位置
(interface position)
接口速率标准
(interface rate standard)
MY-IMX6-EK200
J8 480 Mbits/s
MY-IMX6-EK314
J2 480 Mbits/s

测试方法(test method)

1) 开始测试
start test
将USB设备插入底板USB接口,系统会输出类似如下信息:
insert USB device into USB port on base board,system will output message like following:
usb -.*: new high speed USB device number * using fsl-ehci
……

2) 测试结束
test over
将USB设备从底板拔出,系统会输出类似如下信息:
take out USB device from base board,system will output message like following:
usb -.*: USB disconnect, device number *

附图(figure)

说明:在USB口上插拔U盘时,系统输出信息类似如下:
instruction:when plug in & out U disk from USB interface,system will output message like following:
MY-IMX6 Linux-3.14 2.2.3.1 .png

SD卡测试(SD card test)

接口属性(interface property)

评估板型号
(evaluation model no.)
接口位置
(interface position)
接口类型
(interface type)
MY-IMX6-EK200 J8 <thead> </thead> <tbody> </tbody>
SD
MY-IMX6-EK314
J25 SD

开始测试(start test)

1) 往SD卡槽插入设备
insert device into SD card slot
插入SD卡到底板SD卡接口。系统输出以下信息(见附图)即表示SD接口正常:
insert SD card into SD card port on base board。when system output following message(see attached figures),which represent that SD card interface is normal:
mmc*: new high speed SD card at address ****
mmcblk*: mmcx:xxxx SAG *.GiB
 mmcblk*: p*

2)从SD卡槽弹出设备
pop-up device from SD card slot
再次住SD卡槽按下SD卡,底板会弹出SD卡。系统输出以下信息(见附图)表示SD卡接口弹出正常:
press again SD card against SD card slot,base board will pop-up SD card。when system output following message(see attached figures),which represent that SD card interface pop-up is normal:
mmc*: card **** removed

3) 结束测试
test over
SD卡弹出后拨出SD卡即结束测试。
take out SD card after SD card pop-pup,then test is over。

附图(figures)

MY-IMX6 Linux-3.14 2.3.3.1 .png

音频测试(audio test)

测试说明(test instruction)

这项测试是通过播放音频文件验证评估板的音频功能。
the test is to verify audio function of evaluation board by playing audio file。

测试方法(test method)

1)准备测试
prepare test
connect audio output device to audio element in front view of base board,audio element is “J20”in front view of base board,silkscreened as“HP”。

2)执行测试
execute test
使用aplay播放一个视频,示例命令如下:
play a video with gplay,commanded as below:
# aplay /unit_tests/audio8k16S.wav

上面这条命令会使用aplay播放命令中指定的文件。
the above command will play a file designated by command with gplay。

3)测试结果
test result
执行上面的测试命令后会听到音频设备输出的声音。
you can see the vedeo played on display screen of evaluation board and hear the voices outputed by audio device。

附图(figures)

MY-IMX6 Linux-3.14 2.5.3.1 .png

视频测试(video test)

测试说明(test instruction)

这项测试是通过播放视频验证评估板的音频视频功能。
the test is to verify audio&video function of evaluation board by playing audio file。

测试方法(test method)

使用gplay播放一个视频,示例命令如下:
play a video with gplay,commanded as below:
# gplay-1.0 /unit_tests/akiyo.mp4

上面这条命令会使用gplay播放命令中指定的文件。
the above command will play a file designated by command with gplay。

  • 测试结果

test result
执行上面的测试命令后会在评估板显示屏上看到大约1秒钟的视频图像。
you can see the vedeo image for about 1 second on display screen of evaluation board after execution of test command。

附图(figures)

MY-IMX6 Linux-3.14 2.6.3.1 .png

标准GPIO测试(standard GPIO test)

接口属性(interface property)

MY-IMX6-EK200
IO序号
(IO order number)
GPIO属性
(GPIO property)
接口位置
(interface position)
接口位置
(interface position)
GPIO属性
(GPIO property)
IO序号
(IO order number)
-- gpio-leds J4:3 J4:4 GPIO6_IO11 171
-- gpio-leds J4:5 J4:6 GPIO2_IO26 58
10 GPIO1_IO10 J4:7 J4:8 GPIO1_IO20 20
-- gpio-leds J4:9 J4:10 GPIO3_IO21 85
-- gpio-leds J4:11 J4:12 GPIO3_IO22 86
11 GPIO1_IO11 J4:13 J4:14 NC NC
192 GPIO7_IO00 J21:12 J21:11 GPIO3_IO30 94
MY-IMX6-EK314 & MY-IMX6-EK336
IO序号
(IO order number)
GPIO属性
(IO order number)
接口位置
(interface position)
接口位置
(interface position)
GPIO属性
(GPIO property)
IO序号
(IO order number)
2 GPIO1_IO02 J23:11 J23:12 GPIO3_IO30 94
193 GPIO7_IO01 U14:3 U14:4 GPIO7_IO00 192
177 GPIO6_IO17 U14:5 U14:6 GPIO6_IO18 178
176 GPIO6_IO16 U14:7 U14:8 GPIO2_IO07 39
35 GPIO2_IO03 U14:9 U14:10 GPIO2_IO06 38
169 GPIO6_IO09 U14:11 U14:12 GPIO6_IO11 171
34 GPIO2_IO02 U14:13 U14:14 GPIO2_IO00 32
36 GPIO2_IO04 U14:15 U14:16 GPIO2_IO05 37
29 GPIO1_IO29 U14:17 U14:18 GPIO1_IO27 27
30 GPIO1_IO30 U14:19 U14:20 GPIO1_IO26 26
24 GPIO1_IO24 U14:21 U14:22 GND GND
10 GPIO1_IO10 U14:23 U14:24 GPIO1_IO15 15
12 GPIO1_IO12 U14:25 U14:26 GPIO1_IO13 13
11 GPIO1_IO11 U14:27 U14:28 GPIO1_IO14 14
85 GPIO3_IO21 U14:29 U14:30 GPIO3_IO22 86
GND GND U14:31 U14:32 GND GND
-- gpio-leds U14:33 U14:34 gpio-leds --
20 GPIO1_IO20 U14:35 U14:36 gpio-leds --
116 GPIO4_IO20 U14:37 U14:38 gpio-leds --

测试方法(test method)

1)GPIO输出测试
GPIO output test

  • 设置需要测试的GPIO的IO序号

set IO order number for GPIO of which need to be tested
# OUT_IO_NUMBER=85

  • 导出GPIO

lead out GPIO
# echo ${OUT_IO_NUMBER} > /sys/class/gpio/export

  • 设置GPIO方向

set GPIO direction
# echo out > /sys/class/gpio/gpio${OUT_IO_NUMBER}/direction

  • 控制输出电平

control outputed electrical level
# echo 0 > /sys/class/gpio/gpio${OUT_IO_NUMBER}/value

# echo 1 > /sys/class/gpio/gpio${OUT_IO_NUMBER}/value

MY-IMX6 Linux-3.14 2.7.2.1 .png

2)GPIO输入测试
GPIO input test

  • 设置需要测试的GPIO的IO序号

set IO order number for GPIO of which need to be tested
# IN_IO_NUMBER=86

  • 导出GPIO

lead out GPIO
# echo ${IN_IO_NUMBER} > /sys/class/gpio/export

  • 设置GPIO方向

set GPIO方向
# echo in > /sys/class/gpio/gpio${IN_IO_NUMBER}/direction

  • 查看输入电平

check inputed electrical level
cat /sys/class/gpio/gpio${IN_IO_NUMBER} /value
MY-IMX6 Linux-3.14 2.7.2.2 .png

3)验证输入输出
verify input&output
注意:这一步需要短接评估板的管脚,如果不确定自己能正确短接的请找硬件工程师支持,否则可能会损坏评估板。
note:this step need a short connection of evaluation board pins,if you are not sure of how to conduct this kind of connection,please ask hardware engineer for a support,otherwise it may cause a damage of evaluation board。
将前面配置的输出IO对应的管脚与配置的输入IO对应的管脚连接。即:在MY-IMX6-EK200上连接J4:10 - J4:12,在MY-IMX6-EK314上连接U14:29 - U14:30。
connect outputed IO pins configured above with inputed IO pins configured above correspondingly.。e.g:connect J4:10 - J4:12 on MY-IMX6-EK200,and connect U14:29 - U14:30 on MY-IMX6-EK314。

  • 查看输入管脚上的电平

check eletrical level of inputed pins
# cat /sys/class/gpio/gpio${IN_IO_NUMBER}/value

  • 更改输出管脚的输出电平

modify electrical level of outputed pins
# echo 1 > /sys/class/gpio/gpio${OUT_IO_NUMBER}/value

  • 查看输入管脚上的电平

check electrical level of inputed pins
# cat /sys/class/gpio/gpio${IN_IO_NUMBER}/value
MY-IMX6 Linux-3.14 2.7.2.3 .png

GPIO-LED测试(GPIO-LED test)

接口属性(interface property)

MY-IMX6-EK200
MY-IMX6-EK314
接口位置
(interface position)
GPIO属性
(GPIO property)
LED属性
(LED property)
接口位置
(interface position)
GPIO属性
(GPIO property)
<thead> </thead> <tbody> </tbody>
span style="color:#FFFFFF;background:#000080" LED属性
(LED property)
J4:3
gpio-leds
heartbeat
U14:24 gpio-leds
<thead> </thead> <tbody> </tbody>
heartbeat
J4:5
gpio-leds
timer
U14:28 gpio-leds
<thead> </thead> <tbody> </tbody>
timer
J4:9
gpio-leds
default-on
U14:26 gpio-leds
<thead> </thead> <tbody> </tbody>
default-on
J4:11
gpio-leds
gpio
U14:25 gpio-leds
gpio

GPIO-LED(Heartbeat)测试(GPIO-LED(Heartbeat)test)

系统启动完成后,用示波器检测heartbeat对应的接口,可看到如下类似信号:
after system booting is completed,check interface corresponding with heartbeat with oscilloscope,then you can see message like below:
MY-IMX6 Linux-3.14 2.8.2.1 .png
提示:heartbeat是与CPU心跳关联的,如果在此GPIO上接上LED,即可通过观察LED来判断CPU是否工作。
tips:heartbeat is related to CPU heartbeat,if connect a LED wiht this GPIO,then we can adjudge whether CPU is working or not by LED。

GPIO-LED(Timer)测试(GPIO-LED(Timer)test)

系统启动完成后,用示波器检测timer对应的接口,可看到如下类似信号:
after system booting is completed,check interface corresponding with timer with oscilloscope,then you can see message like below:
MY-IMX6 Linux-3.14 2.8.3.1 .png
通过delay_off、delay_on来控制高低电平持续的时间。
control high&low electrical time by delay_off、delay_on。
# echo 500 > /sys/class/leds/led-timer/delay_off
# echo 1000 > /sys/class/leds/led-timer/delay_on
再用示波器检测的时候,会看到波形发生的变化。
re-check with oscilloscope,you can see the change of wave shape。

GPIO-LED(Default ON)测试(GPIO-LED(Default ON)test)

Default-on可以通过brightness控制。
Default-on can be controled by brightness。
Default-on的实现是初始触发状态为on,即初始触发后为高电平。
Default-on is set to be on for original trigger,e.g it is high electrical level after original trigger。
# echo 1 > /sys/class/leds/Default/brightness
往brightness写0即可检测到低电平。
write 0 to brightness to detect low electrical level 。
# echo 0 > /sys/class/leds/Default/brightness

GPIO-LED(GPIO)测试(GPIO-LED(GPIO)test)

GPIO的测试可以使用跟default-on类似的方法:
GPIO test can be in similar way as test of default-on:
# echo 1 > /sys/class/leds/gpio1_12/brightness
使用万用表测试LED:gpio对应的引脚,可以看到该引脚是高电平。
test pin corresponding with LED:gpio with multi-meter,you can see the pin is high electrical level。
# echo 0 > /sys/class/leds/gpio1_12/brightness
使用万用表测试LED:gpio对应的引脚,可以看到该引脚是低电平。
test pin corresponding with LED:gpio with multi-meter,you can see the pin is low electrical level。

GPIO-KEY测试(GPIO-KEY test)

接口属性(interface property)

MY-IMX6-EK200
MY-IMX6-EK314
接口位置
(interface position)
GPIO属性
(GPIO property)
KEY属性
(KEY property)
接口位置
(interface position)
GPIO属性
(GPIO property)
<thead> </thead> <tbody> </tbody>
span style="color:#FFFFFF;background:#000080" LED属性
(LED property)
SW2
gpio-keys
Power Button
SW4
gpio-keys
<thead> </thead> <tbody> </tbody>
Power Button
SW3
gpio-keys
Volume Up
SW3
gpio-keys
<thead> </thead> <tbody> </tbody>
Volume Up
SW5
gpio-keys
Volume Down
SW2
gpio-keys
Volume Down

测试方法(test method)

1)执行测试程序
execute test program
在终端下键入命令执行测试,示例如下:
enter command to execute on terminal,example as below:
# evtest

2)选择测试设备
select test device
Select the device event number [0-2]: 2
输入“gpio-keys”对应的序号,这里是2
enter order number corrsponding with“gpio-keys”,here it is 2
MY-IMX6 Linux-3.14 2.9.2.1 .png

3)进行交互测试
proceed with interactive test
在终端会看到“Testing ... (interrupt to exit)”,这时我们按下或松开SW4、SW3、SW2。会看到如下类似信息:
on terminal you can“Testing ... (interrupt to exit)”,this time press or release SW4、SW3、SW2。message like below will come out:

Event: time 1452590477.115958, type 1 (EV_KEY), code 116 (KEY_POWER), value 0
Event: time 1452590477.115958, -------------- SYN_REPORT ------------
Event: time 1452590478.415953, type 1 (EV_KEY), code 115 (KEY_VOLUMEUP), value 1
其中“value 1”信息是在按键被按下的时候被输出,“value 0”信息是在按键被松开的时候被输出。
message of“value 1”is outputed with press of key,message of“value 0”is outputed with release of key。
MY-IMX6 Linux-3.14 2.9.2.2 .png

3)结束测试
end test
按计算机上的“Ctrl”+“C”可结束按键测试程序。
press “Ctrl”+“C”on computer to end the test program for keys。

串口测试(serial port test)

MY-IMX6-EK200共5个串口,其中1个调试串口,4个用户串口。
MY-IMX6-EK200 has total 5 serial ports,one is debug seiral port,the other 4 are user serial ports。
MY-IMX6-EK314共5个串口,其中1个调试串口,4个用户串口。
MY-IMX6-EK314 has total 5 serial ports,one is debug seiral port,the other 4 are user serial ports。

用户串口属性(user serial port property)

评估板型号
(evaluation board model no.)
UARTx
Rx
Tx
系统接口
(system interface)
MY-IMX6-EK200
UART2
J1:9
J1:7
<thead> </thead> <tbody> </tbody>
ttymxc1
UART3
J1:13
J1:11
<thead> </thead> <tbody> </tbody>
ttymxc2
UART4
J1:17
J1:15
<thead> </thead> <tbody> </tbody>
ttymxc3
UART5
J1:16
J1:18
<thead> </thead> <tbody> </tbody>
ttymxc4
rowspan=4|MY-IMX6-EK314
UART2
J12:9
J12:10
ttymxc1
-
UART3
J12:12 J12:13 <thead> </thead> <tbody> </tbody>
ttymxc2
UART4
J12:17 J12:15 <thead> </thead> <tbody> </tbody>
ttymxc3
UART5
J12:16 J12:18 ttymxc4

提示:这里列出串口的收发管脚,串口其它管脚的定义请看原理图。
tips:transceiver pins of serial port are listed here,but please refer to schematic for definition of all pins of serial port。

串口测试(serial port test)

1)测试说明
test instruction

  • 测试方法说明:

intruction of test method:
采用串口自发自收的方式进行。
adopt method of self-sending & self-receiving of serial port。

  • 测试结果说明:

instruction of test result:
通过测试程序向串口发送字符串,并输出串口接收到的字符串。
send charater string to serial port through test program and output charater strings received by serial port。
注意:串口测试需要短接评估板的管脚,如果不确定自己能正确短接的请找硬件工程师支持,否则可能会损坏评估板。
note:serial port test need a short connection of evaluation board pins,if you are not sure of how to conduct this kind of connection,please ask hardware engineer for a support,otherwise it may cause a damage of evaluation board。

2)进入测试程序目录
enter test program directory
# cd ~/my-demo/linux-3.14.52

3)UART2测试
UART2 test

  • 准备测试

prepare test
短接串口2的发送发接收管脚(J1的9和10号)。
short connect sending pin and receiving pin of serial port 2(no.9 and 10 of J1)。

  • 执行测试命令

execute test command
# ./uart.out /dev/ttymxc1 "www.myzr.com.cn"

  • 测试结果附图

figures for test result
MY-IMX6 Linux-3.14 2.10.2.1 .png

4)UART3测试
UART3 test

  • 准备测试

prepare test
短接串口3的发送发接收管脚(J1的12和13号)。
short connect sending pin and receiving pin of serial port 3(no.12 and 13 of J1)。

  • 执行测试命令

execute test command
# ./uart.out /dev/ttymxc2 "www.myzr.com.cn"

  • 测试结果附图

figures for test result
MY-IMX6 Linux-3.14 2.10.2.2 .png

5)UART4测试
UART4 test

  • 准备测试

prepare test
短接串口4的发送发接收管脚(J1的15和17号)。
short connect sending pin and receiving pin of serial port 4(no.15 and 17 of J1)。

  • 执行测试命令

execute test command
# ./uart.out /dev/ttymxc3 "www.myzr.com.cn"

  • 测试结果附图

figures for test result
MY-IMX6 Linux-3.14 2.10.2.3 .png

6)UART5测试
UART5 test

  • 准备测试

prepare test
短接串口5的发送发接收管脚(J1的16和18号)。
short connect sending pin and receiving pin of serial port 5(no.16 and 18 of J1)。

  • 执行测试命令

execute test command
# ./uart.out /dev/ttymxc4 "www.myzr.com.cn"

  • 测试结果附图

figures for test result
MY-IMX6 Linux-3.14 2.10.2.4 .png

RTC测试(RTC test)

测试说明(test instruction)

受快递运输影响,MY-IMX6 系列评估板发货时不带电池。测试RTC前请自备纽扣电池并安装到评估板上。
due to restrictions in transportation,MY-I.MX6 evaluation board doesn't contatin battery in delivery。before RTC test please prepare button cell to install on evaluation board。
MY-IMX6-EK200的电池座在底板背面的“BT1”位置。
MY-IMX6-EK200 battery holder is located in“BT1”on rear view of base board。
MY-IMX6-EK314的电池座在底板正面的“BT1”位置。
MY-IMX6-EK314 battery holder is located in“BT1”on front view of base board。

测试方法(test method )

1)断电重启设备,查看当前系统时间和硬件时间。
power off then reboot device,to check the time of system and hardware。

  • 查看当前系统时钟命令如下:

command to check clock of current system as below
# date

  • 系统输出信息如下:

message outputed by system as below:
Thu Aug 6 05:35:17 UTC 2015

2)查看当前RTC芯片时钟命令如下:
command to check clock of RTC chip as below:
# hwclock

  • 系统输出信息如下:

message outputed by system as below:
Thu Aug 6 05:35:59 2015 0.000000 seconds
3)设置系统时钟,并同步到RTC芯片
set system clock and synchronously set to RTC chip

  • 设置系统时钟命令参考如下:

command to set system clock are with below reference:
# date -s "2015-08-20 12:34:56"

  • 将系统时钟写入硬件时钟命令如下:

command to write system clock into hardware as below:
# hwclok –w
4)断电重启评估板,查看当前系统时钟和硬件时钟
power off and reboot evaluation board,to check current system clock and hardware clock
请参考第1步
please refer to step 1
5)测试结果
test Results
执行第3步以后看到的时钟为新设定的时钟。
it will be a newly-set clock after execution until step3。

附图(figures)

下图为测试方法中步骤1和2的截图
below image is screenshots for step1 and step 2 in the test
MY-IMX6 Linux-3.14 2.11.3.1 .png
下图为测试方法中步骤3的截图
below image is screenshots for step3 in the test
MY-IMX6 Linux-3.14 2.11.3.2.png

WatchDog测试(WatchDog test)

测试说明(test instruction)

WatchDog测试包括2项:一项是复位测试,一项是喂狗测试。
WatchDog test includes two items:one is reset test,the other is feed dog test。

复位测试(reset test)

1)测试说明
test instruction
复位测试将启动WatchDog,但是并不喂狗,超时后系统将会复位。
reset test will boot WatchDog,but doesn't feed dog,system will reset when timeout。

2)执行测试
execute test
# /unit_tests/wdt_driver_test.out 10 15 1

3)测试结果
test result
运行测试命令后等待10秒后,WatchDog超时,系统被复位。将会在终端看到系统重新启动输出的信息。
wait for 10 seconds after running of test command,WatchDog timeout,system is resetted。you can see message outputed by system rebooting on terminal。
MY-IMX6 Linux-3.14 2.12.2.1 .png

喂狗测试(feed dog test)

1)测试说明
test instruction
喂狗测试将启动WatchDog,并且每2秒钟进行1次喂狗,系统将不会因为WatchDog超时而复位。
feeding dog test will boot WatchDog,and feed dog every 2 second,system won't reset because of WatchDog timeout。

2)执行测试
execute test

  • 启动WatchDog

boot WatchDog
# /unit_tests/wdt_driver_test.out 4 2 1 &

  • 查看当前时间

check current time
# date
MY-IMX6 Linux-3.14 2.12.3.1 .png

3)验证
verify

  • 查看当前时间

check current time
经过几分钟之后,系统依然没有复位。我们再查看当前时间。
after a few minutes,if system hasn't resetted yet,re-check current time。
# date

  • 停止喂狗

stop feeding dog
这时我们终止Watchdog测试程序,这样就没有程序进行喂狗了,系统将会在超时时间(这里是4秒)内复位。
when we stop Watchdog test program,then there won't be program to feed dog,system will reset in 4 seconds when timeout。
# pkill wdt_driver_test
MY-IMX6 Linux-3.14 2.12.3.2 .png

SPI测试(SPI test)

MY-IMX6-EK200上有两组SPI接口。
MY-IMX6-EK200上has two groups of SPI interfaces。
MY-IMX6-EK314上有两组SPI接口。
MY-IMX6-EK314 has two groups of SPI interfaces。

接口属性(interface property)

测试需要用到SPI接口的MISO和MOSI管脚,在下表中列出。
pins of MISO and MOSI need to be used for test,listed as below。

评估板型号
(evaluation board model no.)
SPIx MISO MOSI
MY-IMX6-EK200
SPI1
J7:7
<thead> </thead> <tbody> </tbody>
J7:9
SPI2
J7:8
<thead> </thead> <tbody> </tbody>
J7:10
rowspan=2|MY-IMX6-EK314
SPI1
J13:6
J13:12
-
SPI2
J13:7
J13:11

测试说明(test specification)

1)采用SPI自发送(输出)自接收(输入)的方式。
adopt way of SPI self-sending(output)self-receiving(input)。
注意:测试需要短接评估板的管脚,如果不确定自己能正确短接的请找硬件工程师支持,否则可能会损坏评估板。
note:the test need a short connection of evaluation board pins,if you are not sure of how to conduct this kind of connection,please ask hardware engineer for a support,otherwise it may cause a damage of evaluation board。

2)与SPI测试程序匹配的SPI接口是SPI2,所以我们的SPI测试是测试SPI2。
SPI port which is matched up with SPI test program is SPI2,e.g.SPI test is SPI2 test。

测试方法(test method)

1)准备测试
prepare test
短接SPI2的MISO和MOSI管脚。
short connect MISO pin and MOSI pin of SPI2。
2)执行测试
execute test
# ~/my-demo/linux-3.14.52/spidev_test.out -D /dev/spidev1.0
3)测试结果
test result
如果SPI正常,在终端上会看到如下字符:
if SPI is normal,you can see following charaters on terminal:
FF FF FF FF FF FF
40 00 00 00 00 95
FF FF FF FF FF FF
FF FF FF FF FF FF
FF FF FF FF FF FF
DE AD BE EF BA AD
F0 0D

附图(figures)

MY-IMX6 Linux-3.14 2.13.4.1 .png

CAN接口测试(CAN interface test)

MY-IMX6-EK200上有两组CAN接口。
MY-IMX6-EK200 has two groups of CAN interfaces。
MY-IMX6-EK314上有两组CAN接口。
MY-IMX6-EK314 has two groups of CAN interfaces。

接口属性(interface property)

评估板型号
(evaluation model no.)
CANx 信号:CAN_L
(signal:CAN_L)
信号:CAN_H
(signal:CAN_H)
系统设备
(system device)
MY-IMX6-EK200
CAN1
J19:1
J19:2
<thead> </thead> <tbody> </tbody>
can0
CAN2
J16:1
J16:2
<thead> </thead> <tbody> </tbody>
can1
rowspan=2|MY-IMX6-EK314
CAN1
J17:1
J17:2
can0
-
CAN2
J15:1
J15:2
can1

测试说明(test instruction)

采用CAN1发送,CAN0接收的方式。
adopt way of sending with CAN1 and receiving with CAN0。

测试方法(test method)

1)接口连接
interface connection
注意:这一步需要连接评估板的管脚,如果不确定自己能正确连接的请找硬件工程师支持,否则可能会损坏评估板。
note:this step need a short connection of evaluation board pins,if you are not sure of how to conduct this kind of connection,please ask hardware engineer for a support,otherwise it may cause a damage of evaluation board。
将CAN1的CAN_L与CAN2的CAN_L连接。
connect CAN1的CAN_L with CAN2的CAN_L。
将CAN1的CAN_H与CAN2的CAN_H连接。
connect CAN1的CAN_H with CAN2的CAN_H。

2)执行测试
execute test
配置CAN0
configure CAN0
# ip link set can0 up type can bitrate 125000
配置CAN1
configure CAN1
# ip link set can1 up type can bitrate 125000
配置CAN0接收
configure CAN0 receiving
# candump can0 &
CAN1发送
CAN1 sending
# cansend can1 1F334455#1122334455667788

附图(figure)

MY-IMX6 Linux-3.14 2.14.4.1 .png

WIFI测试(WIFI test)

insmod ~/my-demo/linux-3.14.52/8188eu-myimx6.ko
insmod ~/8188eu-myimx6.ko
wpa_passphrase WIFI名称 WIFI密码 > /etc/wpa_supplicant.conf
wpa_passphrase WIFI name WIFI password > /etc/wpa_supplicant.conf
wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf -B
udhcpc -i wlan0

IPU测试(IPU test)

测试说明(test instruction)

整个IPU测试过程完成需要十几分钟。
the whole IPU test will take over ten minutes。

测试方法(test method)

1)执行测试
execute test
进入测试程序所在目录(一定要进入测试程序所在目录才能正常执行测试脚本)
enter directory where test program is located(must enter directory where test program is locased for a normal test script)
# cd /unit_tests/
执行测试脚本
execute test script
# ./autorun-ipu.sh
2)测试结果
test result
在整个测试过程中,可以看到显示屏显示的内容在不停的变化。
in the whole test process,you can see a constant change of content on the display screen。
测试完成后,在终端上可以看到类似如下信息:
after test,you can see message like below on terminal:
test stop at Thu Jan 1 00:33:38 UTC 1970

附图(figures)

MY-IMX6 Linux-3.14 2.15.3.1 .png

MY-IMX6 Linux-3.14 2.15.3.2 .png

GPU测试(GPU test)

测试说明(test instruction)

验证GPU功能。
verify functions of GPU。

测试方法(test method)

  • 执行测试命令

execute test command
# cd /opt/viv_samples/vdk/ && ./tutorial3 -f 100
# cd /opt/viv_samples/vdk/ && ./tutorial4_es20 -f 100
# cd /opt/viv_samples/tiger/ &&./tiger

  • 测试过程

test process
执行测试命令时,可以看到显示屏显示的内容在变化。更多请参照/unit_test/gpu.sh
after execution of test commands,you can see a constant change of content on the display screen。for more details please refer to /unit_test/gpu.sh

附图(figure)

MY-IMX6 Linux-3.14 2.16.3.1 .png

VPU测试(VPU test)

测试说明(test instruction)

测试过程将使用VPU解码视频文件并输出到显示设备。
in the test,vedio file will be decoded with VPU and outputed to the display device。

测试方法(test method)

  • 执行测试

execute test
进入测试程序所在目录(一定要进入测试程序所在目录才能正常执行测试脚本)
enter directory where test program is located(must enter directory where test program is locased for a normal test script)
# cd /unit_tests/

  • 执行测试脚本

execute test script
# ./autorun-vpu.sh

  • 测试现象

test phenomenon
在整个测试过程中,从显示屏上可以看到VPU解码的视频。
in the whole test process,you can see the vedio decoded by VPU on the display screen。

附图(figure)

MY-IMX6 Linux-3.14 2.17.3.1 .png

= 显示功能测试(reveal function test) =

说明:每项显示功能测试都需要重启系统进入到u-boot命令行,输入命令并按确认键。
instruction:need to re-boot system to enter u-boot command line for each reveal function test,enter command and press Enter key。
示例如下:
example as below:
MY-IMX6 Linux-3.14 3.0.0.1 .png

单屏显示(single screen display)

说明:输入命令并按确定键,观察系统启动过程中显示屏的显示内容,即可看到Linux Logo。
instruction:enter command and press Enter key,observe the displayed content on screen in the course of system booting,Linux Logo can be seen。

LVDS1

=> setenv display ${fb0_lvds1}
=> saveenv; boot

LVDS0

=> setenv display ${fb0_lvds0}
=> saveenv; boot

HDMI

=> setenv display ${fb0_hdmi}
=> saveenv; boot
注意:如果使用HDMI转VGA的,请确认转接装置是否需要供电。
note:if HDMI to VGA,please confirm whether need power supply to switching device 。

RGB

=> setenv display ${fb0_lcd}
=> saveenv; boot

双屏同步骤显示(dual screen synchronous display)

说明:输入命令并按确定键,在内核启动过程中可以看到两个屏幕都显示Linux Logo,并且其它对显示屏的操作也会同样显示在两个屏幕上。
instruction:enter command and press Enter key,Linux Logo is displayed on the two screens in kernel booting,and other operations to screen is also displayed on the two screens。

LVDS1+LVDS0同步显示(LVDS1+LVDS0 synchronous display)

=> setenv display ${lvds_sync}
=> saveenv; boot

双屏异步显示(dual screen asynchronous display)

导入测试环境变量(lead in test environment variables)

# export GSTL=gst-launch-1.0
# export PLAYBIN=playbin
# export GPLAY=gplay-1.0
# export GSTINSPECT=gst-inspect-1.0
# export MP4_FILE="/home/root/test.mp4"

会用到的测试命令(test commands probably to be used)

  • 播放视频到主显示屏

play video to main display screen
# $GSTL $PLAYBIN uri=file://$MP4_FILE video-sink="imxv4l2sink device=/dev/video17"

  • 播放视频到第二显示屏

play video to the second display screen
# $GSTL $PLAYBIN uri=file://$MP4_FILE video-sink="imxv4l2sink device=/dev/video18"

LVDS1作为主屏(LVDS1 as main screen)

  • LVDS1+RGB双屏异步显示

LVDS1+RGB dual screen asynchronous display
=> setenv display ${fb0_lvds1} ${fb1_lcd}
=> saveenv; boot

  • LVDS1+HDMI双屏异步显示

LVDS1+HDMI dual screen asynchronous display
=> setenv display ${fb0_lvds1} ${fb1_hdmi}
=> saveenv; boot

LVDS0作为主屏(LVDS0 as main screen)

  • LVDS0+RGB双屏异步显示

LVDS0+RGB dual screen asynchronous display
=> setenv display ${fb0_lvds0} ${fb1_lcd}
=> saveenv; boot

  • LVDS0+HDMI双屏异步显示

LVDS0+HDMI dual screen asynchronous display
=> setenv display ${fb0_lvds0} ${fb1_hdmi}
=> saveenv; boot

RGB作为主屏(RGB as main screen)

  • RGB+LVDS1双屏异步显示:

RGB+LVDS1 dual screen asynchronous display:
=> setenv display ${fb0_lcd} ${fb1_lvds1}
=> saveenv; boot

  • RGB+LVDS0双屏异步显示:

RGB+LVDS0 dual screen asynchronous display:
=> setenv display ${fb0_lcd} ${fb1_lvds0}
=> saveenv; boot

HDMI作为主屏(HDMI as main screen)

  • HDMI+LVDS1双屏异步显示

HDMI+LVDS1 dual screen asynchronous display
=> setenv display ${fb0_hdmi} ${fb1_lvds1}
=> saveenv; boot

  • HDMI+LVDS0双屏异步显示

HDMI+LVDS0 dual screen asynchronous display
=> setenv display ${fb0_hdmi} ${fb1_lvds0}
=> saveenv; boot