查看“MY-IMX6 Linux-3.14 测试手册”的源代码
←
MY-IMX6 Linux-3.14 测试手册
跳转至:
导航
、
搜索
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
='''测试前的准备(preparation before test)'''= ----- 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> <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> <span style="background:#CCCCCC">MY-IMX6-EK200 support two 100 Mbps ethernet interfaces。</span><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) === <div> {| class="wikitable" |- !span style="color:#FFFFFF;background:#000080"|评估板型号<br>(evaluation board model no) !span style="color:#FFFFFF;background:#000080"|接口位置<br>(interface position) !span style="color:#FFFFFF;background:#000080"|接口速率标准<br>(interface rate standard) !span style="color:#FFFFFF;background:#000080"|系统接口<br>(system interface) |- |rowspan=2|MY-IMX6-EK200 |P4 |10/100Mbps |eth0 |- |P3 |10/100Mbps |eth1 |- |rowspan=2|MY-IMX6-EK314 |U12 |10/100/1000Mbps |eth0 |- |P1 |10/100Mbps |eth1 |} </div> === 测试方法(test method) === 1) 配置计算机IP<br> <span style="background:#CCCCCC">configure computer IP</span><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> 2) Eth0连接测试<br> <span style="background:#CCCCCC">Eth0 connect test</span><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> <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> *执行测试命令:<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"># ping 192.168.18.18 -c 2 -w 4</span> # send ICMP to HOST<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> 2packets transmitted, 2 packets received, 0% packet loss</span><br> *测试结果:“0% packet loss”表示测试通过<br> <span style="background:#CCCCCC">test result:“0% packet loss”represent test passing</span><br> *附图<br> <span style="background:#CCCCCC">figure</span><br> [[文件:MY-IMX6 Linux-3.14_2.1.2.2.png]]<br> 3) Eth1连接测试<br> <span style="background:#CCCCCC">Eth1 connect test</span><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> <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> 设置后系统会输出第2个网口的工作状态信息,类似如下:<br> <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> <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"># ping 192.168.18.18 -c 2 -w 4</span> # send ICMP to HOST<br> *观察测试结果:系统会输出类似如下信息:<br> <span style="background:#CCCCCC">observe test result:system will output message like following:</span><br> --- 192.168.18.18 ping statistics ---<br> 2packets transmitted, 2 packets received, 0% packet loss<br> *测试结果:“0% packet loss”表示测试通过<br> <span style="background:#CCCCCC">test result:“0% packet loss”represent test passing</span><br> *附图<br> <span style="background:#CCCCCC">figures</span><br> [[文件:MY-IMX6 Linux-3.14_2.1.2.3.png]]<br> == '''USB测试(USB test)''' == === 接口属性(interface property) === <div> {| class="wikitable" |- !span style="color:#FFFFFF;background:#000080"|评估板型号<br>(evaluation board model no.) !span style="color:#FFFFFF;background:#000080"|接口位置<br>(interface position) !span style="color:#FFFFFF;background:#000080"|接口速率标准<br>(interface rate standard) |- |MY-IMX6-EK200 |J8 |480 Mbits/s |- |MY-IMX6-EK314 |J2 |480 Mbits/s |} </div> === 测试方法(test method) === 1) 开始测试<br> <span style="background:#CCCCCC">start test</span><br> 将USB设备插入底板USB接口,系统会输出类似如下信息:<br> <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> <span style="background:#CCCCCC">test over</span><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> === 附图(figure) === 说明:在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> == '''SD卡测试(SD card test)''' == === 接口属性(interface property) === <div> {| class="wikitable" |- !span style="color:#FFFFFF;background:#000080"|评估板型号<br>(evaluation model no.) !span style="color:#FFFFFF;background:#000080"|接口位置<br>(interface position) !span style="color:#FFFFFF;background:#000080"|接口类型<br>(interface type) |- |MY-IMX6-EK200 |J8 |SD |- |MY-IMX6-EK314 |J25 |SD |} </div> === 开始测试(start test) === 1) 往SD卡槽插入设备<br> <span style="background:#CCCCCC">insert device into SD card slot</span><br> 插入SD卡到底板SD卡接口。系统输出以下信息(见附图)即表示SD接口正常:<br> <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*: p*<br> 2)从SD卡槽弹出设备<br> <span style="background:#CCCCCC">pop-up device from SD card slot</span><br> 再次住SD卡槽按下SD卡,底板会弹出SD卡。系统输出以下信息(见附图)表示SD卡接口弹出正常:<br> <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> <span style="background:#CCCCCC">test over</span><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> == '''音频测试(audio test)''' == === 测试说明(test instruction) === 这项测试是通过播放音频文件验证评估板的音频功能。<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> <span style="background:#CCCCCC">prepare test</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> <span style="background:#CCCCCC">execute test</span><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> 上面这条命令会使用aplay播放命令中指定的文件。<br> <span style="background:#CCCCCC">the above command will play a file designated by command with gplay。</span><br> 3)测试结果<br> <span style="background:#CCCCCC">test result</span><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> == '''视频测试(video test)''' == === 测试说明(test instruction) === 这项测试是通过播放视频验证评估板的音频视频功能。<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> <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> 上面这条命令会使用gplay播放命令中指定的文件。<br> <span style="background:#CCCCCC">the above command will play a file designated by command with gplay。</span><br> *测试结果<br> <span style="background:#CCCCCC">test result</span><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> == '''标准GPIO测试(standard GPIO test)''' == === 接口属性(interface property) === <div> {| class="wikitable" |- !colspan=7;span style="background:#ffff00"|MY-IMX6-EK200 |- |span style="color:#FFFFFF;background:#000080"|IO序号<br>(IO order number) |span style="color:#FFFFFF;background:#000080"|GPIO属性<br>(GPIO property) |span style="color:#FFFFFF;background:#000080"|接口位置<br>(interface position) |rowspan=8| ||span style="color:#FFFFFF;background:#000080"|接口位置<br>(interface position) |span style="color:#FFFFFF;background:#000080"|GPIO属性<br>(GPIO property) |span style="color:#FFFFFF;background:#000080"|IO序号<br>(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 |} </div> <div> {| class="wikitable" |- !colspan=7;span style="background:#ffff00"|MY-IMX6-EK314 & MY-IMX6-EK336 |- |span style="color:#FFFFFF;background:#000080"|IO序号<br>(IO order number) |span style="color:#FFFFFF;background:#000080"|GPIO属性<br>(IO order number) |span style="color:#FFFFFF;background:#000080"|接口位置<br>(interface position) |rowspan=20| ||span style="color:#FFFFFF;background:#000080"|接口位置<br>(interface position) |span style="color:#FFFFFF;background:#000080"|GPIO属性<br>(GPIO property) |span style="color:#FFFFFF;background:#000080"|IO序号<br>(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 ||-- |} </div> === 测试方法(test method) === 1)GPIO输出测试<br> <span style="background:#CCCCCC">GPIO output test</span><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> *导出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> *设置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> *控制输出电平<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 1 > /sys/class/gpio/gpio${OUT_IO_NUMBER}/value<br></span> [[文件:MY-IMX6 Linux-3.14_2.7.2.1 .png]]<br> 2)GPIO输入测试<br> <span style="background:#CCCCCC">GPIO input test</span><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> *导出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> *设置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> *查看输入电平<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> [[文件:MY-IMX6 Linux-3.14_2.7.2.2 .png]]<br> 3)验证输入输出<br> <span style="background:#CCCCCC">verify input&output</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> <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> <span style="background:#CCCCCC">check eletrical level of inputed pins</span><br> # cat /sys/class/gpio/gpio${IN_IO_NUMBER}/value<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> *查看输入管脚上的电平<br> <span style="background:#CCCCCC">check electrical level of inputed pins</span><br> # cat /sys/class/gpio/gpio${IN_IO_NUMBER}/value<br> [[文件:MY-IMX6 Linux-3.14_2.7.2.3 .png]]<br> == '''GPIO-LED测试(GPIO-LED test)''' == === 接口属性(interface property) === <div> {| class="wikitable" |- !colspan=3;span style="background:#ffff00"|MY-IMX6-EK200 |rowspan=6| !colspan=3;span style="background:#ffff00"|MY-IMX6-EK314 |- |span style="color:#FFFFFF;background:#000080"|接口位置<br>(interface position) |span style="color:#FFFFFF;background:#000080"|GPIO属性<br>(GPIO property) |span style="color:#FFFFFF;background:#000080"|LED属性<br>(LED property) |span style="color:#FFFFFF;background:#000080"|接口位置<br>(interface position) |span style="color:#FFFFFF;background:#000080"|GPIO属性<br>(GPIO property) |span style="color:#FFFFFF;background:#000080"|LED属性<br>(LED property) |- |J4:3 |gpio-leds |heartbeat |U14:24 |gpio-leds |heartbeat |- |J4:5 |gpio-leds |timer |U14:28 |gpio-leds |timer |- |J4:9 |gpio-leds |default-on |U14:26 |gpio-leds |default-on |- |J4:11 |gpio-leds |gpio |U14:25 |gpio-leds |gpio |} </div> === GPIO-LED(Heartbeat)测试(GPIO-LED(Heartbeat)test) === 系统启动完成后,用示波器检测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> 提示:heartbeat是与CPU心跳关联的,如果在此GPIO上接上LED,即可通过观察LED来判断CPU是否工作。<br> <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> <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> 通过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 1000 > /sys/class/leds/led-timer/delay_on<br></span> 再用示波器检测的时候,会看到波形发生的变化。<br> <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> <span style="background:#CCCCCC">Default-on can be controled by brightness。</span><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> 往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> === GPIO-LED(GPIO)测试(GPIO-LED(GPIO)test) === 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> 使用万用表测试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> 使用万用表测试LED:gpio对应的引脚,可以看到该引脚是低电平。<br> <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) === <div> {| class="wikitable" |- !colspan=3;span style="background:#ffff00"|MY-IMX6-EK200 |rowspan=5| !colspan=3;span style="background:#ffff00"|MY-IMX6-EK314 |- |span style="color:#FFFFFF;background:#000080"|接口位置<br>(interface position) |span style="color:#FFFFFF;background:#000080"|GPIO属性<br>(GPIO property) |span style="color:#FFFFFF;background:#000080"|KEY属性<br>(KEY property) |span style="color:#FFFFFF;background:#000080"|接口位置<br>(interface position) |span style="color:#FFFFFF;background:#000080"|GPIO属性<br>(GPIO property) |span style="color:#FFFFFF;background:#000080"|LED属性<br>(LED property) |- |SW2 |gpio-keys |Power Button |SW4 |gpio-keys |Power Button |- |SW3 |gpio-keys |Volume Up |SW3 |gpio-keys |Volume Up |- |SW5 |gpio-keys |Volume Down |SW2 |gpio-keys |Volume Down |} </div> === 测试方法(test method) === 1)执行测试程序<br> <span style="background:#CCCCCC">execute test program</span><br> 在终端下键入命令执行测试,示例如下:<br> <span style="background:#CCCCCC">enter command to execute on terminal,example as below:</span><br> <span style="background:#ffff00"># evtest<br></span> 2)选择测试设备<br> <span style="background:#CCCCCC">select test device</span><br> Select the device event number [0-2]: 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> 3)进行交互测试<br> <span style="background:#CCCCCC">proceed with interactive test</span><br> 在终端会看到“Testing ... (interrupt to exit)”,这时我们按下或松开SW4、SW3、SW2。会看到如下类似信息:<br> <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 1452590478.415953, type 1 (EV_KEY), code 115 (KEY_VOLUMEUP), value 1<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> 3)结束测试<br> <span style="background:#CCCCCC">end test</span><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> <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> <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) === <div> {| class="wikitable" |- !span style="color:#FFFFFF;background:#000080"|评估板型号<br>(evaluation board model no.) !span style="color:#FFFFFF;background:#000080"|UARTx !span style="color:#FFFFFF;background:#000080"|Rx !span style="color:#FFFFFF;background:#000080"|Tx !span style="color:#FFFFFF;background:#000080"|系统接口<br>(system interface) |- |rowspan=4|MY-IMX6-EK200 |UART2 |J1:9 |J1:7 |ttymxc1 |- |UART3 |J1:13 |J1:11 |ttymxc2 |- |UART4 |J1:17 |J1:15 |ttymxc3 |- |UART5 |J1:16 |J1:18 |ttymxc4 |- |rowspan=4|MY-IMX6-EK314 |UART2 |J12:9 |J12:10 |ttymxc1 |- |UART3 |J12:12 |J12:13 |ttymxc2 |- |UART4 |J12:17 |J12:15 |ttymxc3 |- |UART5 |J12:16 |J12:18 |ttymxc4 |} </div> 提示:这里列出串口的收发管脚,串口其它管脚的定义请看原理图。<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> <span style="background:#CCCCCC">test instruction</span><br> *测试方法说明:<br> <span style="background:#CCCCCC">intruction of test method:</span><br> 采用串口自发自收的方式进行。<br> <span style="background:#CCCCCC">adopt method of self-sending & self-receiving of serial port。</span><br> *测试结果说明:<br> <span style="background:#CCCCCC">instruction of test result:</span><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="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> <span style="background:#CCCCCC">enter test program directory</span><br> <span style="background:#ffff00"># cd ~/my-demo/linux-3.14.52<br></span> 3)UART2测试<br> <span style="background:#CCCCCC">UART2 test</span><br> *准备测试<br> <span style="background:#CCCCCC">prepare test</span><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> <span style="background:#CCCCCC">execute test command</span><br> <span style="background:#ffff00"># ./uart.out /dev/ttymxc1 "www.myzr.com.cn"<br></span> *测试结果附图<br> <span style="background:#CCCCCC">figures for test result</span><br> [[文件:MY-IMX6 Linux-3.14_2.10.2.1 .png]]<br> 4)UART3测试<br> <span style="background:#CCCCCC">UART3 test</span><br> *准备测试<br> <span style="background:#CCCCCC">prepare test</span><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> <span style="background:#CCCCCC">execute test command</span><br> <span style="background:#ffff00"># ./uart.out /dev/ttymxc2 "www.myzr.com.cn"<br></span> *测试结果附图<br> <span style="background:#CCCCCC">figures for test result</span><br> [[文件:MY-IMX6 Linux-3.14_2.10.2.2 .png]]<br> 5)UART4测试<br> <span style="background:#CCCCCC">UART4 test</span><br> *准备测试<br> <span style="background:#CCCCCC">prepare test</span><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> <span style="background:#CCCCCC">execute test command</span><br> <span style="background:#ffff00"># ./uart.out /dev/ttymxc3 "www.myzr.com.cn"<br></span> *测试结果附图<br> <span style="background:#CCCCCC">figures for test result</span><br> [[文件:MY-IMX6 Linux-3.14_2.10.2.3 .png]]<br> 6)UART5测试<br> <span style="background:#CCCCCC">UART5 test</span><br> *准备测试<br> <span style="background:#CCCCCC">prepare test</span><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> <span style="background:#CCCCCC">execute test command</span><br> <span style="background:#ffff00"># ./uart.out /dev/ttymxc4 "www.myzr.com.cn"<br> *测试结果附图<br> <span style="background:#CCCCCC">figures for test result</span><br> [[文件:MY-IMX6 Linux-3.14_2.10.2.4 .png]]<br> == '''RTC测试(RTC test) ''' == === 测试说明(test instruction) === 受快递运输影响,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> <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> <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> <span style="background:#CCCCCC">power off then reboot device,to check the time of system and hardware。</span><br> *查看当前系统时钟命令如下:<br> <span style="background:#CCCCCC">command to check clock of current system as below</span><br> <span style="background:#ffff00"># date<br></span> *系统输出信息如下:<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> 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> *系统输出信息如下:<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> 3)设置系统时钟,并同步到RTC芯片<br> <span style="background:#CCCCCC">set system clock and synchronously set to RTC chip</span><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> *将系统时钟写入硬件时钟命令如下:<br> <span style="background:#CCCCCC">command to write system clock into hardware as below:</span><br> <span style="background:#ffff00"># hwclok –w<br></span> 4)断电重启评估板,查看当前系统时钟和硬件时钟<br> <span style="background:#CCCCCC">power off and reboot evaluation board,to check current system clock and hardware clock</span><br> 请参考第1步<br> <span style="background:#CCCCCC">please refer to step 1</span><br> 5)测试结果<br> <span style="background:#CCCCCC">test Results</span><br> 执行第3步以后看到的时钟为新设定的时钟。<br> <span style="background:#CCCCCC">it will be a newly-set clock after execution until step3。</span><br> === 附图(figures) === 下图为测试方法中步骤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> 下图为测试方法中步骤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> == '''WatchDog测试(WatchDog test)''' == === 测试说明(test instruction) === 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> <span style="background:#CCCCCC">test instruction</span><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> <span style="background:#CCCCCC">execute test</span><br> <span style="background:#ffff00"># /unit_tests/wdt_driver_test.out 10 15 1<br></span> 3)测试结果<br> <span style="background:#CCCCCC">test result</span><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> === 喂狗测试(feed dog test) === 1)测试说明<br> <span style="background:#CCCCCC">test instruction</span><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> <span style="background:#CCCCCC">execute test</span><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> *查看当前时间<br> <span style="background:#CCCCCC">check current time</span><br> <span style="background:#ffff00"># date<br></span> [[文件:MY-IMX6 Linux-3.14_2.12.3.1 .png]]<br> 3)验证<br> <span style="background:#CCCCCC">verify</span><br> *查看当前时间<br> <span style="background:#CCCCCC">check current time</span><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> *停止喂狗<br> <span style="background:#CCCCCC">stop feeding dog</span><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> [[文件:MY-IMX6 Linux-3.14_2.12.3.2 .png]]<br> == '''SPI测试(SPI test) ''' == 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> <span style="background:#CCCCCC">MY-IMX6-EK314 has two groups of SPI interfaces。</span><br> === 接口属性(interface property) === 测试需要用到SPI接口的MISO和MOSI管脚,在下表中列出。<br> <span style="background:#CCCCCC">pins of MISO and MOSI need to be used for test,listed as below。</span><br> <div> {| class="wikitable" |- !span style="color:#FFFFFF;background:#000080"|评估板型号<br>(evaluation board model no.) !span style="color:#FFFFFF;background:#000080"|SPIx !span style="color:#FFFFFF;background:#000080"|MISO !span style="color:#FFFFFF;background:#000080"|MOSI |- |rowspan=2|MY-IMX6-EK200 |SPI1 |J7:7 |J7:9 |- |SPI2 |J7:8 |J7:10 |- |rowspan=2|MY-IMX6-EK314 |SPI1 |J13:6 |J13:12 |- |SPI2 |J13:7 |J13:11 |} </div> === 测试说明(test specification) === 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="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> <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> <span style="background:#CCCCCC">prepare test</span><br> 短接SPI2的MISO和MOSI管脚。<br> <span style="background:#CCCCCC">short connect MISO pin and MOSI pin of SPI2。</span><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> 3)测试结果<br> <span style="background:#CCCCCC">test result</span><br> 如果SPI正常,在终端上会看到如下字符:<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> 40 00 00 00 00 95 <br> FF FF FF FF FF FF <br> FF FF FF FF FF FF <br> FF FF FF FF FF FF <br> DE AD BE EF BA AD <br> F0 0D<br> === 附图(figures) === [[文件:MY-IMX6 Linux-3.14_2.13.4.1 .png]]<br> == '''CAN接口测试(CAN interface test) ''' == 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> <span style="background:#CCCCCC">MY-IMX6-EK314 has two groups of CAN interfaces。</span><br> === 接口属性(interface property) === <div> {| class="wikitable" |- !span style="color:#FFFFFF;background:#000080"|评估板型号<br>(evaluation model no.) !span style="color:#FFFFFF;background:#000080"|CANx !span style="color:#FFFFFF;background:#000080"|信号:CAN_L<br>(signal:CAN_L) !span style="color:#FFFFFF;background:#000080"|信号:CAN_H<br>(signal:CAN_H) !span style="color:#FFFFFF;background:#000080"|系统设备<br>(system device) |- |rowspan=2|MY-IMX6-EK200 |CAN1 |J19:1 |J19:2 |can0 |- |CAN2 |J16:1 |J16:2 |can1 |- |rowspan=2|MY-IMX6-EK314 |CAN1 |J17:1 |J17:2 |can0 |- |CAN2 |J15:1 |J15:2 |can1 |} </div> === 测试说明(test instruction) === 采用CAN1发送,CAN0接收的方式。<br> <span style="background:#CCCCCC">adopt way of sending with CAN1 and receiving with CAN0。</span><br> === 测试方法(test method) === 1)接口连接<br> <span style="background:#CCCCCC">interface connection</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> <span style="background:#CCCCCC">connect CAN1的CAN_L with CAN2的CAN_L。</span><br> 将CAN1的CAN_H与CAN2的CAN_H连接。<br> <span style="background:#CCCCCC">connect CAN1的CAN_H with CAN2的CAN_H。</span><br> 2)执行测试<br> <span style="background:#CCCCCC">execute test</span><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> 配置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> 配置CAN0接收<br> <span style="background:#CCCCCC">configure CAN0 receiving</span><br> <span style="background:#ffff00"># candump can0 &<br></span> CAN1发送<br> <span style="background:#CCCCCC">CAN1 sending</span><br> <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> == '''WIFI测试(WIFI test)''' == insmod ~/my-demo/linux-3.14.52/8188eu-myimx6.ko<br> insmod ~/8188eu-myimx6.ko<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> udhcpc -i wlan0<br> == '''IPU测试(IPU test)''' == === 测试说明(test instruction) === 整个IPU测试过程完成需要十几分钟。<br> <span style="background:#CCCCCC">the whole IPU test will take over ten minutes。</span><br> === 测试方法(test method) === 1)执行测试<br> <span style="background:#CCCCCC">execute test</span><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> 执行测试脚本<br> <span style="background:#CCCCCC">execute test script</span><br> <span style="background:#ffff00"># ./autorun-ipu.sh<br></span> 2)测试结果<br> <span style="background:#CCCCCC">test result</span><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> <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> === 附图(figures) === [[文件:MY-IMX6 Linux-3.14_2.15.3.1 .png]]<br> <br> [[文件:MY-IMX6 Linux-3.14_2.15.3.2 .png]]<br> == '''GPU测试(GPU test)''' == === 测试说明(test instruction) === 验证GPU功能。<br> <span style="background:#CCCCCC">verify functions of GPU。</span><br> === 测试方法(test method) === *执行测试命令<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/ && ./tutorial4_es20 -f 100<br></span> <span style="background:#ffff00"># cd /opt/viv_samples/tiger/ &&./tiger<br></span> *测试过程<br> <span style="background:#CCCCCC">test process</span><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> == '''VPU测试(VPU test)''' == === 测试说明(test instruction) === 测试过程将使用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> <span style="background:#CCCCCC">execute test</span><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> *执行测试脚本<br> <span style="background:#CCCCCC">execute test script</span><br> <span style="background:#ffff00"># ./autorun-vpu.sh<br></span> *测试现象<br> <span style="background:#CCCCCC">test phenomenon</span><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> = '''显示功能测试(reveal function test)''' = ---- 说明:每项显示功能测试都需要重启系统进入到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> <span style="background:#CCCCCC">example as below:</span><br> [[文件:MY-IMX6 Linux-3.14_3.0.0.1 .png]]<br> == '''单屏显示(single screen display)''' == 说明:输入命令并按确定键,观察系统启动过程中显示屏的显示内容,即可看到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 === => setenv display ${fb0_lvds1}<br> => saveenv; boot<br> === LVDS0 === => setenv display ${fb0_lvds0}<br> => saveenv; boot<br> === HDMI === => setenv display ${fb0_hdmi}<br> => saveenv; boot<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 === => setenv display ${fb0_lcd}<br> => saveenv; boot<br> == '''双屏同步骤显示(dual screen synchronous display)''' == 说明:输入命令并按确定键,在内核启动过程中可以看到两个屏幕都显示Linux Logo,并且其它对显示屏的操作也会同样显示在两个屏幕上。<br> <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> => 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 PLAYBIN=playbin<br></span> <span style="background:#ffff00"># export GPLAY=gplay-1.0<br></span> <span style="background:#ffff00"># export GSTINSPECT=gst-inspect-1.0<br></span> <span style="background:#ffff00"># export MP4_FILE="/home/root/test.mp4"<br></span> === 会用到的测试命令(test commands probably to be used) === *播放视频到主显示屏<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> *播放视频到第二显示屏<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> === LVDS1作为主屏(LVDS1 as main screen) === *LVDS1+RGB双屏异步显示<br> <span style="background:#CCCCCC">LVDS1+RGB dual screen asynchronous display</span><br> => setenv display ${fb0_lvds1} ${fb1_lcd}<br> => saveenv; boot<br> *LVDS1+HDMI双屏异步显示<br> <span style="background:#CCCCCC">LVDS1+HDMI dual screen asynchronous display</span><br> => setenv display ${fb0_lvds1} ${fb1_hdmi}<br> => saveenv; boot<br> === LVDS0作为主屏(LVDS0 as main screen) === *LVDS0+RGB双屏异步显示<br> <span style="background:#CCCCCC">LVDS0+RGB dual screen asynchronous display</span><br> => setenv display ${fb0_lvds0} ${fb1_lcd}<br> => saveenv; boot<br> *LVDS0+HDMI双屏异步显示<br> <span style="background:#CCCCCC">LVDS0+HDMI dual screen asynchronous display</span><br> => setenv display ${fb0_lvds0} ${fb1_hdmi}<br> => saveenv; boot<br> === RGB作为主屏(RGB as main screen) === *RGB+LVDS1双屏异步显示:<br> <span style="background:#CCCCCC">RGB+LVDS1 dual screen asynchronous display:</span><br> => setenv display ${fb0_lcd} ${fb1_lvds1}<br> => saveenv; boot<br> *RGB+LVDS0双屏异步显示:<br> <span style="background:#CCCCCC">RGB+LVDS0 dual screen asynchronous display:</span><br> => setenv display ${fb0_lcd} ${fb1_lvds0}<br> => saveenv; boot<br> === HDMI作为主屏(HDMI as main screen) === *HDMI+LVDS1双屏异步显示<br> <span style="background:#CCCCCC">HDMI+LVDS1 dual screen asynchronous display</span><br> => setenv display ${fb0_hdmi} ${fb1_lvds1}<br> => saveenv; boot<br> *HDMI+LVDS0双屏异步显示<br> <span style="background:#CCCCCC">HDMI+LVDS0 dual screen asynchronous display</span><br> => setenv display ${fb0_hdmi} ${fb1_lvds0}<br> => saveenv; boot<br>
返回至
MY-IMX6 Linux-3.14 测试手册
。
导航菜单
个人工具
登录
命名空间
页面
讨论
变种
视图
阅读
查看源代码
查看历史
更多
搜索
[-_-]
NXP平台:
MYZR-IMX6-EK200
MYZR-IMX6-EK200(EN)
MYZR-IMX6-EK314
MYZR-IMX6-EK314(EN)
MYZR-IMX6-EK336
MYZR-IMX6-EK336(EN)
MYZR-IMX6-EK140
MYZR-IMX6-EK140(EN)
MYZR-IMX6-EK140P
MYZR-IMX6-EK140P(EN)
MYZR-IMX8M-EK300
MYZR-IMX8M-EK300(EN)
MYZR-IMX8M-EVK
MYZR-IMX8Mmini-EK240
MYZR-IMX8Mmini-EK240(EN)
MYZR-IMX28-EK142
MYZR-IMX28-EK142(EN)
MYZR-LS1012A-EK200
MYZR-LS1012A-EK200(EN)
Rockchip平台:
MYZR-RK3288-EK314
MYZR-RK3288-EK314(EN)
MYZR-RK3399-EK314
MYZR-RK3399-EK314(EN)
Allwinner平台:
MYZR-R16-EK166
MYZR-R16-EK166(EN)
Microchip平台:
MYZR-SAMA5-EK200
MYZR-SAMA5-EK200(EN)
网关产品:
GW200
GW300
GW310/GW311
ST平台:
MYZR-STM32-EK152
所有页面
工具
链入页面
相关更改
特殊页面
页面信息