jonfitt
Posts: 9
Joined: Mon Jun 01, 2015 4:01 pm

Ralink 148f:7601 wifi dongle not working with 4.1.6-v7 #810

Thu Aug 27, 2015 3:56 am

I've read several posts about dongles which show up as Ralink 148f:7601 and tried to follow the advice, but it's not working for me.
I bought a cheapo dongle called Vafru VN-902H which turns out to be the aforementioned Ralink.

I checked that I have the ralink firmware loaded.

Code: Select all

pi@pi2 ~ $ sudo apt-get install firmware-ralink
Reading package lists... Done
Building dependency tree       
Reading state information... Done
firmware-ralink is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Code: Select all

pi@pi2 ~ $ uname -a
Linux pi2 4.1.6-v7+ #810 SMP PREEMPT Tue Aug 18 15:32:12 BST 2015 armv7l GNU/Linux
It is detected as a USB device.

Code: Select all

pi@pi2 ~ $ lsusb
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. 
Bus 001 Device 004: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 005: ID 148f:7601 Ralink Technology, Corp. 
I downloaded what I hope is the right driver from the kind MrEngman, by guessing at a file version and it existed!

Code: Select all

wget https://dl.dropboxusercontent.com/u/80256631/MT7601-4.1.6-810.tar.gz
tar -xzvf MT7601-4.1.6-810.tar.gz 
./install.sh
There appears to be some problem loading the driver.

Code: Select all

pi@pi2 ~ $ dmesg |grep mt7601
[    4.805772] mt7601u 1-1.5:1.0: ASIC revision: 76010001 MAC revision: 76010500
[    4.821366] mt7601u 1-1.5:1.0: Direct firmware load for mt7601u.bin failed with error -2
[    4.836151] mt7601u: probe of 1-1.5:1.0 failed with error -2
[    4.848095] usbcore: registered new interface driver mt7601u
But the module is loaded.

Code: Select all

pi@pi2 ~ $ lsmod
Module                  Size  Used by
snd_bcm2835            19769  3 
snd_pcm                74825  1 snd_bcm2835
snd_seq                53561  0 
snd_seq_device          3650  1 snd_seq
snd_timer              18157  2 snd_pcm,snd_seq
snd                    52116  11 snd_bcm2835,snd_timer,snd_pcm,snd_seq,snd_seq_device
mt7601u                74958  0 
mac80211              542190  1 mt7601u
cfg80211              420690  2 mac80211,mt7601u
rfkill                 16659  1 cfg80211
joydev                  9047  0 
evdev                  10232  4 
uio_pdrv_genirq         2966  0 
uio                     8235  1 uio_pdrv_genirq
I see no wlan0 or ra0 so I have nothing to configure. Can anyone help me with the driver?

MrEngman
Posts: 4140
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Ralink 148f:7601 wifi dongle not working with 4.1.6-v7 #

Thu Aug 27, 2015 1:01 pm

jonfitt wrote:I've read several posts about dongles which show up as Ralink 148f:7601 and tried to follow the advice, but it's not working for me.
I bought a cheapo dongle called Vafru VN-902H which turns out to be the aforementioned Ralink.

I checked that I have the ralink firmware loaded.

Code: Select all

pi@pi2 ~ $ sudo apt-get install firmware-ralink
Reading package lists... Done
Building dependency tree       
Reading state information... Done
firmware-ralink is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Code: Select all

pi@pi2 ~ $ uname -a
Linux pi2 4.1.6-v7+ #810 SMP PREEMPT Tue Aug 18 15:32:12 BST 2015 armv7l GNU/Linux
It is detected as a USB device.

Code: Select all

pi@pi2 ~ $ lsusb
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. 
Bus 001 Device 004: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 005: ID 148f:7601 Ralink Technology, Corp. 
I downloaded what I hope is the right driver from the kind MrEngman, by guessing at a file version and it existed!

Code: Select all

wget https://dl.dropboxusercontent.com/u/80256631/MT7601-4.1.6-810.tar.gz
tar -xzvf MT7601-4.1.6-810.tar.gz 
./install.sh
There appears to be some problem loading the driver.

Code: Select all

pi@pi2 ~ $ dmesg |grep mt7601
[    4.805772] mt7601u 1-1.5:1.0: ASIC revision: 76010001 MAC revision: 76010500
[    4.821366] mt7601u 1-1.5:1.0: Direct firmware load for mt7601u.bin failed with error -2
[    4.836151] mt7601u: probe of 1-1.5:1.0 failed with error -2
[    4.848095] usbcore: registered new interface driver mt7601u
But the module is loaded.

