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

来自明远智睿的wiki
跳转至: 导航搜索
接口属性
第1行: 第1行:
= '''测试前的准备''' =
+
= '''测试前的准备(preparation before test)''' =
 
----
 
----
 
1)请按照《Linux快速启动手册》中的“Linux快速启动” -> “连接设备”进行连接。<br>
 
1)请按照《Linux快速启动手册》中的“Linux快速启动” -> “连接设备”进行连接。<br>
 +
<span style="background:#CCCCCC">please follow the path of 《Linux fast boot manual》->“Linux fast boot” -> “connect device”for connection</span><br>
 +
 
2)请按照《Linux快速启动手册》中的“Linux快速启动” -> “启动设备”进行启动。<br>
 
2)请按照《Linux快速启动手册》中的“Linux快速启动” -> “启动设备”进行启动。<br>
= '''测试项目''' =
+
<span style="background:#CCCCCC">please follow the path of 《Linux fast boot manual》->“Linux fast boot” -> “boot device”for booting</span><br>
 +
 
 +
 
 +
= '''测试项目(test item)''' =
 
----
 
----
== '''网口测试''' ==
+
== '''网口测试( test of network interface)''' ==
 
MY-IMX6-EK140支持一个百兆网口。<br>
 
MY-IMX6-EK140支持一个百兆网口。<br>
=== 接口属性 ===
+
<span style="background:#CCCCCC">MY-IMX6-EK140 support one Mbps network interface</span><br>
 +
 
 +
 
 +
=== 接口属性(interface property) ===
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
!评估板型号
+
!评估板型号<br>(evaluation board model)
!CPU接口
+
!CPU接口<br>(CPU interface)
!系统接口
+
!系统接口<br>(system interface)
!接口丝印<br>
+
!接口丝印<br>(interface silk screen)
 
|-
 
|-
 
|MY-IMX6-EK140 ||ENET1 ||eth0 ||P1<br>
 
|MY-IMX6-EK140 ||ENET1 ||eth0 ||P1<br>
第19行: 第27行:
 
|}
 
|}
  
=== 测试方法 ===
+
 
 +
=== 测试方法(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 IP of cable network interface card for computer as 192.168.18.18</span><br>
 
[[文件:MY-IMX6-EK140 Linux-3.14_2.1.2.1.png]]<br>
 
[[文件:MY-IMX6-EK140 Linux-3.14_2.1.2.1.png]]<br>
 +
 
2) Eth0连接测试<br>
 
2) Eth0连接测试<br>
 +
<span style="background:#CCCCCC">Eth0 test for Wth0 connection</span><br>
 
* 连接网线:将评估板“eth0”对应的接口与计算机有线网卡的接口用网线相连接<br>
 
* 连接网线:将评估板“eth0”对应的接口与计算机有线网卡的接口用网线相连接<br>
 +
<span style="background:#CCCCCC">lan line connection:connect interface corresponding to “eth0”on evaluation board with interface of cable network interface card on computer through lan line</span><br>
 +
 
* 设置评估板IP:<br>
 
* 设置评估板IP:<br>
 +
<span style="background:#CCCCCC">set IP for evaluation board</span><br>
 
# ifconfig eth0 192.168.18.36 # configure the eth0<br>
 
# ifconfig eth0 192.168.18.36 # configure the eth0<br>
 +
 
* 执行测试命令:<br>
 
* 执行测试命令:<br>
 +
<span style="background:#CCCCCC">execute test command</span><br>
 
# ping 192.168.18.18 -c 2 -w 4 # send ICMP to HOST<br>
 
# ping 192.168.18.18 -c 2 -w 4 # send ICMP to HOST<br>
 +
 
* 观察测试结果:系统会输出类似如下信息:<br>
 
* 观察测试结果:系统会输出类似如下信息:<br>
 +
<span style="background:#CCCCCC">view test result,you can see information outputed by system like below</span><br>
 
--- 192.168.18.18 ping statistics ---<br>
 
--- 192.168.18.18 ping statistics ---<br>
 
2packets transmitted, 2 packets received, 0% packet loss<br>
 
2packets transmitted, 2 packets received, 0% packet loss<br>
 +
 
* 测试结果:“0% packet loss”表示测试通过<br>
 
* 测试结果:“0% packet loss”表示测试通过<br>
 +
<span style="background:#CCCCCC">test reuslt:“0% packet loss” represent passing of test</span><br>
 
* 附图<br>
 
* 附图<br>
 +
<span style="background:#CCCCCC">figures</span><br>
 
[[文件:MY-IMX6-EK140 Linux-3.14_2.1.2.2.png]]<br>
 
[[文件:MY-IMX6-EK140 Linux-3.14_2.1.2.2.png]]<br>
== '''USB测试''' ==
+
 
=== 接口属性 ===
+
 
 +
== '''USB测试(USB test)''' ==
 +
=== 接口属性(interface property) ===
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
!评估板型号
+
!评估板型号<br>(evaluation board model)
!CPU接口
+
!CPU接口<br>(CPU interface)
!系统接口
+
!系统接口<br>(system interface)
!接口丝印
+
!接口丝印<br>(interface silk screen)
 
|-
 
|-
 
|rowspan=2|MY-IMX6-EK140
 
|rowspan=2|MY-IMX6-EK140
第55行: 第80行:
 
|}
 
|}
  
=== USB OTG测试 ===
+
 
 +
=== USB OTG测试(USB OTG test) ===
 
1) 将MicroUSB转USB的转接线连接到USB1,系统会输出类似如下信息:<br>
 
1) 将MicroUSB转USB的转接线连接到USB1,系统会输出类似如下信息:<br>
 +
<span style="background:#CCCCCC">connect to USB1 with USB switch wiring from MicroUSB,system will output information like below.</span><br>
 
ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 2<br>
 
ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 2<br>
 
ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00<br>
 
ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00<br>
 
<br>
 
<br>
 +
 
2) 连接USB设备。即:将U盘插入转接线上的USB口,系统会输出类似如下信息:<br>
 
2) 连接USB设备。即:将U盘插入转接线上的USB口,系统会输出类似如下信息:<br>
 +
<span style="background:#CCCCCC">connect USB device,e.g insert U disk to USD port on the switch wiring,system will output information like below.</span><br>
 
usb 2-1: new high-speed USB device number 12 using ci_hdrc<br>
 
usb 2-1: new high-speed USB device number 12 using ci_hdrc<br>
 
usb-storage 2-1:1.0: USB Mass Storage device detected<br>
 
usb-storage 2-1:1.0: USB Mass Storage device detected<br>
 
<br>
 
<br>
 +
 
3) 拔出USB设备,系统会输出类似如下信息:<br>
 
3) 拔出USB设备,系统会输出类似如下信息:<br>
 +
<span style="background:#CCCCCC">take out USB device,system will output information like below.</span><br>
 
usb 2-1: USB disconnect, device number 12<br>
 
usb 2-1: USB disconnect, device number 12<br>
 
<br>
 
<br>
 +
 
4) 拔下USB转接线,系统会输出类似如下信息:<br>
 
4) 拔下USB转接线,系统会输出类似如下信息:<br>
 +
<span style="background:#CCCCCC">take out USB switch wiring,system will output information like below.</span><br>
 
ci_hdrc ci_hdrc.0: remove, state 4<br>
 
