打印

明远智睿MY-IMX6 Linux-3.14 测试手册

[复制链接]
1223|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
linux, mx, IO, TE, pi
测试前的准备(preparation before test)
1)请按照《Linux快速启动手册》中的“Linux快速启动” -> “连接设备”进行连接。
  please connect following the path of 《Linux fast boot manual》->“Linux fast boot” -> “device connection”。
2)请按照《Linux快速启动手册》中的“Linux快速启动” -> “启动设备”进行启动。
  please boot following the path of 《Linux fast boot manual》->“Linux fast boot” -> “device booting”。

测试项目(test item)
网口测试(network inferface test)
MY-IMX6-EK200支持两个百兆网口。
MY-IMX6-EK200 support two 100 Mbps ethernet interfaces。
MY-IMX6-EK314支持一个千兆网口,一个百兆网口。
MY-IMX6-EK314 support one Gbps and one 100 Mbps ethernet interface。

接口属性(interface property)
评估板型号
(evaluation board model no)
接口位置
(interface position)
接口速率标准
(interface rate standard)
系统接口
(system interface)
MY-IMX6-EK200P410/100Mbpseth0
P310/100Mbpseth1
MY-IMX6-EK314U1210/100/1000Mbpseth0
P110/100Mbpseth1

测试方法(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:
# ifconfig eth0 192.168.18.36      # configure the eth0
  • 执行测试命令:
execute test command:
# ifconfig eth1 down      # eth1 to be shut down
# ping 192.168.18.18 -c 2 -w 4      # send ICMP to HOST
  • 观察测试结果:系统会输出类似如下信息:
observe test result:system will output message like following
--- 192.168.18.18 ping statistics ---
2packets transmitted, 2 packets received, 0% packet loss
  • 测试结果:“0% packet loss”表示测试通过
test result:“0% packet loss”represent test passing
  • 附图
figure

3)        Eth1连接测试
Eth1 connect test
  • 连接网线:将网线插入“eth1”对应的评估板接口,网线另一端保持与计算机有线网卡的接口连接。
connect lan line:insert one end of lan line into “eth1”on evaluation board and another end into wired network card interface on computer。
  • 设置第2个网口IP:
set the second network inter face IP:
# ifconfig eth1 192.168.18.27      # configure the eth1
设置后系统会输出第2个网口的工作状态信息,类似如下:
after setting the system will output message on working condition of second network interface,like following:
smsc95xx 1-1.1:1.0 eth1: link up, 100Mbps, full-duplex, lpa 0x4DE1
  • 执行测试命令:
execute test command:
# ifconfig eth0 down      # eth0 to be shut down
# ping 192.168.18.18 -c 2 -w 4      # send ICMP to HOST
  • 观察测试结果:系统会输出类似如下信息:
observe test result:system will output message like following:
--- 192.168.18.18 ping statistics ---
2packets transmitted, 2 packets received, 0% packet loss
  • 测试结果:“0% packet loss”表示测试通过
test result:“0% packet loss”represent test passing
  • 附图
figures


USB测试(USB test)接口属性(interface property)
评估板型号
(evaluation board model no.)
接口位置
(interface position)
接口速率标准
(interface rate standard)
MY-IMX6-EK200J8480 Mbits/s
MY-IMX6-EK314J2480 Mbits/s

测试方法(test method)
1)        开始测试
start test
将USB设备插入底板USB接口,系统会输出类似如下信息:
insert USB device into USB port on base board,system will output message like following:
usb *-*.*: new high speed USB device number * using fsl-ehci
……
2)        测试结束
test over
将USB设备从底板拔出,系统会输出类似如下信息:
take out USB device from base board,system will output message like following:
usb *-*.*: USB disconnect, device number *
附图(figure)
说明:在USB口上插拔U盘时,系统输出信息类似如下:
instruction:when plug in & out U disk from USB interface,system will output message like following:

SD卡测试(SD card test)接口属性(interface property)[/table][table=98%,rgb(249, 249, 249)]
评估板型号
(evaluation model no.)
接口位置
(interface position)
接口类型
(interface type)

MY-IMX6-EK200J8SD
MY-IMX6-EK314J25SD
开始测试(start test)
1) 往SD卡槽插入设备
insert device into SD card slot
插入SD卡到底板SD卡接口。系统输出以下信息(见附图)即表示SD接口正常:
insert SD card into SD card port on base board。when system output following message(see attached figures),which represent that SD card interface is normal:
mmc*: new high speed SD card at address ****
mmcblk*: mmcx:xxxx SA**G *.**GiB
 mmcblk*: p*
