You are on page 1of 3

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 If the module has loaded then running `ifconfig ra0 up` wi
ll 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:
````If the module has loaded then running `ifconfig ra0 up` will bring up a Wi-F
i 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!!
$ 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!!
this driver by setting `LINUX_SRC` to the kernel sources, `CROSS_COMPILE` to you
r compiler and `ARCH` to the arch you are compiling for. It is arm for the Raspb
erry Pi.
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!!
b
#####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!!

You might also like