ci_hdrc ci_hdrc.0: remove, state 4<br>
 
usb usb2: USB disconnect, device number 1<br>
 
usb usb2: USB disconnect, device number 1<br>
 
ci_hdrc ci_hdrc.0: USB bus 2 deregistered<br>
 
ci_hdrc ci_hdrc.0: USB bus 2 deregistered<br>
  
=== USB HOST测试 ===
+
 
  MY-IMX6-EK140 的USB HOST是插座形式,如要测试HOST功能,需要把自备USB头,并且将插座上的USB HOST信号线连接到USB头,<span style="color:red">此操作请找自己的硬件工程师请求支持。<br>
+
=== USB HOST测试(USB HOST test) ===
 +
  MY-IMX6-EK140 的USB HOST是插座形式,如要测试HOST功能,需要把自备USB头,并且将插座上的USB HOST信号线连接到USB头,<span style="color:red">此操作请找自己的硬件工程师请求支持。<br></span>
 +
  <span style="background:#CCCCCC">MY-IMX6-EK140 USB HOST is socket type,if need to test the function of HOST,need to connect signal line of USB HOST to the USB head self-prepared,<span style="color:red"> the operation need an assistance from hardware engineer.</span><br>
 
  另外,请硬件工程师知晓,由于CPU的USB_VBUS供电能力不足,需要将“5V_core”与USB_VBUS相连。<br>
 
  另外,请硬件工程师知晓,由于CPU的USB_VBUS供电能力不足,需要将“5V_core”与USB_VBUS相连。<br>
 +
  <span style="background:#CCCCCC">Moreover,please let engineer know that power supply capability of CPU的USB_VBUS is not enough,so need to connect“5V_core”with USB_VBUS</span><br>
  
===  附图 ===
+
===  附图(figure) ===
 
[[文件:MY-IMX6-EK140 Linux-3.14_2.2.4.1.png]]<br>
 
[[文件:MY-IMX6-EK140 Linux-3.14_2.2.4.1.png]]<br>
 
<br>
 
<br>
第84行: 第120行:
 
<br>
 
<br>
 
[[文件:MY-IMX6-EK140 Linux-3.14_2.2.4.4.png]]<br>
 
[[文件:MY-IMX6-EK140 Linux-3.14_2.2.4.4.png]]<br>
== '''SD卡测试''' ==
+
 
=== 接口属性 ===
+
 
 +
== '''SD卡测试(SD card test)''' ==
 +
=== 接口属性(interface property) ===
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
!评估板型号
+
!评估板型号<br>(evaluation board model)
!CPU接口
+
!CPU接口<br>(CPU interface)
!系统设备
+
!系统设备<br>(system device)
!接口丝印
+
!接口丝印<br>(interface silk screen)
 
|-
 
|-
 
|MY-IMX6-EK140
 
|MY-IMX6-EK140
第99行: 第137行:
 
|}
 
|}
  
=== 测试说明 ===
+
 
 +
=== 测试说明(test instruction) ===
 
MY-IMX6-EK140的TF卡接口不支持热插拔。<br>
 
MY-IMX6-EK140的TF卡接口不支持热插拔。<br>
=== 测试方法 ===
+
<span style="background:#CCCCCC">MY-IMX6-EK140的TF card interface doesn't support hot plug</span><br>
 +
 
 +
 
 +
=== 测试方法(test method) ===
 
1)为MY-IMX6-EK140断电。<br>
 
1)为MY-IMX6-EK140断电。<br>
 +
<span style="background:#CCCCCC">power off MY-IMX6-EK140</span><br>
 +
 
2)将TF卡安装好板子的TF卡座上,并确认安装好。<br>
 
2)将TF卡安装好板子的TF卡座上,并确认安装好。<br>
 +
<span style="background:#CCCCCC">install TF card in TF card holder,and confirm the installation ok</span><br>
 +
 
3)为MY-IMX6-EK140上电,待系统启动完成后进入系统。<br>
 
3)为MY-IMX6-EK140上电,待系统启动完成后进入系统。<br>
 +
<span style="background:#CCCCCC"> power on MY-IMX6-EK140,enter the system after booting is finished</span><br>
 +
 
5)检查TF卡:<br>
 
5)检查TF卡:<br>
 +
<span style="background:#CCCCCC">check TF card</span><br>
 
# dmesg | grep "mmc0"<br>
 
# dmesg | grep "mmc0"<br>
 
TF卡正常则可以看到类似如下信息:<br>
 
TF卡正常则可以看到类似如下信息:<br>
 +
<span style="background:#CCCCCC">if IF card is normal, then you can see information like below.</span><br>
 
mmc0: host does not support reading read-only switch. assuming write-enable.<br>
 
mmc0: host does not support reading read-only switch. assuming write-enable.<br>
 
mmc0: new high speed SD card at address 0002<br>
 
mmc0: new high speed SD card at address 0002<br>
=== 附图 ===
+
 
 +
=== 附图(figure) ===
 
[[文件:MY-IMX6-EK140 Linux-3.14_2.3.4.1.png]]<br>
 
[[文件:MY-IMX6-EK140 Linux-3.14_2.3.4.1.png]]<br>
== '''标准GPIO测试''' ==
+
 
=== 接口属性 ===
+
== '''标准GPIO测试(standard GPIO test)''' ==
 +
=== 接口属性(interface property) ===
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
!评估板型号
+
!评估板型号<br>(evaluation board model)
!CPU接口
+
!CPU接口<br>(CPU interface)
!系统设备
+
!系统设备<br>(system device)
!信号名称
+
!信号名称<br>(name of signal)
!接口位置
+
!接口位置<br>(interface position)
 
|-
 
|-
 
|rowspan=2|MY-IMX6-EK140
 
|rowspan=2|MY-IMX6-EK140
第135行: 第187行:
 
|}
 
|}
  
=== 测试说明 ===
+
 
 +
=== 测试说明(test instruction) ===
 
标准GPIO的测试以GPIO131为例,其它GPIO测试可参照GPIO131的测试方法。<br>
 
标准GPIO的测试以GPIO131为例,其它GPIO测试可参照GPIO131的测试方法。<br>
=== 测试方法 ===
+
<span style="background:#CCCCCC">take GPIO131 as an example of standard GPIO test,other GPIO tests refer to the test method of GPIO131</span><br>
 +
 
 +
 
 +
=== 测试方法(test method) ===
 
1)设置需要测试的GPIO的IO序号<br>
 
1)设置需要测试的GPIO的IO序号<br>
 +
<span style="background:#CCCCCC">set IO order number of GPIO which need to be tested</span><br>
 
# OUT_IO_NUMBER=131<br>
 
# OUT_IO_NUMBER=131<br>
 +
 
2)导出GPIO<br>
 
2)导出GPIO<br>
 +
<span style="background:#CCCCCC">lead out GPIO</span><br>
 
# echo ${OUT_IO_NUMBER} > /sys/class/gpio/export<br>
 
# echo ${OUT_IO_NUMBER} > /sys/class/gpio/export<br>
 +
 
3)设置GPIO方向<br>
 
3)设置GPIO方向<br>
 +
<span style="background:#CCCCCC">set direction for GPIO</span><br>
 
# echo "out" > /sys/class/gpio/gpio${OUT_IO_NUMBER}/direction<br>
 
# echo "out" > /sys/class/gpio/gpio${OUT_IO_NUMBER}/direction<br>
 +
 
4)控制输出电平<br>
 
4)控制输出电平<br>
 +
<span style="background:#CCCCCC">control output electrical level</span><br>
 
# echo 0 > /sys/class/gpio/gpio${OUT_IO_NUMBER}/value<br>
 
# echo 0 > /sys/class/gpio/gpio${OUT_IO_NUMBER}/value<br>
 
执行命令后即可用万用表检测到对应的引脚为低电平。<br>
 
执行命令后即可用万用表检测到对应的引脚为低电平。<br>
 +
<span style="background:#CCCCCC">leads detected by multimeter accordingly will be low electrical level after execution of command</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">leads detected by multimeter accordingly will be high electrical level after execution of command</span><br>
 +
 
 +
 
 +
=== 附图(figure) ===
 
[[文件:MY-IMX6-EK140 Linux-3.14_2.4.4.1.png]]<br>
 
[[文件:MY-IMX6-EK140 Linux-3.14_2.4.4.1.png]]<br>
 
<br>
 
<br>
 
[[文件:MY-IMX6-EK140 Linux-3.14_2.4.4.2.png]]<br>
 
[[文件:MY-IMX6-EK140 Linux-3.14_2.4.4.2.png]]<br>
== '''GPIO-LED测试''' ==
+
 
=== 接口属性 ===
+
 
 +
== '''GPIO-LED测试(GPIO-LED test)''' ==
 +
=== 接口属性(interface property) ===
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
!评估板型号
+
!评估板型号<br>(evaluation board model)
!SOC接口
+
!SOC接口<br>(SOC interface)
!系统设备
+
!系统设备<br>(system device)
!接口位置
+
!接口位置<br>(interface position)
 
|-
 
|-
 
|rowspan=4|MY-IMX6-EK140
 
|rowspan=4|MY-IMX6-EK140
第183行: 第252行:
 
|}
 
|}
  
=== GPIO-LED(Default)测试 ===
+
 
 +
=== GPIO-LED(Default)测试(GPIO-LED(Default)test) ===
 
Default的实现是初始触发状态为on,即系统启动后开发板上对应接口位置的LED常亮。<br>
 
Default的实现是初始触发状态为on,即系统启动后开发板上对应接口位置的LED常亮。<br>
 +
<span style="background:#CCCCCC">Default is fullfilled with original trigger state as on, e.g LED on the corresponding port of development board is always bright after booting of system </span><br>
 +
 
Default可以通过brightness控制。<br>
 
Default可以通过brightness控制。<br>
 +
<span style="background:#CCCCCC">default is controled through brightness</span><br>
 +
 
往brightness写0即把该IO拉低,LED常灭。<br>
 
往brightness写0即把该IO拉低,LED常灭。<br>
 +
<span style="background:#CCCCCC">writing 0 to brightness will drop down IO,LED is always off</span><br>
 
# echo 0 > /sys/class/leds/default/brightness<br>
 
# echo 0 > /sys/class/leds/default/brightness<br>
 +
 
往brightness写1即把该IO拉高,LED常亮。<br>
 
往brightness写1即把该IO拉高,LED常亮。<br>
 +
<span style="background:#CCCCCC">writing 1 to brightness will drop up IO,LED is always bright</span><br>
 
# echo 1 > /sys/class/leds/default/brightness<br>
 
# echo 1 > /sys/class/leds/default/brightness<br>
=== GPIO-LED(Heartbeat)测试 ===
+
 
 +
 
 +
=== GPIO-LED(Heartbeat)测试(GPIO-LED(Heartbeat) test) ===
 
系统启动完成后,可以在开发板上看到Heartbeat对应接口位置的LED在闪烁。<br>
 
系统启动完成后,可以在开发板上看到Heartbeat对应接口位置的LED在闪烁。<br>
=== GPIO-LED(Timer)测试 ===
+
<span style="background:#CCCCCC">LED on interface correponding to hearbeat on devleopment board will flash after system boot is over</span><br>
 +
 
 +
=== GPIO-LED(Timer)测试(GPIO-LED(Timer)test) ===
 
系统启动完成后,可以在开发板上看到led-timer对应接口位置的LED在闪烁:<br>
 
系统启动完成后,可以在开发板上看到led-timer对应接口位置的LED在闪烁:<br>
 +
<span style="background:#CCCCCC">LED on interface correponding to led-tiomer on devleopment board will flash after system boot is over</span><br>
 +
 
通过delay_off、delay_on来控制高低电平持续的时间。<br>
 
通过delay_off、delay_on来控制高低电平持续的时间。<br>
 +
<span style="background:#CCCCCC">control duration of high low eletrical level through delay_off、delay_on</span><br>
 
# echo 500 > /sys/class/leds/led-timer/delay_off<br>
 
# echo 500 > /sys/class/leds/led-timer/delay_off<br>
 
# echo 1000 > /sys/class/leds/led-timer/delay_on<br>
 
# echo 1000 > /sys/class/leds/led-timer/delay_on<br>
 
再看led-timer对应的LED灯,在闪烁过程中可以发现亮的时间比灭的时间长。<br>
 
再看led-timer对应的LED灯,在闪烁过程中可以发现亮的时间比灭的时间长。<br>
=== GPIO-LED(leds-gpio)测试 ===
+
<span style="background:#CCCCCC">view LED corresponding to led-time,you can find that time period of lighting is longer than being off in cycle of flash</span><br>
 +
 
 +
 
 +
=== GPIO-LED(leds-gpio)测试(GPIO-LED(leds-gpio)test) ===
 
GPIO的测试可以使用跟default类似的方法:<br>
 
GPIO的测试可以使用跟default类似的方法:<br>
 +
<span style="background:#CCCCCC">GPIO test can adopt the similar way for default test</span><br>
 +
 
往brightness写1即把该IO拉高,LED常亮。<br>
 
往brightness写1即把该IO拉高,LED常亮。<br>
 +
<span style="background:#CCCCCC">writting 1 to brightness will drop up IO,LED is always bright</span><br>
 
# echo 1 > /sys/class/leds/leds-gpio/brightness<br>
 
# echo 1 > /sys/class/leds/leds-gpio/brightness<br>
 +
 
往brightness写0即把该IO拉低,LED常灭。<br>
 
往brightness写0即把该IO拉低,LED常灭。<br>
 +
<span style="background:#CCCCCC">writting 0 to brightness will drop down IO, LED is always off</span><br>
 
# echo 0 > /sys/class/leds/leds-gpio/brightness<br>
 
# echo 0 > /sys/class/leds/leds-gpio/brightness<br>
== '''串口测试''' ==
+
 
 +
 
 +
== '''串口测试(serial port test)''' ==
 
MY-IMX6-EK140共8个串口,其中1个调试串口,7个用户串口。<br>
 
MY-IMX6-EK140共8个串口,其中1个调试串口,7个用户串口。<br>
=== 串口属性 ===
+
<span style="background:#CCCCCC">MY-IMX6-EK140 has 8 serial port, one is debug serial port, the other 7 are user serial ports</span><br>
 +
 
 +
 
 +
=== 串口属性(property of serial port) ===
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
!评估板型号
+
!评估板型号<br>(evaluation board model)
!SOC接口
+
!SOC接口<br>(SOC interface)
!系统设备
+
!系统设备<br>(system device)
!信号名称
+
!信号名称<br>(name of signal)
!接口位置
+
!接口位置<br>(interface position)
 
|-
 
|-
 
|rowspan=8|MY-IMX6-EK140
 
|rowspan=8|MY-IMX6-EK140
第264行: 第361行:
 
|}
 
|}
  
=== 串口测试 ===
+
=== 串口测试(interface) ===
 
1)测试说明<br>
 
1)测试说明<br>
 +
<span style="background:#CCCCCC">test intruction</span><br>
 
测试的应用程序会配置串口为loopback模式,并进行loopback测试。测试中我们以UART2(ttymxc1)为例。<br>
 
测试的应用程序会配置串口为loopback模式,并进行loopback测试。测试中我们以UART2(ttymxc1)为例。<br>
 +
<span style="background:#CCCCCC">the test application will configure serial port as mode of loopback,and conduct loopback test.we only take UART2(ttymxc1)as an example in the tes</span><br>
 +
 
2)执行测试命令<br>
 
2)执行测试命令<br>
 +
<span style="background:#CCCCCC">execute test command</span><br>
 
# /unit_tests/mxc_uart_stress_test.out /dev/ttymxc1 115200 D L 10 1000 O<br>
 
# /unit_tests/mxc_uart_stress_test.out /dev/ttymxc1 115200 D L 10 1000 O<br>
 +
 
终端显示“Hit enter to start Loopback”后按下PC上的回车键。<br>
 
终端显示“Hit enter to start Loopback”后按下PC上的回车键。<br>
 +
<span style="background:#CCCCCC">press Enter key on PC when “Hit enter to start Loopback” is shown on termina</span><br>
 +
 
测试命令说明:<br>
 
测试命令说明:<br>
 +
<span style="background:#CCCCCC">intruction of test command</span><br>
 +
 
/unit_tests/mxc_uart_stress_test.out:测试程序文件<br>
 
/unit_tests/mxc_uart_stress_test.out:测试程序文件<br>
 +
<span style="background:#CCCCCC">/unit_tests/mxc_uart_stress_test.out:file of test program</span><br>
 +
 
/dev/ttymxc1:需要进行测试的串口设备文件<br>
 
/dev/ttymxc1:需要进行测试的串口设备文件<br>
 +
<span style="background:#CCCCCC"></span><br>
 +
 
115200:串口测试的波特率<br>
 
115200:串口测试的波特率<br>
 +
<span style="background:#CCCCCC">115200:baud rate for serial port</span><br>
 +
 
D:关闭流控(loopback测试不能使用流控)<br>
 
D:关闭流控(loopback测试不能使用流控)<br>
 +
<span style="background:#CCCCCC">D:close fluid control</span><br>
 +
 
L:loopback 测试<br>
 
L:loopback 测试<br>
 +
<span style="background:#CCCCCC">L:loopback test</span><br>
 +
 
10:测试次数<br>
 
10:测试次数<br>
 +
<span style="background:#CCCCCC">times of number of test</span><br>
 +
 
1000:测试的数据长度(字节)<br>
 
1000:测试的数据长度(字节)<br>
 +
<span style="background:#CCCCCC">leghth of data of test</span><br>
 +
 
O:显示测试log<br>
 
O:显示测试log<br>
=== 附图 ===
+
<span style="background:#CCCCCC">display test log</span><br>
 +
 
 +
=== 附图(figure) ===
 
[[文件:MY-IMX6-EK140 Linux-3.14_2.6.3.1.png]]<br>
 
[[文件:MY-IMX6-EK140 Linux-3.14_2.6.3.1.png]]<br>
 
<br>
 
<br>
 
[[文件:MY-IMX6-EK140 Linux-3.14_2.6.3.2.png]]<br>
 
[[文件:MY-IMX6-EK140 Linux-3.14_2.6.3.2.png]]<br>
== '''SPI测试''' ==
+
 
=== 接口属性 ===
+
 
 +
== '''SPI测试(SPI test)''' ==
 +
=== 接口属性(interface property) ===
 
测试需要用到SPI接口的MISO和MOSI管脚,在下表中列出。<br>
 
测试需要用到SPI接口的MISO和MOSI管脚,在下表中列出。<br>
 +
<span style="background:#CCCCCC">pin of MISO and MOSI need to be used for the test,listed as blow.</span><br>
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
!评估板型号
+
!评估板型号<br>(evaluation board model)
!SOC接口
+
!SOC接口<br>(SOC interface)
!系统设备
+
!系统设备<br>(system device)
!信号名称
+
!信号名称<br>(name of signal)
!接口位置
+
!接口位置<br>(interface position)
 
|-
 
|-
 
|rowspan=2|MY-IMX6-EK140
 
|rowspan=2|MY-IMX6-EK140
第307行: 第432行:
 
|}
 
|}
  
=== 说明 ===
+
 
 +
=== 说明(instruction) ===
 
采用SPI自发送(输出)自接收(输入)的方式。<br>
 
采用SPI自发送(输出)自接收(输入)的方式。<br>
 +
<span style="background:#CCCCCC">adopt way of SPI self-sending(output) self-receiving(input)</span><br>
 
<span style="color:red">注意:测试需要短接评估板的管脚,如果不确定自己能正确短接的请找硬件工程师支持,否则可能会损坏评估板。<br>
 
<span style="color:red">注意:测试需要短接评估板的管脚,如果不确定自己能正确短接的请找硬件工程师支持,否则可能会损坏评估板。<br>
 +
<span style="background:#CCCCCC">note:need a short connection of pins of evaluation board,if you are not sure of how to do that, please ask engineers for support,otherwise it may cause a damage for evaluation board.</span><br>
  
=== 测试方法 ===
+
=== 测试方法(test method) ===
 
1)执行测试<br>
 
1)执行测试<br>
 +
<span style="background:#CCCCCC">execute test</span><br>
 
* SPI1测试<br>
 
* SPI1测试<br>
 +
<span style="background:#CCCCCC">SPI1 test</span><br>
 +
 
短接SPI1的MISO和MISO管脚。<br>
 
短接SPI1的MISO和MISO管脚。<br>
 +
<span style="background:#CCCCCC">short connect pins of MISO and MISO of SPI1</span><br>
 
# ~/my-demo/linux-3.14.52/spidev_test.out -D /dev/spidev0.0 -s 1000000<br>
 
# ~/my-demo/linux-3.14.52/spidev_test.out -D /dev/spidev0.0 -s 1000000<br>
 +
 
* SPI2测试<br>
 
* SPI2测试<br>
 +
<span style="background:#CCCCCC">SPI2 test</span><br>
 +
 
短接SPI2的MISO和MISO管脚。<br>
 
短接SPI2的MISO和MISO管脚。<br>
 +
<span style="background:#CCCCCC">short connect pins of MISO and MISO of SPI2</span><br>
 
# ~/my-demo/linux-3.14.52/spidev_test.out -D /dev/spidev1.0 -s 1000000<br>
 
# ~/my-demo/linux-3.14.52/spidev_test.out -D /dev/spidev1.0 -s 1000000<br>
 +
 
2)测试结果<br>
 
2)测试结果<br>
 +
<span style="background:#CCCCCC">test result</span><br>
 +
 
如果SPI正常,在终端上会看到如下字符:<br>
 
如果SPI正常,在终端上会看到如下字符:<br>
<span style="background:#c0c0c0">FF FF FF FF FF FF <br>
+
<span style="background:#CCCCCC">if SPI is normal, you can see the following charaters on the 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>
第327行: 第468行:
 
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<br></span>
+
F0 0D<br>
 +
 
  
=== 附图 ===
+
=== 附图(figure) ===
 
[[文件:MY-IMX6-EK140 Linux-3.14_2.7.4.1.png]]<br>
 
[[文件:MY-IMX6-EK140 Linux-3.14_2.7.4.1.png]]<br>
== '''背光测试''' ==
+
 
=== 接口属性 ===
+
 
 +
== '''背光测试(test of backlight)''' ==
 +
=== 接口属性(interface property) ===
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
!评估板型号
+
!评估板型号<br>(evaluation board model)
!SOC接口
+
!SOC接口<br>(SOC interface)
!系统设备
+
!系统设备<br>(system device)
!信号名称
+
!信号名称<br>(name of signal)
!接口位置
+
!接口位置<br>(interface position)
 
|-
 
|-
 
|MY-IMX6-EK140
 
|MY-IMX6-EK140
第348行: 第492行:
 
|}
 
|}
  
=== 测试方法 ===
+
=== 测试方法(test method) ===
 
1)查看背光可支持的最大亮度等级<br>
 
1)查看背光可支持的最大亮度等级<br>
 +
<span style="background:#CCCCCC">check the maximum brightness grade supported by backlight</span><br>
 
# cat /sys/devices/soc0/backlight.8/backlight/backlight.8/max_brightness<br>
 
# cat /sys/devices/soc0/backlight.8/backlight/backlight.8/max_brightness<br>
 +
 
2)查看当前背光亮度等级<br>
 
2)查看当前背光亮度等级<br>
 +
<span style="background:#CCCCCC">check current brightness grade of backlight</span><br>
 
# cat /sys/devices/soc0/backlight.8/backlight/backlight.8/brightness<br>
 
# cat /sys/devices/soc0/backlight.8/backlight/backlight.8/brightness<br>
 +
 
3)控制背光亮度等级(下面命令将背光等级调到3)<br>
 
3)控制背光亮度等级(下面命令将背光等级调到3)<br>
 +
<span style="background:#CCCCCC">control brightness grade of backlight</span><br>
 
# echo 3 > /sys/devices/soc0/backlight.8/backlight/backlight.8/brightness<br>
 
# echo 3 > /sys/devices/soc0/backlight.8/backlight/backlight.8/brightness<br>
 +
 
可以看到显示屏的亮度发生了变化。<br>
 
可以看到显示屏的亮度发生了变化。<br>
=== 附图 ===
+
<span style="background:#CCCCCC">you can see the change of brightness of screen</span><br>
 +
 
 +
=== 附图(figure) ===
 
[[文件:MY-IMX6-EK140 Linux-3.14_2.8.3.1.png]]<br>
 
[[文件:MY-IMX6-EK140 Linux-3.14_2.8.3.1.png]]<br>
== '''CAN接口测试 ''' ==
+
 
=== 接口属性 ===
+
 
 +
== '''CAN接口测试 (CAN interface test)''' ==
 +
=== 接口属性(interface property) ===
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
!评估板型号
+
!评估板型号<br>(evaluation board model)
!SOC接口
+
!SOC接口<br>(SOC interface)
!系统设备
+
!系统设备<br>(system device)
!信号名称
+
!信号名称<br>(name of signal)
!接口位置
+
!接口位置<br>(interface position)
 
|-
 
|-
 
|rowspan=2|MY-IMX6-EK140
 
|rowspan=2|MY-IMX6-EK140
第381行: 第535行:
 
|}
 
|}
  
=== 测试说明 ===
+
 
 +
=== 测试说明(test instruction) ===
 
  MY-IMX6-EK140从CPU上引出了CAN信号,但是在EK140上不带CAN收发芯片,所以不能直接测试CAN。如果需要测试CAN的收发,需要外接CAN收发芯片或CAN收发器。<br>
 
  MY-IMX6-EK140从CPU上引出了CAN信号,但是在EK140上不带CAN收发芯片,所以不能直接测试CAN。如果需要测试CAN的收发,需要外接CAN收发芯片或CAN收发器。<br>
== '''RTC测试''' ==
+
<span style="background:#CCCCCC">MY-IMX6-EK140 lead out CAN signal from CPU,but there is not CAN receiving chip on EK140 ,so CAN can't be tested directly。if want to test the transceiver of CAN,need to connect externally CAN transceiving chip or CAN transceiver.</span><br>
===  测试说明 ===
+
 
 +
 
 +
== '''RTC测试(RTC test)''' ==
 +
===  测试说明(test instruction) ===
 
1)受快递运输影响,开发板发货时不带电池。测试RTC前请自备纽扣电池并安装到评估板上。<br>
 
1)受快递运输影响,开发板发货时不带电池。测试RTC前请自备纽扣电池并安装到评估板上。<br>
 +
<span style="background:#CCCCCC">due to restrictions in transportation,evaluation board doesn't contatin battery in delivery。before RTC test please prepare button cell to install on the evaluation board</span><br>
 
2)MY-IMX6-MB140不带RTC,RTC在MY-IMX6-EXT140上,没有EXT140的客户可跳过此测试。<br>
 
2)MY-IMX6-MB140不带RTC,RTC在MY-IMX6-EXT140上,没有EXT140的客户可跳过此测试。<br>
 +
<span style="background:#CCCCCC">MY-IMX6-MB140 doesn't carry RTC,RTC is on MY-IMX6-EXT140,user who doesn't have EXT140 can skip this test</span><br>
 
3)MY-IMX6-EK140的电池座在底板背面。<br>
 
3)MY-IMX6-EK140的电池座在底板背面。<br>
=== 测试方法 ===
+
<span style="background:#CCCCCC">battery holder of MY-IMX6-EK140 is on rear view of base board</span><br>
 +
 
 +
 
 +
=== 测试方法(test method) ===
 
1)断电重启设备,系统启动完成后查看当前系统时间和硬件时间。<br>
 
1)断电重启设备,系统启动完成后查看当前系统时间和硬件时间。<br>
 +
<span style="background:#CCCCCC">power off then reboot device, view the time of system and hardware after system booting is over</span><br>
 
# date<br>
 
# date<br>
 
# hwclock <br>
 
# hwclock <br>
3)设置系统时钟,并同步到RTC芯片<br>
+
2)设置系统时钟,并同步到RTC芯片<br>
# date -s "2016-06-24 12:34:56"<br>
+
<span style="background:#CCCCCC">set system clock and synchronously set to RTC chip.<br></span>
 
# hwclok –w<br>
 
# hwclok –w<br>
4)断电重启评估板,查看当前系统时钟和硬件时钟<br>
+
3)断电重启评估板,查看当前系统时钟和硬件时钟<br>
 +
<span style="background:#CCCCCC">power off and reboot evaluation board,check current system clock and hardware clock</span><br>
 
# date<br>
 
# date<br>
 
# hwclock <br>
 
# hwclock <br>
=== 附图 ===
+
 
 +
