Need help for MT7610U Please

osmc@osmc:~$ sudo apt-get install build-essential
Reading package lists… Done
Building dependency tree
Reading state information… Done
build-essential is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

osmc@osmc:~$ cd mediatek_mt7610u_sta_driver_linux-64bit

osmc@osmc:~/mediatek_mt7610u_sta_driver_linux-64bit$ make
make -C tools
make[1]: Entering directory ‘/home/osmc/mediatek_mt7610u_sta_driver_linux-64bit/tools’
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory ‘/home/osmc/mediatek_mt7610u_sta_driver_linux-64bit/tools’
chipset = mt7610u
cp -f os/linux/Makefile.6 /home/osmc/mediatek_mt7610u_sta_driver_linux-64bit/os/linux/Makefile
make -C /lib/modules/4.4.3-3-osmc/build SUBDIRS=/home/osmc/mediatek_mt7610u_sta_driver_linux-64bit/os/linux modules
make[1]: Entering directory ‘/lib/modules/4.4.3-3-osmc/build’
make[1]: *** No rule to make target ‘modules’. Stop.
make[1]: Leaving directory ‘/lib/modules/4.4.3-3-osmc/build’
Makefile:393: recipe for target ‘LINUX’ failed
make: *** [LINUX] Error 2

You might find this useful:


Hope that helps!

Thanks will try

That link appears to be for PID 7601 and NOT 7610

That link appears to be for PID 7601 and NOT 7610

Yeah, sort of …
There’s discussion in there (though I appreciate it’s a looooooooong thread …) about similarities between the hardware, and manually tweaking the supported device IDs. Point is that someone somewhere in the middle of that thread somewhere (sorry, can’t remember where some of the gorier details were in there) has got it to work successfully. Can’t remember exactly where in the thread that was, but the first mention of the 6710 appears near the bottom of the first page - search (on the page; E.g. [Ctr] F from most “Windows” browsers) for “Download the base driver” (which, I assume, is where @garjourney got his driver from?).

So don’t worry, it’s not just a thread about the MediaTek 7601 … Sorry I can’t be more directly specific about where it is in that thread :frowning:

here is where I got my driver
but I try other drivers same error
make[1]: *** No rule to make target ‘modules’. Stop.

OK, I did a quick test for you:

root@William:/var/tmp/mediatek/mt7610u_wifi_sta_v3002_dpo_20130916# make clean cp -f os/linux/Makefile.clean os/linux/Makefile make -C os/linux clean make[1]: Entering directory '/var/tmp/mediatek/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux' rm -f ../../common/*.o ... rm -f ../../sta/.*.cmd .*.flags .*.d make[1]: Leaving directory '/var/tmp/mediatek/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux' rm -rf os/linux/Makefile root@William:/var/tmp/mediatek/mt7610u_wifi_sta_v3002_dpo_20130916#

Then …

root@William:/var/tmp/mediatek/mt7610u_wifi_sta_v3002_dpo_20130916# make make -C tools make[1]: Entering directory '/var/tmp/mediatek/mt7610u_wifi_sta_v3002_dpo_20130916/tools' gcc -g bin2h.c -o bin2h make[1]: Leaving directory '/var/tmp/mediatek/mt7610u_wifi_sta_v3002_dpo_20130916/tools' /var/tmp/mediatek/mt7610u_wifi_sta_v3002_dpo_20130916/tools/bin2h chipset = mt7650u chipset = mt7630u chipset = mt7610u cp -f os/linux/Makefile.6 /var/tmp/mediatek/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/Makefile make -C /lib/modules/4.4.0-1-osmc/build SUBDIRS=/var/tmp/mediatek/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux modules make[1]: Entering directory '/lib/modules/4.4.0-1-osmc/build' make[1]: Nothing to be done for 'modules'. make[1]: Leaving directory '/lib/modules/4.4.0-1-osmc/build' cp -f /var/tmp/mediatek/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/mt7650u_sta.ko /tftpboot 2>/dev/null || : root@William:/var/tmp/mediatek/mt7610u_wifi_sta_v3002_dpo_20130916#

… and …

root@William:/var/tmp/mediatek/mt7610u_wifi_sta_v3002_dpo_20130916# make -n install make -C /var/tmp/mediatek/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux -f Makefile.6 install make[1]: Entering directory '/var/tmp/mediatek/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux' mkdir: cannot create directory Ç /etc/Wireless Ç : File exists rm -rf /etc/Wireless/RT2860STA mkdir /etc/Wireless/RT2860STA cp /var/tmp/mediatek/mt7610u_wifi_sta_v3002_dpo_20130916/conf/RT2860STA.dat /etc/Wireless/RT2860STA/. install -d /lib/modules/4.4.0-1-osmc/kernel/drivers/net/wireless/ install -m 644 -c mt7650u_sta.ko /lib/modules/4.4.0-1-osmc/kernel/drivers/net/wireless/ /sbin/depmod -a 4.4.0-1-osmc make[1]: Leaving directory '/var/tmp/mediatek/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux' root@William:/var/tmp/mediatek/mt7610u_wifi_sta_v3002_dpo_20130916#

To get it to compile, I set up the “” file as follows:

diff -r ./mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/ ./mt7610u_wifi_sta_v3002_dpo_20130916-MODIFIED/os/linux/ 26c26 < HAS_WPA_SUPPLICANT=n \> HAS_WPA_SUPPLICANT=y 31c31 < HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n \> HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y

(ignore the “” before the ">"s, that’s just to get it to display at least vaguely correctly here).

I then manually created a number of directories that the “Makefile” seemed to have … forgotten …

mkdir /lib/modules/build mkdir /lib/modules/4.4.0-1-osmc/build mkdir /lib/modules/4.4.0-1-osmc/modules mkdir /lib/modules/4.4.0-1-osmc/build/modules

(check that your path there is the same, E.g. “4.4.0-1-osmc”; yours may well be “4.4.3-3-osmc”).

Et voila - a clean compilation, and what looks as though it would be a clean installation (I didn’t actually install it).

It looks as though the driver developers at MediaTek just forgot to make some directories which probably already existed on their development boxes …

Hope that helps!


Ps. That was with the official source from MediaTek.

will try