OSMC AC wifi dongle running in Ubuntu 16.04?

A friend bought the AC dongle from OSMC store and tried to use it in a stationary PC running Ubuntu 16.04 with no luck.

Are there drivers for this dongle available for Ubuntu?

Hi

Install the kernel headers on your machine and then you can use this driver:

Currently, the driver is configured to build against OSMC’s kernel tree post-compile, so just make this change and you’ll be fine:

diff --git a/mt7610u/Makefile b/mt7610u/Makefile
index e286c5e..25d87aa 100644
--- a/mt7610u/Makefile
+++ b/mt7610u/Makefile
@@ -312,8 +312,6 @@ LINUX_SRC = /home2/charlestu/AP-VT3426/linux-2.6.18
 CROSS_COMPILE = /opt/montavista/pro/devkit/arm/v5t_le_mvl5/bin/arm_v5t_le-
 endif
 
-LINUX_SRC = $(shell pwd)/../../../../
-
 export OSABL RT28xx_DIR RT28xx_MODE LINUX_SRC CROSS_COMPILE CROSS_COMPILE_INCLUDE PLATFORM RELEASE CHIPSET MODULE RTMP_SRC_DIR LINUX_SRC_MODULE TARGET HAS_WOW_SUPPORT
 
 # The targets that may be used.

I have used this dongle on Ubuntu 16.04 on my laptop for testing.

Then just run make to build the driver.

You could also look at setting up DKMS so that it works after kernel upgrades automatically: DKMS - Community Help Wiki. I may add a DKMS configuration file later if there is demand for it.

Sam

1 Like

Thanks,

I did the change and

make
sudo make install

Do you need to do anything more to make it appear in the network GUI?

Did you check the module is loaded? lsmod and dmesg will give clues

I’m not sure make install actually installs the driver in to the modules directory

Sam

Novice regarding kernel module loading. Screenshot from result from make install below:

OK – that looks OK, but is dmesg showing the modue loading and its output? Is lsmod showing mt7610_sta?

lsmod output

The module is thus loaded, but not in use. I see the WiFi icon in the corner. If you have another WiFi adapter installed you probably need to run something like ifconfig up wlan1 (get real device from ifconfig) and then iwconfig to manage scanning etc. If you want to handle it from the GUI you have to disable the internal adapter.

He eventually got it working, thanks.

I might look into DKMS config just for learning how it works. I’ll update the thread if I do.

Another question - he doesn’t get 5G working, only 2G. Running against an ASUS N66U. What 5GHz is supported?

Hi

Try sudo nano /lib/firmware/mt7610_sta.dat and entering the following:

#The word of "Default" must not be removed
Default
CountryRegion=31
CountryRegionABand=7
CountryCode=
ChannelGeography=1
SSID=11n-AP
NetworkType=Infra
WirelessMode=8
EfuseBufferMode=0
Channel=0
BeaconPeriod=100
TxPower=100
BGProtection=0
TxPreamble=0
RTSThreshold=2347
FragThreshold=2346
TxBurst=1
PktAggregate=0
WmmCapable=0
AckPolicy=0;0;0;0
AuthMode=OPEN
EncrypType=NONE
WPAPSK=
DefaultKeyID=1
Key1Type=0
Key1Str=
Key2Type=0
Key2Str=
Key3Type=0
Key3Str=
Key4Type=0
Key4Str=
PSMode=CAM
AutoRoaming=0
RoamThreshold=70
APSDCapable=0
APSDAC=0;0;0;0
HT_RDG=1
HT_EXTCHA=0
HT_OpMode=0
HT_MpduDensity=4
HT_BW=1
HT_BADecline=0
HT_AutoBA=1
HT_AMSDU=0
HT_BAWinSize=64
HT_GI=1
HT_MCS=33
HT_MIMOPSMode=3
HT_DisallowTKIP=1
HT_STBC=0
VHT_BW=1
VHT_SGI=1
VHT_STBC=0
EthConvertMode=
EthCloneMac=
IEEE80211H=0
TGnWifiTest=0
WirelessEvent=0
MeshId=MESH
MeshAutoLink=1
MeshAuthMode=OPEN
MeshEncrypType=NONE
MeshWPAKEY=
MeshDefaultkey=1
MeshWEPKEY=
CarrierDetect=0
AntDiversity=0
BeaconLostTime=4
FtSupport=0
Wapiifname=ra0
WapiPsk=
WapiPskType=
WapiUserCertPath=
WapiAsCertPath=
PSP_XLINK_MODE=0
WscManufacturer=
WscModelName=
WscDeviceName=
WscModelNumber=
WscSerialNumber=
RadioOn=1
WIDIEnable=1
P2P_L2SD_SCAN_TOGGLE=3
Wsc4digitPinCode=0
P2P_WIDIEnable=0
PMFMFPC=0
PMFMFPR=0
PMFSHA256=0

Sam