Code: Select all

pi@pi2 ~ $ lsmod
Module                  Size  Used by
snd_bcm2835            19769  3 
snd_pcm                74825  1 snd_bcm2835
snd_seq                53561  0 
snd_seq_device          3650  1 snd_seq
snd_timer              18157  2 snd_pcm,snd_seq
snd                    52116  11 snd_bcm2835,snd_timer,snd_pcm,snd_seq,snd_seq_device
mt7601u                74958  0 
mac80211              542190  1 mt7601u
cfg80211              420690  2 mac80211,mt7601u
rfkill                 16659  1 cfg80211
joydev                  9047  0 
evdev                  10232  4 
uio_pdrv_genirq         2966  0 
uio                     8235  1 uio_pdrv_genirq
I see no wlan0 or ra0 so I have nothing to configure. Can anyone help me with the driver?
The file you downloaded was the wrong one. It should have been mt7601-4.1.6-v7-810.tar.gz. Note the extra "-v7" and lower case in the name "mt7601".

However, the latest code, 4.1.xx(-v7)+ now includes an mt7601 driver but needs the firmware loading as it is not yet included in the firmware-ralink package. This is why you see the error you have in dmesg. You can install the firmware using the command

Code: Select all

sudo wget https://github.com/porjo/mt7601/raw/master/src/mcu/bin/MT7601.bin -O /lib/firmware/mt7601u.bin
After loading the firmware reboot to activate the driver. Also note the case of the text in the filenames as Linux treats all text as case sensitive unlike windows so a file name with upper case letters is not the same as the same name using lower case letters.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

jonfitt
Posts: 9
Joined: Mon Jun 01, 2015 4:01 pm

Re: Ralink 148f:7601 wifi dongle not working with 4.1.6-v7 #

Thu Aug 27, 2015 4:46 pm

Thanks. I'll try that when I get home.
I saw one of your other posts and guessed at the filename. :D When I got a hit I thought "bingo!"
I'll go to that link and get the right one. Do I need to do anything to "uninstall" the driver I loaded already or will it get overwritten when this new driver "claims" the USB ID?

I really appreciate your help for the community building these drivers and firmware packages. I could only claim to be a journeyman Linux user, everything about the Kernel is a big black box to me. When someone suggests building a kernel module I nope right out of there. I'll learn to do it one day, but today is not that day ;)

It seems like a lot of these cheapo dongles are using the Ralink chip. Have you considered keeping a wiki page of the info with latest links?

jonfitt
Posts: 9
Joined: Mon Jun 01, 2015 4:01 pm

Re: Ralink 148f:7601 wifi dongle not working with 4.1.6-v7 #

Fri Aug 28, 2015 2:52 am

That got it, thanks. I used the correct driver package you specified and that firmware.

Since the driver package has a very Kernel version specific name I'm wondering if/when I'll need to do this again? Is it the case that if you have to build and add in a driver module that you need to redo it when the kernel changes?

MrEngman
Posts: 4140
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Ralink 148f:7601 wifi dongle not working with 4.1.6-v7 #

Fri Aug 28, 2015 5:20 pm

jonfitt wrote:That got it, thanks. I used the correct driver package you specified and that firmware.

Since the driver package has a very Kernel version specific name I'm wondering if/when I'll need to do this again? Is it the case that if you have to build and add in a driver module that you need to redo it when the kernel changes?
Sorry for the delay in getting back to you.

You only needed to load the driver or the firmware, not both. Normally this would stop the wifi working as you will now have two different drivers installed for the mt7601 but it doesn't appear to for the mt7601 driver as I have tried loading both on my Pi and it is working OK as well with both drivers installed.

Now you have loaded the firmware for the built in driver you should not need to load a new version of the driver if you want to update your kernel as the built in driver will automatically be updated whenever you update the kernel.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

AjinkyaP
Posts: 1
Joined: Mon Aug 31, 2015 3:58 pm

Re: Ralink 148f:7601 wifi dongle not working with 4.1.6-v7 #

Mon Aug 31, 2015 4:12 pm

Thanx @MrEngman It really works...!!!

