查看“MYZR-IMX6-EK140P Linux-4.1.15 测试手册”的源代码
←
MYZR-IMX6-EK140P Linux-4.1.15 测试手册
跳转至:
导航
、
搜索
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
[^_^]: MY-IMX6-EK140P Linux-4.1.15 测试手册 <br /> ### 测试环境 * 开发板型号:MYIMX6140P-6Y-512M-4G * 内核版本:Linux-4.1.15 * 文件系统:L4115-core-image-base-myimx6a7.tar.bz2 <br /> ### 网口测试 ##### ETH0 测试 * 关闭 ETH1 <pre> # ifconfig eth1 down </pre> * 配置 ETH0 <pre> # ifconfig eth0 192.168.137.81 </pre> * 使用 ping 进行测试 <pre> # ping 192.168.137.99 -c 2 -w 4 PING 192.168.137.99 (192.168.137.99): 56 data bytes 64 bytes from 192.168.137.99: seq=0 ttl=128 time=0.838 ms 64 bytes from 192.168.137.99: seq=1 ttl=128 time=0.449 ms --- 192.168.137.99 ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max = 0.449/0.643/0.838 ms </pre> ##### ETH1 测试 * 关闭 ETH0 <pre> # ifconfig eth0 down </pre> * 配置 ETH0 <pre> # ifconfig eth1 192.168.137.82 </pre> * 使用 ping 进行测试 <pre> # ping 192.168.137.99 -c 2 -w 4 PING 192.168.137.99 (192.168.137.99): 56 data bytes 64 bytes from 192.168.137.99: seq=0 ttl=128 time=0.999 ms 64 bytes from 192.168.137.99: seq=1 ttl=128 time=0.503 ms --- 192.168.137.99 ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max = 0.503/0.751/0.999 ms </pre> ### USB 测试 * 插入U盘 <pre> usb 1-1.4: new high-speed USB device number 4 using ci_hdrc usb-storage 1-1.4:1.0: USB Mass Storage device detected scsi host0: usb-storage 1-1.4:1.0 scsi 0:0:0:0: Direct-Access Mass Storage Device 1.00 PQ: 0 ANSI: 0 CCS sd 0:0:0:0: [sda] 7716864 512-byte logical blocks: (3.95 GB/3.67 GiB) sd 0:0:0:0: [sda] Write Protect is off sd 0:0:0:0: [sda] No Caching mode page found sd 0:0:0:0: [sda] Assuming drive cache: write through sda: sda1 sda2 sd 0:0:0:0: [sda] Attached SCSI removable disk </pre> * 拔出U盘 <pre> usb 1-1.4: USB disconnect, device number 4 </pre> ### TF卡测试 * 查看内核输入的信息 <pre> # dmesg | grep mmc0 mmc0: SDHCI controller on 2190000.usdhc [2190000.usdhc] using ADMA mmc0: host does not support reading read-only switch, assuming write-enable mmc0: new high speed SDHC card at address 1234 mmcblk0: mmc0:1234 SA04G 3.67 GiB </pre> * 查看系统的TF卡设备 <pre> # ls /dev/mmcblk0* /dev/mmcblk0 /dev/mmcblk0p1 /dev/mmcblk0p2 </pre> ### 标准 GPIO 测试 * 配置 P21:36 为输出 <pre> # OUT_IO_OUT_NUM=4 # echo ${OUT_IO_OUT_NUM} > /sys/class/gpio/export # echo "out" > /sys/class/gpio/gpio${OUT_IO_OUT_NUM}/direction # echo 0 > /sys/class/gpio/gpio${OUT_IO_OUT_NUM}/value </pre> * 配置 P21:35 为输入 <pre> # OUT_IO_IN_NUM=3 # echo ${OUT_IO_IN_NUM} > /sys/class/gpio/export # echo "in" > /sys/class/gpio/gpio${OUT_IO_IN_NUM}/direction </pre> * 短接 P21: 35,36 * 配置 P21:36 输出高电平并通过 P21:35 读取输入电平状态 <pre> # echo 1 > /sys/class/gpio/gpio${OUT_IO_OUT_NUM}/value # cat /sys/class/gpio/gpio${OUT_IO_IN_NUM}/value </pre> * 配置 P21:36 输出低电平并通过 P21:35 读取输入电平状态 <pre> # echo 0 > /sys/class/gpio/gpio${OUT_IO_OUT_NUM}/value # cat /sys/class/gpio/gpio${OUT_IO_IN_NUM}/value </pre> ### GPIO-LED 测试 ##### led-heartbeat * led-heartbeat 连接到 D11,系统启动后可以看到 D11 在有规律的闪烁。 ##### led-timer * led-timer 连接到 D12,系统启动后可以看到 D12 在有规律的闪烁。 * 更改灭的时间 <pre> # echo 1000 > /sys/class/leds/led-timer/delay_off </pre> * 更改亮的时间 <pre> # echo 2000 > /sys/class/leds/led-timer/delay_on </pre> ##### led-default * led-default 连接到 D8,系统启动后默认状态为常亮。 * 使 D8 灭 <pre> echo 0 > /sys/class/leds/default/brightness </pre> * 使 D8 常亮 <pre> echo 1 > /sys/class/leds/default/brightness </pre> ### PWM 测试 ##### PWM-LED <pre> # PWM_DEV=pwmchip4 # echo 0 > /sys/class/pwm/$PWM_DEV/export # echo 1000000000 > /sys/class/pwm/$PWM_DEV/pwm0/period # echo 100000000 > /sys/class/pwm/$PWM_DEV/pwm0/duty_cycle # echo 1 > /sys/class/pwm/$PWM_DEV/pwm0/enable </pre> * 说明:可以看到 LED(D7) 在 1 秒(1000000000 纳秒)内闪烁一次(高电平持续时间为 100000000 纳秒 = 0.1 秒)。 ##### PWM-Buzzer <pre> # PWM_DEV=pwmchip1 # echo 0 > /sys/class/pwm/$PWM_DEV/export # echo 1000000000 > /sys/class/pwm/$PWM_DEV/pwm0/period # echo 100000000 > /sys/class/pwm/$PWM_DEV/pwm0/duty_cycle # echo 1 > /sys/class/pwm/$PWM_DEV/pwm0/enable </pre> * 说明:可以听到蜂鸣器在 1 秒(1000000000 纳秒)内响一次(高电平持续时间为 100000000 纳秒 = 0.1 秒)。 ### 串口测试 ##### UART2 * 位置:P21:27,28 * 设备:/dev/ttymxc1 * 测试指令 <pre> # /my-demo/linux-4.1.15/uart_test.out /dev/ttymxc1 "www.myzr.com.cn" Welcome to TTYtest Send test data------www.myzr.com.cn read char is w read char is w read char is w read char is . read char is m read char is y read char is z read char is r read char is . read char is c read char is o read char is m read char is . read char is c read char is n Read Test Data finished,Read Test Data is-------www.myzr.com.cn </pre> ##### UART3 * 位置:P21: 25,26 * 设备:/dev/ttymxc2 * 测试指令 <pre> # /my-demo/linux-4.1.15/uart_test.out /dev/ttymxc2 "www.myzr.com.cn" Welcome to TTYtest Send test data------www.myzr.com.cn read char is w read char is w read char is w read char is . read char is m read char is y read char is z read char is r read char is . read char is c read char is o read char is m read char is . read char is c read char is n Read Test Data finished,Read Test Data is-------www.myzr.com.cn </pre> ### CAN 测试 * 测试准备 将CAN1的CAN_L与CAN2的CAN_L连接;将CAN1的CAN_H与CAN2的CAN_H连接。 * 配置 CAN1 (can0) <pre> # ip link set can0 up type can bitrate 125000 </pre> * 配置 CAN2 (can1) <pre> # ip link set can1 up type can bitrate 125000 </pre> * CAN1 (can0) 后台接收 <pre> # candump can0 & </pre> * CAN2 (can1) 发送数据 <pre> # cansend can1 1F334455#1122334455667788 </pre> ### SPI测试 ##### ECSPI1 测试 * 位置:P21: 3,4 * 测试设备:/dev/spidev0.0 * 测试指令 <pre> # /my-demo/linux-4.1.15/spidev_test.out -D /dev/spidev0.0 spi mode: 0 bits per word: 8 max speed: 500000 Hz (500 KHz) FF FF FF FF FF FF 40 00 00 00 00 95 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF DE AD BE EF BA AD F0 0D </pre> ##### ECSPI2 测试 * 位置:P21: 9,10 * 测试设备:/dev/spidev1.0 * 测试指令 <pre> # /my-demo/linux-4.1.15/spidev_test.out -D /dev/spidev1.0 spi mode: 0 bits per word: 8 max speed: 500000 Hz (500 KHz) FF FF FF FF FF FF 40 00 00 00 00 95 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF DE AD BE EF BA AD F0 0D </pre> ### Watchdog 测试 ##### 超时复位测试 <pre> # /unit_tests/wdt_driver_test.out 10 15 1 Starting wdt_driver (timeout: 10, sleep: 15, test: write) Trying to set timeout value=10 seconds The actual timeout was set to 10 seconds Now reading back -- The timeout is 10 seconds U-Boot 2016.03-svn246 (Sep 11 2018 - 16:45:21 +0800) CPU: Freescale i.MX6ULL rev1.0 528 MHz (running at 396 MHz) CPU: Industrial temperature grade (-40C to 105C) at 49C Reset cause: WDOG Board: MYIMX6EK140P-6Y </pre> ##### 喂狗测试 <pre> # /unit_tests/wdt_driver_test.out 4 2 1 & [1] 603 root@myimx6ek140p:~# Starting wdt_driver (timeout: 4, sleep: 2, test: write) Trying to set timeout value=4 seconds The actual timeout was set to 4 seconds Now reading back -- The timeout is 4 seconds </pre> ### RTC 测试 * 查看当前系统时钟 <pre> # date Wed Sep 19 14:57:13 UTC 2018 </pre> * 查看当前RTC芯片时钟 <pre> # hwclock Wed Sep 19 14:58:36 2018 0.000000 seconds </pre> * 设置系统时钟,并同步到RTC芯片 <pre> # date -s "2018-09-21 12:34:56" Fri Sep 21 12:34:56 UTC 2018 </pre> * 将系统时钟写入硬件时钟 <pre> # hwclock -w </pre> * 断电重启评估板 * 查看当前系统时钟 <pre> # date Fri Sep 21 12:36:11 UTC 2018 </pre> * 查看当前RTC芯片时钟 <pre> # hwclock Fri Sep 21 12:36:16 2018 0.000000 seconds </pre> ### 音频测试 ##### 播放音频 <pre> # aplay /unit_tests/audio8k16S.wav Playing WAVE '/unit_tests/audio8k16S.wav' : Signed 16 bit Little Endian, Rate 8000 Hz, Stereo </pre> ##### 音频录音 * 录音 <pre> # arecord -d 5 -f S16_LE -t wav foobar.wav </pre> * 播放录音 <pre> # aplay foobar.wav </pre> ### 显示屏(选配)测试 在系统启动过程中,可以看到 Linux 小企鹅和 OpenEmbedded 启动画面。 ### FXLS8471(选配)测试 * 使传感器 Enable <pre> # echo 1 > /sys/class/misc/FreescaleAccelerometer/enable </pre> * 查看传感器数据 <pre> # cat /sys/class/misc/FreescaleAccelerometer/data </pre> ### MAG3110(选配)测试 * 使传感器 Enalbe <pre> # echo 1 > /sys/class/misc/FreescaleGyroscope/enable </pre> * 测试 <pre> # evtest </pre> ### FXAS2100(选配)测试 * 测试 <pre> # evtest </pre> <br /> -------------------------------------------------------------------------------- <pre> -------------------------------------------------------------------------------- * Looking forward to communicating with you for more functions and field applications. * 珠海明远智睿科技有限公司 * ZhuHai MYZR Technology CO.,LTD. * Latest Update: 2018/09/26 -------------------------------------------------------------------------------- </pre>
返回至
MYZR-IMX6-EK140P Linux-4.1.15 测试手册
。
导航菜单
个人工具
登录
命名空间
页面
讨论
变种
视图
阅读
查看源代码
查看历史
更多
搜索
[-_-]
NXP平台:
MYZR-IMX6-EK200
MYZR-IMX6-EK200(EN)
MYZR-IMX6-EK314
MYZR-IMX6-EK314(EN)
MYZR-IMX6-EK336
MYZR-IMX6-EK336(EN)
MYZR-IMX6-EK140
MYZR-IMX6-EK140(EN)
MYZR-IMX6-EK140P
MYZR-IMX6-EK140P(EN)
MYZR-IMX8M-EK300
MYZR-IMX8M-EK300(EN)
MYZR-IMX8M-EVK
MYZR-IMX8Mmini-EK240
MYZR-IMX8Mmini-EK240(EN)
MYZR-IMX28-EK142
MYZR-IMX28-EK142(EN)
MYZR-LS1012A-EK200
MYZR-LS1012A-EK200(EN)
Rockchip平台:
MYZR-RK3288-EK314
MYZR-RK3288-EK314(EN)
MYZR-RK3399-EK314
MYZR-RK3399-EK314(EN)
Allwinner平台:
MYZR-R16-EK166
MYZR-R16-EK166(EN)
Microchip平台:
MYZR-SAMA5-EK200
MYZR-SAMA5-EK200(EN)
网关产品:
GW200
GW300
GW310/GW311
ST平台:
MYZR-STM32-EK152
所有页面
工具
链入页面
相关更改
特殊页面
页面信息