Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rajtan/20408c61af47a8638009745c1236235a to your computer and use it in GitHub Desktop.
Save rajtan/20408c61af47a8638009745c1236235a to your computer and use it in GitHub Desktop.
Compiling driver for USB WIFI dongle model MT7601U USB dev id [148f:7601] for OrangePiPC on Debian Jessie Server kernel 3.4.112

*Compiling driver for USB WIFI dongle model MT7601U USB dev id [148f:7601] for OrangePiPC on Debian Jessie Server kernel 3.4.112

Distribution: Armbian_5.14_Orangepipc_Debian_jessie_3.4.112

from: armbian.com linked to: http://mirror.igorpecovnik.com/Armbian_5.14_Orangepipc_Debian_jessie_3.4.112.7z

Type: Jessie Sever

Status: Fresh install of the image

Kernel

uname -r 

3.4.112-sun8i

Wifi USB device Bus 002 Device 002: ID 148f:7601 Ralink Technology, Corp.
Driver Source: (http://www.mediatek.com/en/downloads1/downloads/mt7601u-usb/)

Procedure:

log into Orangepi

Edit: after initial successful iteration

I just repeated these after doing an upgrade as well (13-JUL-2016) i.e. doing the following before upgarding to recent headers and recompiling headers

However, the network interface config file /etc/network/interfaces.default had to be re-edited (see near end)

sudo apt-get upgrade

Now proceeding for driver install

mkdir drivers
cd drivers
pwd

/root/drivers

Driver files for the USB wifi card MT7601U already downloaded from (http://www.mediatek.com/en/downloads1/downloads/mt7601u-usb/) onto a system which is connected by lan at IP 10.42.0.1 and uncompressed into the directory at rt@10.42.0.1:~rt/OPI-PC/drivers/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913 (remote system)

Copy these driver files here

scp -r rt@10.42.0.1:~rt/OPI-PC/drivers/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913

change to the root directory of the files uncompressed

cd DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/
pwd 

/root/drivers/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913

 ls -l |cut -c42-

 ate
 chips
 common
 include
 iwpriv_usage.txt
 mac
 Makefile
 mcu
 mgmt
 os
 phy
 rate_ctrl
 README_STA_usb
 RT2870STACard.dat
 RT2870STA.dat
 sta
 sta_ate_iwpriv_usage.txt
 tools

Now ready to make -

make ARCH=arm

***There are some compiler warnings, we ignore these for a while and let's see

make -n install
make install
dmesg |tail

[ 6.268749] usbcore: registered new interface driver rt2870

driver module is loaded

**** Configuration

vi /etc/network/interfaces.default 

Add the configuration lines for your network Here we are assumins STA mode to join the AP

#
# Configuring for custom driver of MT7601U
# added by rt 
#
auto ra0
        iface ra0 inet dhcp
        wpa-ssid <YOUR-AP's SSID>
        wpa-psk  <YOUR WIRELESS SECURITY KEY>

ifup ra0

Internet Systems Consortium DHCP Client 4.3.1 Copyright 2004-2014 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/ra0/00:36:76:54:dd:b4 Sending on LPF/ra0/00:36:76:54:dd:b4 Sending on Socket/fallback DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 5 DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 10 DHCPREQUEST on ra0 to 255.255.255.255 port 67 DHCPOFFER from 192.168.43.1 DHCPACK from 192.168.43.1 bound to 192.168.43.194 -- renewal in 1357 seconds.

ra0 Link encap:Ethernet HWaddr 00:36:76:54:dd:b4
inet addr:192.168.43.194 Bcast:192.168.43.255 Mask:255.255.255.0 inet6 addr: fe80::236:76ff:fe54:ddb4/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:13779 errors:0 dropped:0 overruns:0 frame:0 TX packets:302 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:2399944 (2.2 MiB) TX bytes:23286 (22.7 KiB)

And your WiFi driver is installed.

(optional) Configure time zone data

dpkg-reconfigure tzdata

reference: armbian/build#311 https://github.com/igorpecovnik/lib/blob/master/documentation/user-faq.md#how-to-build-a-wireless-driver-

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