I was trying to get working my Wifi adaptor on my pi2 since I got it from amazon(25th may).
I also saw one of ur another post with 3.6.11 or something but mine was 4.1.6-v7+ so not worked that way.
but now its working by just updating firmware by the link given by you...!!

Thank you so much once again ...!!!

also can you please help me with setting up my pi as wifi AP with direct login to my ISP pppoe through eth...!!
is there any GUI for it???(as like wpa.gui)

swap.it
Posts: 1
Joined: Fri Oct 02, 2015 8:21 pm

Re: Ralink 148f:7601 wifi dongle not working with 4.1.6-v7 #

Fri Oct 02, 2015 8:26 pm

@MrEngman

It works indeed : viewtopic.php?p=808093#p808093

Many thanks. You saved my WiFi adapter from going into trash...!!!

megasoft
Posts: 11
Joined: Wed Feb 18, 2015 12:55 pm

Re: Ralink 148f:7601 wifi dongle not working with 4.1.6-v7 #

Mon Jan 04, 2016 2:14 pm

Thanks MrEngman. Your excellent post got it to work for me as well!

mistergiu
Posts: 3
Joined: Wed Jan 06, 2016 9:35 pm

Re: Ralink 148f:7601 wifi dongle not working with 4.1.6-v7 #

Mon Jan 11, 2016 12:57 pm

Thank you, but it seems it doesn't work.

Maybe because of the kernel version?

uname -a: Linux raspberrypi 4.1.15-v7+ #830 SMP Tue Dec 15 17:02:45 GMT 2015 armv7l GNU/Linux

I Have a Raspberry b 2

Giulio

fruitoftheloom
Posts: 27226
Joined: Tue Mar 25, 2014 12:40 pm

Re: Ralink 148f:7601 wifi dongle not working with 4.1.6-v7 #

Mon Jan 11, 2016 1:03 pm

This post is out of date, removed my response, see next post....
Last edited by fruitoftheloom on Mon Jan 11, 2016 1:05 pm, edited 1 time in total.
Take what I advise as advice not the utopian holy grail, and it is gratis !!

MrEngman
Posts: 4140
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Ralink 148f:7601 wifi dongle not working with 4.1.6-v7 #

Mon Jan 11, 2016 1:03 pm

mistergiu wrote:Thank you, but it seems it doesn't work.

Maybe because of the kernel version?

uname -a: Linux raspberrypi 4.1.15-v7+ #830 SMP Tue Dec 15 17:02:45 GMT 2015 armv7l GNU/Linux

I Have a Raspberry b 2

Giulio
The mt7601u driver is now included in the raspbian image but it may need firmware installing. You can install the firmware using command

Code: Select all

sudo wget https://github.com/porjo/mt7601/raw/master/src/mcu/bin/MT7601.bin -O /lib/firmware/mt7601u.bin
Reboot after installing the firmware and your wifi should start working.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

chipstech
Posts: 1
Joined: Wed Feb 24, 2016 12:24 pm

Re: Ralink 148f:7601 wifi dongle not working with 4.1.6-v7 #

Wed Feb 24, 2016 12:27 pm

Just follow this post. And you'll be done with this.. :)

http://chips.com.pk/2016/02/24/how-to-m ... pberry-pi/

bit
Posts: 1
Joined: Wed Mar 02, 2016 4:03 pm

Re: Ralink 148f:7601 wifi dongle not working with 4.1.6-v7 #

Wed Mar 02, 2016 4:24 pm

chipstech wrote:Just follow this post. And you'll be done with this.. :)

http://chips.com.pk/2016/02/24/how-to-m ... pberry-pi/
MrEngman wrote:
mistergiu wrote:Thank you, but it seems it doesn't work.

Maybe because of the kernel version?

uname -a: Linux raspberrypi 4.1.15-v7+ #830 SMP Tue Dec 15 17:02:45 GMT 2015 armv7l GNU/Linux

I Have a Raspberry b 2

Giulio
The mt7601u driver is now included in the raspbian image but it may need firmware installing. You can install the firmware using command

Code: Select all

sudo wget https://github.com/porjo/mt7601/raw/master/src/mcu/bin/MT7601.bin -O /lib/firmware/mt7601u.bin
Reboot after installing the firmware and your wifi should start working.


