测试方法(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
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
3)eth1测试同eth0
USB测试(USB test)
接口属性(interface property)
评估板型号
(evaluation board model)
CPU接口
(CPU interface)
系统接口
(system interface)
接口丝印
(interface silk screen)
MY-IMX6-EK140
USB_OTG1
USB OTG
P18
USB_OTG2
USB HOST
P20
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. u*** 2-1: new high-speed USB device number 12 using ci_hdrc u***-storage 2-1:1.0: USB Mass Storage device detected 3) 拔出USB设备,系统会输出类似如下信息: take out USB device,system will output information like below. u*** 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 u*** u***2: 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)
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)
标准GPIO测试(standard GPIO test)
接口属性(interface property)
评估板型号
(evaluation board model)
CPU接口
(CPU interface)
系统设备
(system device)
信号名称
(name of signal)
接口位置
(interface position)
MY-IMX6-EK140
SNVS_TAMPER1
gpio129
SNVS_TAMPER1
P21:16
测试说明(test instruction) 标准GPIO的测试以GPIO129为例,其它GPIO测试可参照GPIO129的测试方法。 take GPIO129 as an example of standard GPIO test,other GPIO tests refer to the test method of GPIO129
测试方法(test method) 1)设置需要测试的GPIO的IO序号 set IO order number of GPIO which need to be tested # OUT_IO_NUMBER=129 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
采用CAN1发送,CAN0接收的方式。 2.测试方法 (1)将CAN1的CAN_L与CAN2的CAN_L连接;将CAN1的CAN_H与CAN2的CAN_H连接。 (2)# ip link set can0 up type can bitrate 125000 (3)# ip link set can1 up type can bitrate 125000 (4)# candump can0 & (5)# cansend can1 1F334455#1122334455667788 测试结果: