本帖最后由 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; boot LVDS0 显示 run load_scr; source; setenv display $disp_fb0_lvds0; saveenv; boot HDMI 显示 run load_scr; source; setenv display $disp_fb0_hdmi; saveenv; boot LCD(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; boot LVDS1 + 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; boot LVDS1 + LCD(RGB) 双屏异步显示 run load_scr; source; setenv display $disp_fb0_lvds1 $disp_fb1_lcd; saveenv; boot LVDS0 + HDMI 双屏异步显示 run load_scr; source; setenv display $disp_fb0_lvds0$disp_fb1_hdmi; saveenv; boot LVDS0 + LCD(RGB) 双屏异步显示 run load_scr; source; setenv display $disp_fb0_lvds0 $disp_fb1_lcd; saveenv; boot HDMI + LVDS1 双屏异步显示 run load_scr; source; setenv display $disp_fb0_hdmi $disp_fb1_lvds1; saveenv; boot HDMI + LVDS0 双屏异步显示 run load_scr; source; setenv display $disp_fb0_hdmi $disp_fb1_lvds0; saveenv; boot LCD(RGB) + LVDS1 双屏异步显示 run load_scr; source; setenv display $disp_fb0_lcd $disp_fb1_lvds1; saveenv; boot LCD(RGB) + LVDS0 双屏异步显示 run load_scr; source; setenv display $disp_fb0_lcd $disp_fb1_lvds0; saveenv; boot
4 第四部分 扩展模块功能演示
4.1 RTL8188 模块功能演示(WIFI Client) 【测试说明】:使用RTL8188作为无线网卡连接到WIFI AP。
【接口标识】:WIFI、WIFI_ANT
【系统设备】:wlan0
测试操作
1. 确定“WIFI”标识处有贴上WIFI模块,否则无需进行测试。
2. 把WIFI天线连接到“WIFI_ANT”标识的接口上。
3. 生成 SSID 的 WPA PSK 文件
命令格式: wpa_passphrase <ssid> [passphrase] =====> 输入指令: wpa_passphrase MY-TEST-AP myzr2012 > /etc/wpa_supplicant.conf pkill wpa_supplicant 4. 连接 =====> 输入指令: wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf
=====> 输出信息: Successfully initialized wpa_supplicant rfkill: Cannot open RFKILL control device ==> rtl8188e_iol_efuse_patch IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready ...... 5. 获取 IP =====> 输入指令: udhcpc -i wlan0
=====> 输出信息: udhcpc (v1.23.1) started Sending 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 ms 64 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 1000ms rtt min/avg/max/mdev = 5.663/7.444/9.226/1.783 ms 测试结果
“0% packet loss”表示WIFI连接正常。
4.2 RTL8188 模块功能演示(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_patch IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready 4. 为 wlan0 启用 DHCP 服务: =====> 输入指令: touch /var/lib/misc/udhcpd.leases udhcpd -f /etc/my_udhcpd.conf &
=====> 输出信息: [1] 469 udhcpd (v1.23.1) started 5. 为 wlan0 启用 Host-AP 功能 =====> 输入指令: hostapd /etc/my_hostapd.conf -B
=====> 输出信息: Configuration file: /etc/my_hostapd.conf rfkill: Cannot open RFKILL control device Using 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:AES wlan0: interface state UNINITIALIZED->ENABLED wlan0: AP-ENABLED 5. 客户端设备连接到 Host-AP
至此,开发板的 Host-AP 功能已启用,客户端设备可搜索“MY_HOSTAP_V25”,通过密码“myzr2012”连接到此AP。
测试结果
1. 设备连接成功时产生的信息 =====> 输出信息: Sending OFFER of 192.168.12.20 Sending OFFER of 192.168.12.20 Sending ACK to 192.168.12.20 2. 设备断开连接时产生的信息 =====> 输出信息: RTL871X: OnDeAuth(wlan0) reason=3, ta=b4:0b:44:f5:64:2f RTL871X: clear key for addr:b4:0b:44:f5:64:2f, camid:4
4.3 EC20 模块测试 【测试说明】:4G连接成功后,开发板向外网发送ICMP报文来验证连接正常。
【接口标识】:MINI_PCIE
【系统设备】:eth2
测试操作
1. 开发板断电,接上4G模块,接上天线并插入SIM卡后启动评估板。
2. 使用指令进行网络连接: =====> 输入指令: /my-demo/gcc-linaro-5.3-arm/quectel-CM &
=====> 输出信息: [1] 540 [12-18_03:17:06:719] WCDMA<E_QConnectManager_Linux&Android_V1.1.34 [12-18_03:17:06:720] /my-demo/gcc-linaro-5.3-arm/quectel-CM profile[1] = (null)/(null)/(null)/0, pincode = (null) [12-18_03:17:06:723] Find /sys/bus/usb/devices/1-1.2 idVendor=2c7c idProduct=0125 [12-18_03:17:06:723] Find /sys/bus/usb/devices/1-1.2:1.4/net/eth2 [12-18_03:17:06:723] Find usbnet_adapter = eth2 [12-18_03:17:06:723] Find /sys/bus/usb/devices/1-1.2:1.4/GobiQMI/qcqmi2 [12-18_03:17:06:724] Find qmichannel = /dev/qcqmi2 [12-18_03:17:06:794] Get clientWDS = 7 [12-18_03:17:06:826] Get clientDMS = 8 [12-18_03:17:06:858] Get clientNAS = 9 [12-18_03:17:06:890] Get clientUIM = 10 [12-18_03:17:06:922] Get clientWDA = 11 [12-18_03:17:06:954] requestBaseBandVersion EC20CEFAR02A10M4G [12-18_03:17:07:050] requestGetSIMStatus SIMStatus: SIM_READY [12-18_03:17:07:082] requestGetProfile[1] cmnet///0 [12-18_03:17:07:114] requestRegistrationState2 MCC: 460, MNC: 0, PS: Attached, DataCap: LTE [12-18_03:17:07:146] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED [12-18_03:17:07:223] requestRegistrationState2 MCC: 460, MNC: 0, PS: Attached, DataCap: LTE [12-18_03:17:07:274] requestSetupDataCall WdsConnectionIPv4Handle: 0x8777e7a0 [12-18_03:17:07:370] requestQueryDataCall IPv4ConnectionStatus: CONNECTED [12-18_03:17:07:403] ifconfig eth2 up [12-18_03:17:07:452] busybox udhcpc -f -n -q -t 5 -i eth2 [12-18_03:17:07:492] udhcpc (v1.23.1) started [12-18_03:17:07:656] Sending discover... [12-18_03:17:07:706] Sending select for 10.25.154.46... [12-18_03:17:07:766] Lease of 10.25.154.46 obtained, lease time 7200 [12-18_03:17:07:888] /etc/udhcpc.d/50default: Adding DNS 211.136.17.107 [12-18_03:17:07:888] /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 bytes 64 bytes from 14.215.177.38: seq=0 ttl=49 time=15.753 ms 64 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 loss round-trip min/avg/max = 11.835/13.794/15.753 ms 测试结果
“0% packet loss”表示WIFI连接正常。
|