移植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 修改。具体如下
# 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
HAS_WPA_SUPPLICANT=y
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y
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