rt3070驱动移植及测试

来源:互联网 发布:类似于知乎 编辑:程序博客网 时间:2024/05/16 11:49

     移植RT3070驱动,目的就是把编译成功的RT3070.ko移植到开发板中去。先从网上下好相关压缩包,解压过程不多说。然后是保证编译过程少出毛病,吧内核配置好,具体配置如下:

 一:

make menuconfig

 

(1)Networking support

                     ->wireless

                                   ->[*]Common routines for IEEE802.11 drivers

二:Device Drivers->

              ->Network device support

               ->[*]Wireless LAN

    [*] Wireless LAN (pre-802.11)                                   

   < >   STRIP (Metricom starmode radio IP)                        

    [*] Wireless LAN (IEEE 802.11)                                  

   <M>   Marvell 8xxx Libertas WLAN driver support                 

   < >     Marvell Libertas 8388 USB 802.11b/g cards               

[*]     Enable full debugging output in the Libertas module.    

   < >   USB ZD1201 based Wireless device support                  

< >   Wireless RNDIS USB support                                

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

三:

Device Driversà

                            Graphics support à

                                          Support for frame buffer devices à

                                                 Select LCD Type (Innolux 4.3 inch(480x272))

                                                        (X) Innolux 4.3 inch (480x272)

这个根据具体像素决定。

然后就是根据README_STA_usb   修改。具体如下

只列出修改部分
............................................................................................................
RT28xx_MODE = STA
TARGET = LINUX
 ............................................................................................................
ifeq ($(PLATFORM),PC)
# Linux 2.6
LINUX_SRC = /home/jay/arm/opt/FriendlyARM/mini2440/linux-2.6.32.2
# Linux 2.4 Change to your local setting
#LINUX_SRC = /usr/src/linux-2.4
#LINUX_SRC_MODULE = /home/embest/work/linux-2.6.29-sbc8100/drivers/net/wireless
CROSS_COMPILE =/home/jay/arm/opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-
endif
...........................................................................................................
在进入/os/linux/目录下,修改config.mk如下:
........................................................................................................
# Support Wpa_Supplicant
HAS_WPA_SUPPLICANT=y
# Support Native WpaSupplicant for Network Maganger
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y
...........................................................................................................
ifeq ($(PLATFORM),PC)
    ifneq (,$(findstring 2.4,$(LINUX_SRC)))
 # Linux 2.4
 CFLAGS := -D__KERNEL__ -I$(LINUX_SRC)/include -I$(RT28xx_DIR)/include -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include $(LINUX_SRC)/include/linux/modversions.h $(WFLAGS)
 export CFLAGS
    else
 # Linux 2.6
 EXTRA_CFLAGS := $(WFLAGS) -I$(RT28xx_DIR)/include
    endif
endif
...........................................................................................................

 

原创粉丝点击