Last active
December 17, 2015 18:19
-
-
Save subutux/5652497 to your computer and use it in GitHub Desktop.
Building the RT3070 kernel driver
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd /usr/src | |
sudo wget https://github.com/raspberrypi/linux/archive/rpi-3.6.y.tar.gz | |
sudo tar xvfz rpi-3.6.y.tar.gz | |
sudo ln -s /usr/src/linux-rpi-3.6.y/ /lib/modules/3.6.11+/build | |
cd /lib/modules/3.6.11+/build | |
sudo make mrproper | |
sudo su | |
gzip -dc /proc/config.gz > .config | |
make modules_prepare | |
wget https://github.com/raspberrypi/firmware/raw/master/extra/Module.symvers | |
exit | |
cd ~ | |
# download from url | |
# http://www.mediatek.com/_en/07_downloads/01-1_windowsDetail.php?sn=5016 | |
bzip2 -d 2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO.bz2 | |
mv 2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO 2011_0719_RT3070 | |
_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO.tar | |
tar -xvf 2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO.tar | |
cd 2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO/ | |
make | |
sudo make install | |
sudo cp /etc/modprobe.d/raspi-blacklist.conf /etc/modprobe.d/raspi-blacklist.conf.bak | |
sudo echo "blacklist rt2800usb" >> /etc/modprobe.d/raspi-blacklist.conf | |
sudo echo "blacklist rt2x00usb" >> /etc/modprobe.d/raspi-blacklist.conf | |
echo "going to reboot ..." | |
sudo reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment