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
<