iMX6ULL终结者Linux WIFI驱动实验rtl8723 Wifi联网测试

文章目录
1.1 在Linux内核中添加wifi驱动
1.2 配置Linux内核
1.3 Rtl8723 wifi模块驱动测试

在迅为i.MX6UL终结者开发板上使用的是usb接口的RTL8723 wifi模块,原理图如图 1所示:

可以看到RTL8723模块的接口非常简单,只有DP1和DM1连接到usb HUB芯片上,就可以完成通信电路。RTL8723是realtek公司的wifi芯片,已经提供了wifi驱动源码,就不需要我们自己去编写了,只需要将提供的wifi驱动源码添加到Linux内核中进行编译就可以了。
1.1 在Linux内核中添加wifi驱动
首先获取wifi驱动源码,放到Linux内核drivers/net/wireless目录下,如图 1.1.1所示:

rtl8723BU目录下内容如图 1.1.2所示:

其中Kconfig文件是rtl8723驱动的配置文件,这样可以通过 Linux 内核图形化配置界面来选择是否编译 WIFI 驱动,Kconfig 文件内容如下所示:

当添加完rtl8723 wifi驱动时,需要修改上一级的Kconfig和Makefile。
修改drivers/net/wireless/Kconfig,添加如下内容:
source “drivers/net/wireless/rtl8723BU/Kconfig”
添加完成后如图 1.1.3所示:


添加完成后,在Linux内核的驱动配置界面上才会出现rtl8723的配置选项。
修改drivers/net/wireless/Makefile文件,添加如下内容:
obj-$(CONFIG_RTL8723BU) += rtl8723BU/
修改后如图 1.1.4所示:


1.2 配置Linux内核
添加好rtl8723 wifi驱动并修改完配置文件后,需要在Linux内核中在进行配置。
1、配置支持USB设备
Linux内核配置路径如下:


配置完成如下图 1.2.1所示:

2、配置支持wifi设备
Linux内核配置路径如下:


配置完成如图 1.2.2所示:

3、配置支持IEEE 802.11
Linux内核配置路径如下:


配置完成如图 1.2.3所示:

4、配置rtl8723 wifi驱动
Linux内核配置路径如下:


配置结果如图 1.2.4所示:

直接将rtl8723 wifi模块的驱动编译到内核中去。
以上Linux内核配置完成后,重新编译内核生成zImage,使用新的zImage启动开发板。
1.3 Rtl8723 wifi模块驱动测试
使用新的zImage镜像启动开发板,系统启动过程中会有如图 1.3.1信息打印:


上图说明在Linux系统启动过程中使用了rtl8723 wifi模块的驱动程序。当启动完成驱动后使用“ifconfig -a”命令查看wlan网卡是否存在,结果如图 1.3.2所示:

福利链接:B站搜(北京迅为)入门视频教程免费学习

Linux学习方法-框架学习法;
嵌入式学习之Linux裸机篇
嵌入式学习之Linux入门篇
嵌入式学习之QT进阶篇
新增嵌入式学习之Linux驱动篇
1. General Description 1-1. Product Overview and Functional Description AzureWave Technologies, Inc. introduces the first IEEE 802.11b/g/n WLAN & Bluetooth stamp module ---AW-NB300SM. The stamp module is targeted to mobile devices including Personal Digital ShenZhen Header Office Contact:JackyChen PhoneNo.,:13510094765.email:jackychen@flycastle.com flycastle@126.com Assistants (PDAs), Netbook, Tablet and Gaming Devices which need small package stamp module, low power consumption, multiple interfaces and OS support. By using AW-NB300SM, the customers can easily enable the Wi-Fi, and BT embedded applications with the benefits of high design flexibility, short development cycle, and quick time-to-market. Compliance with the IEEE 802.11b/g/n standard, the AW-NB300SM uses Direct Sequence Spread Spectrum (DSSS), Orthogonal Frequency Division Multiplexing (OFDM), DBPSK, DQPSK, CCK and QAM baseband modulation technologies. A high level of integration and full implementation of the power management functions specified in the IEEE 802.11 standard minimize the system power requirements by using AW-NB300SM. In addition to the support of WPA/WPA2 and WEP 64-bit and 128-bit encryption, the AW-NB300SM also supports the IEEE 802.11i security standard through the implementation of Advanced Encryption Standard (AES)/Counter Mode CBC-MAC Protocol (CCMP), Wired Equivalent Privacy (WEP) with Temporal Key Integrity Protocol (TKIP), Advanced Encryption Standard (AES)/Cipher-Based Message Authentication Code (CMAC), and WLAN Authentication and Privacy Infrastructure (WAPI) security mechanisms. For the video, voice and multimedia applications the AW-NB300SM support 802.11e Quality of Service (QoS). For Bluetooth operation, AW-NB300SM is Bluetooth 4.0, also complaint with Bluetooth 2.1 + Enhanced Data Rate (EDR). The AW-NB300SM supports SDIO for WLAN to the host processor. UART interface are available to connect the BT core the host processor. AW-NB300SM is suitable for multiple mobile processors for different applications. AW-NB300SM stamp module adopts Realtek latest highly-integrated WLAN & Bluetooth SoC---RTL8723BS. All the other components are implemented by all means to reach the mechanical specification required.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值