| 
 | 
 Edited by WereCatf at 2016-3-14 17:25  
to install this device to ubuntu?  
No. The instructions are the same no matter what distro you use. You need kernel-headers, you need working git, gcc, make and the likes, then you can just simply use this script I just made for you: 
- #!/bin/bash
 
 - git clone https://github.com/porjo/mt7601/
 
 - if [ $? -eq 1 ]; then echo "Error fetching sources."; exit 1; fi
 
  
- cd mt7601
 
 - cat >> fix_build.patch << _EOF_
 
 - index 3726b9e..b8be886 100755
 
 - --- a/src/include/os/rt_linux.h
 
 - +++ b/src/include/os/rt_linux.h
 
 - @@ -279,7 +279,7 @@ typedef struct file* RTMP_OS_FD;
 
 -  
 
 -  typedef struct _OS_FS_INFO_
 
 -  {
 
 - -#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0)
 
 - +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0)
 
 -          uid_t                                fsuid;
 
 -          gid_t                                fsgid;
 
 -  #else
 
 - diff --git a/src/os/linux/rt_linux.c b/src/os/linux/rt_linux.c
 
 - index 1b6a631..c336611 100755
 
 - --- a/src/os/linux/rt_linux.c
 
 - +++ b/src/os/linux/rt_linux.c
 
 - @@ -51,7 +51,7 @@
 
 -  #define RT_CONFIG_IF_OPMODE_ON_STA(__OpMode)
 
 -  #endif
 
 -  
 
 - -ULONG RTDebugLevel = RT_DEBUG_TRACE;
 
 - +ULONG RTDebugLevel = 0;
 
 -  ULONG RTDebugFunc = 0;
 
 -  
 
 -  #ifdef OS_ABL_FUNC_SUPPORT
 
 - _EOF_
 
  
- patch -f -s -p1 -r - <fix_build.patch >/dev/null
 
 - if [ ! -f /lib/modules/$(uname -r)/build/Makefile ]; then echo "Can't find kernel-headers where they should be, exiting!"; exit 1; fi
 
 - if [ ! -f /lib/modules/$(uname -r)/build/scripts/recordmcount ]; then pushd; cd /lib/modules/$(uname -r)/build/; make -j4 scripts; popd; fi
 
 - if [ ! -f /lib/modules/$(uname -r)/build/scripts/recordmcount ]; then echo "Something is wrong with your setup and/or kernel-headers, exiting!"; exit 1; fi
 
 - cd src
 
 - make -j4
 
 - if [ $? -eq 1 ]; then echo "Error compiling MT7601U!"; exit 1; fi
 
 - cp os/linux/*.ko /lib/modules/$(uname -r)/kernel/net/wireless/
 
 - mkdir -p /etc/Wireless/RT2870STA
 
 - cp RT2870STA.dat /etc/Wireless/RT2870STA/
 
 - depmod -a
 
 - cd ../..
 
  Copy code 
Save the script to some file, like e.g. mt76.sh and execute it -- voila, you now have the driver compiled and installed. I do repeat, though: you MUST have working kernel-headers installed properly.  
 
 
 |   
 
 
 
 |