rt3070驅動移植及測試

來源:互聯網
上載者:User

     移植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 = STATARGET = 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...........................................................................................................

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.