perdugames
(usa Debian)
Enviado em 12/10/2017 - 09:52h
killwill escreveu:
MT7601U Wireless Adapter
#get patched drivers
wget
http://www.lewiscowles.co.uk/dls/MT7601U-14.04-patched.tar -O - | tar -x
cd MT7601U-14.04-patched
# build and install
sudo make
sudo make module
sudo make install
#clean
cd ..
sudo rm -r ./MT7601U-14.04-patched
#modprobe for drivers to activate usb
sudo modprobe -v mt7601Usta
ja tentei compilar varias vezes, mas nao consigo sempre recebo erro, esse aqui foi o que recebi com um `sudo make` do arquivo do link que voce deixou:
make -C tools
make[1]: Entering directory '/home/noloop/MT7601U-14.04-patched/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory '/home/noloop/MT7601U-14.04-patched/tools'
/home/noloop/MT7601U-14.04-patched/tools/bin2h
cp -f os/linux/Makefile.6 /home/noloop/MT7601U-14.04-patched/os/linux/Makefile
make -C /lib/modules/4.9.0-3-amd64/build SUBDIRS=/home/noloop/MT7601U-14.04-patched/os/linux modules
make[1]: Entering directory '/usr/src/linux-headers-4.9.0-3-amd64'
CC [M] /home/noloop/MT7601U-14.04-patched/os/linux/../../os/linux/rt_profile.o
/home/noloop/MT7601U-14.04-patched/os/linux/../../os/linux/rt_profile.c: In function â announce_802_3_packetâ :
/home/noloop/MT7601U-14.04-patched/os/linux/../../os/linux/rt_profile.c:331:16: warning: unused variable â pAdâ [-Wunused-variable]
RTMP_ADAPTER *pAd = (RTMP_ADAPTER *)pAdSrc;
^~~
In file included from /home/noloop/MT7601U-14.04-patched/include/rtmp_os.h:44:0,
from /home/noloop/MT7601U-14.04-patched/include/rtmp_comm.h:75,
from /home/noloop/MT7601U-14.04-patched/include/rt_config.h:33,
from /home/noloop/MT7601U-14.04-patched/os/linux/../../os/linux/rt_profile.c:28:
/home/noloop/MT7601U-14.04-patched/os/linux/../../os/linux/rt_profile.c: In function â STA_MonPktSendâ :
/home/noloop/MT7601U-14.04-patched/os/linux/../../os/linux/rt_profile.c:399:35: warning: format â %dâ expects argument of type â intâ , but argument 3 has type â long unsigned intâ [-Wformat=]
DBGPRINT(RT_DEBUG_ERROR, ("%s : Size is too large! (%d)\n", __FUNCTION__, pRxBlk->DataSize + sizeof(wlan_ng_prism2_header)));
^
/home/noloop/MT7601U-14.04-patched/include/os/rt_linux.h:661:16: note: in definition of macro â DBGPRINT_RAWâ
printk Fmt; \
^~~
/home/noloop/MT7601U-14.04-patched/os/linux/../../os/linux/rt_profile.c:399:9: note: in expansion of macro â DBGPRINTâ
DBGPRINT(RT_DEBUG_ERROR, ("%s : Size is too large! (%d)\n", __FUNCTION__, pRxBlk->DataSize + sizeof(wlan_ng_prism2_header)));
^~~~~~~~
CC [M] /home/noloop/MT7601U-14.04-patched/os/linux/../../sta/assoc.o
CC [M] /home/noloop/MT7601U-14.04-patched/os/linux/../../sta/auth.o
CC [M] /home/noloop/MT7601U-14.04-patched/os/linux/../../sta/auth_rsp.o
CC [M] /home/noloop/MT7601U-14.04-patched/os/linux/../../sta/sync.o
/home/noloop/MT7601U-14.04-patched/os/linux/../../sta/sync.c: In function â PeerBeaconâ :
/home/noloop/MT7601U-14.04-patched/os/linux/../../sta/sync.c:2180:12: error: passing argument 8 of â StaAddMacTableEntryâ from incompatible pointer type [-Werror=incompatible-pointer-types]
ie_list,
^~~~~~~
In file included from /home/noloop/MT7601U-14.04-patched/include/rt_config.h:59:0,
from /home/noloop/MT7601U-14.04-patched/os/linux/../../sta/sync.c:28:
/home/noloop/MT7601U-14.04-patched/include/rtmp.h:7892:9: note: expected â IE_LISTS * {aka struct _IE_lists *}â but argument is of type â BCN_IE_LIST * {aka struct _bcn_ie_list *}â
BOOLEAN StaAddMacTableEntry(
^~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
/usr/src/linux-headers-4.9.0-3-common/scripts/Makefile.build:298: recipe for target '/home/noloop/MT7601U-14.04-patched/os/linux/../../sta/sync.o' failed
make[4]: *** [/home/noloop/MT7601U-14.04-patched/os/linux/../../sta/sync.o] Error 1
/usr/src/linux-headers-4.9.0-3-common/Makefile:1507: recipe for target '_module_/home/noloop/MT7601U-14.04-patched/os/linux' failed
make[3]: *** [_module_/home/noloop/MT7601U-14.04-patched/os/linux] Error 2
Makefile:150: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.9.0-3-amd64'
Makefile:394: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2
minha versao do debian: #1 SMP Debian 4.9.30-2+deb9u5 (2017-09-19)