435|0

290

帖子

0

TA的资源

禁止发言

楼主
 

MY-IMX6-EK200 Linux-4.1.15 测试手册(1) [复制链接]

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


1  测试环境
开发板型号:MY-IMX6-EK200-6Q-2G-16G
内核版本:Linux-4.1.15
文件系统:L4115-fsl-image-qt5-myimx6a9.tar.bz2


2  网口测试

2.1  ETH0
关闭 ETH1
# ifconfig eth1 down
配置 ETH0
# ifconfig eth0 192.168.137.81  
使用 ping 进行测试
# ping 192.168.137.99 -c 2 -w 4

PING 192.168.137.99 (192.168.137.99) 56(84) bytes of data.
64 bytes from 192.168.137.99: icmp_seq=1 ttl=128 time=0.811 ms
64 bytes from 192.168.137.99: icmp_seq=2 ttl=128 time=0.324 ms

--- 192.168.137.99 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.324/0.567/0.811/0.244 ms


2.2  ETH1 测试
关闭 ETH0
# ifconfig eth0 down  
配置 ETH0
# ifconfig eth1 192.168.137.82  
使用 ping 进行测试
# ping 192.168.137.99 -c 2 -w 4  

PING 192.168.137.99 (192.168.137.99) 56(84) bytes of data.
64 bytes from 192.168.137.99: icmp_seq=1 ttl=128 time=1.54 ms
64 bytes from 192.168.137.99: icmp_seq=2 ttl=128 time=4.03 ms

--- 192.168.137.99 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 1.546/2.792/4.039/1.247 ms


3  USB 测试
插入U盘
usb 1-1.2: new high-speed USB device number 5 using ci_hdrc
usb-storage 1-1.2:1.0: USB Mass Storage device detected
scsi host1: usb-storage 1-1.2:1.0
scsi 1:0:0:0: Direct-Access     TOSHIBA  TransMemory      1.00 PQ: 0 ANSI: 4
sd 1:0:0:0: [sda] 15148608 512-byte logical blocks: (7.75 GB/7.22 GiB)
sd 1:0:0:0: [sda] Write Protect is off
sd 1:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
sda: sda4
sd 1:0:0:0: [sda] Attached SCSI removable disk
拔出U盘
usb 1-1.2: USB disconnect, device number 5


4  SD卡测试
插入SD卡
mmcblk2: mmc2:1234 SA02G 1.83 GiB
mmcblk2:
弹出SD卡
mmc2: card 1234 removed


5  标准 GPIO 测试
EIM_A25__GPIO5_IO02 J7:4
EIM_D23__GPIO3_IO23 J1:12
EIM_D28__GPIO3_IO28 J1:8
EIM_D29__GPIO3_IO29 J1:10
EIM_D30__GPIO3_IO30 J21:12
SD1_CLK__GPIO1_IO20 J4:8
SD1_DAT0__GPIO1_IO16 J14:18
SD2_CMD__GPIO1_IO11 J4:13
SD2_CLK__GPIO1_IO10 J4:7
SD2_DAT0__GPIO1_IO15 J4:3
SD2_DAT1__GPIO1_IO14 J4:5
SD2_DAT2__GPIO1_IO13 J4:9
SD2_DAT3__GPIO1_IO12 J4:11
SD3_DAT5__GPIO7_IO00 J21:11
GPIO_19__GPIO4_IO05 J7:3

# OUT_IO_NUMBER=85
# echo ${OUT_IO_NUMBER} > /sys/class/gpio/export
# echo out > /sys/class/gpio/gpio${OUT_IO_NUMBER}/direction
# echo 0 > /sys/class/gpio/gpio${OUT_IO_NUMBER}/value
# echo 1 > /sys/class/gpio/gpio${OUT_IO_NUMBER}/value


6  GPIO-LED 测试
led-heartbeat
说明:led-heartbeat 连接到 D8,系统启动后可以看到 D8 在有规律的闪烁。
led-timer
说明:led-timer 连接到 D9,系统启动后可以看到 D9 在有规律的闪烁。
更改 led-timer (D9) 灭的时间
# echo 1000 > /sys/class/leds/led-timer/delay_off  
更改 led-timer (D9) 亮的时间
# echo 2000 > /sys/class/leds/led-timer/delay_on  
led-default
使 led-default (D7) 灭
echo 0 > /sys/class/leds/default/brightness  
使 led-default (D7) 常亮
echo 1 > /sys/class/leds/default/brightness  
led-gpio
使 led-gpio (D10) 灭
echo 0 > /sys/class/leds/gpio/brightness  
使 led-gpio (D10) 常亮
echo 1 > /sys/class/leds/gpio/brightness  


7  GPIO-KEY 测试
运行 evtest 准备测试
# evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0:  WM8962 Beep Generator
/dev/input/event1:  gpio-keys
Select the device event number [0-1]:
选择 gpio-keys 所对应的序号
Select the device event number [0-1]: 1

Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x1 product 0x1 version 0x100
Input device name: "gpio-keys"
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 114 (KEY_VOLUMEDOWN)
Event code 115 (KEY_VOLUMEUP)
Event code 116 (KEY_POWER)
Properties:
Testing ... (interrupt to exit)
按动开发板上的按键
Event: time 1537921332.815219, type 1 (EV_KEY), code 114 (KEY_VOLUMEDOWN), value 1
Event: time 1537921332.815219, -------------- SYN_REPORT ------------
Event: time 1537921332.985211, type 1 (EV_KEY), code 114 (KEY_VOLUMEDOWN), value 0
Event: time 1537921332.985211, -------------- SYN_REPORT ------------
Event: time 1537921335.355204, type 1 (EV_KEY), code 115 (KEY_VOLUMEUP), value 1
Event: time 1537921335.355204, -------------- SYN_REPORT ------------
Event: time 1537921335.535203, type 1 (EV_KEY), code 115 (KEY_VOLUMEUP), value 0
Event: time 1537921335.535203, -------------- SYN_REPORT ------------
Event: time 1537921337.375207, type 1 (EV_KEY), code 116 (KEY_POWER), value 1
Event: time 1537921337.375207, -------------- SYN_REPORT ------------
Event: time 1537921337.535204, type 1 (EV_KEY), code 116 (KEY_POWER), value 0
Event: time 1537921337.535204, -------------- SYN_REPORT ------------


【下章节为MY-IMX6-EK200 Linux-4.1.15 测试手册(2)】




此帖出自信息发布论坛
点赞 关注
个人签名明远智睿 您的一站式 嵌入式 方案提供商
 
 

回复
举报
您需要登录后才可以回帖 登录 | 注册

随便看看
查找数据手册?

EEWorld Datasheet 技术支持

相关文章 更多>>
关闭
站长推荐上一条 1/10 下一条

 
EEWorld订阅号

 
EEWorld服务号

 
汽车开发圈

About Us 关于我们 客户服务 联系方式 器件索引 网站地图 最新更新 手机版

站点相关: 国产芯 安防电子 汽车电子 手机便携 工业控制 家用电子 医疗电子 测试测量 网络通信 物联网

北京市海淀区中关村大街18号B座15层1530室 电话:(010)82350740 邮编:100190

电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved
快速回复 返回顶部 返回列表