日期:2014-05-16 浏览次数:21770 次
前段时间移植过RT3070,RT5370
http://blog.csdn.net/ofaith12345/article/details/24138399
发现各种arm移植都大同小异,所以就不要纠结与2440,6410,也不用纠结linux,或者android
1.编译内核,方法如移植RT5370,此处不多言
2.下载linux驱动,免得大家到处找,这里有
http://download.csdn.net/detail/ofaith12345/7290109
3.解压
# tar jxf D-PO_MT7601U_LinuxSTA_3.0.0.4_20130913.tar.bz2
# mv DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/MT7601U
# gedit Makefile
#PLATFORM = PC
PLATFORM = SMDK
ifeq ($(PLATFORM),SMDK) LINUX_SRC = /home/bhushan/itcenter/may28/linux-2.6-samsung CROSS_COMPILE = /usr/local/arm/4.2.2-eabi/usr/bin/arm-linux-
ifeq ($(PLATFORM),SMDK) LINUX_SRC = /home/adream/work/android-kernel/linux-2.6.36-android CROSS_COMPILE = arm-linux-
CROSS_COMPILE为编译链,有时不行就加上绝对路径吧
保存关闭
5.修改 include/rtmp_def.h
# gedit include/rtmp_def.h
#define INF_MAIN_DEV_NAME "ra" #define INF_MBSSID_DEV_NAME "ra"
#define INF_MAIN_DEV_NAME "wlan" #define INF_MBSSID_DEV_NAME "wlan"
先不要插上小度
# lsusb
# lsusb
Bus 002 Device 006: ID 2955:1001
# gedit common/rtusb_dev_id.c
#ifdef MT7601U {USB_DEVICE(0x148f,0x6370)}, /* Ralink 6370 */ {USB_DEVICE(0x148f,0x7601)}, /* MT 6370 */添加刚才的ID,其实全加上也可以,一般就这几种ID
#ifdef MT7601U {USB_DEVICE(0x148f,0x6370)}, /* Ralink 6370 */ {USB_DEVICE(0x148f,0x7601)}, /* MT 6370 */ {USB_DEVICE(0x2955,0x0001)}, /* XiaoDu Wifi */ {USB_DEVICE(0x2955,0x1001)}, /* XiaoDu Wifi */ {USB_DEVICE(0x148f,0x760b)}, /* 360 Wifi */ #endif /* MT7601U */
# make -j 4
# arm-linux-strip -S os/linux/mt7601Usta.ko9.复制到ARM板上