“MY-IMX6 Linux-3.14 测试手册”的版本间的差异
(→测试方法) |
|||
第1行: | 第1行: | ||
− | = '''测试前的准备''' = | + | = '''测试前的准备(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> | ||
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> |
+ | |||
+ | |||
+ | = '''测试项目(test item)''' = | ||
---- | ---- | ||
− | == '''网口测试''' == | + | == '''网口测试(network inferface test)''' == |
MY-IMX6-EK200支持两个百兆网口。<br> | MY-IMX6-EK200支持两个百兆网口。<br> | ||
+ | <span style="background:#CCCCCC">MY-IMX6-EK200 support two 100 Mbps ethernet interfaces。</span><br> | ||
MY-IMX6-EK314支持一个千兆网口,一个百兆网口。<br> | MY-IMX6-EK314支持一个千兆网口,一个百兆网口。<br> | ||
− | === 接口属性 === | + | <span style="background:#CCCCCC">MY-IMX6-EK314 support one Gbps and one 100 Mbps ethernet interface。</span><br> |
+ | |||
+ | |||
+ | === 接口属性(interface property) === | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
− | !span style="color:#FFFFFF;background:#000080"|评估板型号 | + | !span style="color:#FFFFFF;background:#000080"|评估板型号<br>(evaluation board model no) |
− | !span style="color:#FFFFFF;background:#000080"|接口位置 | + | !span style="color:#FFFFFF;background:#000080"|接口位置<br>(interface position) |
− | !span style="color:#FFFFFF;background:#000080"|接口速率标准 | + | !span style="color:#FFFFFF;background:#000080"|接口速率标准<br>(interface rate standard) |
− | !span style="color:#FFFFFF;background:#000080"|系统接口 | + | !span style="color:#FFFFFF;background:#000080"|系统接口<br>(system interface) |
|- | |- | ||
|rowspan=2|MY-IMX6-EK200 | |rowspan=2|MY-IMX6-EK200 | ||
第37行: | 第45行: | ||
|} | |} | ||
− | === 测试方法 === | + | |
+ | === 测试方法(test method) === | ||
1) 配置计算机IP<br> | 1) 配置计算机IP<br> | ||
+ | <span style="background:#CCCCCC">configure computer IP</span><br> | ||
+ | |||
设置计算机有线网卡IP为192.168.18.18<br> | 设置计算机有线网卡IP为192.168.18.18<br> | ||
+ | <span style="background:#CCCCCC">set wired network card IP of computer as 192.168.18.18</span><br> | ||
[[文件:MY-IMX6 Linux-3.14_2.1.2.1 .png]]<br> | [[文件:MY-IMX6 Linux-3.14_2.1.2.1 .png]]<br> | ||
+ | |||
2) Eth0连接测试<br> | 2) Eth0连接测试<br> | ||
+ | <span style="background:#CCCCCC">Eth0 connect test</span><br> | ||
*连接网线:将评估板“eth0”对应的接口与计算机有线网卡的接口用网线相连接<br> | *连接网线:将评估板“eth0”对应的接口与计算机有线网卡的接口用网线相连接<br> | ||
+ | <span style="background:#CCCCCC">connect lan line: connect “eth0”on evaluation board with corresponding wired network card interface on computer with lan line</span><br> | ||
+ | |||
*设置评估板IP:<br> | *设置评估板IP:<br> | ||
+ | <span style="background:#CCCCCC">set evaluation board IP:</span><br> | ||
<span style="background:#ffff00># ifconfig eth0 192.168.18.36</span> # configure the eth0<br> | <span style="background:#ffff00># ifconfig eth0 192.168.18.36</span> # configure the eth0<br> | ||
+ | |||
*执行测试命令:<br> | *执行测试命令:<br> | ||
+ | <span style="background:#CCCCCC">execute test command:</span><br> | ||
<span style="background:#ffff00"># ifconfig eth1 down</span> # eth1 to be shut down<br> | <span style="background:#ffff00"># ifconfig eth1 down</span> # eth1 to be shut down<br> | ||
<span style="background:#ffff00"># ping 192.168.18.18 -c 2 -w 4</span> # send ICMP to HOST<br> | <span style="background:#ffff00"># ping 192.168.18.18 -c 2 -w 4</span> # send ICMP to HOST<br> | ||
+ | |||
*观察测试结果:系统会输出类似如下信息:<br> | *观察测试结果:系统会输出类似如下信息:<br> | ||
+ | <span style="background:#CCCCCC">observe test result:system will output message like following</span><br> | ||
<span style="background:#c0c0c0">--- 192.168.18.18 ping statistics --- <br> | <span style="background:#c0c0c0">--- 192.168.18.18 ping statistics --- <br> | ||
2packets transmitted, 2 packets received, 0% packet loss</span><br> | 2packets transmitted, 2 packets received, 0% packet loss</span><br> | ||
+ | |||
*测试结果:“0% packet loss”表示测试通过<br> | *测试结果:“0% packet loss”表示测试通过<br> | ||
+ | <span style="background:#CCCCCC">test result:“0% packet loss”represent test passing</span><br> | ||
+ | |||
*附图<br> | *附图<br> | ||
+ | <span style="background:#CCCCCC">figure</span><br> | ||
[[文件:MY-IMX6 Linux-3.14_2.1.2.2.png]]<br> | [[文件:MY-IMX6 Linux-3.14_2.1.2.2.png]]<br> | ||
+ | |||
3) Eth1连接测试<br> | 3) Eth1连接测试<br> | ||
+ | <span style="background:#CCCCCC">Eth1 connect test</span><br> | ||
+ | |||
*连接网线:将网线插入“eth1”对应的评估板接口,网线另一端保持与计算机有线网卡的接口连接。<br> | *连接网线:将网线插入“eth1”对应的评估板接口,网线另一端保持与计算机有线网卡的接口连接。<br> | ||
+ | <span style="background:#CCCCCC">connect lan line:insert one end of lan line into “eth1”on evaluation board and another end into wired network card interface on computer。</span><br> | ||
+ | |||
*设置第2个网口IP:<br> | *设置第2个网口IP:<br> | ||
+ | <span style="background:#CCCCCC">set the second network inter face IP:</span><br> | ||
<span style="background:#ffff00"># ifconfig eth1 192.168.18.27</span> # configure the eth1<br> | <span style="background:#ffff00"># ifconfig eth1 192.168.18.27</span> # configure the eth1<br> | ||
+ | |||
设置后系统会输出第2个网口的工作状态信息,类似如下:<br> | 设置后系统会输出第2个网口的工作状态信息,类似如下:<br> | ||
− | <span style="background:# | + | <span style="background:#CCCCCC">after setting the system will output message on working condition of second network interface,like following:</span><br> |
+ | smsc95xx 1-1.1:1.0 eth1: link up, 100Mbps, full-duplex, lpa 0x4DE1<br> | ||
+ | |||
*执行测试命令:<br> | *执行测试命令:<br> | ||
+ | <span style="background:#CCCCCC">execute test command:</span><br> | ||
<span style="background:#ffff00"># ifconfig eth0 down</span> # eth0 to be shut down<br> | <span style="background:#ffff00"># ifconfig eth0 down</span> # eth0 to be shut down<br> | ||
<span style="background:#ffff00"># ping 192.168.18.18 -c 2 -w 4</span> # send ICMP to HOST<br> | <span style="background:#ffff00"># ping 192.168.18.18 -c 2 -w 4</span> # send ICMP to HOST<br> | ||
+ | |||
*观察测试结果:系统会输出类似如下信息:<br> | *观察测试结果:系统会输出类似如下信息:<br> | ||
− | <span style="background:# | + | <span style="background:#CCCCCC">observe test result:system will output message like following:</span><br> |
− | 2packets transmitted, 2 packets received, 0% packet loss | + | --- 192.168.18.18 ping statistics ---<br> |
+ | 2packets transmitted, 2 packets received, 0% packet loss<br> | ||
+ | |||
*测试结果:“0% packet loss”表示测试通过<br> | *测试结果:“0% packet loss”表示测试通过<br> | ||
+ | <span style="background:#CCCCCC">test result:“0% packet loss”represent test passing</span><br> | ||
*附图<br> | *附图<br> | ||
+ | <span style="background:#CCCCCC">figures</span><br> | ||
[[文件:MY-IMX6 Linux-3.14_2.1.2.3.png]]<br> | [[文件:MY-IMX6 Linux-3.14_2.1.2.3.png]]<br> | ||
− | == '''USB测试''' == | + | |
− | === 接口属性 === | + | == '''USB测试(USB test)''' == |
+ | === 接口属性(interface property) === | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
− | !span style="color:#FFFFFF;background:#000080"|评估板型号 | + | !span style="color:#FFFFFF;background:#000080"|评估板型号<br>(evaluation board model no.) |
− | !span style="color:#FFFFFF;background:#000080"|接口位置 | + | !span style="color:#FFFFFF;background:#000080"|接口位置<br>(interface position) |
− | !span style="color:#FFFFFF;background:#000080"|接口速率标准 | + | !span style="color:#FFFFFF;background:#000080"|接口速率标准<br>(interface rate standard) |
|- | |- | ||
|MY-IMX6-EK200 | |MY-IMX6-EK200 | ||
第87行: | 第128行: | ||
|} | |} | ||
− | === 测试方法 === | + | |
+ | === 测试方法(test method) === | ||
1) 开始测试<br> | 1) 开始测试<br> | ||
+ | <span style="background:#CCCCCC">start test</span><br> | ||
将USB设备插入底板USB接口,系统会输出类似如下信息:<br> | 将USB设备插入底板USB接口,系统会输出类似如下信息:<br> | ||
− | <span style="background:# | + | <span style="background:#CCCCCC">insert USB device into USB port on base board,system will output message like following:</span><br> |
− | …… | + | usb *-*.*: new high speed USB device number * using fsl-ehci<br> |
+ | ……<br> | ||
+ | |||
2) 测试结束<br> | 2) 测试结束<br> | ||
+ | <span style="background:#CCCCCC">test over</span><br> | ||
将USB设备从底板拔出,系统会输出类似如下信息:<br> | 将USB设备从底板拔出,系统会输出类似如下信息:<br> | ||
+ | <span style="background:#CCCCCC">take out USB device from base board,system will output message like following:</span><br> | ||
<span style="background:#c0c0c0">usb *-*.*: USB disconnect, device number *</span><br> | <span style="background:#c0c0c0">usb *-*.*: USB disconnect, device number *</span><br> | ||
− | === 附图 === | + | |
+ | === 附图(figure) === | ||
说明:在USB口上插拔U盘时,系统输出信息类似如下:<br> | 说明:在USB口上插拔U盘时,系统输出信息类似如下:<br> | ||
+ | <span style="background:#CCCCCC">instruction:when plug in & out U disk from USB interface,system will output message like following:</span><br> | ||
[[文件:MY-IMX6 Linux-3.14_2.2.3.1 .png]]<br> | [[文件:MY-IMX6 Linux-3.14_2.2.3.1 .png]]<br> | ||
− | == '''SD卡测试''' == | + | |
− | === 接口属性 === | + | == '''SD卡测试(SD card test)''' == |
+ | === 接口属性(interface property) === | ||
{| class="wikitable" | {| class="wikitable" | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
− | !span style="color:#FFFFFF;background:#000080"| | + | !span style="color:#FFFFFF;background:#000080"|评估板型号<br>(evaluation model no.) |
− | !span style="color:#FFFFFF;background:#000080"|接口位置 | + | !span style="color:#FFFFFF;background:#000080"|接口位置<br>(interface position) |
− | !span style="color:#FFFFFF;background:#000080"|接口类型 | + | !span style="color:#FFFFFF;background:#000080"|接口类型<br>(interface type) |
|- | |- | ||
|MY-IMX6-EK200 | |MY-IMX6-EK200 | ||
第123行: | 第173行: | ||
|} | |} | ||
− | === 开始测试 === | + | |
+ | === 开始测试(start test) === | ||
1) 往SD卡槽插入设备<br> | 1) 往SD卡槽插入设备<br> | ||
+ | <span style="background:#CCCCCC">insert device into SD card slot</span><br> | ||
插入SD卡到底板SD卡接口。系统输出以下信息(见附图)即表示SD接口正常:<br> | 插入SD卡到底板SD卡接口。系统输出以下信息(见附图)即表示SD接口正常:<br> | ||
− | <span style="background:# | + | <span style="background:#CCCCCC">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:</span><br> |
+ | mmc*: new high speed SD card at address ****<br> | ||
mmcblk*: mmcx:xxxx SA**G *.**GiB<br> | mmcblk*: mmcx:xxxx SA**G *.**GiB<br> | ||
− | mmcblk*: p* | + | mmcblk*: p*<br> |
+ | |||
2)从SD卡槽弹出设备<br> | 2)从SD卡槽弹出设备<br> | ||
+ | <span style="background:#CCCCCC">pop-up device from SD card slot</span><br> | ||
再次住SD卡槽按下SD卡,底板会弹出SD卡。系统输出以下信息(见附图)表示SD卡接口弹出正常:<br> | 再次住SD卡槽按下SD卡,底板会弹出SD卡。系统输出以下信息(见附图)表示SD卡接口弹出正常:<br> | ||
− | <span style="background:# | + | <span style="background:#CCCCCC">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:</span><br> |
+ | mmc*: card **** removed<br> | ||
+ | |||
3) 结束测试<br> | 3) 结束测试<br> | ||
+ | <span style="background:#CCCCCC">test over</span><br> | ||
SD卡弹出后拨出SD卡即结束测试。<br> | SD卡弹出后拨出SD卡即结束测试。<br> | ||
+ | <span style="background:#CCCCCC">take out SD card after SD card pop-pup,then test is over。</span><br> | ||
− | === 附图 === | + | === 附图(figures) === |
[[文件:MY-IMX6 Linux-3.14_2.3.3.1 .png]]<br> | [[文件:MY-IMX6 Linux-3.14_2.3.3.1 .png]]<br> | ||
− | == '''音频测试''' == | + | |
− | === 测试说明 === | + | |
+ | == '''音频测试(audio test)''' == | ||
+ | === 测试说明(test instruction) === | ||
这项测试是通过播放音频文件验证评估板的音频功能。<br> | 这项测试是通过播放音频文件验证评估板的音频功能。<br> | ||
− | === 测试方法 === | + | <span style="background:#CCCCCC">the test is to verify audio function of evaluation board by playing audio file。</span><br> |
+ | |||
+ | === 测试方法(test method) === | ||
1)准备测试<br> | 1)准备测试<br> | ||
+ | <span style="background:#CCCCCC">prepare test</span><br> | ||
连接音频输出设备到底板正面的音频座子,音频座子在底板正面“J20”,丝印名称是“HP”。<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> | ||
+ | |||
2)执行测试<br> | 2)执行测试<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:#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> | ||
+ | |||
3)测试结果<br> | 3)测试结果<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> |
+ | |||
+ | === 附图(figures) === | ||
[[文件:MY-IMX6 Linux-3.14_2.5.3.1 .png]]<br> | [[文件:MY-IMX6 Linux-3.14_2.5.3.1 .png]]<br> | ||
− | == '''视频测试''' == | + | |
− | === 测试说明 === | + | |
+ | == '''视频测试(video test)''' == | ||
+ | === 测试说明(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> |
+ | |||
+ | === 测试方法(test method) === | ||
使用gplay播放一个视频,示例命令如下:<br> | 使用gplay播放一个视频,示例命令如下:<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> | ||
*测试结果<br> | *测试结果<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> |
+ | |||
+ | |||
+ | === 附图(figures) === | ||
[[文件:MY-IMX6 Linux-3.14_2.6.3.1 .png]]<br> | [[文件:MY-IMX6 Linux-3.14_2.6.3.1 .png]]<br> | ||
− | == '''标准GPIO测试''' == | + | == '''标准GPIO测试(standard GPIO test)''' == |
− | === 接口属性 === | + | === 接口属性(interface property) === |
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
!colspan=7;span style="background:#ffff00"|MY-IMX6-EK200 | !colspan=7;span style="background:#ffff00"|MY-IMX6-EK200 | ||
|- | |- | ||
− | |span style="color:#FFFFFF;background:#000080"|IO序号 | + | |span style="color:#FFFFFF;background:#000080"|IO序号<br>(IO order number) |
− | |span style="color:#FFFFFF;background:#000080"|GPIO属性 | + | |span style="color:#FFFFFF;background:#000080"|GPIO属性<br>(GPIO property) |
− | |span style="color:#FFFFFF;background:#000080"|接口位置 | + | |span style="color:#FFFFFF;background:#000080"|接口位置<br>(interface position) |
− | |rowspan=8| ||span style="color:#FFFFFF;background:#000080"|接口位置 | + | |rowspan=8| ||span style="color:#FFFFFF;background:#000080"|接口位置<br>(interface position) |
− | |span style="color:#FFFFFF;background:#000080"|GPIO属性 | + | |span style="color:#FFFFFF;background:#000080"|GPIO属性<br>(GPIO property) |
− | |span style="color:#FFFFFF;background:#000080"|IO序号 | + | |span style="color:#FFFFFF;background:#000080"|IO序号<br>(IO order number) |
|- | |- | ||
|-- ||gpio-leds ||J4:3 ||J4:4 ||GPIO6_IO11 ||171 | |-- ||gpio-leds ||J4:3 ||J4:4 ||GPIO6_IO11 ||171 | ||
第194行: | 第277行: | ||
!colspan=7;span style="background:#ffff00"|MY-IMX6-EK314 & MY-IMX6-EK336 | !colspan=7;span style="background:#ffff00"|MY-IMX6-EK314 & MY-IMX6-EK336 | ||
|- | |- | ||
− | |span style="color:#FFFFFF;background:#000080"|IO序号 | + | |span style="color:#FFFFFF;background:#000080"|IO序号<br>(IO order number) |
− | |span style="color:#FFFFFF;background:#000080"|GPIO属性 | + | |span style="color:#FFFFFF;background:#000080"|GPIO属性<br>(IO order number) |
− | |span style="color:#FFFFFF;background:#000080"|接口位置 | + | |span style="color:#FFFFFF;background:#000080"|接口位置<br>(interface position) |
− | |rowspan=20| ||span style="color:#FFFFFF;background:#000080"|接口位置 | + | |rowspan=20| ||span style="color:#FFFFFF;background:#000080"|接口位置<br>(interface position) |
− | |span style="color:#FFFFFF;background:#000080"|GPIO属性 | + | |span style="color:#FFFFFF;background:#000080"|GPIO属性<br>(GPIO property) |
− | |span style="color:#FFFFFF;background:#000080"|IO序号 | + | |span style="color:#FFFFFF;background:#000080"|IO序号<br>(IO order number) |
|- | |- | ||
|2 ||GPIO1_IO02 ||J23:11 ||J23:12 ||GPIO3_IO30 ||94 | |2 ||GPIO1_IO02 ||J23:11 ||J23:12 ||GPIO3_IO30 ||94 | ||
第240行: | 第323行: | ||
|} | |} | ||
− | === 测试方法 === | + | |
+ | === 测试方法(test method) === | ||
1)GPIO输出测试<br> | 1)GPIO输出测试<br> | ||
+ | <span style="background:#CCCCCC">GPIO output test</span><br> | ||
+ | |||
*设置需要测试的GPIO的IO序号<br> | *设置需要测试的GPIO的IO序号<br> | ||
+ | <span style="background:#CCCCCC">set IO order number for GPIO of which need to be tested</span><br> | ||
<span style="background:#ffff00"># OUT_IO_NUMBER=85<br></span> | <span style="background:#ffff00"># OUT_IO_NUMBER=85<br></span> | ||
+ | |||
*导出GPIO<br> | *导出GPIO<br> | ||
+ | <span style="background:#CCCCCC">lead out GPIO</span><br> | ||
<span style="background:#ffff00"># echo ${OUT_IO_NUMBER} > /sys/class/gpio/export<br></span> | <span style="background:#ffff00"># echo ${OUT_IO_NUMBER} > /sys/class/gpio/export<br></span> | ||
+ | |||
*设置GPIO方向<br> | *设置GPIO方向<br> | ||
+ | <span style="background:#CCCCCC">set GPIO direction</span><br> | ||
<span style="background:#ffff00"># echo out > /sys/class/gpio/gpio${OUT_IO_NUMBER}/direction<br></span> | <span style="background:#ffff00"># echo out > /sys/class/gpio/gpio${OUT_IO_NUMBER}/direction<br></span> | ||
+ | |||
*控制输出电平<br> | *控制输出电平<br> | ||
+ | <span style="background:#CCCCCC">control outputed electrical level</span><br> | ||
<span style="background:#ffff00"># echo 0 > /sys/class/gpio/gpio${OUT_IO_NUMBER}/value<br></span> | <span style="background:#ffff00"># echo 0 > /sys/class/gpio/gpio${OUT_IO_NUMBER}/value<br></span> | ||
<span style="background:#ffff00"># echo 1 > /sys/class/gpio/gpio${OUT_IO_NUMBER}/value<br></span> | <span style="background:#ffff00"># echo 1 > /sys/class/gpio/gpio${OUT_IO_NUMBER}/value<br></span> | ||
[[文件:MY-IMX6 Linux-3.14_2.7.2.1 .png]]<br> | [[文件:MY-IMX6 Linux-3.14_2.7.2.1 .png]]<br> | ||
+ | |||
2)GPIO输入测试<br> | 2)GPIO输入测试<br> | ||
+ | <span style="background:#CCCCCC">GPIO input test</span><br> | ||
+ | |||
*设置需要测试的GPIO的IO序号<br> | *设置需要测试的GPIO的IO序号<br> | ||
+ | <span style="background:#CCCCCC">set IO order number for GPIO of which need to be tested</span><br> | ||
<span style="background:#ffff00"># IN_IO_NUMBER=86<br></span> | <span style="background:#ffff00"># IN_IO_NUMBER=86<br></span> | ||
+ | |||
*导出GPIO<br> | *导出GPIO<br> | ||
+ | <span style="background:#CCCCCC">lead out GPIO</span><br> | ||
<span style="background:#ffff00"># echo ${IN_IO_NUMBER} > /sys/class/gpio/export<br></span> | <span style="background:#ffff00"># echo ${IN_IO_NUMBER} > /sys/class/gpio/export<br></span> | ||
+ | |||
*设置GPIO方向<br> | *设置GPIO方向<br> | ||
+ | <span style="background:#CCCCCC">set GPIO方向</span><br> | ||
<span style="background:#ffff00"># echo in > /sys/class/gpio/gpio${IN_IO_NUMBER}/direction<br></span> | <span style="background:#ffff00"># echo in > /sys/class/gpio/gpio${IN_IO_NUMBER}/direction<br></span> | ||
+ | |||
*查看输入电平<br> | *查看输入电平<br> | ||
+ | <span style="background:#CCCCCC">check inputed electrical level</span><br> | ||
cat /sys/class/<span style="background:#ffff00">gpio/gpio${IN_IO_NUMBER}</span> /value<br> | cat /sys/class/<span style="background:#ffff00">gpio/gpio${IN_IO_NUMBER}</span> /value<br> | ||
[[文件:MY-IMX6 Linux-3.14_2.7.2.2 .png]]<br> | [[文件:MY-IMX6 Linux-3.14_2.7.2.2 .png]]<br> | ||
+ | |||
3)验证输入输出<br> | 3)验证输入输出<br> | ||
+ | <span style="background:#CCCCCC">verify input&output</span><br> | ||
<span style="color:#ff0000">注意:这一步需要短接评估板的管脚,如果不确定自己能正确短接的请找硬件工程师支持,否则可能会损坏评估板。</span><br> | <span style="color:#ff0000">注意:这一步需要短接评估板的管脚,如果不确定自己能正确短接的请找硬件工程师支持,否则可能会损坏评估板。</span><br> | ||
+ | <span style="background:#CCCCCC">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。</span><br> | ||
将前面配置的输出IO对应的管脚与配置的输入IO对应的管脚连接。即:在MY-IMX6-EK200上连接J4:10 - J4:12,在MY-IMX6-EK314上连接U14:29 - U14:30。<br> | 将前面配置的输出IO对应的管脚与配置的输入IO对应的管脚连接。即:在MY-IMX6-EK200上连接J4:10 - J4:12,在MY-IMX6-EK314上连接U14:29 - U14:30。<br> | ||
+ | <span style="background:#CCCCCC">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。</span><br> | ||
+ | |||
*查看输入管脚上的电平<br> | *查看输入管脚上的电平<br> | ||
+ | <span style="background:#CCCCCC">check eletrical level of inputed pins</span><br> | ||
# cat /sys/class/gpio/gpio${IN_IO_NUMBER}/value<br> | # cat /sys/class/gpio/gpio${IN_IO_NUMBER}/value<br> | ||
+ | |||
*更改输出管脚的输出电平<br> | *更改输出管脚的输出电平<br> | ||
+ | <span style="background:#CCCCCC">modify electrical level of outputed pins</span><br> | ||
# echo 1 > /sys/class/gpio/gpio${OUT_IO_NUMBER}/value<br> | # echo 1 > /sys/class/gpio/gpio${OUT_IO_NUMBER}/value<br> | ||
+ | |||
*查看输入管脚上的电平<br> | *查看输入管脚上的电平<br> | ||
+ | <span style="background:#CCCCCC">check electrical level of inputed pins</span><br> | ||
# cat /sys/class/gpio/gpio${IN_IO_NUMBER}/value<br> | # cat /sys/class/gpio/gpio${IN_IO_NUMBER}/value<br> | ||
[[文件:MY-IMX6 Linux-3.14_2.7.2.3 .png]]<br> | [[文件:MY-IMX6 Linux-3.14_2.7.2.3 .png]]<br> | ||
− | == '''GPIO-LED测试''' == | + | |
− | === 接口属性 === | + | |
+ | == '''GPIO-LED测试(GPIO-LED test)''' == | ||
+ | === 接口属性(interface property) === | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
− | !colspan=3;span style="background:#ffff00"| | + | !colspan=3;span style="background:#ffff00"|MY-IMX6-EK200 |
|rowspan=6| | |rowspan=6| | ||
!colspan=3;span style="background:#ffff00"|MY-IMX6-EK314 | !colspan=3;span style="background:#ffff00"|MY-IMX6-EK314 | ||
|- | |- | ||
− | |span style="color:#FFFFFF;background:#000080"|接口位置 | + | |span style="color:#FFFFFF;background:#000080"|接口位置<br>(interface position) |
− | |span style="color:#FFFFFF;background:#000080"|GPIO属性 | + | |span style="color:#FFFFFF;background:#000080"|GPIO属性<br>(GPIO property) |
− | |span style="color:#FFFFFF;background:#000080"|LED属性 | + | |span style="color:#FFFFFF;background:#000080"|LED属性<br>(LED property) |
− | |span style="color:#FFFFFF;background:#000080"|接口位置 | + | |span style="color:#FFFFFF;background:#000080"|接口位置<br>(interface position) |
− | |span style="color:#FFFFFF;background:#000080"|GPIO属性 | + | |span style="color:#FFFFFF;background:#000080"|GPIO属性<br>(GPIO property) |
− | |span style="color:#FFFFFF;background:#000080"|LED属性 | + | |span style="color:#FFFFFF;background:#000080"|LED属性<br>(LED property) |
|- | |- | ||
|J4:3 | |J4:3 | ||
第321行: | 第436行: | ||
|} | |} | ||
− | === GPIO-LED(Heartbeat)测试 === | + | |
+ | === GPIO-LED(Heartbeat)测试(GPIO-LED(Heartbeat)test) === | ||
系统启动完成后,用示波器检测heartbeat对应的接口,可看到如下类似信号:<br> | 系统启动完成后,用示波器检测heartbeat对应的接口,可看到如下类似信号:<br> | ||
+ | <span style="background:#CCCCCC">after system booting is completed,check interface corresponding with heartbeat with oscilloscope,then you can see message like below:</span><br> | ||
[[文件:MY-IMX6 Linux-3.14_2.8.2.1 .png]]<br> | [[文件:MY-IMX6 Linux-3.14_2.8.2.1 .png]]<br> | ||
提示:heartbeat是与CPU心跳关联的,如果在此GPIO上接上LED,即可通过观察LED来判断CPU是否工作。<br> | 提示:heartbeat是与CPU心跳关联的,如果在此GPIO上接上LED,即可通过观察LED来判断CPU是否工作。<br> | ||
− | === GPIO-LED(Timer)测试 === | + | <span style="background:#CCCCCC">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。</span><br> |
+ | |||
+ | |||
+ | === GPIO-LED(Timer)测试(GPIO-LED(Timer)test) === | ||
系统启动完成后,用示波器检测timer对应的接口,可看到如下类似信号:<br> | 系统启动完成后,用示波器检测timer对应的接口,可看到如下类似信号:<br> | ||
+ | <span style="background:#CCCCCC">after system booting is completed,check interface corresponding with timer with oscilloscope,then you can see message like below:</span><br> | ||
[[文件:MY-IMX6 Linux-3.14_2.8.3.1 .png]]<br> | [[文件:MY-IMX6 Linux-3.14_2.8.3.1 .png]]<br> | ||
通过delay_off、delay_on来控制高低电平持续的时间。<br> | 通过delay_off、delay_on来控制高低电平持续的时间。<br> | ||
+ | <span style="background:#CCCCCC">control high&low electrical time by delay_off、delay_on。</span><br> | ||
<span style="background:#ffff00"># echo 500 > /sys/class/leds/led-timer/delay_off<br></span> | <span style="background:#ffff00"># echo 500 > /sys/class/leds/led-timer/delay_off<br></span> | ||
<span style="background:#ffff00"># echo 1000 > /sys/class/leds/led-timer/delay_on<br></span> | <span style="background:#ffff00"># echo 1000 > /sys/class/leds/led-timer/delay_on<br></span> | ||
再用示波器检测的时候,会看到波形发生的变化。<br> | 再用示波器检测的时候,会看到波形发生的变化。<br> | ||
− | === GPIO-LED(Default ON)测试 === | + | <span style="background:#CCCCCC">re-check with oscilloscope,you can see the change of wave shape。</span><br> |
+ | |||
+ | |||
+ | === GPIO-LED(Default ON)测试(GPIO-LED(Default ON)test) === | ||
Default-on可以通过brightness控制。<br> | Default-on可以通过brightness控制。<br> | ||
+ | <span style="background:#CCCCCC">Default-on can be controled by brightness。</span><br> | ||
Default-on的实现是初始触发状态为on,即初始触发后为高电平。<br> | Default-on的实现是初始触发状态为on,即初始触发后为高电平。<br> | ||
+ | <span style="background:#CCCCCC">Default-on is set to be on for original trigger,e.g it is high electrical level after original trigger。</span><br> | ||
<span style="background:#ffff00"># echo 1 > /sys/class/leds/Default/brightness<br></span> | <span style="background:#ffff00"># echo 1 > /sys/class/leds/Default/brightness<br></span> | ||
往brightness写0即可检测到低电平。<br> | 往brightness写0即可检测到低电平。<br> | ||
+ | <span style="background:#CCCCCC">write 0 to brightness to detect low electrical level 。</span><br> | ||
<span style="background:#ffff00"># echo 0 > /sys/class/leds/Default/brightness<br></span> | <span style="background:#ffff00"># echo 0 > /sys/class/leds/Default/brightness<br></span> | ||
− | === GPIO-LED(GPIO)测试 === | + | |
+ | |||
+ | === GPIO-LED(GPIO)测试(GPIO-LED(GPIO)test) === | ||
GPIO的测试可以使用跟default-on类似的方法:<br> | GPIO的测试可以使用跟default-on类似的方法:<br> | ||
+ | <span style="background:#CCCCCC">GPIO test can be in similar way as test of default-on:</span><br> | ||
<span style="background:#ffff00"># echo 1 > /sys/class/leds/gpio1_12/brightness<br></span> | <span style="background:#ffff00"># echo 1 > /sys/class/leds/gpio1_12/brightness<br></span> | ||
使用万用表测试LED:gpio对应的引脚,可以看到该引脚是高电平。<br> | 使用万用表测试LED:gpio对应的引脚,可以看到该引脚是高电平。<br> | ||
+ | <span style="background:#CCCCCC">test pin corresponding with LED:gpio with multi-meter,you can see the pin is high electrical level。</span><br> | ||
<span style="background:#ffff00"># echo 0 > /sys/class/leds/gpio1_12/brightness<br></span> | <span style="background:#ffff00"># echo 0 > /sys/class/leds/gpio1_12/brightness<br></span> | ||
使用万用表测试LED:gpio对应的引脚,可以看到该引脚是低电平。<br> | 使用万用表测试LED:gpio对应的引脚,可以看到该引脚是低电平。<br> | ||
− | == '''GPIO-KEY测试''' == | + | <span style="background:#CCCCCC">test pin corresponding with LED:gpio with multi-meter,you can see the pin is low electrical level。</span><br> |
− | === 接口属性 === | + | |
+ | |||
+ | == '''GPIO-KEY测试(GPIO-KEY test)''' == | ||
+ | === 接口属性(interface property) === | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
第352行: | 第487行: | ||
!colspan=3;span style="background:#ffff00"|MY-IMX6-EK314 | !colspan=3;span style="background:#ffff00"|MY-IMX6-EK314 | ||
|- | |- | ||
− | |span style="color:#FFFFFF;background:#000080"|接口位置 | + | |span style="color:#FFFFFF;background:#000080"|接口位置<br>(interface position) |
− | |span style="color:#FFFFFF;background:#000080"|GPIO属性 | + | |span style="color:#FFFFFF;background:#000080"|GPIO属性<br>(GPIO property) |
− | |span style="color:#FFFFFF;background:#000080"|KEY属性 | + | |span style="color:#FFFFFF;background:#000080"|KEY属性<br>(KEY property) |
− | |span style="color:#FFFFFF;background:#000080"|接口位置 | + | |span style="color:#FFFFFF;background:#000080"|接口位置<br>(interface position) |
− | |span style="color:#FFFFFF;background:#000080"|GPIO属性 | + | |span style="color:#FFFFFF;background:#000080"|GPIO属性<br>(GPIO property) |
− | |span style="color:#FFFFFF;background:#000080"|LED属性 | + | |span style="color:#FFFFFF;background:#000080"|LED属性<br>(LED property) |
|- | |- | ||
|SW2 | |SW2 | ||
第385行: | 第520行: | ||
|} | |} | ||
− | === 测试方法 === | + | |
+ | === 测试方法(test method) === | ||
1)执行测试程序<br> | 1)执行测试程序<br> | ||
+ | <span style="background:#CCCCCC">execute test program</span><br> | ||
在终端下键入命令执行测试,示例如下:<br> | 在终端下键入命令执行测试,示例如下:<br> | ||
+ | <span style="background:#CCCCCC">enter command to execute on terminal,example as below:</span><br> | ||
<span style="background:#ffff00"># evtest<br></span> | <span style="background:#ffff00"># evtest<br></span> | ||
+ | |||
2)选择测试设备<br> | 2)选择测试设备<br> | ||
+ | <span style="background:#CCCCCC">select test device</span><br> | ||
Select the device event number [0-2]: 2<br> | Select the device event number [0-2]: 2<br> | ||
输入“gpio-keys”对应的序号,这里是2<br> | 输入“gpio-keys”对应的序号,这里是2<br> | ||
+ | <span style="background:#CCCCCC">enter order number corrsponding with“gpio-keys”,here it is 2</span><br> | ||
[[文件: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> | ||
在终端会看到“Testing ... (interrupt to exit)”,这时我们按下或松开SW4、SW3、SW2。会看到如下类似信息:<br> | 在终端会看到“Testing ... (interrupt to exit)”,这时我们按下或松开SW4、SW3、SW2。会看到如下类似信息:<br> | ||
− | <span style="background:# | + | <span style="background:#CCCCCC">on terminal you can“Testing ... (interrupt to exit)”,this time press or release SW4、SW3、SW2。message like below will come out:</span><br> |
+ | |||
+ | Event: time 1452590477.115958, type 1 (EV_KEY), code 116 (KEY_POWER), value 0<br> | ||
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 | + | 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> | ||
[[文件: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> | ||
按计算机上的“Ctrl”+“C”可结束按键测试程序。<br> | 按计算机上的“Ctrl”+“C”可结束按键测试程序。<br> | ||
− | == '''串口测试''' == | + | <span style="background:#CCCCCC">press “Ctrl”+“C”on computer to end the test program for keys。</span><br> |
+ | |||
+ | |||
+ | == '''串口测试(serial port test)''' == | ||
MY-IMX6-EK200共5个串口,其中1个调试串口,4个用户串口。<br> | MY-IMX6-EK200共5个串口,其中1个调试串口,4个用户串口。<br> | ||
+ | <span style="background:#CCCCCC">MY-IMX6-EK200 has total 5 serial ports,one is debug seiral port,the other 4 are user serial ports。</span><br> | ||
MY-IMX6-EK314共5个串口,其中1个调试串口,4个用户串口。<br> | MY-IMX6-EK314共5个串口,其中1个调试串口,4个用户串口。<br> | ||
− | === 用户串口属性 === | + | <span style="background:#CCCCCC">MY-IMX6-EK314 has total 5 serial ports,one is debug seiral port,the other 4 are user serial ports。</span><br> |
+ | |||
+ | |||
+ | === 用户串口属性(user serial port property) === | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
− | !span style="color:#FFFFFF;background:#000080"| | + | !span style="color:#FFFFFF;background:#000080"|评估板型号<br>(evaluation board model no.) |
− | !span style="color:#FFFFFF;background:#000080"|UARTx | + | !span style="color:#FFFFFF;background:#000080"|UARTx |
− | !span style="color:#FFFFFF;background:#000080"|Rx | + | !span style="color:#FFFFFF;background:#000080"|Rx |
!span style="color:#FFFFFF;background:#000080"|Tx | !span style="color:#FFFFFF;background:#000080"|Tx | ||
− | !span style="color:#FFFFFF;background:#000080"|系统接口 | + | !span style="color:#FFFFFF;background:#000080"|系统接口<br>(system interface) |
|- | |- | ||
|rowspan=4|MY-IMX6-EK200 | |rowspan=4|MY-IMX6-EK200 | ||
第462行: | 第617行: | ||
|ttymxc4 | |ttymxc4 | ||
|} | |} | ||
− | 提示:这里列出串口的收发管脚,串口其它管脚的定义请看原理图。 | + | 提示:这里列出串口的收发管脚,串口其它管脚的定义请看原理图。<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) === |
1)测试说明<br> | 1)测试说明<br> | ||
+ | <span style="background:#CCCCCC">test instruction</span><br> | ||
+ | |||
*测试方法说明:<br> | *测试方法说明:<br> | ||
+ | <span style="background:#CCCCCC">intruction of test method:</span><br> | ||
采用串口自发自收的方式进行。<br> | 采用串口自发自收的方式进行。<br> | ||
+ | <span style="background:#CCCCCC">adopt method of self-sending & self-receiving of serial port。</span><br> | ||
*测试结果说明:<br> | *测试结果说明:<br> | ||
+ | <span style="background:#CCCCCC">instruction of test result:</span><br> | ||
通过测试程序向串口发送字符串,并输出串口接收到的字符串。<br> | 通过测试程序向串口发送字符串,并输出串口接收到的字符串。<br> | ||
+ | <span style="background:#CCCCCC">send charater string to serial port through test program and output charater strings received by serial port。</span><br> | ||
<span style="color:#ff0000">注意:串口测试需要短接评估板的管脚,如果不确定自己能正确短接的请找硬件工程师支持,否则可能会损坏评估板。</span><br> | <span style="color:#ff0000">注意:串口测试需要短接评估板的管脚,如果不确定自己能正确短接的请找硬件工程师支持,否则可能会损坏评估板。</span><br> | ||
+ | <span style="background:#CCCCCC"><span style="color:#ff0000">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。</span></span><br> | ||
+ | |||
2)进入测试程序目录<br> | 2)进入测试程序目录<br> | ||
+ | <span style="background:#CCCCCC">enter test program directory</span><br> | ||
<span style="background:#ffff00"># cd ~/my-demo/linux-3.14.52<br></span> | <span style="background:#ffff00"># cd ~/my-demo/linux-3.14.52<br></span> | ||
+ | |||
3)UART2测试<br> | 3)UART2测试<br> | ||
+ | <span style="background:#CCCCCC">UART2 test</span><br> | ||
*准备测试<br> | *准备测试<br> | ||
+ | <span style="background:#CCCCCC">prepare test</span><br> | ||
短接串口2的发送发接收管脚(J1的9和10号)。<br> | 短接串口2的发送发接收管脚(J1的9和10号)。<br> | ||
+ | <span style="background:#CCCCCC">short connect sending pin and receiving pin of serial port 2(no.9 and 10 of J1)。</span><br> | ||
*执行测试命令<br> | *执行测试命令<br> | ||
+ | <span style="background:#CCCCCC">execute test command</span><br> | ||
<span style="background:#ffff00"># ./uart.out /dev/ttymxc1 "www.myzr.com.cn"<br></span> | <span style="background:#ffff00"># ./uart.out /dev/ttymxc1 "www.myzr.com.cn"<br></span> | ||
*测试结果附图<br> | *测试结果附图<br> | ||
+ | <span style="background:#CCCCCC">figures for test result</span><br> | ||
[[文件:MY-IMX6 Linux-3.14_2.10.2.1 .png]]<br> | [[文件:MY-IMX6 Linux-3.14_2.10.2.1 .png]]<br> | ||
+ | |||
4)UART3测试<br> | 4)UART3测试<br> | ||
+ | <span style="background:#CCCCCC">UART3 test</span><br> | ||
*准备测试<br> | *准备测试<br> | ||
+ | <span style="background:#CCCCCC">prepare test</span><br> | ||
短接串口3的发送发接收管脚(J1的12和13号)。<br> | 短接串口3的发送发接收管脚(J1的12和13号)。<br> | ||
+ | <span style="background:#CCCCCC">short connect sending pin and receiving pin of serial port 3(no.12 and 13 of J1)。</span><br> | ||
+ | |||
*执行测试命令<br> | *执行测试命令<br> | ||
+ | <span style="background:#CCCCCC">execute test command</span><br> | ||
<span style="background:#ffff00"># ./uart.out /dev/ttymxc2 "www.myzr.com.cn"<br></span> | <span style="background:#ffff00"># ./uart.out /dev/ttymxc2 "www.myzr.com.cn"<br></span> | ||
+ | |||
*测试结果附图<br> | *测试结果附图<br> | ||
+ | <span style="background:#CCCCCC">figures for test result</span><br> | ||
[[文件:MY-IMX6 Linux-3.14_2.10.2.2 .png]]<br> | [[文件:MY-IMX6 Linux-3.14_2.10.2.2 .png]]<br> | ||
+ | |||
5)UART4测试<br> | 5)UART4测试<br> | ||
+ | <span style="background:#CCCCCC">UART4 test</span><br> | ||
+ | |||
*准备测试<br> | *准备测试<br> | ||
+ | <span style="background:#CCCCCC">prepare test</span><br> | ||
短接串口4的发送发接收管脚(J1的15和17号)。<br> | 短接串口4的发送发接收管脚(J1的15和17号)。<br> | ||
+ | <span style="background:#CCCCCC">short connect sending pin and receiving pin of serial port 4(no.15 and 17 of J1)。</span><br> | ||
+ | |||
*执行测试命令<br> | *执行测试命令<br> | ||
+ | <span style="background:#CCCCCC">execute test command</span><br> | ||
<span style="background:#ffff00"># ./uart.out /dev/ttymxc3 "www.myzr.com.cn"<br></span> | <span style="background:#ffff00"># ./uart.out /dev/ttymxc3 "www.myzr.com.cn"<br></span> | ||
+ | |||
*测试结果附图<br> | *测试结果附图<br> | ||
+ | <span style="background:#CCCCCC">figures for test result</span><br> | ||
[[文件:MY-IMX6 Linux-3.14_2.10.2.3 .png]]<br> | [[文件:MY-IMX6 Linux-3.14_2.10.2.3 .png]]<br> | ||
+ | |||
6)UART5测试<br> | 6)UART5测试<br> | ||
+ | <span style="background:#CCCCCC">UART5 test</span><br> | ||
+ | |||
*准备测试<br> | *准备测试<br> | ||
+ | <span style="background:#CCCCCC">prepare test</span><br> | ||
短接串口5的发送发接收管脚(J1的16和18号)。<br> | 短接串口5的发送发接收管脚(J1的16和18号)。<br> | ||
+ | <span style="background:#CCCCCC">short connect sending pin and receiving pin of serial port 5(no.16 and 18 of J1)。</span><br> | ||
+ | |||
*执行测试命令<br> | *执行测试命令<br> | ||
+ | <span style="background:#CCCCCC">execute test command</span><br> | ||
<span style="background:#ffff00"># ./uart.out /dev/ttymxc4 "www.myzr.com.cn"<br> | <span style="background:#ffff00"># ./uart.out /dev/ttymxc4 "www.myzr.com.cn"<br> | ||
+ | |||
*测试结果附图<br> | *测试结果附图<br> | ||
+ | <span style="background:#CCCCCC">figures for test result</span><br> | ||
[[文件:MY-IMX6 Linux-3.14_2.10.2.4 .png]]<br> | [[文件:MY-IMX6 Linux-3.14_2.10.2.4 .png]]<br> | ||
− | == '''RTC测试''' == | + | |
− | === 测试说明 === | + | == '''RTC测试(RTC test) ''' == |
+ | === 测试说明(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> | ||
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> | ||
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> |
+ | |||
+ | |||
+ | === 测试方法(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> | ||
*查看当前系统时钟命令如下:<br> | *查看当前系统时钟命令如下:<br> | ||
+ | <span style="background:#CCCCCC">command to check clock of current system as below</span><br> | ||
<span style="background:#ffff00"># date<br></span> | <span style="background:#ffff00"># date<br></span> | ||
+ | |||
*系统输出信息如下:<br> | *系统输出信息如下:<br> | ||
+ | <span style="background:#CCCCCC">message outputed by system as below:</span><br> | ||
<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:#ffff00"># hwclock <br></span> | <span style="background:#ffff00"># hwclock <br></span> | ||
+ | |||
*系统输出信息如下:<br> | *系统输出信息如下:<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> | ||
+ | |||
*设置系统时钟命令参考如下:<br> | *设置系统时钟命令参考如下:<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:#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> | ||
请参考第1步<br> | 请参考第1步<br> | ||
+ | <span style="background:#CCCCCC">please refer to step 1</span><br> | ||
5)测试结果<br> | 5)测试结果<br> | ||
+ | <span style="background:#CCCCCC">test Results</span><br> | ||
执行第3步以后看到的时钟为新设定的时钟。<br> | 执行第3步以后看到的时钟为新设定的时钟。<br> | ||
− | === 附图 === | + | <span style="background:#CCCCCC">it will be a newly-set clock after execution until step3。</span><br> |
+ | |||
+ | |||
+ | === 附图(figures) === | ||
下图为测试方法中步骤1和2的截图<br> | 下图为测试方法中步骤1和2的截图<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> | ||
[[文件:MY-IMX6 Linux-3.14_2.11.3.2.png]]<br> | [[文件:MY-IMX6 Linux-3.14_2.11.3.2.png]]<br> | ||
− | == '''WatchDog测试''' == | + | |
− | === 测试说明 === | + | == '''WatchDog测试(WatchDog test)''' == |
+ | === 测试说明(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> |
+ | |||
+ | |||
+ | === 复位测试(reset test) === | ||
1)测试说明<br> | 1)测试说明<br> | ||
+ | <span style="background:#CCCCCC">test instruction</span><br> | ||
复位测试将启动WatchDog,但是并不喂狗,超时后系统将会复位。<br> | 复位测试将启动WatchDog,但是并不喂狗,超时后系统将会复位。<br> | ||
+ | <span style="background:#CCCCCC">reset test will boot WatchDog,but doesn't feed dog,system will reset when timeout。</span><br> | ||
+ | |||
2)执行测试<br> | 2)执行测试<br> | ||
+ | <span style="background:#CCCCCC">execute test</span><br> | ||
<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> | ||
运行测试命令后等待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> | ||
[[文件: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) === |
+ | |||
1)测试说明<br> | 1)测试说明<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> | ||
+ | |||
2)执行测试<br> | 2)执行测试<br> | ||
+ | <span style="background:#CCCCCC">execute test</span><br> | ||
*启动WatchDog<br> | *启动WatchDog<br> | ||
+ | <span style="background:#CCCCCC">boot WatchDog</span><br> | ||
<span style="background:#ffff00"># /unit_tests/wdt_driver_test.out 4 2 1 &<br></span> | <span style="background:#ffff00"># /unit_tests/wdt_driver_test.out 4 2 1 &<br></span> | ||
+ | |||
*查看当前时间<br> | *查看当前时间<br> | ||
+ | <span style="background:#CCCCCC">check current time</span><br> | ||
<span style="background:#ffff00"># date<br></span> | <span style="background:#ffff00"># date<br></span> | ||
[[文件: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> | ||
*查看当前时间<br> | *查看当前时间<br> | ||
+ | <span style="background:#CCCCCC">check current time</span><br> | ||
经过几分钟之后,系统依然没有复位。我们再查看当前时间。<br> | 经过几分钟之后,系统依然没有复位。我们再查看当前时间。<br> | ||
+ | <span style="background:#CCCCCC">after a few minutes,if system hasn't resetted yet,re-check current time。</span><br> | ||
<span style="background:#ffff00"># date<br></span> | <span style="background:#ffff00"># date<br></span> | ||
+ | |||
*停止喂狗<br> | *停止喂狗<br> | ||
+ | <span style="background:#CCCCCC">stop feeding dog</span><br> | ||
这时我们终止Watchdog测试程序,这样就没有程序进行喂狗了,系统将会在超时时间(这里是4秒)内复位。<br> | 这时我们终止Watchdog测试程序,这样就没有程序进行喂狗了,系统将会在超时时间(这里是4秒)内复位。<br> | ||
+ | <span style="background:#CCCCCC">when we stop Watchdog test program,then there won't be program to feed dog,system will reset in 4 seconds when timeout。</span><br> | ||
<span style="background:#ffff00"># pkill wdt_driver_test<br></span> | <span style="background:#ffff00"># pkill wdt_driver_test<br></span> | ||
[[文件:MY-IMX6 Linux-3.14_2.12.3.2 .png]]<br> | [[文件:MY-IMX6 Linux-3.14_2.12.3.2 .png]]<br> | ||
− | == '''SPI测试 ''' == | + | |
+ | |||
+ | == '''SPI测试(SPI test) ''' == | ||
MY-IMX6-EK200上有两组SPI接口。<br> | MY-IMX6-EK200上有两组SPI接口。<br> | ||
+ | <span style="background:#CCCCCC">MY-IMX6-EK200上has two groups of SPI interfaces。</span><br> | ||
MY-IMX6-EK314上有两组SPI接口。<br> | MY-IMX6-EK314上有两组SPI接口。<br> | ||
− | === 接口属性 === | + | <span style="background:#CCCCCC">MY-IMX6-EK314 has two groups of SPI interfaces。</span><br> |
+ | |||
+ | |||
+ | === 接口属性(interface property) === | ||
测试需要用到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> | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
− | !span style="color:#FFFFFF;background:#000080"|评估板型号 | + | !span style="color:#FFFFFF;background:#000080"|评估板型号<br>(evaluation board model no.) |
!span style="color:#FFFFFF;background:#000080"|SPIx | !span style="color:#FFFFFF;background:#000080"|SPIx | ||
!span style="color:#FFFFFF;background:#000080"|MISO | !span style="color:#FFFFFF;background:#000080"|MISO | ||
第593行: | 第850行: | ||
|} | |} | ||
− | === 测试说明 === | + | === 测试说明(test specification) === |
1)采用SPI自发送(输出)自接收(输入)的方式。<br> | 1)采用SPI自发送(输出)自接收(输入)的方式。<br> | ||
+ | <span style="background:#CCCCCC">adopt way of SPI self-sending(output)self-receiving(input)。</span><br> | ||
<span style="color:#ff0000">注意:测试需要短接评估板的管脚,如果不确定自己能正确短接的请找硬件工程师支持,否则可能会损坏评估板。</span><br> | <span style="color:#ff0000">注意:测试需要短接评估板的管脚,如果不确定自己能正确短接的请找硬件工程师支持,否则可能会损坏评估板。</span><br> | ||
+ | <span style="background:#CCCCCC">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。</span><br> | ||
+ | |||
2)与SPI测试程序匹配的SPI接口是SPI2,所以我们的SPI测试是测试SPI2。<br> | 2)与SPI测试程序匹配的SPI接口是SPI2,所以我们的SPI测试是测试SPI2。<br> | ||
− | === 测试方法 === | + | <span style="background:#CCCCCC">SPI port which is matched up with SPI test program is SPI2,e.g.SPI test is SPI2 test。</span><br> |
+ | |||
+ | === 测试方法(test method) === | ||
1)准备测试<br> | 1)准备测试<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> | ||
2)执行测试<br> | 2)执行测试<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> | ||
如果SPI正常,在终端上会看到如下字符:<br> | 如果SPI正常,在终端上会看到如下字符:<br> | ||
− | <span style="background:# | + | <span style="background:#CCCCCC">if SPI is normal,you can see following charaters on terminal:</span><br> |
+ | FF FF FF FF FF FF <br> | ||
40 00 00 00 00 95 <br> | 40 00 00 00 00 95 <br> | ||
FF FF FF FF FF FF <br> | FF FF FF FF FF FF <br> | ||
第610行: | 第877行: | ||
FF FF FF FF FF FF <br> | FF FF FF FF FF FF <br> | ||
DE AD BE EF BA AD <br> | DE AD BE EF BA AD <br> | ||
− | F0 0D | + | F0 0D<br> |
+ | |||
− | === 附图 === | + | === 附图(figures) === |
[[文件:MY-IMX6 Linux-3.14_2.13.4.1 .png]]<br> | [[文件:MY-IMX6 Linux-3.14_2.13.4.1 .png]]<br> | ||
− | == '''CAN接口测试 ''' == | + | == '''CAN接口测试(CAN interface test) ''' == |
MY-IMX6-EK200上有两组CAN接口。<br> | MY-IMX6-EK200上有两组CAN接口。<br> | ||
+ | <span style="background:#CCCCCC">MY-IMX6-EK200 has two groups of CAN interfaces。</span><br> | ||
MY-IMX6-EK314上有两组CAN接口。<br> | MY-IMX6-EK314上有两组CAN接口。<br> | ||
− | === 接口属性 === | + | <span style="background:#CCCCCC">MY-IMX6-EK314 has two groups of CAN interfaces。</span><br> |
+ | |||
+ | === 接口属性(interface property) === | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
− | !span style="color:#FFFFFF;background:#000080"|评估板型号 | + | !span style="color:#FFFFFF;background:#000080"|评估板型号<br>(evaluation model no.) |
!span style="color:#FFFFFF;background:#000080"|CANx | !span style="color:#FFFFFF;background:#000080"|CANx | ||
− | !span style="color:#FFFFFF;background:#000080"|信号:CAN_L | + | !span style="color:#FFFFFF;background:#000080"|信号:CAN_L<br>(signal:CAN_L) |
− | !span style="color:#FFFFFF;background:#000080"|信号:CAN_H | + | !span style="color:#FFFFFF;background:#000080"|信号:CAN_H<br>(signal:CAN_H) |
− | !span style="color:#FFFFFF;background:#000080"|系统设备 | + | !span style="color:#FFFFFF;background:#000080"|系统设备<br>(system device) |
|- | |- | ||
|rowspan=2|MY-IMX6-EK200 | |rowspan=2|MY-IMX6-EK200 | ||
第651行: | 第922行: | ||
|} | |} | ||
− | === 测试说明 === | + | === 测试说明(test instruction) === |
采用CAN1发送,CAN0接收的方式。<br> | 采用CAN1发送,CAN0接收的方式。<br> | ||
− | === 测试方法 === | + | <span style="background:#CCCCCC">adopt way of sending with CAN1 and receiving with CAN0。</span><br> |
+ | |||
+ | === 测试方法(test method) === | ||
1)接口连接<br> | 1)接口连接<br> | ||
+ | <span style="background:#CCCCCC">interface connection</span><br> | ||
<span style="color:#ff0000">注意:这一步需要连接评估板的管脚,如果不确定自己能正确连接的请找硬件工程师支持,否则可能会损坏评估板。</span><br> | <span style="color:#ff0000">注意:这一步需要连接评估板的管脚,如果不确定自己能正确连接的请找硬件工程师支持,否则可能会损坏评估板。</span><br> | ||
+ | <span style="background:#CCCCCC"><span style="color:#ff0000">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。</span></span><br> | ||
将CAN1的CAN_L与CAN2的CAN_L连接。<br> | 将CAN1的CAN_L与CAN2的CAN_L连接。<br> | ||
+ | <span style="background:#CCCCCC">connect CAN1的CAN_L with CAN2的CAN_L。</span><br> | ||
将CAN1的CAN_H与CAN2的CAN_H连接。<br> | 将CAN1的CAN_H与CAN2的CAN_H连接。<br> | ||
+ | <span style="background:#CCCCCC">connect CAN1的CAN_H with CAN2的CAN_H。</span><br> | ||
+ | |||
2)执行测试<br> | 2)执行测试<br> | ||
+ | <span style="background:#CCCCCC">execute test</span><br> | ||
配置CAN0<br> | 配置CAN0<br> | ||
+ | <span style="background:#CCCCCC">configure CAN0</span><br> | ||
<span style="background:#ffff00"># ip link set can0 up type can bitrate 125000<br></span> | <span style="background:#ffff00"># ip link set can0 up type can bitrate 125000<br></span> | ||
配置CAN1<br> | 配置CAN1<br> | ||
+ | <span style="background:#CCCCCC">configure CAN1</span><br> | ||
<span style="background:#ffff00"># ip link set can1 up type can bitrate 125000<br></span> | <span style="background:#ffff00"># ip link set can1 up type can bitrate 125000<br></span> | ||
配置CAN0接收<br> | 配置CAN0接收<br> | ||
+ | <span style="background:#CCCCCC">configure CAN0 receiving</span><br> | ||
<span style="background:#ffff00"># candump can0 &<br></span> | <span style="background:#ffff00"># candump can0 &<br></span> | ||
CAN1发送<br> | CAN1发送<br> | ||
+ | <span style="background:#CCCCCC">CAN1 sending</span><br> | ||
<span style="background:#ffff00"># cansend can1 1F334455<span style="background:#ffff00">#1122334455667788<br></span> | <span style="background:#ffff00"># cansend can1 1F334455<span style="background:#ffff00">#1122334455667788<br></span> | ||
− | === 附图 === | + | |
+ | === 附图(figure) === | ||
[[文件:MY-IMX6 Linux-3.14_2.14.4.1 .png]]<br> | [[文件:MY-IMX6 Linux-3.14_2.14.4.1 .png]]<br> | ||
− | == '''WIFI测试''' == | + | |
+ | |||
+ | == '''WIFI测试(WIFI test)''' == | ||
insmod ~/my-demo/linux-3.14.52/8188eu.ko<br> | insmod ~/my-demo/linux-3.14.52/8188eu.ko<br> | ||
insmod ~/8188eu.ko<br> | insmod ~/8188eu.ko<br> | ||
wpa_passphrase WIFI名称 WIFI密码 > /etc/wpa_supplicant.conf<br> | wpa_passphrase WIFI名称 WIFI密码 > /etc/wpa_supplicant.conf<br> | ||
+ | <span style="background:#CCCCCC">wpa_passphrase WIFI name WIFI password > /etc/wpa_supplicant.conf</span><br> | ||
wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf -B<br> | wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf -B<br> | ||
udhcpc -i wlan0<br> | udhcpc -i wlan0<br> | ||
− | == '''IPU测试''' == | + | |
− | === 测试说明 === | + | == '''IPU测试(IPU test)''' == |
+ | === 测试说明(test instruction) === | ||
整个IPU测试过程完成需要十几分钟。<br> | 整个IPU测试过程完成需要十几分钟。<br> | ||
− | === 测试方法 === | + | <span style="background:#CCCCCC">the whole IPU test will take over ten minutes。</span><br> |
+ | |||
+ | === 测试方法(test method) === | ||
1)执行测试<br> | 1)执行测试<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:#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:#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> | ||
在整个测试过程中,可以看到显示屏显示的内容在不停的变化。<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> | ||
测试完成后,在终端上可以看到类似如下信息:<br> | 测试完成后,在终端上可以看到类似如下信息:<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> | ||
− | === 附图 === | + | |
+ | |||
+ | === 附图(figures) === | ||
[[文件:MY-IMX6 Linux-3.14_2.15.3.1 .png]]<br> | [[文件:MY-IMX6 Linux-3.14_2.15.3.1 .png]]<br> | ||
<br> | <br> | ||
[[文件:MY-IMX6 Linux-3.14_2.15.3.2 .png]]<br> | [[文件:MY-IMX6 Linux-3.14_2.15.3.2 .png]]<br> | ||
− | == '''GPU测试''' == | + | |
− | === 测试说明 === | + | == '''GPU测试(GPU test)''' == |
+ | === 测试说明(test instruction) === | ||
验证GPU功能。<br> | 验证GPU功能。<br> | ||
− | === 测试方法 === | + | <span style="background:#CCCCCC">verify functions of GPU。</span><br> |
+ | |||
+ | === 测试方法(test method) === | ||
*执行测试命令<br> | *执行测试命令<br> | ||
+ | <span style="background:#CCCCCC">execute test command</span><br> | ||
<span style="background:#ffff00"># cd /opt/viv_samples/vdk/ && ./tutorial3 -f 100<br></span> | <span style="background:#ffff00"># cd /opt/viv_samples/vdk/ && ./tutorial3 -f 100<br></span> | ||
<span style="background:#ffff00"># cd /opt/viv_samples/vdk/ && ./tutorial4_es20 -f 100<br></span> | <span style="background:#ffff00"># cd /opt/viv_samples/vdk/ && ./tutorial4_es20 -f 100<br></span> | ||
<span style="background:#ffff00"># cd /opt/viv_samples/tiger/ &&./tiger<br></span> | <span style="background:#ffff00"># cd /opt/viv_samples/tiger/ &&./tiger<br></span> | ||
+ | |||
*测试过程<br> | *测试过程<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> |
+ | |||
+ | |||
+ | === 附图(figure) === | ||
[[文件:MY-IMX6 Linux-3.14_2.16.3.1 .png]]<br> | [[文件:MY-IMX6 Linux-3.14_2.16.3.1 .png]]<br> | ||
− | == '''VPU测试''' == | + | == '''VPU测试(VPU test)''' == |
− | === 测试说明 === | + | === 测试说明(test instruction) === |
测试过程将使用VPU解码视频文件并输出到显示设备。<br> | 测试过程将使用VPU解码视频文件并输出到显示设备。<br> | ||
− | === 测试方法 === | + | <span style="background:#CCCCCC">in the test,vedio file will be decoded with VPU and outputed to the display device。</span><br> |
+ | |||
+ | |||
+ | === 测试方法(test method) === | ||
*执行测试<br> | *执行测试<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:#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:#ffff00"># ./autorun-vpu.sh<br></span> | <span style="background:#ffff00"># ./autorun-vpu.sh<br></span> | ||
+ | |||
*测试现象<br> | *测试现象<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> |
+ | |||
+ | |||
+ | === 附图(figure) === | ||
[[文件:MY-IMX6 Linux-3.14_2.17.3.1 .png]]<br> | [[文件:MY-IMX6 Linux-3.14_2.17.3.1 .png]]<br> | ||
− | = '''显示功能测试''' = | + | = '''显示功能测试(reveal function test)''' = |
---- | ---- | ||
说明:每项显示功能测试都需要重启系统进入到u-boot命令行,输入命令并按确认键。<br> | 说明:每项显示功能测试都需要重启系统进入到u-boot命令行,输入命令并按确认键。<br> | ||
+ | <span style="background:#CCCCCC">instruction:need to re-boot system to enter u-boot command line for each reveal function test,enter command and press Enter key。</span><br> | ||
示例如下:<br> | 示例如下:<br> | ||
+ | <span style="background:#CCCCCC">example as below:</span><br> | ||
[[文件:MY-IMX6 Linux-3.14_3.0.0.1 .png]]<br> | [[文件:MY-IMX6 Linux-3.14_3.0.0.1 .png]]<br> | ||
− | == '''单屏显示''' == | + | |
+ | |||
+ | == '''单屏显示(single screen display)''' == | ||
说明:输入命令并按确定键,观察系统启动过程中显示屏的显示内容,即可看到Linux Logo。<br> | 说明:输入命令并按确定键,观察系统启动过程中显示屏的显示内容,即可看到Linux Logo。<br> | ||
+ | <span style="background:#CCCCCC">instruction:enter command and press Enter key,observe the displayed content on screen in the course of system booting,Linux Logo can be seen。</span><br> | ||
+ | |||
+ | |||
=== LVDS1 === | === LVDS1 === | ||
=> setenv display ${fb0_lvds1}<br> | => setenv display ${fb0_lvds1}<br> | ||
第737行: | 第1,063行: | ||
=> saveenv; boot<br> | => saveenv; boot<br> | ||
<span style="color:#ff0000">注意:如果使用HDMI转VGA的,请确认转接装置是否需要供电。</span><br> | <span style="color:#ff0000">注意:如果使用HDMI转VGA的,请确认转接装置是否需要供电。</span><br> | ||
+ | <span style="background:#CCCCCC"><span style="color:#ff0000">note:if HDMI to VGA,please confirm whether need power supply to switching device 。</span><br></span> | ||
+ | |||
+ | |||
=== RGB === | === RGB === | ||
=> setenv display ${fb0_lcd}<br> | => setenv display ${fb0_lcd}<br> | ||
=> saveenv; boot<br> | => saveenv; boot<br> | ||
− | == '''双屏同步骤显示''' == | + | == '''双屏同步骤显示(dual screen synchronous display)''' == |
说明:输入命令并按确定键,在内核启动过程中可以看到两个屏幕都显示Linux Logo,并且其它对显示屏的操作也会同样显示在两个屏幕上。<br> | 说明:输入命令并按确定键,在内核启动过程中可以看到两个屏幕都显示Linux Logo,并且其它对显示屏的操作也会同样显示在两个屏幕上。<br> | ||
− | === LVDS1+LVDS0同步显示 === | + | <span style="background:#CCCCCC">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。</span><br> |
+ | |||
+ | |||
+ | === LVDS1+LVDS0同步显示(LVDS1+LVDS0 synchronous display) === | ||
=> setenv display ${lvds_sync}<br> | => setenv display ${lvds_sync}<br> | ||
=> saveenv; boot<br> | => saveenv; boot<br> | ||
− | == '''双屏异步显示''' == | + | |
− | === 导入测试环境变量 === | + | == '''双屏异步显示(dual screen asynchronous display)''' == |
+ | === 导入测试环境变量(lead in test environment variables) === | ||
<span style="background:#ffff00"># export GSTL=gst-launch-1.0<br></span> | <span style="background:#ffff00"># export GSTL=gst-launch-1.0<br></span> | ||
<span style="background:#ffff00"># export PLAYBIN=playbin<br></span> | <span style="background:#ffff00"># export PLAYBIN=playbin<br></span> | ||
第753行: | 第1,086行: | ||
<span style="background:#ffff00"># export MP4_FILE="/home/root/test.mp4"<br></span> | <span style="background:#ffff00"># export MP4_FILE="/home/root/test.mp4"<br></span> | ||
− | === 会用到的测试命令 === | + | === 会用到的测试命令(test commands probably to be used) === |
*播放视频到主显示屏<br> | *播放视频到主显示屏<br> | ||
+ | <span style="background:#CCCCCC">play video to main display screen</span><br> | ||
<span style="background:#ffff00"># $GSTL $PLAYBIN uri=file://$MP4_FILE video-sink="imxv4l2sink device=/dev/video17"<br></span> | <span style="background:#ffff00"># $GSTL $PLAYBIN uri=file://$MP4_FILE video-sink="imxv4l2sink device=/dev/video17"<br></span> | ||
+ | |||
*播放视频到第二显示屏<br> | *播放视频到第二显示屏<br> | ||
+ | <span style="background:#CCCCCC">play video to the second display screen</span><br> | ||
<span style="background:#ffff00"># $GSTL $PLAYBIN uri=file://$MP4_FILE video-sink="imxv4l2sink device=/dev/video18"<br></span> | <span style="background:#ffff00"># $GSTL $PLAYBIN uri=file://$MP4_FILE video-sink="imxv4l2sink device=/dev/video18"<br></span> | ||
− | === LVDS1作为主屏 === | + | |
+ | === LVDS1作为主屏(LVDS1 as main screen) === | ||
*LVDS1+RGB双屏异步显示<br> | *LVDS1+RGB双屏异步显示<br> | ||
+ | <span style="background:#CCCCCC">LVDS1+RGB dual screen asynchronous display</span><br> | ||
=> setenv display ${fb0_lvds1} ${fb1_lcd}<br> | => setenv display ${fb0_lvds1} ${fb1_lcd}<br> | ||
=> saveenv; boot<br> | => saveenv; boot<br> | ||
*LVDS1+HDMI双屏异步显示<br> | *LVDS1+HDMI双屏异步显示<br> | ||
+ | <span style="background:#CCCCCC">LVDS1+HDMI dual screen asynchronous display</span><br> | ||
=> setenv display ${fb0_lvds1} ${fb1_hdmi}<br> | => setenv display ${fb0_lvds1} ${fb1_hdmi}<br> | ||
=> saveenv; boot<br> | => saveenv; boot<br> | ||
− | === LVDS0作为主屏 === | + | |
+ | === LVDS0作为主屏(LVDS0 as main screen) === | ||
*LVDS0+RGB双屏异步显示<br> | *LVDS0+RGB双屏异步显示<br> | ||
+ | <span style="background:#CCCCCC">LVDS0+RGB dual screen asynchronous display</span><br> | ||
=> setenv display ${fb0_lvds0} ${fb1_lcd}<br> | => setenv display ${fb0_lvds0} ${fb1_lcd}<br> | ||
=> saveenv; boot<br> | => saveenv; boot<br> | ||
+ | |||
*LVDS0+HDMI双屏异步显示<br> | *LVDS0+HDMI双屏异步显示<br> | ||
+ | <span style="background:#CCCCCC">LVDS0+HDMI dual screen asynchronous display</span><br> | ||
=> setenv display ${fb0_lvds0} ${fb1_hdmi}<br> | => setenv display ${fb0_lvds0} ${fb1_hdmi}<br> | ||
=> saveenv; boot<br> | => saveenv; boot<br> | ||
− | === RGB作为主屏 === | + | |
+ | === RGB作为主屏(RGB as main screen) === | ||
*RGB+LVDS1双屏异步显示:<br> | *RGB+LVDS1双屏异步显示:<br> | ||
+ | <span style="background:#CCCCCC">RGB+LVDS1 dual screen asynchronous display:</span><br> | ||
=> setenv display ${fb0_lcd} ${fb1_lvds1}<br> | => setenv display ${fb0_lcd} ${fb1_lvds1}<br> | ||
=> saveenv; boot<br> | => saveenv; boot<br> | ||
*RGB+LVDS0双屏异步显示:<br> | *RGB+LVDS0双屏异步显示:<br> | ||
+ | <span style="background:#CCCCCC">RGB+LVDS0 dual screen asynchronous display:</span><br> | ||
=> setenv display ${fb0_lcd} ${fb1_lvds0}<br> | => setenv display ${fb0_lcd} ${fb1_lvds0}<br> | ||
=> saveenv; boot<br> | => saveenv; boot<br> | ||
− | === HDMI作为主屏 === | + | |
+ | === HDMI作为主屏(HDMI as main screen) === | ||
*HDMI+LVDS1双屏异步显示<br> | *HDMI+LVDS1双屏异步显示<br> | ||
+ | <span style="background:#CCCCCC">HDMI+LVDS1 dual screen asynchronous display</span><br> | ||
=> setenv display ${fb0_hdmi} ${fb1_lvds1}<br> | => setenv display ${fb0_hdmi} ${fb1_lvds1}<br> | ||
=> saveenv; boot<br> | => saveenv; boot<br> | ||
+ | |||
*HDMI+LVDS0双屏异步显示<br> | *HDMI+LVDS0双屏异步显示<br> | ||
+ | <span style="background:#CCCCCC">HDMI+LVDS0 dual screen asynchronous display</span><br> | ||
=> setenv display ${fb0_hdmi} ${fb1_lvds0}<br> | => setenv display ${fb0_hdmi} ${fb1_lvds0}<br> | ||
=> saveenv; boot<br> | => saveenv; boot<br> |
2017年6月7日 (三) 11:49的版本
目录
- 1 = 测试前的准备(preparation before test) =
- 2 = 测试项目(test item) =
- 3 网口测试(network inferface test)
- 4 USB测试(USB test)
- 5 SD卡测试(SD card test)
- 6 音频测试(audio test)
- 7 视频测试(video test)
- 8 标准GPIO测试(standard GPIO test)
- 9 GPIO-LED测试(GPIO-LED test)
- 10 GPIO-KEY测试(GPIO-KEY test)
- 11 串口测试(serial port test)
- 12 RTC测试(RTC test)
- 13 WatchDog测试(WatchDog test)
- 14 SPI测试(SPI test)
- 15 CAN接口测试(CAN interface test)
- 16 WIFI测试(WIFI test)
- 17 IPU测试(IPU test)
- 18 GPU测试(GPU test)
- 19 VPU测试(VPU test)
- 20 = 显示功能测试(reveal function test) =
- 21 单屏显示(single screen display)
- 22 双屏同步骤显示(dual screen synchronous display)
- 23 双屏异步显示(dual screen asynchronous display)
= 测试前的准备(preparation before test) =
1)请按照《Linux快速启动手册》中的“Linux快速启动” -> “连接设备”进行连接。<br>
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
|
P3 | 10/100Mbps
|
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
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
- 附图
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
- 附图