2)从SD卡槽弹出设备
pop-up device from SD card slot
再次住SD卡槽按下SD卡,底板会弹出SD卡。系统输出以下信息(见附图)表示SD卡接口弹出正常:
press again SD card against SD card slot,base board will pop-up SD card。when system output following message(see attached figures),which represent that SD card interface pop-up is normal:
mmc*: card **** removed
3)        结束测试
test over
SD卡弹出后拨出SD卡即结束测试。
take out SD card after SD card pop-pup,then test is over。
附图(figures)


音频测试(audio test)测试说明(test instruction)
这项测试是通过播放音频文件验证评估板的音频功能。
  the test is to verify audio function of evaluation board by playing audio file。
测试方法(test method)
1)准备测试
  prepare test
连接音频输出设备到底板正面的音频座子,音频座子在底板正面“J20”,丝印名称是“HP”。
  connect audio output device to audio element in front view of base board,audio element is “J20”in front view of base board,silkscreened as“HP”。
2)执行测试
  execute test
使用aplay播放一个视频,示例命令如下:
  play a video with gplay,commanded as below:
# aplay /unit_tests/audio8k16S.wav
上面这条命令会使用aplay播放命令中指定的文件。
  the above command will play a file designated by command with gplay。
3)测试结果
  test result
执行上面的测试命令后会听到音频设备输出的声音。
  you can see the vedeo played on display screen of evaluation board and hear the voices outputed by audio device。
附图(figures)


视频测试(video test)测试说明(test instruction)
这项测试是通过播放视频验证评估板的音频视频功能。
  the test is to verify audio&video function of evaluation board by playing audio file。
测试方法(test method)
使用gplay播放一个视频,示例命令如下:
  play a video with gplay,commanded as below:
# gplay-1.0 /unit_tests/akiyo.mp4
上面这条命令会使用gplay播放命令中指定的文件。
  the above command will play a file designated by command with gplay。
  • 测试结果
test result
执行上面的测试命令后会在评估板显示屏上看到大约1秒钟的视频图像。
  you can see the vedeo image for about 1 second on display screen of evaluation board after execution of test command。

附图(figures)

标准GPIO测试(standard GPIO test)接口属性(interface property)
MY-IMX6-EK200
IO序号
(IO order number)
GPIO属性
(GPIO property)
接口位置
(interface position)
接口位置
(interface position)
GPIO属性
(GPIO property)
IO序号
(IO order number)
--gpio-ledsJ4:3J4:4GPIO6_IO11171
--gpio-ledsJ4:5J4:6GPIO2_IO2658
10GPIO1_IO10J4:7J4:8GPIO1_IO2020
--gpio-ledsJ4:9J4:10GPIO3_IO2185
--gpio-ledsJ4:11J4:12GPIO3_IO2286
11GPIO1_IO11J4:13J4:14NCNC
192GPIO7_IO00J21:12J21:11GPIO3_IO3094
MY-IMX6-EK314 & MY-IMX6-EK336
IO序号
(IO order number)
GPIO属性
(IO order number)
接口位置
(interface position)
接口位置
(interface position)
GPIO属性
(GPIO property)
IO序号
(IO order number)
2GPIO1_IO02J23:11J23:12GPIO3_IO3094
193GPIO7_IO01U14:3U14:4GPIO7_IO00192
177GPIO6_IO17U14:5U14:6GPIO6_IO18178
176GPIO6_IO16U14:7U14:8GPIO2_IO0739
35GPIO2_IO03U14:9U14:10GPIO2_IO0638
169GPIO6_IO09U14:11U14:12GPIO6_IO11171
34GPIO2_IO02U14:13U14:14GPIO2_IO0032
36GPIO2_IO04U14:15U14:16GPIO2_IO0537
29GPIO1_IO29U14:17U14:18GPIO1_IO2727
30GPIO1_IO30U14:19U14:20GPIO1_IO2626
24GPIO1_IO24U14:21U14:22GNDGND
10GPIO1_IO10U14:23U14:24GPIO1_IO1515
12GPIO1_IO12U14:25U14:26GPIO1_IO1313
11GPIO1_IO11U14:27U14:28GPIO1_IO1414
85GPIO3_IO21U14:29U14:30GPIO3_IO2286
GNDGNDU14:31U14:32GNDGND
--gpio-ledsU14:33U14:34gpio-leds--
20GPIO1_IO20U14:35U14:36gpio-leds--
116GPIO4_IO20U14:37U14:38gpio-leds--

测试方法(test method)
1)GPIO输出测试
GPIO output test
  • 设置需要测试的GPIO的IO序号
set IO order number for GPIO of which need to be tested
# OUT_IO_NUMBER=85
  • 导出GPIO
