Ralink mt7601 kali linux

Good day. I bought a cheap wifi Dongle which works with a Windows pc but not the Raspberry Pi
Been trying to find help on this online but I keep running into problems when attempting to get the drivers installed.

First off, I have the following IFCONFIG:

iface lo inet loopback
iface eth0 inet static

address 192.168.1.200
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp

lsusb: Bus 001 Device 004: ID 148f:7601 Ralink Technology, Corp.
uname -a: Linux RPI200 3.12.30+ #717 PREEMPT Fri Oct 17 18:46:31 BST 2014 armv6l GNU/Linux

Tried to follow several help pages but I keep running into errors when copying and pasting their instructions. Got as far as downloading and extracting the 4 files from the compressed file ( DPO_MT7601U_LinuxSTA_3.0.0.4_20130913.tar.bz2 )
Copied ( moved ) the four files to where they should go and then ran a sudo depmod -a

No go. Would REALLY appreciate any help I could get. Thank you in advance!

Re: MT7601 driver

There have been many posts regards MT7601 and when I tried I had no wlan0 but ra0 instead, but in the end just went out and bought a £3.00 RTL8188CU supported Dongle.

Re: MT7601 driver

That doesn’t bode well for me then. Been told that some people were successful in getting it to run and then there are those who had problems getting it to run. spent many hours working on it. I’d rather replace it and get one that runs out of the box instead of spending too much time with it

Re: MT7601 driver

Re: MT7601 driver

Yeah I’ve seen this link. Problem is that I am currently in a country where the dongles are VERY LIMITED and the nice ones cost a fortune. You try ordering one from ebay. not only wont the post office DELIVER it to your door, but you’d have to GO PICK IT UP from the post office and pay them some bs duties tax. Can’t wait to get back home to california.

Читайте также:  Linux mount cifs as user

Thanks for the link buddy.

Re: MT7601 driver

FINALLY got this thing to work. Used this page as a guide:

That’s AFTER reloading raspbian on the SD Card. I guess over time, extraneous junk tends to be added to the OS that renders it half-useless. or maybe it was just simply corrupt. Who knows.

[ 8.555657] Endpoint(7) is for WMM0 AC3
[ 8.565094] Endpoint(9) is for WMM1 AC0
[ 8.574438] Endpoint(84) is for Data-In
[ 8.583721] Endpoint(85) is for Command Rsp
[ 8.603415] usbcore: registered new interface driver rt2870

pi@RPI200 ~ $ ifconfig
eth0 Link encap:Ethernet HWaddr b8:27:eb:8f:3e:b5
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

ra0 Link encap:Ethernet HWaddr 24:05:0f:10:d7:c3
inet addr:192.168.1.25 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:469708 errors:0 dropped:0 overruns:0 frame:0
TX packets:14196 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:123821260 (118.0 MiB) TX bytes:2053073 (1.9 MiB)

Just waaaaaaay too much time to get it running whereas you can easily get a cheap one that works out of the box ( if you are in the right locale )

Источник

Установка драйвера WiFi Kali Linux

[email protected]:~# cd mt7601u
[email protected]:~/mt7601u# make
make -C /lib/modules/`uname -r`/build M=$PWD
make[1]: вход в каталог «/usr/src/linux-headers-4.17.0-kali3-amd64»
CC [M] /root/mt7601u/mac.o
/root/mt7601u/mac.c: In function ‘mt76_mac_process_rate’:
/root/mt7601u/mac.c:408:20: error: ‘RX_FLAG_SHORTPRE’ undeclared (first use in this function); did you mean ‘RX_ENC_FLAG_SHORTPRE’?
status->flag |= RX_FLAG_SHORTPRE;
^~~~~~~~~~~~~~~~
RX_ENC_FLAG_SHORTPRE
/root/mt7601u/mac.c:408:20: note: each undeclared identifier is reported only once for each function it appears in
/root/mt7601u/mac.c:417:19: error: ‘RX_FLAG_HT_GF’ undeclared (first use in this function); did you mean ‘RX_ENC_FLAG_HT_GF’?
status->flag |= RX_FLAG_HT_GF;
^~~~~~~~~~~~~
RX_ENC_FLAG_HT_GF
/root/mt7601u/mac.c:420:19: error: ‘RX_FLAG_HT’ undeclared (first use in this function); did you mean ‘RX_FLAG_HT_GF’?
status->flag |= RX_FLAG_HT;
^~~~~~~~~~
RX_FLAG_HT_GF
/root/mt7601u/mac.c:429:19: error: ‘RX_FLAG_SHORT_GI’ undeclared (first use in this function); did you mean ‘RX_FLAG_SHORTPRE’?
status->flag |= RX_FLAG_SHORT_GI;
^~~~~~~~~~~~~~~~
RX_FLAG_SHORTPRE
/root/mt7601u/mac.c:432:24: error: ‘RX_FLAG_STBC_SHIFT’ undeclared (first use in this function); did you mean ‘RX_ENC_FLAG_STBC_SHIFT’?
status->flag |= 1 ^~~~~~~~~~~~~~~~~~
RX_ENC_FLAG_STBC_SHIFT
/root/mt7601u/mac.c:435:19: error: ‘RX_FLAG_40MHZ’ undeclared (first use in this function); did you mean ‘RX_FLAG_HT’?
status->flag |= RX_FLAG_40MHZ;
^~~~~~~~~~~~~
RX_FLAG_HT
make[4]: *** [/usr/src/linux-headers-4.17.0-kali3-common/scripts/Makefile.build:318: /root/mt7601u/mac.o] Ошибка 1
make[3]: *** [/usr/src/linux-headers-4.17.0-kali3-common/Makefile:1585: _module_/root/mt7601u] Ошибка 2
make[2]: *** [Makefile:146: sub-make] Ошибка 2
make[1]: *** [Makefile:8: all] Ошибка 2
make[1]: выход из каталога «/usr/src/linux-headers-4.17.0-kali3-amd64»
make: *** [Makefile:8: default] Ошибка 2

