内核配置
[*] Networking support --->
-*- Wireless --->
<*> cfg80211 - wireless configuration API
[ ] nl80211 testmode command
[ ] enable developer warnings
[ ] cfg80211 regulatory debugging
[ ] enable powersave by default
[ ] cfg80211 wireless extensions compatibility
<*> Generic IEEE 802.11 Networking Stack (mac80211)
Default rate control algorithm (Minstrel) --->
[ ] Enable mac80211 mesh networking (pre-802.11s) support
[ ] Trace all mac80211 debug messages
[ ] Select mac80211 debugging features ----
Device Drivers --->
[*] Network device support --->
[*] Wireless LAN --->
<*> USB ZD1201 based Wireless device support
[*]USBsupport--->
<*> Support for Host-side USB
<*> EHCI HCD (USB 2.0) support
[ ] Root Hub Transaction Translators
[*] Improved Transaction Translator scheduling
<*> Generic EHCI driver for a platform device
2驱动源码:
在Makefile 中加入
ifeq ($(PLATFORM),HI3520D)
LINUX_SRC = /root/newdisk/Hi3521A_SDK_V1.0.3.0/osdrv/opensource/kernel/linux-3.10.y
CROSS_COMPILE = /opt/hisi-linux/x86-arm/arm-hisiv300-linux/target/bin/arm-hisiv300-linux-
export ARCH=arm
endif
400行加入:
ifeq ($(PLATFORM),HI3520D)
$(MAKE) ARCH=arm CROSS_COMPILE=$(CROSS_COMPILE) -C $(LINUX_SRC) SUBDIRS=$(RT28xx_DIR)/os/linux modules
endif
在os/linux/config.mk 最后添加
ifeq ($(PLATFORM),HI3520D)
EXTRA_CFLAGS := -D__KERNEL__ -DMODULE $(WFLAGS)
export EXTRA_CFLAGS
endif
在 include/rtmp_def.h 中修改
ra0 改成wlan.