MY-IMX6-EK200 Linux-4.1.15 测试手册(3)
本帖最后由 Anxyuuu 于 2019-4-25 10:13 编辑【接上一章节MY-IMX6-EK200 Linux-4.1.15 测试手册(2)】
10.2ECSPI2 测试位置:J7: 8,10测试设备:/dev/spidev1.0测试指令# /my-demo/linux-4.1.15/MY_SPIDEV_TEST_L4115_MYIMX6A9.out -D /dev/spidev1.0
spi mode: 0bits per word: 8max 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
11Watchdog 测试
11.1超时复位测试# /unit_tests/wdt_driver_test.out 10 15 1
Starting wdt_driver (timeout: 10, sleep: 15, test: write)Trying to set timeout value=10 secondsThe actual timeout was set to 10 secondsNow reading back -- The timeout is 10 seconds
U-Boot 2016.03-svn270 (Oct 09 2018 - 14:44:15 +0800)
CPU: Freescale i.MX6Q rev1.5 996 MHz (running at 792 MHz)CPU: Extended Commercial temperature grade (-20C to 105C) at 45CReset cause: WDOGBoard: MYZR i.MX6 Evaluation Kit
11.2喂狗测试# /unit_tests/wdt_driver_test.out 4 2 1 &
748Starting wdt_driver (timeout: 4, sleep: 2, test: write)Trying to set timeout value=4 secondsThe actual timeout was set to 4 secondsNow reading back -- The timeout is 4 seconds
12RTC 测试查看当前系统时钟# date
Wed Sep 26 00:27:45 UTC 2018查看当前RTC芯片时钟# hwclock
Wed Sep 26 00:28:01 20180.000000 seconds 设置系统时钟,并同步到RTC芯片# date -s "2018-09-21 12:34:56"
Fri Sep 21 12:34:56 UTC 2018将系统时钟写入硬件时钟# hwclock -w断电重启评估板查看当前系统时钟# date
Fri Sep 21 12:36:11 UTC 2018查看当前RTC芯片时钟# hwclock
Fri Sep 21 12:36:16 20180.000000 seconds
13定时唤醒测试设定 10 秒后产生唤醒事件# echo +10 > /sys/class/rtc/rtc1/wakealarm 使设备进入# echo mem > /sys/power/state睡眠信息PM: Syncing filesystems ... done.Freezing user space processes ... (elapsed 0.001 seconds) done.Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.Suspending console(s) (use no_console_suspend to debug)PM: suspend of devices complete after 59.213 msecsPM: suspend devices took 0.060 secondsPM: late suspend of devices complete after 1.004 msecsPM: noirq suspend of devices complete after 1.031 msecsDisabling non-boot CPUs ...CPU1: shutdownCPU2: shutdownCPU3: shutdownEnabling non-boot CPUs ...CPU1 is upCPU2 is upCPU3 is upPM: noirq resume of devices complete after 1.138 msecsPM: early resume of devices complete after 1.136 msecsPM: resume of devices complete after 116.878 msecsPM: resume devices took 0.120 secondsRestarting tasks ... done.唤醒信息(elapsed 0.012 seconds) done.PM: suspend of devices complete after 693.963 msecsPM: suspend devices took 0.700 secondsPM: late suspend of devices complete after 2.419 msecsPM: noirq suspend of devices complete after 2.303 msecsDisabling non-boot CPUs ...PM: noirq resume of devices complete after 1.402 msecsPM: early resume of devices complete after 1.476 msecsPM: resume of devices complete after 121.763 msecsPM: resume devices took 0.130 secondsRestarting tasks ... done.
14音频测试
14.1播放音频# aplay /unit_tests/audio8k16S.wav
Playing WAVE '/unit_tests/audio8k16S.wav' : Signed 16 bit Little Endian, Rate 8000 Hz, Stereo
14.2音频录音录音# arecord -d 5 -f S16_LE -t wav foobar.wav播放录音# aplay foobar.wav
15显示屏(选配)测试特别说明: 当U-Boot 版本u-boot-2016.03 svn315及以上 内核 版本linux-3.0.35svn31及以上 linux-3.14.52 svn369及以上 linux-3.14.52 svn368及以上 烧录工具 MfgTool-MYIMX6A9-L* svn181及以上 请参考《MY-IMX6-A9系列:显示功能测试》进行测试一般情况下则按照如下方法测试在系统启动过程中,可以看到 Linux 小企鹅和 OpenEmbedded 启动画面。
【下章节为MY-IMX6-EK200 Linux-4.1.15 测试手册(4)】
页:
[1]