The officially official Devuan Forum!

You are not logged in.

#1 2023-01-27 07:54:51

56jhonsmith
Member
Registered: 2023-01-27
Posts: 5  

[SOLVED] No wifi MT7961

I recently bought a laptop, after installing Devuan it does not recognize the Mediatek MT7961 wifi network card. Help.

Offline

#2 2023-01-27 13:39:43

Altoid
Member
Registered: 2017-05-07
Posts: 1,415  

Re: [SOLVED] No wifi MT7961

Hello:

56jhonsmith wrote:

... bought a laptop ...

Nice ...

What brand?
What model?

56jhonsmith wrote:

... after installing Devuan ...

Good ...

Which release?
Beowulf?
Chimaera?

56jhonsmith wrote:

... does not recognize the Mediatek MT7961 wifi network card.

Right ...

For anyone here to be able to help you, it is absolutely necessary that you provide your hardware/software information.
If it were at all possible to do it just with what you have posted, we'd all be making loads of money as advisors on the LSE/NYSE. 8^D

ie: you have to do your homework before posting to ask for help.

Please open a terminal and do:

~$ uname -a
~$ lspci | grep -i wireless
~$ sudo dmesg | grep -i driver

Post the output.

That would be a good start for someone to be able to help you.

That said, the Mediatek MT7961 card probably needs firmware-misc-non-free package or the MT7921 kernel module present from version 5.12 onwards.

See:
https://miloserdov.org/?p=6899
and
https://pkginfo.devuan.org/cgi-bin/poli … e&x=submit

Best,

A.

Last edited by Altoid (2023-01-27 13:43:08)

Offline

#3 2023-01-27 13:58:05

MrReplikant
Member
Registered: 2022-12-03
Posts: 53  

Re: [SOLVED] No wifi MT7961

56jhonsmith wrote:

I recently bought a laptop, after installing Devuan it does not recognize the Mediatek MT7961 wifi network card. Help.

Addressing Altoid first, I recognize the chipset, this is seen in models like mine, prominently Lenovo models.

To the OP, if you installed chimaera, there's your problem. this chipset only gained support in Daedalus.


That's all, folks.

Offline

#4 2023-01-27 16:36:56

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: [SOLVED] No wifi MT7961

56jhonsmith wrote:

Mediatek MT7961

^ I went to startpage.com and put this in the search box then added "linux" (without the quotation marks) and pressed <return>.

This was the most useful result:

https://wireless.wiki.kernel.org/en/use … s/mediatek

Did you not think to try a search engine? They are very useful.

The firmware-misc-nonfree package description lists "MediaTek MT7961 bluetooth firmware" so you will also need that if you want to use Bluetooth.

MrReplikant wrote:

this chipset only gained support in Daedalus

The chimaera-backports repository has a recent enough kernel version for that card. No need for the OP to use a development branch.

@OP: add this line to /etc/apt/sources.list:

deb http://deb.devuan.org/merged chimaera-backports main

Then run

# apt update
# apt install -t chimaera-backports linux-image-amd64

If you can't connect via ethernet then download the newer kernel from http://deb.debian.org/debian/pool/main/ … _amd64.deb on another machine, then transfer it over to the Devuan box and install it with dpkg -i linux-image*.deb and reboot.

Once the wireless card is recognised add the chimaera-backports repository and the linux-image-amd64 metapackage to keep that kernel updated.


Brianna Ghey — Rest In Power

Offline

#5 2023-01-27 17:54:18

56jhonsmith
Member
Registered: 2023-01-27
Posts: 5  

Re: [SOLVED] No wifi MT7961

Altoid wrote:

Hello:

Right ...

For anyone here to be able to help you, it is absolutely necessary that you provide your hardware/software information.
If it were at all possible to do it just with what you have posted, we'd all be making loads of money as advisors on the LSE/NYSE. 8^D

ie: you have to do your homework before posting to ask for help.

Please open a terminal and do:

~$ uname -a
~$ lspci | grep -i wireless
~$ sudo dmesg | grep -i driver

Post the output.

That would be a good start for someone to be able to help you.

uname -a

Linux refracta 5.10.0-18-amd64 #1 SMP Debian 5.10.140-1 (2022-09-02) x86_64 GNU/Linux
lshw

*-pci:2
     description: PCI bridge
     product: Renoir PCIe GPP Bridge
     vendor: Advanced Micro Devices, Inc. [AMD]
     physical id: 1.3
     bus info: pci@0000:00:01.3
     version: 00
     width: 32 bits
     clock: 33MHz
     capabilities: pci pm pciexpress msi ht normal_decode bus_master cap_list
     configuration: driver=pcieport
     resources: irq:28 ioport:2000(size=4096) memory:d0500000-d05fffff
   *-network
        description: Ethernet interface
        product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
        vendor: Realtek Semiconductor Co., Ltd.
        physical id: 0
        bus info: pci@0000:03:00.0
        logical name: eth0
        version: 15
        serial: c0:18:50:90:05:0d
        capacity: 1Gbit/s
        width: 64 bits
        clock: 33MHz
        capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
        configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=5.10.0-18-amd64 latency=0 link=no multicast=yes port=twisted pair
        resources: irq:24 ioport:2000(size=256) memory:d0504000-d0504fff memory:d0500000-d0503fff
