Problema ao instalar o driver mt7601u (adaptador wireless)

1. Problema ao instalar o driver mt7601u (adaptador wireless)

Igor Santana
St1lker-SWare

(usa Ubuntu)

Enviado em 12/05/2019 - 21:27h

Boa noite

Eu adquiri um adaptador wireless da ralink (mt7601u) e não estou acertando instalar o driver corretamente para colocá-lo para funcionar.

Segue as informações do adaptador e do meu sistema

$"lsusb"
Bus 001 Device 005: ID 148f:7601 Ralink Technology, Corp. MT7601U Wireless Adapter

$"uname -r"
4.9.0-9-amd64
(Linux Debian)

$"dmesg"
[ 2052.359942] usb 1-1: new high-speed USB device number 6 using xhci_hcd
[ 2052.511241] usb 1-1: New USB device found, idVendor=148f, idProduct=7601
[ 2052.511244] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2052.511246] usb 1-1: Product: 802.11 n WLAN
[ 2052.511248] usb 1-1: Manufacturer: MediaTek
[ 2052.511250] usb 1-1: SerialNumber: 1.0
[ 2052.628215] usb 1-1: reset high-speed USB device number 6 using xhci_hcd
[ 2052.771208] mt7601u 1-1:1.0: ASIC revision: 76010001 MAC revision: 76010500
[ 2052.771883] mt7601u 1-1:1.0: firmware: direct-loading firmware mt7601u.bin
[ 2052.771886] mt7601u 1-1:1.0: Firmware Version: 0.1.00 Build: 7640 Build time: 201302052146____
[ 2053.188735] mt7601u 1-1:1.0: EEPROM ver:0d fae:00
[ 2053.384234] ieee80211 phy2: Selected rate control algorithm 'minstrel_ht'
[ 2053.404304] mt7601Usta: disagrees about version of symbol module_layout
[ 2053.407424] mt7601u 1-1:1.0 wlx00e1b0107d6b: renamed from wlan0
[ 2053.452304] IPv6: ADDRCONF(NETDEV_UP): wlx00e1b0107d6b: link is not ready
[ 2053.469317] IPv6: ADDRCONF(NETDEV_UP): wlx00e1b0107d6b: link is not ready
[ 2055.905391] IPv6: ADDRCONF(NETDEV_UP): wlx00e1b0107d6b: link is not ready
[ 2055.951133] IPv6: ADDRCONF(NETDEV_UP): wlx00e1b0107d6b: link is not ready


Tentativas:
Fiz a busca por vários mt7601u no github, tentei compilar o driver por diversas vezes e sempre tenho esse erro de retorno durante a compilação

$"make"
make -C tools
make[1]: Entering directory '/home/user/mt7601/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory '/home/user/mt7601/tools'
/home/user/mt7601/tools/bin2h
cp -f os/linux/Makefile.6 /home/user/mt7601/os/linux/Makefile
make -C /lib/modules/4.9.0-9-amd64/build SUBDIRS=/home/user/mt7601/os/linux modules
make[1]: Entering directory '/usr/src/linux-headers-4.9.0-9-amd64'
CC [M] /home/user/mt7601/os/linux/../../os/linux/rt_profile.o
/home/user/mt7601/os/linux/../../os/linux/rt_profile.c: In function ‘announce_802_3_packet’:
/home/user/mt7601/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/user/mt7601/include/rtmp_os.h:44:0,
from /home/user/mt7601/include/rtmp_comm.h:75,
from /home/user/mt7601/include/rt_config.h:33,
from /home/user/mt7601/os/linux/../../os/linux/rt_profile.c:28:
/home/user/mt7601/os/linux/../../os/linux/rt_profile.c: In function ‘STA_MonPktSend’:
/home/user/mt7601/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/user/mt7601/include/os/rt_linux.h:661:16: note: in definition of macro ‘DBGPRINT_RAW’
printk Fmt; \
^~~
/home/user/mt7601/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/user/mt7601/os/linux/../../sta/assoc.o
CC [M] /home/user/mt7601/os/linux/../../sta/auth.o
CC [M] /home/user/mt7601/os/linux/../../sta/auth_rsp.o
CC [M] /home/user/mt7601/os/linux/../../sta/sync.o
/home/user/mt7601/os/linux/../../sta/sync.c: In function ‘PeerBeacon’:
/home/user/mt7601/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/user/mt7601/include/rt_config.h:59:0,
from /home/user/mt7601/os/linux/../../sta/sync.c:28:
/home/user/mt7601/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-9-common/scripts/Makefile.build:309: recipe for target '/home/user/mt7601/os/linux/../../sta/sync.o' failed
make[4]: *** [/home/user/mt7601/os/linux/../../sta/sync.o] Error 1
/usr/src/linux-headers-4.9.0-9-common/Makefile:1544: recipe for target '_module_/home/user/mt7601/os/linux' failed
make[3]: *** [_module_/home/user/mt7601/os/linux] Error 2
Makefile:152: 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-9-amd64'
Makefile:394: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2


Alguém pode me ajudar ?



  






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts