【接上一章节明远智睿MY-IMX6-EK200 Linux-4.1.15 测试手册(2)】
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 msecs PM: suspend devices took 0.060 seconds PM: late suspend of devices complete after 1.004 msecs PM: noirq suspend of devices complete after 1.031 msecs Disabling non-boot CPUs ... CPU1: shutdown CPU2: shutdown CPU3: shutdown Enabling non-boot CPUs ... CPU1 is up CPU2 is up CPU3 is up PM: noirq resume of devices complete after 1.138 msecs PM: early resume of devices complete after 1.136 msecs PM: resume of devices complete after 116.878 msecs PM: resume devices took 0.120 seconds Restarting tasks ... done. 唤醒信息 (elapsed 0.012 seconds) done. PM: suspend of devices complete after 693.963 msecs PM: suspend devices took 0.700 seconds PM: late suspend of devices complete after 2.419 msecs PM: noirq suspend of devices complete after 2.303 msecs Disabling non-boot CPUs ... PM: noirq resume of devices complete after 1.402 msecs PM: early resume of devices complete after 1.476 msecs PM: resume of devices complete after 121.763 msecs PM: resume devices took 0.130 seconds Restarting 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.35 svn31及以上 linux-3.14.52 svn369及以上 linux-3.14.52 svn368及以上 烧录工具 MfgTool-MYIMX6A9-L* svn181及以上
一般情况下则按照如下方法测试 在系统启动过程中,可以看到 Linux 小企鹅和 OpenEmbedded 启动画面。
16 显示屏配置测试说明:每项显示功能测试都需要重启系统进入到u-boot命令行,输入命令并按确认键。 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 43C Reset cause: POR Board: MYZR i.MX6 Evaluation Kit Model: MY-IMX6-EK200-6Q-2G I2C: ready DRAM: 2 GiB MMC: FSL_SDHC: 0, FSL_SDHC: 1 SF: Detected SST25VF016B with page size 256 Bytes, erase size 64 KiB, total 2 MiB *** Warning - bad CRC, using default environment
No panel detected: default to MY-LVDS-WSVGA Display: MY-LVDS-WSVGA (1024x600) In: serial Out: serial Err: serial Net: FEC [PRIME] Normal Boot Hit any key to stop autoboot: 0 =>
16.1 LVDS1 单屏显示=> setenv display ${disp_fb0_lvds1} => saveenv; boot
16.2 LVDS0 单屏显示=> setenv display ${disp_fb0_lvds0} => saveenv; boot
16.3 HDMI 单屏显示=> setenv display ${disp_fb0_hdmi} => saveenv; boot
16.4 RGB(LCD) 单屏显示=> setenv display ${disp_fb0_lcd} => saveenv; boot
16.5 LVDS1 + LVDS0 双屏同步显示=> setenv display ${disp_lvds_sync} => saveenv; boot
16.6 LVDS1 + LVDS0 双屏同步显示=> setenv display ${disp_lvds_sync} => saveenv; boot
16.7 LVDS1(主) + HDMI 双屏异步显示=> setenv display ${disp_fb0_lvds1} ${disp_fb1_hdmi} => saveenv; boot
16.8 LVDS1(主) + RGB 双屏异步显示=> setenv display ${disp_fb0_lvds1} ${disp_fb1_lcd} => saveenv; boot
16.9 LVDS0(主) + HDMI 双屏异步显示=> setenv display ${disp_fb0_lvds0} ${disp_fb1_hdmi} => saveenv; boot
16.10 LVDS0(主) + RGB 双屏异步显示=> setenv display ${disp_fb0_lvds0} ${disp_fb1_lcd} => saveenv; boot
16.11 HDMI(主) + LVDS1 双屏异步显示=> setenv display ${disp_fb0_hdmi} ${disp_fb0_lvds1} => saveenv; boot
16.12 HDMI(主) + LVDS0 双屏异步显示=> setenv display ${disp_fb0_hdmi} ${disp_fb0_lvds0} => saveenv; boot
16.13 视频播放测试设置Linux的环境变量 # export GSTL=gst-launch-1.0 # export PLAYBIN=playbin # export GPLAY=gplay-1.0 # export GSTINSPECT=gst-inspect-1.0 # export MP4_FILE="/unit_tests/akiyo.mp4" 播放视频到主显示屏 # $GSTL $PLAYBIN uri=file://$MP4_FILE video-sink="imxv4l2sink device=/dev/video17" 播放视频到第二显示屏 # $GSTL $PLAYBIN uri=file://$MP4_FILE video-sink="imxv4l2sink device=/dev/video18"
17 4G模块EC20(选配)测试# /my-demo/linux-4.1.15/MY_EC20_QuectelCM_L4115_MYIMX6A9.out &
[1] 636 [10-01_14:02:10:616] WCDMA<E_QConnectManager_Linux&Android_V1.1.34 [10-01_14:02:10:617] /my-demo/linux-4.1.15/MY_EC20_QuectelCM_L4115_MYIMX6A7.out profile[1] = (null)/(null)/(null)/0, pincode = (null) [10-01_14:02:10:619] Find /sys/bus/usb/devices/1-1.2 idVendor=2c7c idProduct=0125 [10-01_14:02:10:620] Find /sys/bus/usb/devices/1-1.2:1.4/net/eth2 [10-01_14:02:10:620] Find usbnet_adapter = eth2 [10-01_14:02:10:620] Find /sys/bus/usb/devices/1-1.2:1.4/GobiQMI/qcqmi2 [10-01_14:02:10:620] Find qmichannel = /dev/qcqmi2 [10-01_14:02:10:665] Get clientWDS = 7 [10-01_14:02:10:697] Get clientDMS = 8 [10-01_14:02:10:729] Get clientNAS = 9 [10-01_14:02:10:760] Get clientUIM = 10 [10-01_14:02:10:792] Get clientWDA = 11 [10-01_14:02:10:825] requestBaseBandVersion EC20CEFAR02A10M4G [10-01_14:02:10:920] requestGetSIMStatus SIMStatus: SIM_READY [10-01_14:02:10:953] requestGetProfile[1] cmnet///0 [10-01_14:02:10:985] requestRegistrationState2 MCC: 460, MNC: 0, PS: Attached, DataCap: LTE [10-01_14:02:11:017] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED [10-01_14:02:11:081] requestRegistrationState2 MCC: 460, MNC: 0, PS: Attached, DataCap: LTE [10-01_14:02:11:144] requestSetupDataCall WdsConnectionIPv4Handle: 0x87779840 [10-01_14:02:11:241] requestQueryDataCall IPv4ConnectionStatus: CONNECTED [10-01_14:02:11:274] ifconfig eth2 up [10-01_14:02:11:305] busybox udhcpc -f -n -q -t 5 -i eth2 [10-01_14:02:11:321] udhcpc (v1.24.1) started [10-01_14:02:11:433] Sending discover... [10-01_14:02:11:493] Sending select for 10.127.206.63... [10-01_14:02:11:552] Lease of 10.127.206.63 obtained, lease time 7200 [10-01_14:02:11:637] /etc/udhcpc.d/50default: Adding DNS 211.136.17.107 [10-01_14:02:11:638] /etc/udhcpc.d/50default: Adding DNS 211.136.20.203
18 4路视频采集模块(选配)测试# EXEC_FILE=/my-demo/linux-4.1.15/MY_TW6865_DEMO_L4115_MYIMX6A9.out # ${EXEC_FILE} -x 2 -ot 0 -ol 0 -ow 512 -oh 300 -m 2 & # ${EXEC_FILE} -x 3 -ot 0 -ol 512 -ow 512 -oh 300 -m 2 & # ${EXEC_FILE} -x 4 -ot 300 -ol 0 -ow 512 -oh 300 -m 2 & # ${EXEC_FILE} -x 5 -ot 300 -ol 512 -ow 512 -oh 300 -m 2 &
|