=== 附图(figure) ===
 
[[文件:MY-IMX6-EK140 Linux-3.14_2.10.3.1.png]]<br>
 
[[文件:MY-IMX6-EK140 Linux-3.14_2.10.3.1.png]]<br>
 
<br>
 
<br>
第404行: 第570行:
 
<br>
 
<br>
 
[[文件:MY-IMX6-EK140 Linux-3.14_2.10.3.1.png]]<br>
 
[[文件:MY-IMX6-EK140 Linux-3.14_2.10.3.1.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>
 +
 
 +
 
 +
===  复位测试(re-set 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 after 60 seconds</span><br>
 +
 
2)执行测试<br>
 
2)执行测试<br>
 +
<span style="background:#CCCCCC">execute test</span><br>
 
# /unit_tests/wdt_driver_test.out 2 4 1<br>
 
# /unit_tests/wdt_driver_test.out 2 4 1<br>
 +
 
3)测试结果<br>
 
3)测试结果<br>
 +
<span style="background:#CCCCCC">test result</span><br>
 
运行测试命令后等待几秒,WatchDog超时,系统被复位。将会在终端看到系统重新启动输出的信息。<br>
 
运行测试命令后等待几秒,WatchDog超时,系统被复位。将会在终端看到系统重新启动输出的信息。<br>
 +
  <span style="background:#CCCCCC">wait for a few seconds after running of test command,WatchDog timeout,system is resetted。you can see information outputed by system rebooting on terminal</span><br>
 
[[文件:MY-IMX6-EK140 Linux-3.14_2.11.2.1.png]]<br>
 
[[文件:MY-IMX6-EK140 Linux-3.14_2.11.2.1.png]]<br>
===  喂狗测试 ===
+
 
 +
 
 +
===  喂狗测试 (test of feeding dog) ===
 
1)测试说明<br>
 
1)测试说明<br>
 +
  <span style="background:#CCCCCC">test instuction</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 seconds,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">start WatchDog</span><br>
 
# /unit_tests/wdt_driver_test.out 4 2 1 &<br>
 
# /unit_tests/wdt_driver_test.out 4 2 1 &<br>
 
* 查看当前时间<br>
 
* 查看当前时间<br>
 +
<span style="background:#CCCCCC">view current time</span><br>
 
# date<br>
 
# date<br>
 
[[文件:MY-IMX6-EK140 Linux-3.14_2.11.3.1.png]]<br>
 
[[文件:MY-IMX6-EK140 Linux-3.14_2.11.3.1.png]]<br>
 +
 
3)验证<br>
 
3)验证<br>
 +
  <span style="background:#CCCCCC">verify</span><br>
 
* 查看当前时间<br>
 
* 查看当前时间<br>
 +
<span style="background:#CCCCCC">view current time</span><br>
 
经过几分钟之后,系统依然没有复位。我们再查看当前时间。<br>
 
经过几分钟之后,系统依然没有复位。我们再查看当前时间。<br>
 +
<span style="background:#CCCCCC">after a new minutes,system hasn't reseted yet. we re-check current time</span><br>
 
# date<br>
 
# date<br>
 
* 停止喂狗<br>
 
* 停止喂狗<br>
 +
<span style="background:#CCCCCC">stop dog feeding</span><br>
 
这时我们终止Watchdog测试程序,这样就没有程序进行喂狗了,系统将会在超时时间(这里是4秒)内复位。<br>
 
这时我们终止Watchdog测试程序,这样就没有程序进行喂狗了,系统将会在超时时间(这里是4秒)内复位。<br>
 +
<span style="background:#CCCCCC">then we stop test program for Watchdog,in this case there is not program to feed dgo,system will reset in timeout(here is 4 seconds)</span><br>
 
# pkill wdt_driver_test<br>
 
# pkill wdt_driver_test<br>
 
[[文件:MY-IMX6-EK140 Linux-3.14_2.11.3.2.png]]<br>
 
[[文件:MY-IMX6-EK140 Linux-3.14_2.11.3.2.png]]<br>

2017年6月8日 (四) 15:17的版本

目录

= 测试前的准备(preparation before test) =

1)请按照《Linux快速启动手册》中的“Linux快速启动” -> “连接设备”进行连接。<br>

please follow the path of 《Linux fast boot manual》->“Linux fast boot” -> “connect device”for connection

2)请按照《Linux快速启动手册》中的“Linux快速启动” -> “启动设备”进行启动。<br>

please follow the path of 《Linux fast boot manual》->“Linux fast boot” -> “boot device”for booting

= 测试项目(test item) =

网口测试( test of network interface)

MY-IMX6-EK140支持一个百兆网口。
MY-IMX6-EK140 support one Mbps network interface

接口属性(interface property)

评估板型号
(evaluation board model)
CPU接口
(CPU interface)
系统接口
(system interface)
接口丝印
(interface silk screen)
<thead> </thead> <tbody> </tbody>
MY-IMX6-EK140 ENET1 eth0 P1
}

测试方法(test method)

1) 配置计算机IP
configure computer IP
设置计算机有线网卡IP为192.168.18.18
set IP of cable network interface card for computer as 192.168.18.18
MY-IMX6-EK140 Linux-3.14 2.1.2.1.png

2) Eth0连接测试
Eth0 test for Wth0 connection

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

lan line connection:connect interface corresponding to “eth0”on evaluation board with interface of cable network interface card on computer through lan line

  • 设置评估板IP:
    set IP for evaluation board
    # ifconfig eth0 192.168.18.36 # configure the eth0
  • 执行测试命令:
    execute test command
    # ping 192.168.18.18 -c 2 -w 4 # send ICMP to HOST
  • 观察测试结果:系统会输出类似如下信息:
    view test result,you can see information outputed by system like below
    --- 192.168.18.18 ping statistics ---
    2packets transmitted, 2 packets received, 0% packet loss
  • 测试结果:“0% packet loss”表示测试通过
    test reuslt:“0% packet loss” represent passing of test
  • 附图
    figures
    MY-IMX6-EK140 Linux-3.14 2.1.2.2.png

USB测试(USB test)

接口属性(interface property)

评估板型号
(evaluation board model)
CPU接口
(CPU interface)
系统接口
(system interface)
接口丝印
(interface silk screen)
MY-IMX6-EK140
USB_OTG1
USB OTG
<thead> </thead> <tbody> </tbody>
J4
USB_OTG2
USB HOST
J7[…]

USB OTG测试(USB OTG test)

1) 将MicroUSB转USB的转接线连接到USB1,系统会输出类似如下信息:
connect to USB1 with USB switch wiring from MicroUSB,system will output information like below.
ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 2
ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00

2) 连接USB设备。即:将U盘插入转接线上的USB口,系统会输出类似如下信息:
connect USB device,e.g insert U disk to USD port on the switch wiring,system will output information like below.
usb 2-1: new high-speed USB device number 12 using ci_hdrc
usb-storage 2-1:1.0: USB Mass Storage device detected

3) 拔出USB设备,系统会输出类似如下信息:
take out USB device,system will output information like below.
usb 2-1: USB disconnect, device number 12

4) 拔下USB转接线,系统会输出类似如下信息:
take out USB switch wiring,system will output information like below.
ci_hdrc ci_hdrc.0: remove, state 4
usb usb2: USB disconnect, device number 1
ci_hdrc ci_hdrc.0: USB bus 2 deregistered

USB HOST测试(USB HOST test)

  MY-IMX6-EK140 的USB HOST是插座形式,如要测试HOST功能,需要把自备USB头,并且将插座上的USB HOST信号线连接到USB头,此操作请找自己的硬件工程师请求支持。
  MY-IMX6-EK140 USB HOST is socket type,if need to test the function of HOST,need to connect signal line of USB HOST to the USB head self-prepared, the operation need an assistance from hardware engineer.
  另外,请硬件工程师知晓,由于CPU的USB_VBUS供电能力不足,需要将“5V_core”与USB_VBUS相连。
  Moreover,please let engineer know that power supply capability of CPU的USB_VBUS is not enough,so need to connect“5V_core”with USB_VBUS

附图(figure)

MY-IMX6-EK140 Linux-3.14 2.2.4.1.png

MY-IMX6-EK140 Linux-3.14 2.2.4.2.png

MY-IMX6-EK140 Linux-3.14 2.2.4.3.png

MY-IMX6-EK140 Linux-3.14 2.2.4.4.png

SD卡测试(SD card test)

接口属性(interface property)

评估板型号
(evaluation board model)
CPU接口
(CPU interface)
系统设备
(system device)
接口丝印
(interface silk screen)
MY-IMX6-EK140
SD1
mmc0
U15

测试说明(test instruction)

MY-IMX6-EK140的TF卡接口不支持热插拔。
MY-IMX6-EK140的TF card interface doesn't support hot plug

测试方法(test method)

1)为MY-IMX6-EK140断电。
power off MY-IMX6-EK140

2)将TF卡安装好板子的TF卡座上,并确认安装好。
install TF card in TF card holder,and confirm the installation ok

3)为MY-IMX6-EK140上电,待系统启动完成后进入系统。
power on MY-IMX6-EK140,enter the system after booting is finished

5)检查TF卡:
check TF card
# dmesg | grep "mmc0"
TF卡正常则可以看到类似如下信息:
if IF card is normal, then you can see information like below.
mmc0: host does not support reading read-only switch. assuming write-enable.
mmc0: new high speed SD card at address 0002

附图(figure)

MY-IMX6-EK140 Linux-3.14 2.3.4.1.png

标准GPIO测试(standard GPIO test)

接口属性(interface property)

评估板型号
(evaluation board model)
CPU接口
(CPU interface)
系统设备
(system device)
信号名称
(name of signal)
接口位置
(interface position)
MY-IMX6-EK140
SNVS_TAMPER3
gpio131
SNVS_TAMPER3
<thead> </thead> <tbody> </tbody>
J7:31
SNVS_TAMPER7
gpio135
SNVS_TAMPER7
J7:32

测试说明(test instruction)

标准GPIO的测试以GPIO131为例,其它GPIO测试可参照GPIO131的测试方法。
take GPIO131 as an example of standard GPIO test,other GPIO tests refer to the test method of GPIO131

测试方法(test method)

1)设置需要测试的GPIO的IO序号
set IO order number of GPIO which need to be tested
# OUT_IO_NUMBER=131

2)导出GPIO
lead out GPIO
# echo ${OUT_IO_NUMBER} > /sys/class/gpio/export

3)设置GPIO方向
set direction for GPIO
# echo "out" > /sys/class/gpio/gpio${OUT_IO_NUMBER}/direction

4)控制输出电平
control output electrical level
# echo 0 > /sys/class/gpio/gpio${OUT_IO_NUMBER}/value
执行命令后即可用万用表检测到对应的引脚为低电平。
leads detected by multimeter accordingly will be low electrical level after execution of command
# echo 1 > /sys/class/gpio/gpio${OUT_IO_NUMBER}/value
执行命令后即可用万用表检测到对应的引脚为高电平。
leads detected by multimeter accordingly will be high electrical level after execution of command

附图(figure)

MY-IMX6-EK140 Linux-3.14 2.4.4.1.png

MY-IMX6-EK140 Linux-3.14 2.4.4.2.png

GPIO-LED测试(GPIO-LED test)

接口属性(interface property)

评估板型号
(evaluation board model)
SOC接口
(SOC interface)
系统设备
(system device)
接口位置
(interface position)
MY-IMX6-EK140
SNVS_TAMPER4
default
<thead> </thead> <tbody> </tbody>
D1
SNVS_TAMPER1
Heartbeat
<thead> </thead> <tbody> </tbody>
D2
SNVS_TAMPER8
led-timer
<thead> </thead> <tbody> </tbody>
D4
SNVS_TAMPER5
leds-gpio
D5

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

Default的实现是初始触发状态为on,即系统启动后开发板上对应接口位置的LED常亮。
Default is fullfilled with original trigger state as on, e.g LED on the corresponding port of development board is always bright after booting of system

Default可以通过brightness控制。
default is controled through brightness

往brightness写0即把该IO拉低,LED常灭。
writing 0 to brightness will drop down IO,LED is always off
# echo 0 > /sys/class/leds/default/brightness

往brightness写1即把该IO拉高,LED常亮。
writing 1 to brightness will drop up IO,LED is always bright
# echo 1 > /sys/class/leds/default/brightness

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

系统启动完成后,可以在开发板上看到Heartbeat对应接口位置的LED在闪烁。
LED on interface correponding to hearbeat on devleopment board will flash after system boot is over

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

系统启动完成后,可以在开发板上看到led-timer对应接口位置的LED在闪烁:
LED on interface correponding to led-tiomer on devleopment board will flash after system boot is over

通过delay_off、delay_on来控制高低电平持续的时间。
control duration of high low eletrical level through delay_off、delay_on
# echo 500 > /sys/class/leds/led-timer/delay_off
# echo 1000 > /sys/class/leds/led-timer/delay_on
再看led-timer对应的LED灯,在闪烁过程中可以发现亮的时间比灭的时间长。
view LED corresponding to led-time,you can find that time period of lighting is longer than being off in cycle of flash

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

GPIO的测试可以使用跟default类似的方法:
GPIO test can adopt the similar way for default test

往brightness写1即把该IO拉高,LED常亮。
writting 1 to brightness will drop up IO,LED is always bright
# echo 1 > /sys/class/leds/leds-gpio/brightness

往brightness写0即把该IO拉低,LED常灭。
writting 0 to brightness will drop down IO, LED is always off
# echo 0 > /sys/class/leds/leds-gpio/brightness

串口测试(serial port test)

MY-IMX6-EK140共8个串口,其中1个调试串口,7个用户串口。
MY-IMX6-EK140 has 8 serial port, one is debug serial port, the other 7 are user serial ports

串口属性(property of serial port)

评估板型号
(evaluation board model)
SOC接口
(SOC interface)
系统设备
(system device)
信号名称
(name of signal)
接口位置
(interface position)
MY-IMX6-EK140
UART1
ttymxc0
UART1_*
<thead> </thead> <tbody> </tbody>
J7
UART2
ttymxc1
UART2_*
<thead> </thead> <tbody> </tbody>
J1
UART3
ttymxc2
UART3_*
<thead> </thead> <tbody> </tbody>
J1
UART4
ttymxc3
UART4_*
<thead> </thead> <tbody> </tbody>
J1
UART5
ttymxc4
UART5_*
<thead> </thead> <tbody> </tbody>
J1
UART6
ttymxc5
UART6_*
<thead> </thead> <tbody> </tbody>
J1
UART7
ttymxc6
UART7_*
<thead> </thead> <tbody> </tbody>
J1
UART8
ttymxc7
UART8_*
J1

