mt7601驱动移植

内核配置
[*] 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.

 

 


 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值