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