“MY-IMX6-EK140P L4115 测试手册”的版本间的差异

来自明远智睿的wiki
跳转至: 导航搜索
(创建页面,内容为“ == '''网口测试( test of network interface)''' == 接口属性(interface property) <br> {| class="wikitable" |评估板型号 (evaluation board model) |CPU接...”)
 
第1行: 第1行:
 +
<div>
  
 
== '''网口测试( test of network interface)''' ==
 
== '''网口测试( test of network interface)''' ==
第302行: 第303行:
 
(3)输入 0<br>
 
(3)输入 0<br>
 
(4)会有数据输出<br>
 
(4)会有数据输出<br>
 +
</div>

2018年6月11日 (一) 15:23的版本

网口测试( test of network interface)

接口属性(interface property)

评估板型号

(evaluation board model)

CPU接口

(CPU interface)

系统接口

(system interface)

接口丝印

(interface silk screen)

MY-IMX6-EK140 ENET1 eth0 P10
MY-IMX6-EK140 ENET1 eth1 P8

测试方法(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-ek140p L41115 1.1 .jpg
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-ek140p L41115 1.2.jpg

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.
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-ek140p L41115 2.1.jpg


MY-IMX6-ek140p L41115 2.2.jpg


MY-IMX6-ek140p L41115 2.3.jpg


MY-IMX6-ek140p L41115 2.4.jpg

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-ek140p L41115 3.1.jpg


标准GPIO测试(standard GPIO test)

接口属性(interface property)

评估板型号

(evaluation board model)

CPU接口

(CPU interface)

系统设备

(system device)

信号名称

(name of signal)

接口位置

(interface position)

MY-IMX6-EK140 SNVS_TAMPER4 gpio132 SNVS_TAMPER4 P21:17
SNVS_TAMPER8 gpio136 SNVS_TAMPER8 P21:15

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

测试方法(test method)
1)设置需要测试的GPIO的IO序号
set IO order number of GPIO which need to be tested
# OUT_IO_NUMBER=132
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


串口测试

1.测试说明
采用串口自发自收测试。
串口属性:

评估板型号 UARTx TX RX 系统接口
MY-IMX6-EK140P UART3 P21:26 P21:25 ttymxc2
UART2 P21:28 P21:27 ttymxc1

提示:这里只列出测试串口的收发管脚,串口的其他管脚的定义请看原理图。
2.测试方法
(1)进入测试程序目录
# cd /home/root/my-demo/linux-4.1.15/
(2)短接P21的26管脚和25管脚。
(3)./uart_test.out /dev/ttymxc2 “www.myzr.com.cn”
测试结果:

MY-IMX6-ek140p L41115 5.1.jpg


CAN测试

1.测试说明
     MY-IMX6-EK140P上有两组CAN接口。

评估板型号 CANx 信号:CAN_L 信号:CAN_H 系统设备
MY-IMX6-EK140P CAN1 P7:1 P7:2 can1
CAN2 P9:1 P9:2 can2

采用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
测试结果:

MY-IMX6-ek140p L41115 6.1.jpg

WIFI测试

1.测试方法
(1)insmod /home/root/my-demo/linux-3.14.52/8188eu.ko
(2)wpa_passphrase WIFI名称 WIFI密码 > /etc/wpa_supplicant.conf
(3)wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf -B
(4)udhcpc -i wlan0
(5)Ping 百度的ip,如果能ping通,说明测试成功。

FXLS8471测试

1.测试方法
(1)# echo 1 > /sys/class/misc/FreescaleAccelerometer/enable
(2)获取传感器数据:
# cat /sys/class/misc/FreescaleAccelerometer/data


MAG3110测试

(1)# echo 1 > /sys/class/misc/FreescaleGyroscope/enable
(2)# evtest
MY-IMX6-ek140p L41115 9.1.jpg
选择“fxas2100x”对应的event0. 
(3)输入 0
(4)会有数据输出