明远智睿MY-IMX6-EK200 Linux-4.1.15测试手册v2.0(4)
本帖最后由 Anxyuuu 于 2019-3-20 09:26 编辑【接上一章节明远智睿MY-IMX6-EK200 Linux-4.1.15测试手册v2.0(3)】
3第三部分 显示功能测试
3.1操作说明 每项显示功能测试都需要重启系统进入到u-boot命令行,并在u-boot命令行下执行指令。
3.2单屏显示LVDS1 显示
说明:默认为 LVDS1 显示,即上电后不干预启动的情况下,LVDS1 为显示设备。
显式配置 LVDS1 为显示的方法:run load_scr; source; setenv display $disp_fb0_lvds1; saveenv; bootLVDS0 显示run load_scr; source; setenv display $disp_fb0_lvds0; saveenv; bootHDMI 显示run load_scr; source; setenv display $disp_fb0_hdmi; saveenv; bootLCD(RGB) 显示run load_scr; source; setenv display $disp_fb0_lcd; saveenv; boot
3.3双LVDS屏显示LVDS1 + LVDS0 双屏同步显示run load_scr; source; setenv display $disp_lvds_dul; saveenv; bootLVDS1 + LVDS0(fb4) 双屏异步显示run load_scr; source; setenv display $disp_lvds_sep; saveenv; boot
3.4双屏异步显示LVDS1 + HDMI 双屏异步显示run load_scr; source; setenv display $disp_fb0_lvds1 $disp_fb1_hdmi; saveenv; bootLVDS1 + LCD(RGB) 双屏异步显示run load_scr; source; setenv display $disp_fb0_lvds1 $disp_fb1_lcd; saveenv; bootLVDS0 + HDMI 双屏异步显示run load_scr; source; setenv display $disp_fb0_lvds0$disp_fb1_hdmi; saveenv; bootLVDS0 + LCD(RGB) 双屏异步显示run load_scr; source; setenv display $disp_fb0_lvds0 $disp_fb1_lcd; saveenv; bootHDMI + LVDS1 双屏异步显示run load_scr; source; setenv display $disp_fb0_hdmi $disp_fb1_lvds1; saveenv; bootHDMI + LVDS0 双屏异步显示run load_scr; source; setenv display $disp_fb0_hdmi $disp_fb1_lvds0; saveenv; bootLCD(RGB) + LVDS1 双屏异步显示run load_scr; source; setenv display $disp_fb0_lcd $disp_fb1_lvds1; saveenv; bootLCD(RGB) + LVDS0 双屏异步显示run load_scr; source; setenv display $disp_fb0_lcd $disp_fb1_lvds0; saveenv; boot
4第四部分 扩展模块功能演示
4.1RTL8188 模块功能演示(WIFI Client) 【测试说明】:使用RTL8188作为无线网卡连接到WIFI AP。
【接口标识】:WIFI、WIFI_ANT
【系统设备】:wlan0
测试操作
1. 确定“WIFI”标识处有贴上WIFI模块,否则无需进行测试。
2. 把WIFI天线连接到“WIFI_ANT”标识的接口上。
3. 生成 SSID 的 WPA PSK 文件
命令格式: wpa_passphrase <ssid> =====> 输入指令:wpa_passphrase MY-TEST-AP myzr2012 > /etc/wpa_supplicant.confpkill wpa_supplicant 4. 连接=====> 输入指令:wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf
=====> 输出信息:Successfully initialized wpa_supplicantrfkill: Cannot open RFKILL control device==> rtl8188e_iol_efuse_patchIPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready...... 5. 获取 IP=====> 输入指令:udhcpc -i wlan0
=====> 输出信息:udhcpc (v1.23.1) startedSending discover...Sending select for 192.168.43.121...Lease of 192.168.43.121 obtained, lease time 3600/etc/udhcpc.d/50default: Adding DNS 192.168.43.1 6. 测试连接=====> 输入指令:ping -I wlan0 192.168.43.1 -c 2 -w 4
=====> 输出信息:PING 192.168.43.1 (192.168.43.1) from 192.168.43.130 wlan0: 56(84) bytes of data.64 bytes from 192.168.43.1: icmp_seq=1 ttl=64 time=5.66 ms64 bytes from 192.168.43.1: icmp_seq=2 ttl=64 time=9.22 ms
--- 192.168.43.1 ping statistics ---2 packets transmitted, 2 received, 0% packet loss, time 1000msrtt min/avg/max/mdev = 5.663/7.444/9.226/1.783 ms测试结果
“0% packet loss”表示WIFI连接正常。
4.2RTL8188 模块功能演示(WIFI AP mode) 【测试说明】:使用RTL8188作为WIFI AP,并把手机连接到此AP。
【接口标识】:WIFI、WIFI_ANT
【系统设备】:wlan0
测试操作
1. 确定“WIFI”标识处有贴上WIFI模块,否则无需进行测试。
2. 把WIFI天线连接到“WIFI_ANT”标识的接口上。
3. 为 wlan0 配置 IP:=====> 输入指令:ifconfig wlan0 192.168.99.1
=====> 输出信息:==> rtl8188e_iol_efuse_patchIPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready 4. 为 wlan0 启用 DHCP 服务:=====> 输入指令:touch /var/lib/misc/udhcpd.leasesudhcpd -f /etc/my_udhcpd.conf &
=====> 输出信息: 469udhcpd (v1.23.1) started 5. 为 wlan0 启用 Host-AP 功能=====> 输入指令:hostapd /etc/my_hostapd.conf -B
=====> 输出信息:Configuration file: /etc/my_hostapd.confrfkill: Cannot open RFKILL control deviceUsing interface wlan0 with hwaddr e0:b9:4d:7f:e4:40 and ssid "MY_HOSTAP_V25"RTL871X: set group key camid:1, addr:00:00:00:00:00:00, kid:1, type:AESwlan0: interface state UNINITIALIZED->ENABLEDwlan0: AP-ENABLED 5. 客户端设备连接到 Host-AP
至此,开发板的 Host-AP 功能已启用,客户端设备可搜索“MY_HOSTAP_V25”,通过密码“myzr2012”连接到此AP。
测试结果
1. 设备连接成功时产生的信息=====> 输出信息:Sending OFFER of 192.168.12.20Sending OFFER of 192.168.12.20Sending ACK to 192.168.12.20 2. 设备断开连接时产生的信息=====> 输出信息:RTL871X: OnDeAuth(wlan0) reason=3, ta=b4:0b:44:f5:64:2fRTL871X: clear key for addr:b4:0b:44:f5:64:2f, camid:4
4.3EC20 模块测试 【测试说明】:4G连接成功后,开发板向外网发送ICMP报文来验证连接正常。
【接口标识】:MINI_PCIE
【系统设备】:eth2
测试操作
1. 开发板断电,接上4G模块,接上天线并插入SIM卡后启动评估板。
2. 使用指令进行网络连接:=====> 输入指令:/my-demo/gcc-linaro-5.3-arm/quectel-CM &
=====> 输出信息: 540 WCDMA<E_QConnectManager_Linux&Android_V1.1.34 /my-demo/gcc-linaro-5.3-arm/quectel-CM profile = (null)/(null)/(null)/0, pincode = (null) Find /sys/bus/usb/devices/1-1.2 idVendor=2c7c idProduct=0125 Find /sys/bus/usb/devices/1-1.2:1.4/net/eth2 Find usbnet_adapter = eth2 Find /sys/bus/usb/devices/1-1.2:1.4/GobiQMI/qcqmi2 Find qmichannel = /dev/qcqmi2 Get clientWDS = 7 Get clientDMS = 8 Get clientNAS = 9 Get clientUIM = 10 Get clientWDA = 11 requestBaseBandVersion EC20CEFAR02A10M4G requestGetSIMStatus SIMStatus: SIM_READY requestGetProfile cmnet///0 requestRegistrationState2 MCC: 460, MNC: 0, PS: Attached, DataCap: LTE requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED requestRegistrationState2 MCC: 460, MNC: 0, PS: Attached, DataCap: LTE requestSetupDataCall WdsConnectionIPv4Handle: 0x8777e7a0 requestQueryDataCall IPv4ConnectionStatus: CONNECTED ifconfig eth2 up busybox udhcpc -f -n -q -t 5 -i eth2 udhcpc (v1.23.1) started Sending discover... Sending select for 10.25.154.46... Lease of 10.25.154.46 obtained, lease time 7200 /etc/udhcpc.d/50default: Adding DNS 211.136.17.107 /etc/udhcpc.d/50default: Adding DNS 211.136.20.203 3. 测试连接=====> 输入指令:ping -I eth2 www.baidu.com -c 2 -w 4
=====> 输出信息:PING www.baidu.com (14.215.177.38): 56 data bytes64 bytes from 14.215.177.38: seq=0 ttl=49 time=15.753 ms64 bytes from 14.215.177.38: seq=1 ttl=49 time=11.835 ms
--- www.baidu.com ping statistics ---2 packets transmitted, 2 packets received, 0% packet lossround-trip min/avg/max = 11.835/13.794/15.753 ms测试结果
“0% packet loss”表示WIFI连接正常。
多谢分享啊! 感谢啊! 零三翟邢止胃 发表于 2019-3-20 09:28
多谢分享啊! 感谢啊!
不用谢 你这个有4G拨号日志的说明文档吗?cat /var/log/quectel-dial.log 的解释的文档?
页:
[1]