串口测试(interface)

1)测试说明
test intruction
测试的应用程序会配置串口为loopback模式,并进行loopback测试。测试中我们以UART2(ttymxc1)为例。
the test application will configure serial port as mode of loopback,and conduct loopback test.we only take UART2(ttymxc1)as an example in the tes

2)执行测试命令
execute test command
# /unit_tests/mxc_uart_stress_test.out /dev/ttymxc1 115200 D L 10 1000 O

终端显示“Hit enter to start Loopback”后按下PC上的回车键。
press Enter key on PC when “Hit enter to start Loopback” is shown on termina

测试命令说明:
intruction of test command

/unit_tests/mxc_uart_stress_test.out:测试程序文件
/unit_tests/mxc_uart_stress_test.out:file of test program

/dev/ttymxc1:需要进行测试的串口设备文件

115200:串口测试的波特率
115200:baud rate for serial port

D:关闭流控(loopback测试不能使用流控)
D:close fluid control

L:loopback 测试
L:loopback test

10:测试次数
times of number of test

1000:测试的数据长度(字节)
leghth of data of test

O:显示测试log
display test log

附图(figure)

MY-IMX6-EK140 Linux-3.14 2.6.3.1.png

MY-IMX6-EK140 Linux-3.14 2.6.3.2.png

SPI测试(SPI test)

接口属性(interface property)

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

评估板型号
(evaluation board model)
SOC接口
(SOC interface)
系统设备
(system device)
信号名称
(name of signal)
接口位置
(interface position)
MY-IMX6-EK140
ECSPI1 spidev0.0
ECSPI1_*
<thead> </thead> <tbody> </tbody>
J7:[23,25,…]
ECSPI2 spidev1.0
ECSPI2_*
J7:[24,26,…]

说明(instruction)

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

测试方法(test method)

1)执行测试
execute test

  • SPI1测试

SPI1 test

短接SPI1的MISO和MISO管脚。
short connect pins of MISO and MISO of SPI1
# ~/my-demo/linux-3.14.52/spidev_test.out -D /dev/spidev0.0 -s 1000000

  • SPI2测试
    SPI2 test

短接SPI2的MISO和MISO管脚。
short connect pins of MISO and MISO of SPI2
# ~/my-demo/linux-3.14.52/spidev_test.out -D /dev/spidev1.0 -s 1000000

2)测试结果
test result

如果SPI正常,在终端上会看到如下字符:
if SPI is normal, you can see the following charaters on the terminal

FF FF FF FF FF FF
40 00 00 00 00 95
FF FF FF FF FF FF
FF FF FF FF FF FF
FF FF FF FF FF FF
DE AD BE EF BA AD
F0 0D

附图(figure)

MY-IMX6-EK140 Linux-3.14 2.7.4.1.png

背光测试(test of backlight)

接口属性(interface property)

评估板型号
(evaluation board model)
SOC接口
(SOC interface)
系统设备
(system device)
信号名称
(name of signal)
接口位置
(interface position)
MY-IMX6-EK140
PWM4
backlight.8
PWM4
--

测试方法(test method)

1)查看背光可支持的最大亮度等级
check the maximum brightness grade supported by backlight
# cat /sys/devices/soc0/backlight.8/backlight/backlight.8/max_brightness

2)查看当前背光亮度等级
check current brightness grade of backlight
# cat /sys/devices/soc0/backlight.8/backlight/backlight.8/brightness

3)控制背光亮度等级(下面命令将背光等级调到3)
control brightness grade of backlight
# echo 3 > /sys/devices/soc0/backlight.8/backlight/backlight.8/brightness

可以看到显示屏的亮度发生了变化。
you can see the change of brightness of screen

附图(figure)

MY-IMX6-EK140 Linux-3.14 2.8.3.1.png

CAN接口测试 (CAN interface test)

接口属性(interface property)

评估板型号
(evaluation board model)
SOC接口
(SOC interface)
系统设备
(system device)
信号名称
(name of signal)
接口位置
(interface position)
MY-IMX6-EK140
CAN1
can0
CAN1_* <thead> </thead> <tbody> </tbody>
J1
CAN2
can1
CAN2_* J1

测试说明(test instruction)

  MY-IMX6-EK140从CPU上引出了CAN信号,但是在EK140上不带CAN收发芯片,所以不能直接测试CAN。如果需要测试CAN的收发,需要外接CAN收发芯片或CAN收发器。
MY-IMX6-EK140 lead out CAN signal from CPU,but there is not CAN receiving chip on EK140 ,so CAN can't be tested directly。if want to test the transceiver of CAN,need to connect externally CAN transceiving chip or CAN transceiver.

RTC测试(RTC test)

测试说明(test instruction)

   1)受快递运输影响,开发板发货时不带电池。测试RTC前请自备纽扣电池并安装到评估板上。
due to restrictions in transportation,evaluation board doesn't contatin battery in delivery。before RTC test please prepare button cell to install on the evaluation board
2)MY-IMX6-MB140不带RTC,RTC在MY-IMX6-EXT140上,没有EXT140的客户可跳过此测试。
MY-IMX6-MB140 doesn't carry RTC,RTC is on MY-IMX6-EXT140,user who doesn't have EXT140 can skip this test
3)MY-IMX6-EK140的电池座在底板背面。
battery holder of MY-IMX6-EK140 is on rear view of base board

测试方法(test method)

   1)断电重启设备,系统启动完成后查看当前系统时间和硬件时间。
power off then reboot device, view the time of system and hardware after system booting is over

# date
# hwclock

   2)设置系统时钟,并同步到RTC芯片
set system clock and synchronously set to RTC chip.
# hwclok –w
3)断电重启评估板,查看当前系统时钟和硬件时钟
power off and reboot evaluation board,check current system clock and hardware clock
# date
# hwclock

附图(figure)

MY-IMX6-EK140 Linux-3.14 2.10.3.1.png

MY-IMX6-EK140 Linux-3.14 2.10.3.1.png

MY-IMX6-EK140 Linux-3.14 2.10.3.1.png

WatchDog测试(WatchDog test)

测试说明(test instruction)

   WatchDog测试包括2项:一项是复位测试,一项是喂狗测试。

WatchDog test includes two items:one is reset test,the other is feed dog test

复位测试(re-set test)

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

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

3)测试结果<br>
<span style="background:#CCCCCC">test result</span><br>
运行测试命令后等待几秒,WatchDog超时,系统被复位。将会在终端看到系统重新启动输出的信息。<br>

  wait for a few seconds after running of test command,WatchDog timeout,system is resetted。you can see information outputed by system rebooting on terminal
MY-IMX6-EK140 Linux-3.14 2.11.2.1.png

喂狗测试 (test of feeding dog)

   1)测试说明

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

2)执行测试<br>

   execute test

  • 启动WatchDog

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

  • 查看当前时间

view current time
# date
MY-IMX6-EK140 Linux-3.14 2.11.3.1.png

3)验证<br>

  verify

  • 查看当前时间

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

  • 停止喂狗

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