本帖最后由 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.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)】
|