RZ608 MT7921K Wireless LAN Driver is not supported on ubuntu 18.04

Solution 1:

Just for the record, Linux kernel's driver module mt7921e does work with this card. I'm on 5.15.2. If you already have this module, you won't need anything other than some configs to workaround this for now.

But, for now it seems that this module currently doesn't include a match for this card's id until this patch hit: https://patchwork.kernel.org/project/linux-wireless/patch/84ab45bf42f57fd0301c156ffc11d0fe330ff1f8.1636857817.git.deren.wu@mediatek.com/

So, currently I'm using a modprobe rule and a udev rule to automatically load the module and use it for the card.

$ cat /etc/modprobe.d/rz608.conf
alias pci:v000014C3d00000608sv*sd*bc*sc*i* mt7921e

$ cat /etc/udev/rules.d/99-rz608.rules
SUBSYSTEM=="drivers", DEVPATH=="/bus/pci/drivers/mt7921e", ATTR{new_id}="14c3 0608"

If you only need it to work for this boot:

# modprobe mt7921e
# echo 14c3 0608 > /sys/bus/pci/drivers/mt7921e/new_id

  1. Modalias
  2. udev(7)

Solution 2:

In terminal

sudo apt install build-essential flex bison
wget https://gitlab.com/jeremy53561/backports-11-26/-/raw/main/backports-5.15-rc6-1.tar.gz
tar -xvf backports-5.15-rc6-1.tar.gz
cd backports-5.15-rc6-1
make clean
make defconfig-wifi
make
sudo make install
cd /lib/firmware/mediatek
sudo wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/mediatek/WIFI_MT7961_patch_mcu_1_2_hdr.bin
sudo wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/mediatek/WIFI_RAM_CODE_MT7961_1.bin

Check Secure boot status with mokutil --sb-state as Secure Boot needs to be disabled in UEFI settings for the unsigned module to be loaded

Reboot