[RESPONDED] Issues on Arch Linux with RZ616 on Framework 13 AMD 7040 on Linux (kernel 6.5.7)

[I wasn’t sure where to post this, so I am just making a new thread]

Sorry if this has already been talked about, I have scoured reddit/community forum for most of the week. Also, my linux experience is medium to low–mostly messing around with homelab in my spare time for the last year or so… so this could be something obvious.

With my Framework 13 7640u I am using Arch with SwayWM on kernel 6.5.7-arch1-1, bios 3.02, and I have run fwupdmgr, and I haven’t been able to get the wireless network card rz616 working.
It doesn’t show up with ip link, but I do see the card with lspci -k.
I have messed around a bunch, and even tried reseating the card.

I was able to find some info here
I am planning on trying to unplug the battery and drain the power out of the board next.
This is the error I am getting when I check journalctl:

[coltn@arch-micolash ~]$ journalctl -b | grep -iE '01:00.0|mt7921e'
Oct 20 08:39:21 arch-micolash kernel: pci 0000:01:00.0: [14c3:0616] type 00 class 0x028000
Oct 20 08:39:21 arch-micolash kernel: pci 0000:01:00.0: reg 0x10: [mem 0x8010900000-0x80109fffff 64bit pref]
Oct 20 08:39:21 arch-micolash kernel: pci 0000:01:00.0: reg 0x18: [mem 0x90b00000-0x90b07fff 64bit]
Oct 20 08:39:21 arch-micolash kernel: pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
Oct 20 08:39:21 arch-micolash kernel: pci 0000:01:00.0: Adding to iommu group 1
Oct 20 08:39:22 arch-micolash kernel: mt7921e 0000:01:00.0: enabling device (0000 -> 0002)
Oct 20 08:39:22 arch-micolash kernel: mt7921e 0000:01:00.0: Direct firmware load for mediatek/WIFI_RAM_CODE_MT7922_1.bin failed with error -2
Oct 20 08:39:22 arch-micolash kernel: mt7921e 0000:01:00.0: ASIC revision: 79220010
Oct 20 08:39:22 arch-micolash kernel: Modules linked in: snd_sof_amd_rembrandt snd_sof_amd_renoir snd_sof_amd_acp snd_sof_pci snd_sof_xtensa_dsp snd_hda_codec_realtek(+) mt7921e(+) snd_sof mt7921_common snd_hda_codec_generic snd_sof_utils intel_rapl_msr mt76_connac_lib intel_rapl_common ledtrig_audio snd_hda_codec_hdmi snd_soc_core mt76 mousedev snd_hda_intel snd_intel_dspcfg snd_compress snd_intel_sdw_acpi ac97_bus hid_sensor_als snd_pcm_dmaengine hid_sensor_trigger mac80211 uvcvideo snd_hda_codec snd_pci_ps btusb industrialio_triggered_buffer snd_rpl_pci_acp6x edac_mce_amd videobuf2_vmalloc btrtl kfifo_buf snd_hda_core snd_acp_pci uvc hid_sensor_iio_common btbcm libarc4 snd_hwdep videobuf2_memops snd_pci_acp6x kvm_amd industrialio btintel cros_ec_lpcs btmtk videobuf2_v4l2 joydev hid_multitouch hid_sensor_hub cros_ec snd_pcm snd_pci_acp5x ucsi_acpi cfg80211 videodev kvm snd_rn_pci_acp3x snd_timer bluetooth typec_ucsi snd_acp_config r8152(+) snd videobuf2_common sp5100_tco typec snd_soc_acpi irqbypass mc rapl mii ecdh_generic pcspkr
Oct 20 08:39:22 arch-micolash kernel: mt7921e 0000:01:00.0: Direct firmware load for mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin failed with error -2
Oct 20 08:39:22 arch-micolash kernel: mt7921e 0000:01:00.0: Direct firmware load for mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin failed with error -2
Oct 20 08:39:22 arch-micolash kernel: mt7921e 0000:01:00.0: Direct firmware load for mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin failed with error -2
Oct 20 08:39:22 arch-micolash kernel: mt7921e 0000:01:00.0: Direct firmware load for mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin failed with error -2
Oct 20 08:39:22 arch-micolash kernel: mt7921e 0000:01:00.0: Direct firmware load for mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin failed with error -2
Oct 20 08:39:22 arch-micolash kernel: mt7921e 0000:01:00.0: Direct firmware load for mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin failed with error -2
Oct 20 08:39:22 arch-micolash kernel: mt7921e 0000:01:00.0: Direct firmware load for mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin failed with error -2
Oct 20 08:39:22 arch-micolash kernel: mt7921e 0000:01:00.0: Direct firmware load for mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin failed with error -2
Oct 20 08:39:22 arch-micolash kernel: mt7921e 0000:01:00.0: Direct firmware load for mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin failed with error -2
Oct 20 08:39:23 arch-micolash kernel: mt7921e 0000:01:00.0: Direct firmware load for mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin failed with error -2
Oct 20 08:39:23 arch-micolash kernel: mt7921e 0000:01:00.0: hardware init failed

is there anything I could be missing?
If removing the battery and draining the board power works, I will update for others just in case.
as a last resort, I will boot into another more supported linux distro, or try windows 11 on a different drive.

I have tried unloading/loading the kernel module, and I can see that mkinitcpio is autodetecting the module mt7921e

