Installing a driver for wifi adapter

Post here if you are a new Porteus member and you're looking for some help.
oleedd
White ninja
White ninja
Posts: 14
Joined: 23 Oct 2023, 21:24
Distribution: Porteus

Installing a driver for wifi adapter

Post#1 by oleedd » 23 Oct 2023, 21:35

I need to install a driver for usb wifi adapter mt7601u on Porteus 3.19.8.
Ideally if from a file. So the problem is to get a correct file.
Please help.

beny
Full of knowledge
Full of knowledge
Posts: 2098
Joined: 02 Jan 2011, 11:33
Location: italy

Installing a driver for wifi adapter

Post#2 by beny » 25 Oct 2023, 15:33

hi, you have to look if there is this driver module into your kernel,and in konsole or terminal write sudo modprobe mt7601u, after this lsmod have to show you the module loaded,but i don't know if the device need a firmware to work.... i don't have it, here where you have to look kernel/drivers/net/wireless/mediatek/mt7601u/

Code: Select all

  bash-5.2# lsmod
Module                  Size  Used by
mt7601u               180224  0
mac80211             1572864  1 mt7601u
libarc4                12288  1 mac80211
cfg80211             1335296  2 mt7601u,mac80211
8021q                  53248  0
garp                   16384  1 8021q
mrp                    20480  1 8021q
stp                    12288  1 garp
llc                    16384  2 stp,garp
dm_mod                225280  0
btusb                  86016  0
btrtl                  32768  1 btusb
btintel                57344  1 btusb
btbcm                  24576  1 btusb
btmtk                  12288  1 btusb
bluetooth            1114112  6 btrtl,btmtk,btintel,btbcm,btusb
mousedev               24576  0
usbhid                 77824  0
uas                    32768  0
ecdh_generic           16384  1 bluetooth
usb_storage            90112  2 uas
rfkill                 40960  2 bluetooth,cfg80211
usblp                  32768  0
intel_rapl_msr         20480  0
intel_rapl_common      40960  1 intel_rapl_msr
edac_mce_amd           53248  0
nouveau              3489792  16
kvm                  1372160  0
irqbypass              12288  1 kvm
crct10dif_pclmul       12288  1
snd_hda_codec_realtek   196608  1
crc32_pclmul           12288  0
crc32c_intel           16384  2
snd_hda_codec_generic   114688  1 snd_hda_codec_realtek
polyval_clmulni        12288  0
ledtrig_audio          12288  1 snd_hda_codec_generic
polyval_generic        12288  1 polyval_clmulni
snd_hda_codec_hdmi     94208  1
gf128mul               16384  1 polyval_generic
snd_hda_intel          65536  3
ghash_clmulni_intel    16384  0
sha512_ssse3           53248  0
snd_intel_dspcfg       40960  1 snd_hda_intel
serio_raw              16384  0
aesni_intel           360448  0
snd_intel_sdw_acpi     16384  1 snd_intel_dspcfg
mxm_wmi                12288  1 nouveau
atkbd                  40960  0
drm_exec               12288  1 nouveau
crypto_simd            16384  1 aesni_intel
snd_hda_codec         225280  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
gpu_sched              57344  1 nouveau
libps2                 20480  1 atkbd
cryptd                 28672  2 crypto_simd,ghash_clmulni_intel
vivaldi_fmap           12288  1 atkbd
wmi_bmof               12288  0
gigabyte_wmi           12288  0
i2c_algo_bit           20480  1 nouveau
snd_hda_core          151552  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
drm_ttm_helper         12288  1 nouveau
rapl                   20480  0
ttm                   110592  2 drm_ttm_helper,nouveau
acpi_cpufreq           32768  0
snd_hwdep              20480  1 snd_hda_codec
drm_display_helper    229376  1 nouveau
r8169                 114688  0
snd_pcm               204800  4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
snd_timer              53248  1 snd_pcm
cec                    86016  1 drm_display_helper
realtek                40960  1
snd                   155648  14 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm
mdio_devres            12288  1 r8169
video                  77824  1 nouveau
k10temp                16384  0
libphy                229376  3 r8169,mdio_devres,realtek
ccp                   159744  0
soundcore              16384  1 snd
i2c_piix4              32768  0
xhci_pci               28672  0
xhci_pci_renesas       24576  1 xhci_pci
i8042                  53248  0
gpio_amdpt             16384  0
wmi                    45056  5 video,gigabyte_wmi,wmi_bmof,mxm_wmi,nouveau
serio                  28672  4 serio_raw,atkbd,i8042
gpio_generic           20480  1 gpio_amdpt
mac_hid                12288  0
loop                   40960  0
                     

oleedd
White ninja
White ninja
Posts: 14
Joined: 23 Oct 2023, 21:24
Distribution: Porteus

Installing a driver for wifi adapter

Post#3 by oleedd » 25 Oct 2023, 19:08

Hi, there isn't, it gives: "Module mt7601u not found". And no "mediatek" folder in kernel/drivers/net/wireless/.

donald
Full of knowledge
Full of knowledge
Posts: 2073
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Installing a driver for wifi adapter

Post#4 by donald » 25 Oct 2023, 19:19

oleedd wrote:
23 Oct 2023, 21:35
I need to install a driver for usb wifi adapter mt7601u on Porteus 3.19.8.
??..what version is Porteus 3.19.8 ??
even in porteus 3.2.2 the driver is there:

Code: Select all

guest@porteus:~$ locate mt7601
/lib/modules/4.9.0-porteus/kernel/drivers/net/wireless/mediatek/mt7601u
/lib/modules/4.9.0-porteus/kernel/drivers/net/wireless/mediatek/mt7601u/mt7601u.ko
/lib/firmware/mt7601u.bin

oleedd
White ninja
White ninja
Posts: 14
Joined: 23 Oct 2023, 21:24
Distribution: Porteus

Installing a driver for wifi adapter

Post#5 by oleedd » 25 Oct 2023, 20:39

donald wrote:
25 Oct 2023, 19:19
??..what version is Porteus 3.19.8 ??
It is 3.19.8-porteus.
donald wrote:
25 Oct 2023, 19:19
guest@porteus:~$ locate mt7601
locate: fatal error: Could not find user database '/var/lib/slocate/slocate.db': No such file or directory
donald wrote:
25 Oct 2023, 19:19
/lib/firmware/mt7601u.bin
Hm, I see mt7601u.bin there, but no "mediatek" folder in /lib/modules/3.19.8-porteus/kernel/drivers/net/wireless. And no mt7601u.ko file there.

beny
Full of knowledge
Full of knowledge
Posts: 2098
Joined: 02 Jan 2011, 11:33
Location: italy

Installing a driver for wifi adapter

Post#6 by beny » 25 Oct 2023, 21:13

hi oleedd every kernel version on the repository has the mediatek driver so which version you have, change the kernel version of yours 000-kernel, vmlinuz,and if you want the crippled-source of the kernel that you need.

oleedd
White ninja
White ninja
Posts: 14
Joined: 23 Oct 2023, 21:24
Distribution: Porteus

Installing a driver for wifi adapter

Post#7 by oleedd » 25 Oct 2023, 21:58

I can't change the kernel version. I need to install driver on this system. What should I do?

beny
Full of knowledge
Full of knowledge
Posts: 2098
Joined: 02 Jan 2011, 11:33
Location: italy

Installing a driver for wifi adapter

Post#8 by beny » 25 Oct 2023, 22:14

hi,start with give us a link to this package, the 3.2 version have the 4.9.0 kernel
linux-3.19.8.tar.gz 11-May-2015 12:40 117M someone know this kernel where is in porteus

User avatar
Ed_P
Contributor
Contributor
Posts: 8374
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Installing a driver for wifi adapter

Post#9 by Ed_P » 25 Oct 2023, 23:33

oleedd wrote:
25 Oct 2023, 21:58
I can't change the kernel version.
Why not?

I boot ISOs and change kernels by putting the 000-kernel-xzm file in my modules folder.
Ed

oleedd
White ninja
White ninja
Posts: 14
Joined: 23 Oct 2023, 21:24
Distribution: Porteus

Installing a driver for wifi adapter

Post#10 by oleedd » 26 Oct 2023, 07:54

Ed_P wrote:
25 Oct 2023, 23:33
Why not?
Because I think it will broke everything. I tried (replaced with kernel 4.9.0) and got this error:
Image

I have mt7601u.bin in /lib/firmware/mt7601u.bin. Maybe lets use this?

oleedd
White ninja
White ninja
Posts: 14
Joined: 23 Oct 2023, 21:24
Distribution: Porteus

Installing a driver for wifi adapter

Post#11 by oleedd » 26 Oct 2023, 08:09

I created syslinuxteus folder and gived it vmlinuz (from 4.9.0), and the adapter works. Very cool, thanks! But the software I need started to ask for the administrative password ("toor") every time. Is it fixable? And the desktop shortcuts disappeared for some reason.

oleedd
White ninja
White ninja
Posts: 14
Joined: 23 Oct 2023, 21:24
Distribution: Porteus

Installing a driver for wifi adapter

Post#12 by oleedd » 26 Oct 2023, 09:25

And if I don't use the system for about 10 minutes, the system starts to ask for the guest password ("guest"). I lost root rights :(

beny
Full of knowledge
Full of knowledge
Posts: 2098
Joined: 02 Jan 2011, 11:33
Location: italy

Installing a driver for wifi adapter

Post#13 by beny » 26 Oct 2023, 10:42

Hi in the post above you need 000-kernel, vmlinuz, and the crippled-source kernel all the same version, and the vmlinuz you have to put in boot directory the other in base directory and reboot.

oleedd
White ninja
White ninja
Posts: 14
Joined: 23 Oct 2023, 21:24
Distribution: Porteus

Installing a driver for wifi adapter

Post#14 by oleedd » 26 Oct 2023, 10:57

I can't find a file with "crippled-source". vmlinuz is only one in both original systems (3.19.8 and 4.9.0, from which I take kernel and vmlinuz, they both are with root). Replaced the old with the new, and it is still guest.

donald
Full of knowledge
Full of knowledge
Posts: 2073
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Installing a driver for wifi adapter

Post#15 by donald » 26 Oct 2023, 16:03

@ oleedd
...wondering which ancient version of Porteus used kernel 3.19.8

Code: Select all

cat /etc/porteus-version
and why you don't pick a [slightly] newer version e.g. 3.2.2.

Post Reply