lead out GPIO
# echo ${OUT_IO_NUMBER} > /sys/class/gpio/export
  • 设置GPIO方向
set GPIO direction
# echo out > /sys/class/gpio/gpio${OUT_IO_NUMBER}/direction
  • 控制输出电平
control outputed electrical level
# echo 0 > /sys/class/gpio/gpio${OUT_IO_NUMBER}/value
# echo 1 > /sys/class/gpio/gpio${OUT_IO_NUMBER}/value

2)GPIO输入测试
GPIO input test
  • 设置需要测试的GPIO的IO序号
set IO order number for GPIO of which need to be tested
# IN_IO_NUMBER=86
  • 导出GPIO
lead out GPIO
# echo ${IN_IO_NUMBER} > /sys/class/gpio/export
  • 设置GPIO方向
set GPIO方向
# echo in > /sys/class/gpio/gpio${IN_IO_NUMBER}/direction
  • 查看输入电平
check inputed electrical level
cat /sys/class/gpio/gpio${IN_IO_NUMBER} /value

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


GPIO-LED测试(GPIO-LED test)接口属性(interface property)
MY-IMX6-EK200
MY-IMX6-EK314
接口位置
(interface position)
GPIO属性
(GPIO property)
LED属性
(LED property)
接口位置
(interface position)
GPIO属性
(GPIO property)
LED属性
(LED property)
J4:3gpio-ledsheartbeatU14:24gpio-ledsheartbeat
J4:5gpio-ledstimerU14:28gpio-ledstimer
J4:9gpio-ledsdefault-onU14:26gpio-ledsdefault-on
J4:11gpio-ledsgpioU14:25gpio-ledsgpio

GPIO-LED(Heartbeat)测试(GPIO-LED(Heartbeat)test)
系统启动完成后,用示波器检测heartbeat对应的接口,可看到如下类似信号:
after system booting is completed,check interface corresponding with heartbeat with oscilloscope,then you can see message like below:

提示:heartbeat是与CPU心跳关联的,如果在此GPIO上接上LED,即可通过观察LED来判断CPU是否工作。
tips:heartbeat is related to CPU heartbeat,if connect a LED wiht this GPIO,then we can adjudge whether CPU is working or not by LED。

GPIO-LED(Timer)测试(GPIO-LED(Timer)test)
系统启动完成后,用示波器检测timer对应的接口,可看到如下类似信号:
after system booting is completed,check interface corresponding with timer with oscilloscope,then you can see message like below:

通过delay_off、delay_on来控制高低电平持续的时间。
control high&low electrical time by delay_off、delay_on。
# echo 500 > /sys/class/leds/led-timer/delay_off
# echo 1000 > /sys/class/leds/led-timer/delay_on
再用示波器检测的时候,会看到波形发生的变化。
re-check with oscilloscope,you can see the change of wave shape。

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

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

GPIO-KEY测试(GPIO-KEY test)接口属性(interface property)
MY-IMX6-EK200
MY-IMX6-EK314
接口位置
(interface position)
GPIO属性
(GPIO property)
KEY属性
(KEY property)
接口位置
(interface position)
GPIO属性
(GPIO property)
LED属性
(LED property)
SW2gpio-keysPower ButtonSW4gpio-keysPower Button
SW3gpio-keysVolume UpSW3gpio-keysVolume Up
SW5gpio-keysVolume DownSW2gpio-keysVolume Down

测试方法(test method)
1)执行测试程序
execute test program
在终端下键入命令执行测试,示例如下:
enter command to execute on terminal,example as below:
# evtest
2)选择测试设备
select test device
Select the device event number [0-2]: 2
输入“gpio-keys”对应的序号,这里是2
enter order number corrsponding with“gpio-keys”,here it is 2

3)进行交互测试
proceed with interactive test
在终端会看到“Testing ... (interrupt to exit)”,这时我们按下或松开SW4、SW3、SW2。会看到如下类似信息:
on terminal you can“Testing ... (interrupt to exit)”,this time press or release SW4、SW3、SW2。message like below will come out:
Event: time 1452590477.115958, type 1 (EV_KEY), code 116 (KEY_POWER), value 0
Event: time 1452590477.115958, -------------- SYN_REPORT ------------
Event: time 1452590478.415953, type 1 (EV_KEY), code 115 (KEY_VOLUMEUP), value 1
其中“value 1”信息是在按键被按下的时候被输出,“value 0”信息是在按键被松开的时候被输出。
message of“value 1”is outputed with press of key,message of“value 0”is outputed with release of key。

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

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

相关帖子

发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

38

主题

61

帖子

0

粉丝