Читайте также:  Linux результат выполнения одной команды

Я ещё очень слабо понимаю в теме Linux, но мне очень интересно и я хочу развиваться. Прошу помощи.

yarr

Имею USB wifi модуль, но не могу установить драйвер, подскажите пожалуйста
Инфу по установке брал Здесь » kuba-moo/mt7601u »
Но при сборке выбивает ошибку

[email protected]:~# cd mt7601u
[email protected]:~/mt7601u# make
make -C /lib/modules/`uname -r`/build M=$PWD
make[1]: вход в каталог «/usr/src/linux-headers-4.17.0-kali3-amd64»
CC [M] /root/mt7601u/mac.o
/root/mt7601u/mac.c: In function ‘mt76_mac_process_rate’:
/root/mt7601u/mac.c:408:20: error: ‘RX_FLAG_SHORTPRE’ undeclared (first use in this function); did you mean ‘RX_ENC_FLAG_SHORTPRE’?
status->flag |= RX_FLAG_SHORTPRE;
^~~~~~~~~~~~~~~~
RX_ENC_FLAG_SHORTPRE
/root/mt7601u/mac.c:408:20: note: each undeclared identifier is reported only once for each function it appears in
/root/mt7601u/mac.c:417:19: error: ‘RX_FLAG_HT_GF’ undeclared (first use in this function); did you mean ‘RX_ENC_FLAG_HT_GF’?
status->flag |= RX_FLAG_HT_GF;
^~~~~~~~~~~~~
RX_ENC_FLAG_HT_GF
/root/mt7601u/mac.c:420:19: error: ‘RX_FLAG_HT’ undeclared (first use in this function); did you mean ‘RX_FLAG_HT_GF’?
status->flag |= RX_FLAG_HT;
^~~~~~~~~~
RX_FLAG_HT_GF
/root/mt7601u/mac.c:429:19: error: ‘RX_FLAG_SHORT_GI’ undeclared (first use in this function); did you mean ‘RX_FLAG_SHORTPRE’?
status->flag |= RX_FLAG_SHORT_GI;
^~~~~~~~~~~~~~~~
RX_FLAG_SHORTPRE
/root/mt7601u/mac.c:432:24: error: ‘RX_FLAG_STBC_SHIFT’ undeclared (first use in this function); did you mean ‘RX_ENC_FLAG_STBC_SHIFT’?
status->flag |= 1 ^~~~~~~~~~~~~~~~~~
RX_ENC_FLAG_STBC_SHIFT
/root/mt7601u/mac.c:435:19: error: ‘RX_FLAG_40MHZ’ undeclared (first use in this function); did you mean ‘RX_FLAG_HT’?
status->flag |= RX_FLAG_40MHZ;
^~~~~~~~~~~~~
RX_FLAG_HT
make[4]: *** [/usr/src/linux-headers-4.17.0-kali3-common/scripts/Makefile.build:318: /root/mt7601u/mac.o] Ошибка 1
make[3]: *** [/usr/src/linux-headers-4.17.0-kali3-common/Makefile:1585: _module_/root/mt7601u] Ошибка 2
make[2]: *** [Makefile:146: sub-make] Ошибка 2
make[1]: *** [Makefile:8: all] Ошибка 2
make[1]: выход из каталога «/usr/src/linux-headers-4.17.0-kali3-amd64»
make: *** [Makefile:8: default] Ошибка 2

Я ещё очень слабо понимаю в теме Linux, но мне очень интересно и я хочу развиваться. Прошу помощи.

и выложите вывод сюда под спойлер.

UPD. Все таки нашел ваше ядро в логе. Думаю Вам стоит читать описание того, что ставите (мало ли). Там написано, что если ядро выше версии 4.2, то ничего ставить не надо, все уже из коробки.
Вот

Читайте также:  How to set an ip address linux

на пропиетарный (от производителя).

А зачем Вы хотите установить его? Судя по информации из Вашей ссылки адаптер должен работать в системе без проблем.

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Patched Linux driver for Ralink mt7601u wifi dongle

cmulk/mt7601u-fix

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

This repo includes a patched kernel module to fix ralink mt7601u wifi dongles that don’t initialize when plugged in.

The credit for the fix goes to the post here.

And the credit for the idea to set up dkms for install goes to https://github.com/brektrou/rtl8821CU

The original driver comes from the Linux 5.10 and the patch applied for the fix can be viewed at commit fef9d

Disable the built-in kernel module

echo "blacklist mt7601u" > /etc/modprobe.d/mt7601u.conf 
sudo ./dkms-install.sh modprobe mt7601u-fix 

Enable the new module to start on boot

echo "mt7601u-fix" >> /etc/modules-load.d/modules.conf 
rm /etc/modprobe.d/mt7601u.conf sudo ./dkms-remove.sh 

And remove the mt7601u-fix line from /etc/modules-load.d/modules.conf

About

Patched Linux driver for Ralink mt7601u wifi dongle

Источник

Оцените статью
Adblock
detector