MrEngman
Hi everybody,
I have read all advice for using Ralink MediaTek MT7601U Wi-Fi dongle with AP mode but I can't solve my problem.
Details:
pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.1.18-v7+ #848 SMP Mon Feb 29 14:19:45 GMT 2016 armv7l GNU/Linux
I downloaded latest version hostapd
pi@raspberrypi:~ $ wget w1.fi/releases/hostapd-2.5.tar.gz
Also I downloaded components for correct hostapd make ()
pi@raspberrypi:~ $ apt-get install libnl-dev libssl-dev
My settings for hostapd /etc/hostapd/hostapd.conf
interface=wlan1
driver=nl80211
ssid=Pi_AP
hw_mode=g
channel=6
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=raspberry
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
Run hostapd result:
pi@raspberrypi:~ $ sudo /usr/sbin/hostapd -dd /etc/hostapd/hostapd.conf
random: Trying to read entropy from /dev/random
Configuration file: /etc/hostapd/hostapd.conf
rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
rfkill: initial event: idx=1 type=1 op=0 soft=0 hard=0
nl80211: Supported cipher 00-0f-ac:1
nl80211: Supported cipher 00-0f-ac:5
nl80211: Supported cipher 00-0f-ac:2
nl80211: Supported cipher 00-0f-ac:4
nl80211: Supported cipher 00-0f-ac:10
nl80211: Supported cipher 00-0f-ac:8
nl80211: Supported cipher 00-0f-ac:9
nl80211: Using driver-based off-channel TX
nl80211: interface wlan1 in phy phy1
nl80211: Set mode ifindex 4 iftype 3 (AP)
nl80211: Failed to set interface 4 to mode 3: -95 (Operation not supported)
nl80211: Try mode change after setting interface down
nl80211: Set mode ifindex 4 iftype 3 (AP)
nl80211: Failed to set interface 4 to mode 3: -95 (Operation not supported)
nl80211: Interface mode change to 3 from 0 failed
nl80211: Could not configure driver mode
nl80211: deinit ifname=wlan1 disabled_11b_rates=0
nl80211: Remove monitor interface: refcount=0
netlink: Operstate: ifindex=4 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)
nl80211: Set mode ifindex 4 iftype 2 (STATION)
nl80211 driver initialization failed.
hostapd_interface_deinit_free(0x1c4440)
hostapd_interface_deinit_free: num_bss=1 conf->num_bss=1
hostapd_interface_deinit(0x1c4440)
wlan1: interface state UNINITIALIZED->DISABLED
hostapd_bss_deinit: deinit bss wlan1
wlan1: AP-DISABLED
hostapd_cleanup(hapd=0x1c4fe0 (wlan1))
hostapd_free_hapd_data: Interface wlan1 wasn't started
hostapd_interface_deinit_free: driver=(nil) drv_priv=(nil) -> hapd_deinit
hostapd_interface_free(0x1c4440)
hostapd_interface_free: free hapd 0x1c4fe0
hostapd_cleanup_iface(0x1c4440)
hostapd_cleanup_iface_partial(0x1c4440)
hostapd_cleanup_iface: free iface=0x1c4440
I check this method and already use firware from this instruction http://chips.com.pk/2016/02/24/how-to-m ... pberry-pi/
pi@raspberrypi:~ $ dmesg |grep mt7601
[ 7.470486] mt7601u 1-1.2:1.0: ASIC revision: 76010001 MAC revision: 76010500
[ 7.482351] mt7601u 1-1.2:1.0: Firmware Version: 0.1.00 Build: 7640 Build time: 201302052146____
[ 7.886235] mt7601u 1-1.2:1.0: Warning: unsupported EEPROM version 0d
[ 7.886261] mt7601u 1-1.2:1.0: EEPROM ver:0d fae:00
[ 8.317379] mt7601u 1-1.4:1.0: ASIC revision: 76010001 MAC revision: 76010500
[ 8.318711] mt7601u 1-1.4:1.0: Firmware Version: 0.1.00 Build: 7640 Build time: 201302052146____
[ 8.726914] mt7601u 1-1.4:1.0: Warning: unsupported EEPROM version 0d
[ 8.726940] mt7601u 1-1.4:1.0: EEPROM ver:0d fae:00
[ 8.987496] usbcore: registered new interface driver mt7601u
And
pi@raspberrypi:~ $ rfkill list
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
1: phy1: Wireless LAN
Soft blocked: no
Hard blocked: no
Do you have any ideas for solve this problem? Many Thanks.

Return to “Troubleshooting”