Skip to content

krystal133675/mt7601u-ap

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mt7601u-ap

AP driver for MT7601U chipset based adapters

Many usb Wi-Fi adapters that claim to have an RT5370 chipset actually have an MT7601 chipset. There are no drivers in Linux that support this device. This driver can be used to set up a hotspot with these devices. This has compiled on the following kernels:

  • 3.12.35+ (Raspberry Pi)
  • 3.18.16+ (Raspberry Pi)

(4.x kernels are untested.)

How to use

Get the sources for your kernel. You can do this by running:

$ sudo apt-get install linux-headers-generic

Then download the source and compile:

$ git clone https://github.com/anthony96922/mt7601u-ap
$ cd mt7601u-ap
$ make
$ sudo make install
$ sudo modprobe mt7601Uap

If the module has loaded then running ifconfig ra0 up will bring up a Wi-Fi access point that you can connect your devices to. You can change the network name and the security by editing the file /etc/wifi/RT2870AP/RT2870AP.txt.

Cross compiling

You can cross compile this driver by setting LINUX_SRC to the kernel sources, CROSS_COMPILE to your compiler and ARCH to the arch you are compiling for. It is arm for the Raspberry Pi.

#####Cross compiling on a virtual machine (Xubuntu 14.04 32 bits) Download the kernel sources and cross compiler:

$ git clone https://github.com/raspberrypi/linux -b rpi-3.18.y
$ git clone https://github.com/raspberrypi/tools
$ sudo mv tools /opt/
$ nano .bashrc

Add this line:

export PATH=/opt/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin:$PATH

Then update the PATH:

$ . .bashrc

Prepare the kernel sources:

$ cd linux
$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- bcmrpi_defconfig
$ make modules_prepare

Compile the driver:

$ cd ../mt7601u-ap
$ make LINUX_SRC=../linux ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-

The module name is mt7601Uap.ko and will be in os/linux/ when compiling is done. Copy it over to /lib/modules/<kernel version>/kernel/drivers/net/wireless and run depmod $(uname -r) to make it load on startup.

You are done!!

About

AP driver for MT7601U chipset based adapters

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 90.0%
  • Objective-C 9.2%
  • Other 0.8%