How to Install the mt7601u USB WiFi Driver

Message
Author
fr33land
Posts: 25
Joined: Thu 25 Jun 2015, 13:36

How to Install the mt7601u USB WiFi Driver

#1 Post by fr33land »

There are several versions of this driver, but the best one needs a 4.x kernel. To find your kernel version, run the command: uname -r

You have several choices:

A. The most recent mainstream kernels, like k4.9.x, have this driver built-in. Your adapter will work OOTB and no extra driver PET is required. Run the command: modinfo mt7601u

B. For other 6th generation Puppies, you can get the driver by doing a kernel change, as follows:

1a. Go here and download the huge-4.9.13-xenial-noPAE (32bit) or huge-4.9.13-xenialpup64. They have the mt7601u driver built-in.
1b. If you want a Slacko-related kernel, get the huge-4.4.70-s32-700_PAE or its 64bit version.

2. Extract the package. It has two files: vmlinuz-4.9.13-xenial_xxx and kernel-modules.sfs-4.9.13-xenial_xxx

3a. Open a terminal and run: change_kernels.
3b. If your Puppy does NOT have the change_kernels tool, install it from the PET below.

4. Drop the above two files into the two input boxes. Click OK.

5. Reboot.

6. Test your adapter.

----------------------
Attachments
mt7601u_xenial_75-k4.4.95.pet
Does NOT require a kernel change
(56.82 KiB) Downloaded 237 times
change_kernels-1.0.pet
(4.33 KiB) Downloaded 600 times
Last edited by fr33land on Sat 28 Jul 2018, 18:14, edited 27 times in total.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#2 Post by rcrsn51 »

deleted
Last edited by rcrsn51 on Sat 08 Jul 2017, 13:51, edited 10 times in total.

wow
Posts: 1052
Joined: Fri 30 Jun 2006, 00:18
Location: Peru

#3 Post by wow »

mt7601u driver for slacko64 6.3.0 kernel 4.1.11 [mt7601u_slacko630-k4.1.11-x86_64.pet] 306.3 KB

User avatar
wimpy
Posts: 406
Joined: Wed 22 Aug 2012, 10:30
Location: Essex, UK

#4 Post by wimpy »

@fr33land I tried the change kernels method on a LxPupsc-17.01.1 installation. The change_kernels command seemed to go through OK, using the unzipped files you indicated. However, when I checked the modules in the Connection wizard, mt7601u wasn't there. :(
LxXenial16.08, LxPupSc17.07.01,Lucid 5.2.8 and others - all frugal

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#5 Post by rcrsn51 »

To which kernel did you change?

User avatar
wimpy
Posts: 406
Joined: Wed 22 Aug 2012, 10:30
Location: Essex, UK

#6 Post by wimpy »

I used the huge-4.9.13-xenial-noPAE (32bit). I'd have preferred it to be all slacko but that was the only 4.9.13, I could use from that site. It would appear that the change_kernels app only changes the zdrv, on which the mt7601u should reside, and the vmlinuz. Those are the only 2 files that appear in bold (changed) in the File Manager after the operation..Odd that it isn't there. I'd got the LxXenial16.08 connected via the mt7601u from here but the distro,itself, is somewhat flaky on my test rig, requiring a number of hard reboots before it will relent and load up normally. Usually it says it is starting X and then hangs.
LxXenial16.08, LxPupSc17.07.01,Lucid 5.2.8 and others - all frugal

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#7 Post by rcrsn51 »

wimpy wrote:Those are the only 2 files that appear in bold (changed) in the File Manager after the operation.
That's correct.

1. I downloaded and did a frugal install of LxPupSc-17.01.1R.iso.
2. I did the kernel change to huge-4.9.13-xenial-noPAE.
3. I rebooted.
4. I plugged in the mt7601 adapter.
5. I ran the command: iwconfig.
6. The wlan0 interface was there and working.

User avatar
wimpy
Posts: 406
Joined: Wed 22 Aug 2012, 10:30
Location: Essex, UK

#8 Post by wimpy »

I did the same as you - the only difference is that my iso download was LxPupSc-17.01.1T.iso. Did you find mt7601u already there in the modules section when you did the configuration? It is certainly not an option in the files left by change_kernels. I'm at a bit of a loss in understanding why it's missing when we are using the same downloads.
LxXenial16.08, LxPupSc17.07.01,Lucid 5.2.8 and others - all frugal

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#9 Post by rcrsn51 »

I don't know what you mean by the "modules section". Are you referring to something in the Dougal wizard?

I installed PeasyWifi as usual and it worked fine.

User avatar
wimpy
Posts: 406
Joined: Wed 22 Aug 2012, 10:30
Location: Essex, UK

#10 Post by wimpy »

Yes The Dougal Wizard offers a selection of drivers, and means of adding in additional drivers if the stock drivers aren't suitable. I looked at Peasywifi but it seems to involve setting up the wifi connection after you've installed the driver. My problem is getting at the driver. I just can't find a mt7601u driver anywhere in the new kernel files I downloaded. I was under the impression that it was there in the new kernel files and could be selected.
LxXenial16.08, LxPupSc17.07.01,Lucid 5.2.8 and others - all frugal

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#11 Post by rcrsn51 »

With all due respect, I have no idea what you are talking about.

1. Have you run the iwconfig command?

2. Where are you looking for the module and why is that important? If the module is present, your system will automatically load it.

3. Plug in the adapter and run the command: lsmod

4. I found mt7601u.ko in /lib/modules/4.9.13/kernel/drivers/net/wireless/mediatek/mt7601u.

5. Did you actually try PeasyWiFi? Did its "I/F" button show an interface? Did its "Status" button show the loaded mt7601u module? Could it locate any access points? Could it connect to your network?

User avatar
wimpy
Posts: 406
Joined: Wed 22 Aug 2012, 10:30
Location: Essex, UK

#12 Post by wimpy »

rcrsn51 wrote:With all due respect, I have no idea what you are talking about.

1. Have you run the iwconfig command?

2. Where are you looking for the module and why is that important? If the module is present, your system will automatically load it.

3. Plug in the adapter and run the command: lsmod

4. I found mt7601u.ko in /lib/modules/4.9.13/kernel/drivers/net/wireless/mediatek/mt7601u.

5. Did you actually try PeasyWiFi? Did its "I/F" button show an interface? Did its "Status" button show the loaded mt7601u module? Could it locate any access points? Could it connect to your network?
1. Yes I did. It could not find any network connection.No wlan0.
2. I've looked all over for the module. Without the module I'm not seeing any wifi connection.
3. I will try that when I come out of this.
4. I will have a look for tthat,
5, I did try Peasywifi but it could not see anything. On this distro it seemed almost identical to Dougal and I used it to re connect to the router.
I'll have another look at the Slacko distro to seeif I can find that module.
I'll be back.
LxXenial16.08, LxPupSc17.07.01,Lucid 5.2.8 and others - all frugal

User avatar
wimpy
Posts: 406
Joined: Wed 22 Aug 2012, 10:30
Location: Essex, UK

#13 Post by wimpy »

I've had a look for the module .It's in /lib/modules/4.9.13/kernel/drivers/net/wireless/meiatek/mt7601. mt7601u.ko is in that folder. I tried to point dougal at it but it refuses to look in that directory. It's as if it still think I'm on the earlier kernel. I still don't understand how you managed to install that driver so that the wlan0 interface can exist.
PS The problem is that without a wifi connectio it is not possible to install Peasywifi through PPM. I need to see if there's a Peasywifi pet about.
Thanks for your help and your time.
PPS I'm not giving up yet. You haven't by any chance got a 4.1.11 mt7601u 32bit. driver/
LxXenial16.08, LxPupSc17.07.01,Lucid 5.2.8 and others - all frugal

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#14 Post by rcrsn51 »

1. What did the lsmod command show?

2. PeasyWiFi is here.

It sounds like your kernel change in LxPup failed somehow. Ask peebee about it - maybe he can duplicate the problem.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#15 Post by rcrsn51 »

You haven't by any chance got a 4.1.11 mt7601u 32bit. driver
I have posted it above. You can use it with a kernel change to huge_slacko_PAE-k4.1.11.

User avatar
wimpy
Posts: 406
Joined: Wed 22 Aug 2012, 10:30
Location: Essex, UK

#16 Post by wimpy »

lsmod showed nothing at all. I thought the slacko pet you posted was a 64bit version. Does it matter? If the kernel change command has left a faulty OS I would be better off ditching it and starting again.
If your slacko pet works, I would not need to change kernels.
According to Dougal's wizard the module should be loaded automatically. However, modprobe seems to be all at sea. I would like to keep this installation while installing another, following your steps, but I've found that impossible with my limited knowledge.- so deleting it and starting again would seem to be my only option.
LxXenial16.08, LxPupSc17.07.01,Lucid 5.2.8 and others - all frugal

mostly_lurking
Posts: 328
Joined: Wed 25 Jun 2014, 20:31

#17 Post by mostly_lurking »

wimpy wrote:I thought the slacko pet you posted was a 64bit version.
The "mt7601u_huge_slacko_PAE-k4.1.11.pet" from the first post is 32bit, the one from the second post, "mt7601u_slacko64_630-k4.1.11.pet", is 64bit. Make sure you downloaded the correct one.

You can check this by right-clicking the driver file and looking at the "Properties" dialog, or by using the "file" command:

Code: Select all

# file mt7601u.ko
mt7601u.ko: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), not stripped

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#18 Post by Flash »

I think any kernel with PAE in its name has to be 32-bit. PAE allows 32-bit kernels to use more than 4 GB of RAM.

User avatar
wimpy
Posts: 406
Joined: Wed 22 Aug 2012, 10:30
Location: Essex, UK

#19 Post by wimpy »

Thank you both mostly_lurking and Flash. I wasn't looking at the correct post nor thinking clearly. That simplifies my next move.
LxXenial16.08, LxPupSc17.07.01,Lucid 5.2.8 and others - all frugal

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#20 Post by rcrsn51 »

The second group of PETs was started in May 2016 and is now largely irrelevant since newer kernels have arrived.

I have removed it to avoid confusion.

Post Reply