Você está na página 1de 5

# mt7601u-ap

If the module has loaded then running `ifconfig ra0 up` will bring up a Wi-Fi ac
cess 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. I
t is arm for the Raspberry Pi.
#####Cross compiling on a virtual machine (Xubuntu 14.04 32 bits)
Download the kernel sources and cross compiler:
````sh
$ 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:
````sh
$ . .bashrc
````
Prepare the kernel sources:
````sh
$ 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 don
e. Copy it over to `/lib/modules/<kernel version>/kernel/drivers/net/wireless` a
nd run `depmod $(uname -r)` to make it load on startup.
#### You are done!!
If the module has loaded then running `ifconfig ra0 up` will bring up a Wi-Fi ac
cess 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. I
t is arm for the Raspberry Pi.
#####Cross compiling on a virtual machine (Xubuntu 14.04 32 bits)
Download the kernel sources and cross compiler:
````sh
$ 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:
````sh
$ . .bashrc
````
Prepare the kernel sources:
````sh
$ cd linux
$ make ARCH=arm CROSS_COMIf 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. I
t is arm for the Raspberry Pi.
#####Cross compiling on a virtual machine (Xubuntu 14.04 32 bits)
Download the kernel sources and cross compiler:
````sh
$ 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:
````sh
$ . .bashrc
````
Prepare the kernel sources:
````shIf 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. I
t is arm for the Raspberry Pi.
#####Cross compiling on a virtual machine (Xubuntu 14.04 32 bits)
Download the kernel sources and cross compiler:
````sh
$ 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 theIf the module has loaded then running `ifconfig ra0 up` will brin
g 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. I
t is arm for the Raspberry Pi.
#####Cross compiling on a virtual machine (Xubuntu 14.04 32 bits)
Download the kernel sources and cross compiler:
````sh
$ 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:
````sh
$ . .bashrc
````
Prepare the kernel sources:
````sh
$ cd linux
$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- bcmrpi_defconfig
$ make modules_prepare
````
Compile the driver:
````
$ cd ../mt7601u-ap
$ make LINUX_SRC=../lIf the module has loaded then running `ifconfig ra0 up` wil
l 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. I
t is arm for the Raspberry Pi.
#####Cross compiling on a virtual machine (Xubuntu 14.04 32 bits)
Download the kernel sources and cross compiler:
````sh
$ 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:
````sh
$ . .bashrc
````
Prepare the kernel sources:
````sh
$ 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 don
e. Copy it over to `/lib/modules/<kernel version>/kernel/drivers/net/wireless` a
nd run `depmod $(uname -r)` to make it load on startup.
#### You are done!!
inux ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf````
The module name is mt7601Uap.ko and will be in `os/linux/` when compiling is don
e. Copy it over to `/lib/modules/<kernel version>/kernel/drivers/net/wireless` a
nd run `depmod $(uname -r)` to make it load on startup.
#### You are done!!
PATH:
````sh
$ . .bashrc
````
Prepare the kernel sources:
````sh
$ 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 don
e. Copy it over to `/lib/modules/<kernel version>/kernel/drivers/net/wireless` a
nd run `depmod $(uname -r)` to make it load on startup.
#### You are done!!
$ 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 don
e. Copy it over to `/lib/modules/<kernel version>/kernel/drivers/net/wireless` a
nd run `depmod $(uname -r)` to make it load on startup.

#### You are done!!


PILE=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 don
e. Copy it over to `/lib/modules/<kernel version>/kernel/drivers/net/wireless` a
nd run `depmod $(uname -r)` to make it load on startup.
#### You are done!!
AP driver for MT7601U chipset based adapters
Many usb Wi-Fi adapters that claim to have an RT5370 chipset actually have an MT
7601 chipset. There are no drivers in Linux that support this device. This drive
r can be used to set up a hotspot with these devices. This has compiled on the f
ollowing 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:
````sh
$ sudo apt-get install linux-headers-generic
````
Then download the source and compile:
````sh
$ git clone https://github.com/anthony96922/mt7601u-ap
$ cd mt7601u-ap
$ make
$ sudo make install
$ sudo modprobe mt7601Uap
````

Você também pode gostar