*-pci:3
     description: PCI bridge
     product: Renoir PCIe GPP Bridge
     vendor: Advanced Micro Devices, Inc. [AMD]
     physical id: 2.1
     bus info: pci@0000:00:02.1
     version: 00
     width: 32 bits
     clock: 33MHz
     capabilities: pci pm pciexpress msi ht normal_decode bus_master cap_list
     configuration: driver=pcieport
     resources: irq:29 ioport:fcf0200000(size=2097152)
   *-network UNCLAIMED
        description: Network controller
        product: MEDIATEK Corp.
        vendor: MEDIATEK Corp.
        physical id: 0
        bus info: pci@0000:04:00.0
        version: 00
        width: 64 bits
        clock: 33MHz
        capabilities: pciexpress msi pm cap_list
        configuration: latency=0
        resources: iomemory:fc0-fbf iomemory:fc0-fbf iomemory:fc0-fbf memory:fcf0200000-fcf02fffff memory:fcf0300000-fcf0303fff memory:fcf0304000-fcf0304fff
lspci
   
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Renoir IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge
00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge
00:01.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus
00:08.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 51)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 7
02:00.0 Non-Volatile memory controller: Sandisk Corp WD Blue SN550 NVMe SSD (rev 01)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
04:00.0 Network controller: MEDIATEK Corp. Device 7961
05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Lucienne (rev c3)
05:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device 1637
05:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
05:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir USB 3.1
05:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir USB 3.1
05:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor (rev 01)
05:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) HD Audio Controller
06:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 81)
06:00.1 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 81)
dmesg | grep -i driver

[    0.199044] Performance Events: Fam17h+ core perfctr, AMD PMU driver.
[    0.220039] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
[    0.415683] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.417952] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
[    0.426246] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.434806] microcode: Microcode Update Driver: v2.2.
[    3.154078] hid: raw HID events driver (C) Jiri Kosina
[    3.169380] usbcore: registered new interface driver usbfs
[    3.170226] usbcore: registered new interface driver hub
[    3.171136] usbcore: registered new device driver usb
[    3.702001] usbcore: registered new interface driver usb-storage
[    3.704000] usbcore: registered new interface driver uas
[   76.866273] sp5100_tco: SP5100/SB800 TCO WatchDog Timer Driver
[   76.891499] usbcore: registered new interface driver uvcvideo
[   76.892429] USB Video Class driver (1.1.1)
[   77.015082] Generic FE-GE Realtek PHY r8169-0-300:00: attached PHY driver [Generic FE-GE Realtek PHY] (mii_bus:phy_addr=r8169-0-300:00, irq=IGNORE)
[   77.031922] usbcore: registered new interface driver btusb

Offline

#6 2023-01-28 01:41:55

Altoid
Member
Registered: 2017-05-07
Posts: 1,415  

Re: [SOLVED] No wifi MT7961

Hello:

56jhonsmith wrote:
uname -a
Linux refracta 5.10.0-18-amd64 #1 SMP Debian 5.10.140-1 (2022-09-02) x86_64 GNU/Linux

Right.
You're on kernel 5.10.

56jhonsmith wrote:
lshw
--- snip ---
   *-network UNCLAIMED                                <---------- !!!
        description: Network controller
        product: MEDIATEK Corp.
        vendor: MEDIATEK Corp.
        physical id: 0
        bus info: pci@0000:04:00.0
        version: 00
        width: 64 bits
        clock: 33MHz
        capabilities: pciexpress msi pm cap_list
        configuration: latency=0
        resources: iomemory:fc0-fbf iomemory:fc0-fbf iomemory:fc0-fbf memory:fcf0200000-fcf02fffff memory:fcf0300000-fcf0303fff memory:fcf0304000-fcf0304fff

As you are on kernel version 5.10 your Mediatek card has no driver, you need version 5.12.

56jhonsmith wrote:
lspci
--- snip ---   
04:00.0 Network controller: MEDIATEK Corp. Device 7961
--- snip ---

Happens often ...

New hardware (in this case Mediatek 7961) and no available Linux drivers/modules save in the latest kernels (in this case version 5.12) while your installation runs on an up to date (version 5.10) albeit with no driver for your new hardware.

Which is why it is good practise to check driver availability before purchasing new equipment.  8^)

Just follow HoaS's instructions and your WiFi/Bluetooth driver issue should be solved.

Keep us posted.

Best,

A.

Offline

#7 2023-01-28 01:55:15

56jhonsmith
Member
Registered: 2023-01-27
Posts: 5  

Re: [SOLVED] No wifi MT7961

Head_on_a_Stick wrote:

@OP: add this line to /etc/apt/sources.list:

deb http://deb.devuan.org/merged chimaera-backports main

Then run

# apt update
# apt install -t chimaera-backports linux-image-amd64

If you can't connect via ethernet then download the newer kernel from http://deb.debian.org/debian/pool/main/ … _amd64.deb on another machine, then transfer it over to the Devuan box and install it with dpkg -i linux-image*.deb and reboot.

Once the wireless card is recognised add the chimaera-backports repository and the linux-image-amd64 metapackage to keep that kernel updated.

Solved. Thanks.

Offline

Board footer