Wireless card mt7601u-driven porting

Source: Internet
Author: User

1.MT7601U Wireless Card driver:

Official website: http://www.mediatek.com/zh-CN/downloads/mt7601u-usb/

Or: http://download.csdn.net/detail/pchl33/7424755

2. Unzip
# TAR-JXVF DPO_MT7601U_LINUXSTA_3.0.0.4_20130913.TAR.BZ2

#cd dpo_mt7601u_linuxsta_3.0.0.4_20130913


3. Modify Makefile

Gedit Makefile

Put

Ifeq ($ (PLATFORM), PC)
# Linux 2.6
LINUX_SRC =/lib/modules/$ (Shell uname-r)/build
# Linux 2.4 Change to your local setting
#LINUX_SRC =/usr/src/linux-2.4
Linux_src_module =/lib/modules/$ (Shell uname-r)/kernel/drivers/net/wireless/
Cross_compile =
endif

Switch

Ifeq ($ (PLATFORM), PC)
LINUX_SRC =/root/workspace/kernel/
Cross_compile =/root/arm-2009q1/bin/arm-none-linux-gnueabi-
endif

which

LINUX_SRC is the compiled kernel path

Cross_compile for Cross compiler path

4. Compiling

#make

Generate Mt7601usta.ko files under the Dpo_mt7601u_linuxsta_3.0.0.4_20130913/os/linux directory

5.

Copy Mt7601usta.ko to embedded Linux under/lib/modules/2.6.27.55

Depmod

Modprobe Mt7601usta

Driver loading is complete.

Note:

If it appears error:driver ' rt2870 ' is already registered, aborting ... The error, when compiling, to put the/include/os/rt_linux_cmm.h in the

#define RTMP_DRV_NAME "rt2870" to replace the rt2870 with other ones, to avoid causing conflict.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.