Ralink / Mediatek mt7612u - can't compile driver module

Hello
I’ve just bought a EDUP EP-AC1601 usb 3.0 ralink/mediatek mt7612u chipset http://www.szedup.com/show.aspx?id=1776, downloaded drivers http://www.szedup.com/dl/mtk7612u/7612linux.rar and
http://cdn-cw.mediatek.com/Downloads/linux/MT7612U_DPO_LinuxSTA_3.0.0.1_20140718.tar.bz2,
then set ./os/linux/confing.mk (in both tries) and in the end for some reason I don’t understand It doesn’t build the driver.
It’s 1st with ralink/mediatek, I’m not a programmer and I hope someone can help

  • some directions I have followed
http://www.cyberciti.biz/tips/linux-install-rt2870-chipset-based-usb-wireless-adapter.html

./os/linux/confing.mk

# Support Wpa_Supplicant
HAS_WPA_SUPPLICANT=y
# Support Native WpaSupplicant for Network Manger
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y

then make gives me that:

torre:/home/andre/Transferências/7612ac/edup/linux/DPO # make
make -C tools
make[1]: Entering directory '/home/andre/Transferências/7612ac/edup/linux/DPO/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory '/home/andre/Transferências/7612ac/edup/linux/DPO/tools'
/home/andre/Transferências/7612ac/edup/linux/DPO/tools/bin2h
chipset = mt7662u
chipset = mt7632u
chipset = mt7612u
cp -f os/linux/Makefile.6 /home/andre/Transferências/7612ac/edup/linux/DPO/os/linux/Makefile
make -C /lib/modules/3.16.7-7-desktop/build SUBDIRS=/home/andre/Transferências/7612ac/edup/linux/DPO/os/linux modules
make[1]: Entering directory '/usr/src/linux-3.16.7-7-obj/x86_64/desktop'
make[1]: Entering directory `/usr/src/linux-3.16.7-7-obj/x86_64/desktop'
  CC [M]  /home/andre/Transferências/7612ac/edup/linux/DPO/os/linux/../../sta/sync.o
/home/andre/Transferências/7612ac/edup/linux/DPO/os/linux/../../sta/sync.c: In function ‘rtmp_dbg_sanity_diff’:
/home/andre/Transferências/7612ac/edup/linux/DPO/os/linux/../../sta/sync.c:1069:10: error: ‘SelReg’ undeclared (first use in this function)
         &SelReg,
          ^
/home/andre/Transferências/7612ac/edup/linux/DPO/os/linux/../../sta/sync.c:1069:10: note: each undeclared identifier is reported only once for each function it appears in
/home/andre/Transferências/7612ac/edup/linux/DPO/os/linux/../../sta/sync.c: In function ‘PeerBeaconAtScanAction’:
/home/andre/Transferências/7612ac/edup/linux/DPO/os/linux/../../sta/sync.c:1425:4: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘ULONG’ -Wformat=]
    DBGPRINT(RT_DEBUG_OFF, ("%s P2P_SCANNING: %s %d]
", __FUNCTION__, ie_list->Ssid, Idx));
    ^
/home/andre/Transferências/7612ac/edup/linux/DPO/os/linux/../../sta/sync.c: In function ‘PeerBeaconAtJoinAction’:
/home/andre/Transferências/7612ac/edup/linux/DPO/os/linux/../../sta/sync.c:1581:13: error: ‘SelReg’ undeclared (first use in this function)
        if ( SelReg == 0 )
             ^
/home/andre/Transferências/7612ac/edup/linux/DPO/os/linux/../../sta/sync.c:1805:26: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘ULONG’ -Wformat=]
                          DBGPRINT(RT_DEBUG_OFF, ("%s P2P_SCANNING: %s %d]
", __FUNCTION__, ie_list->Ssid, Idx));
                          ^
/home/andre/Transferências/7612ac/edup/linux/DPO/os/linux/../../sta/sync.c: In function ‘PeerBeacon’:
/home/andre/Transferências/7612ac/edup/linux/DPO/os/linux/../../sta/sync.c:1933:25: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘ULONG’ -Wformat=]
                         DBGPRINT(RT_DEBUG_INFO, ("%s PASSIVE SCANNING: %s %d]
", __FUNCTION__, bcn_ie_list->Ssid, Bssidx));
                         ^
/home/andre/Transferências/7612ac/edup/linux/DPO/os/linux/../../sta/sync.c:2117:11: error: ‘SelReg’ undeclared (first use in this function)
      if ( SelReg == 0 )
           ^
/usr/src/linux-3.16.7-7/scripts/Makefile.build:273: recipe for target '/home/andre/Transferências/7612ac/edup/linux/DPO/os/linux/../../sta/sync.o' failed
make[4]: *** [/home/andre/Transferências/7612ac/edup/linux/DPO/os/linux/../../sta/sync.o] Error 1
/usr/src/linux-3.16.7-7/Makefile:1359: recipe for target '_module_/home/andre/Transferências/7612ac/edup/linux/DPO/os/linux' failed
make[3]: *** [_module_/home/andre/Transferências/7612ac/edup/linux/DPO/os/linux] Error 2
Makefile:195: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
Makefile:24: recipe for target '__sub-make' failed
make[1]: *** [__sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-3.16.7-7-obj/x86_64/desktop'
Makefile:390: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2

lsusb -s 7:3

andre@torre:~> lsusb -s 7:2
Bus 007 Device 002: ID 0e8d:7612 MediaTek Inc.

dmesg

[25597.137805] usb 7-2: new SuperSpeed USB device number 5 using xhci_hcd
[25597.150724] usb 7-2: New USB device found, idVendor=0e8d, idProduct=7612
[25597.150727] usb 7-2: New USB device strings: Mfr=2, Product=3, SerialNumber=4
[25597.150729] usb 7-2: Product: Wireless 
[25597.150731] usb 7-2: Manufacturer: MediaTek Inc.
[25597.150732] usb 7-2: SerialNumber: 000000000

I may be wrong, but it seems to me that if your system sees the device, the modules are already in the kernel - that you don’t need to compile one yourself. Maybe others on this forum can correct me if I’m wrong.

Not in kernel 3.16.7.7

modprobeid 0e8d:7612
Kernelmodulname
modinfo: ERROR: Module  not found.

modprobeid is a small Script, that worked for me.

Also no output:

modprobe -c | grep -i "0e8d.*7612"
uname -a
Linux linux64 3.16.7-7-desktop #1 SMP PREEMPT Wed Dec 17 18:00:44 UTC 2014 (762f27a) x86_64 x86_64 x86_64 GNU/Linux

http://ubuntuforums.org/showthread.php?t=2270202&p=13249702#post13249702

Should work, although I didn’t try it myself as I don’t have any STA devices left.

I stand corrected. Miuku has an excellent link that I’m sure will be what you were looking for. You’ll just have to translate it to the way openSUSE does it, ie. file names, the commands to do this, etc.

hi there thanks to your replies
Sauerland post it’s realy my case
Miuku

                      [http://ubuntuforums.org/showthread.p...2#post13249702](http://ubuntuforums.org/showthread.php?t=2270202&p=13249702#post13249702)

Should work, although I didn’t try it myself as I don’t have any STA devices left.

I tried it, it compiles, its loaded but it’s not for that device apparently.