[资料分享] WIFI模块手册

[复制链接]
241|0
 楼主 | 2018-11-13 09:19 | 显示全部楼层 |阅读模式
MY-8188EUS Linux-4.1.15 User Guide



运行环境

使用的开发板

开发板型号:MY-IMX6-EK140P-6Y

内核版本:Linux-4.1.15

文件系统:fsl-image-linux-myimx6a7.tar.bz2

使用的模块型号

模块型号:RTL8188EUS

其它可支持的设备

MY-IMX6-A9系列:MY-IMX6-EK200、MY-IMX6-EK314、MY-IMX6-EK336

MY-IMX6-A7系列:MY-IMX6-EK140P



使用前的准备

下载模块和内核

文件在网盘中的位置:MYZR-IMX6 > 5_MY-Demo

文件名:my-demo-8188eus-l4115-<date>.tar.xz

把下载的文件复制到开发板上

这个步骤自己采取U盘、SD卡或自己熟悉的其它方式完成。



解压驱动模块和内核

# tar xf my-demo-8188eus-l4115-<date>.tar.xz -C ~

为系统运行准备

MY-IMX6-EK140P 上替换内核

mount /dev/mmcblk1p1 /mnt/

# cp ~/my-demo/zImage-myimx6a7-l4115-svn236 /mnt/zImage-myimx6a7

MY-IMX6-EK200 上替换内核

# mount /dev/mmcblk3p1 /mnt/

# cp ~/my-demo/zImage-myimx6a9-l4115-svn236 /mnt/zImage-myimx6a9

写入存储并重启设备

# sync && reboot



MY-IMX6-EK140P 使用步骤

检查系统是否已经识别到模块

# lsusb



......

Bus 001 Device 003: ID 0bda:8179

......

Insert a module into the Linux Kernel

# insmod ./my-demo/MY_8188EUS_V4324_L4115_IMX6A7.ko



bFWReady == _FALSE call reset 8051...

usbcore: registered new interface driver rtl8188eu

Configuration

Generate a WPA PSK from an ASCII passphrase for a SSID

usage: wpa_passphrase <ssid> [passphrase]



# wpa_passphrase MYZR-OPEN Myzr2012 > /etc/wpa_supplicant.conf

# pkill wpa_supplicant

Connection

# 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

==> rtl8188e_iol_efuse_patch

IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready

Get IP address

# udhcpc -i wlan0



udhcpc (v1.24.1) started

Sending discover...

Sending select for 192.168.124.113...

Lease of 192.168.124.113 obtained, lease time 7200

/etc/udhcpc.d/50default: Adding DNS 114.114.114.114

/etc/udhcpc.d/50default: Adding DNS 114.114.115.115

Network test

# ping -I wlan0 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

Remove a module from the Linux Kernel

# rmmod 8188eu



usbcore: deregistering interface driver rtl8188eu

usb 1-1.1: reset high-speed USB device number 3 using ci_hdrc

扫描二维码,随时随地手机跟帖
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复

您需要登录后才可以回帖
登录 | 注册
高级模式
我要创建版块 申请成为版主

论坛热帖

关闭

热门推荐上一条 /3 下一条

快速回复 返回顶部 返回列表