imx6ull 8723BS WIFI驱动移植

驱动源码

RTL8723BS 驱动源码 github地址:
https://github.com/ferbar/rtl8723bs

硬件

将WIFI 插到 SD卡槽上,由于接口与SD一致,直接使用
在这里插入图片描述

移植适配

添加驱动到 linux/drivers/net/wireless 目录下

在这里插入图片描述
修改Kconfig 以及 Makefile 加入如下
在这里插入图片描述
在这里插入图片描述
执行
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- menuconfig
在这里插入图片描述
将如上位置打勾
Realtek 8723B SDIO or SPI WiFi
Enable SDIO interface for Realtek

编译
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-

上电查看LOG

在这里插入图片描述
RTL8723BS: rtw_ndev_init(wlan0)
则驱动加载正常

ifcofnig -a

查看网卡状态
在这里插入图片描述
有wlan0 网卡OK

激活网卡

ifconfig wlan0 up
如果出现accquire FW from file
在这里插入图片描述
需要将驱动源码中的rtl8723bs_nic.bin 放置到
/lib/firmware/rtlwifi/ 的位置上

使用wpa_supplicant 验证网络

wpa_supplicant -i wlan0 -c wpa_supplicant.conf &
在这里插入图片描述
使用udhcpc 向网关申请IP地址 成功既可证明网络正常
在这里插入图片描述
ping www.baidu.com 基础验证网速
在这里插入图片描述

wpa_supplicant.conf 文件

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
update_config=1
 
network={
	ssid="mkt"
	psk="asd123456"
	key_mgmt=WPA-PSK
}

WIFI扫卡流程

  1. 设备上电
  2. 主机通过硬件检测引脚 探测卡存在
  3. 主机发送CMD0 复位SDIO卡
  4. 发送CMD5 询问卡的操作电压范围,其支持的电压
  5. 发送CMD5 选择合适的电压,回复后 再次发送CMD5确认
  6. 发送ACMD41 进入卡初始化,这一步会多次执行,直到进入下一阶段
  7. 发送CMD8 查询卡能力,如支持的传输模式和功能
  8. 发送CMD3 获取卡的RCA,发送CMD9 读取CSD寄存器,获取卡存储容量和性能信息
  9. 发送CMD7 带RCA 选择卡,设置为传输状态
  10. 发送ACMD6 配置SDIO卡的数据总线宽度,优化数据传输速率
  11. 发送CMD52和CMD53来读写SDIO卡的I/O寄存器
  12. 发送CMD13来检查卡的状态
    这样子扫卡和握手流程完毕,切换到高速状态
  • 16
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
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、付费专栏及课程。

余额充值