MY-IMX6-EK200 Linux-4.1.15 测试手册(1)
本帖最后由 Anxyuuu 于 2019-4-24 11:58 编辑明远智睿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.1ETH0关闭 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 ms64 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 999msrtt min/avg/max/mdev = 0.324/0.567/0.811/0.244 ms
2.2ETH1 测试关闭 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 ms64 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 1001msrtt min/avg/max/mdev = 1.546/2.792/4.039/1.247 ms
3USB 测试插入U盘usb 1-1.2: new high-speed USB device number 5 using ci_hdrcusb-storage 1-1.2:1.0: USB Mass Storage device detectedscsi host1: usb-storage 1-1.2:1.0scsi 1:0:0:0: Direct-Access TOSHIBATransMemory 1.00 PQ: 0 ANSI: 4sd 1:0:0:0: 15148608 512-byte logical blocks: (7.75 GB/7.22 GiB)sd 1:0:0:0: Write Protect is offsd 1:0:0:0: Write cache: disabled, read cache: enabled, doesn't support DPO or FUA sda: sda4sd 1:0:0:0: Attached SCSI removable disk拔出U盘usb 1-1.2: USB disconnect, device number 5
4SD卡测试插入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
6GPIO-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_onled-default使 led-default (D7) 灭echo 0 > /sys/class/leds/default/brightness使 led-default (D7) 常亮echo 1 > /sys/class/leds/default/brightnessled-gpio使 led-gpio (D10) 灭echo 0 > /sys/class/leds/gpio/brightness使 led-gpio (D10) 常亮echo 1 > /sys/class/leds/gpio/brightness
7GPIO-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-keysSelect the device event number :选择 gpio-keys 所对应的序号Select the device event number : 1
Input driver version is 1.0.1Input device ID: bus 0x19 vendor 0x1 product 0x1 version 0x100Input 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 1Event: time 1537921332.815219, -------------- SYN_REPORT ------------Event: time 1537921332.985211, type 1 (EV_KEY), code 114 (KEY_VOLUMEDOWN), value 0Event: time 1537921332.985211, -------------- SYN_REPORT ------------Event: time 1537921335.355204, type 1 (EV_KEY), code 115 (KEY_VOLUMEUP), value 1Event: time 1537921335.355204, -------------- SYN_REPORT ------------Event: time 1537921335.535203, type 1 (EV_KEY), code 115 (KEY_VOLUMEUP), value 0Event: time 1537921335.535203, -------------- SYN_REPORT ------------Event: time 1537921337.375207, type 1 (EV_KEY), code 116 (KEY_POWER), value 1Event: time 1537921337.375207, -------------- SYN_REPORT ------------Event: time 1537921337.535204, type 1 (EV_KEY), code 116 (KEY_POWER), value 0Event: time 1537921337.535204, -------------- SYN_REPORT ------------
【下章节为MY-IMX6-EK200 Linux-4.1.15 测试手册(2)】
页:
[1]