Skip to content

Instantly share code, notes, and snippets.

@upperhill
Last active May 30, 2022 20:03
Show Gist options
  • Save upperhill/bbca3c9c9cd858bad839 to your computer and use it in GitHub Desktop.
Save upperhill/bbca3c9c9cd858bad839 to your computer and use it in GitHub Desktop.
148f:7601 Ralink Technology, Corp. Driver compile and install instructions for the raspberry pi B+

148f:7601 Ralink Technology, Corp.

To compile the driver, you need to have make and a compiler installed. In addition, you must have the kernel headers installed.

Determine what kernel version you're running.

uname -r 3.18.7+

This document will assume the kernel is

**** These commands require you to be the root user ****

apt-get install gcc-4.8 g++-4.8 build-essential

Installing my kernel headers

apt-get install linux-headers-3.18.0-trunk-rpi

OR

apt-get install linux-headers-$(uname -r)

git clone https://github.com/porjo/mt7601
 
cd mt7601/src

ln -s /lib/modules/3.18.0-trunk-rpi/ /lib/modules/$(uname -r)/build

mv /usr/bin/gcc /usr/bin/gcc.bak

mv /usr/bin/g++ /usr/bin/g++.bak

ln -s /usr/bin/gcc-4.8 /usr/bin/gc

ln -s /usr/bin/g++-4.8 /usr/bin/g++

make

mkdir -p /etc/Wireless/RT2870STA/
 
cp RT2870STA.dat /etc/Wireless/RT2870STA/

Connect the USB

insmod os/linux/mt7601Usta.ko

�If the module has loaded OK, you should see mt7601Usta listed in the output of lsmod and a new network interface ra0 should be present in the output of ip link.

If works:

make install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment