usb wifi移植

1、 内核配置

硬件上将USB的ID引脚接地

内核将DM365的USB配置成USB HOST工作模式

[*] USB_SUPPORT --->

<*>Inventra Highspeed Dual Role Controller (TI,ADI,...)

        *****Platform Glue Layer

<*>      Davinci

            Driver Mode  (USB Host)   ---->

配置DM368开启wifi的配置项

网络协议配置开启80211相关协议

[*] Networking support  --->

  -*-   Wireless  --->  

  --- Wireless                                                                                    | |  
  | |                         <*>   cfg80211 - wireless configuration API                                                     | |  
  | |                         [ ]     nl80211 testmode command                                                                | |  
  | |                         [ ]     enable developer warnings                                                               | |  
  | |                         [ ]     cfg80211 regulatory debugging                                                           | |  
  | |                         [*]     enable powersave by default                                                             | |  
  | |                         [ ]     cfg80211 DebugFS entries                                                                | |  
  | |                         [ ]     use statically compiled regulatory rules database                                       | |  
  | |                         [*]     cfg80211 wireless extensions compatibility                                              | |  
  | |                         [*]   Wireless extensions sysfs files                                                           | |  
  | |                         -*-   Common routines for IEEE802.11 drivers                                                    | |  
  | |                         [ ]   lib80211 debugging messages                                                               | |  
  | |                         <*>   Generic IEEE 802.11 Networking Stack (mac80211)                                           | |  
  | |                         [ ]   PID controller based rate control algorithm                                               | |  
  | |                         [*]   Minstrel                                                                                  | |  
  | |                         [*]     Minstrel 802.11n support                                                                | |  
  | |                               Default rate control algorithm (Minstrel)  --->                                           | |  
  | |                         [ ]   Enable mac80211 mesh networking (pre-802.11s) support                                     | |  
  | |                         [ ]   Export mac80211 internals in DebugFS                                                      | |  
  | |                         [ ]   Select mac80211 debugging features  ---> 

开启WIRELESS LAN

Device Drivers  --->    

[*] Network device support  ---> 

[*]   Wireless LAN  ---> 

 <*>   IEEE 802.11 for Host AP (Prism2/2.5/3 and WEP/TKIP/CCMP)                                                                    

关闭USB CPPI DMA功能(这里调试了很久,wifi连接上AP,ping也可以ping通一段时间后面就报错,后面尝试着将这个选项关掉,问题解决,但是有缺陷,cpu在做运算密集型操作的时候可能掉包,usb bulk传输有瓶颈)

[*]   Disable DMA (always use PIO) 


2、8188EUS驱动的编译

A、MAKEFILE的修改

驱动版本rtl8188EUS_rtl8189ES_linux_v4.1.7_1529.20140106_B

关闭CONFIG_PLATFORM_I386_PC= n

开启CONFIG_PLATFORM_TI_DM365= y

修改交叉编译器的路径和内核目录路径

ifeq ($(CONFIG_PLATFORM_TI_DM365), y)

EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN-DCONFIG_PLATFORM_TI_DM365

ARCH := arm

CROSS_COMPILE :=/usr/local/ipnc/Source/dvsdk_ipnctools/linux-devkit/bin/arm-arago-linux-gnueabi-

KVER := 2.6.37

KSRC:=/usr/local/yourapp/Source/dvsdk_ipnctools/ipnc_psp_03_21_00_04/kernel

Endif

<
  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值