[coltn@arch-micolash ~]$ mkinitcpio -M
==> Modules autodetected
acpi_cpufreq
aesni_intel
amd64_edac
amd_pmc
amd_pmf
amdgpu
atkbd
btusb
ccp
crc32_pclmul
crc32c_intel
crct10dif_pclmul
cros_ec_lpcs
efi_pstore
ext4
fjes
ghash_clmulni_intel
hid_multitouch
hid_sensor_als
hid_sensor_hub
i2c_hid_acpi
i2c_piix4
i8042
intel_rapl_common
intel_rapl_msr
joydev
k10temp
kvm_amd
mac_hid
mousedev
mt7921e
nvme
pcspkr
polyval_clmulni
r8152
rapl
serio_raw
sha512_ssse3
snd_acp_pci
snd_hda_codec_hdmi
snd_hda_codec_realtek
snd_hda_intel
snd_pci_acp3x
snd_pci_acp5x
snd_pci_acp6x
snd_pci_ps
snd_rn_pci_acp3x
snd_rpl_pci_acp6x
snd_sof_amd_rembrandt
snd_sof_amd_renoir
sp5100_tco
thunderbolt
ucsi_acpi
uvcvideo
video
xhci_pci

here is roughly the same output as the journalctl from dmesg

[coltn@arch-micolash ~]$ sudo dmesg | grep mt7921e
[sudo] password for coltn: 
[   13.204255] mt7921e 0000:01:00.0: enabling device (0000 -> 0002)
[   13.204538] mt7921e 0000:01:00.0: Direct firmware load for mediatek/WIFI_RAM_CODE_MT7922_1.bin failed with error -2
[   13.206589] mt7921e 0000:01:00.0: ASIC revision: 79220010
[   13.283252] Modules linked in: snd_sof_amd_rembrandt snd_sof_amd_renoir snd_sof_amd_acp snd_sof_pci snd_sof_xtensa_dsp snd_hda_codec_realtek(+) mt7921e(+) snd_sof mt7921_common snd_hda_codec_generic snd_sof_utils intel_rapl_msr mt76_connac_lib intel_rapl_common ledtrig_audio snd_hda_codec_hdmi snd_soc_core mt76 mousedev snd_hda_intel snd_intel_dspcfg snd_compress snd_intel_sdw_acpi ac97_bus hid_sensor_als snd_pcm_dmaengine hid_sensor_trigger mac80211 uvcvideo snd_hda_codec snd_pci_ps btusb industrialio_triggered_buffer snd_rpl_pci_acp6x edac_mce_amd videobuf2_vmalloc btrtl kfifo_buf snd_hda_core snd_acp_pci uvc hid_sensor_iio_common btbcm libarc4 snd_hwdep videobuf2_memops snd_pci_acp6x kvm_amd industrialio btintel cros_ec_lpcs btmtk videobuf2_v4l2 joydev hid_multitouch hid_sensor_hub cros_ec snd_pcm snd_pci_acp5x ucsi_acpi cfg80211 videodev kvm snd_rn_pci_acp3x snd_timer bluetooth typec_ucsi snd_acp_config r8152(+) snd videobuf2_common sp5100_tco typec snd_soc_acpi irqbypass mc rapl mii ecdh_generic pcspkr
[   13.288196] mt7921e 0000:01:00.0: Direct firmware load for mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin failed with error -2
[   13.369698] mt7921e 0000:01:00.0: Direct firmware load for mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin failed with error -2
[   13.446342] mt7921e 0000:01:00.0: Direct firmware load for mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin failed with error -2
[   13.523358] mt7921e 0000:01:00.0: Direct firmware load for mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin failed with error -2
[   13.603295] mt7921e 0000:01:00.0: Direct firmware load for mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin failed with error -2
[   13.683420] mt7921e 0000:01:00.0: Direct firmware load for mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin failed with error -2
[   13.763278] mt7921e 0000:01:00.0: Direct firmware load for mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin failed with error -2
[   13.842691] mt7921e 0000:01:00.0: Direct firmware load for mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin failed with error -2
[   13.919729] mt7921e 0000:01:00.0: Direct firmware load for mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin failed with error -2
[   13.999819] mt7921e 0000:01:00.0: Direct firmware load for mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin failed with error -2
[   14.078093] mt7921e 0000:01:00.0: hardware init failed

Why don’t you use the code block (multiple lines) with backquote x 3 for the journal log rather than code (1 line)?

sorry, should be fixed now.

1 Like

I have the same machine, and the WiFi works fine for me. It even worked in the Arch ISO installer environment.

lspci dutifully shows a MediaTek MT7922 device and it’s loaded the mt7921e kernel module to deal with it. I use NetworkManager with the iwd backend and everything works.

It does seem locked to 802.11n on 2.4GHz in my case though so its throughput is trying my patience. But that’s a problem for another day.

To fix the WiFi throughput issue, you need to configure the right regulatory domain, as per: Network configuration/Wireless - ArchWiki

Now I get 802.11ac on the 5GHz and full throughput.

2 Likes

@colt.n Are you sure you have linux-firmware installed? That should ensure the firmware is present.

For mkinitcpio, what’s the HOOKS and MODULES configuration you have?

1 Like

honestly, i might have been missing this package. it seemed like the system was trying to load mt7921e.
but after installing that package, and updating to the newest kernel 6.5.8-arch1-1, everything is working great!

6 Likes

The problem was indeed linux-firmware being missing. errno 2 is

$ errno 2
ENOENT 2 No such file or directory
1 Like

All, please make sure update the latest 7040 Series BIOS:

2 Likes