Comment 31 for bug 2049220

Revision history for this message
Morgan le Fay (morgan-le-fay) wrote (last edit ):

By following a variation of Harry Mayrhofer's procedure, I've managed to change my wireless firmware build times too! I'll watch my wireless connection to see if it's behaving better. Here's what I did.

For reproducibility, here are two ways that my system state differed from the Ubuntu 22.04 defaults before I started.

* I had upgraded linux-firmware to version 20220329.git681281e4-0ubuntu3.28 from the jammy-proposed repository
* I had upgraded the kernel to version 6.5.0-18-generic, as a side effect of upgrading my MESA graphics drivers from the kisak-mesa PPA

From that starting point, here's how I changed my wireless firmware.

1) I removed these files from /lib/firmware/mediatek:
  WIFI_MT7922_patch_mcu_1_1_hdr.bin
  WIFI_RAM_CODE_MT7922_1.bin
2) I replaced them with the same files from commit 0a18a7292a66532633d9586521f0b954c68a9fbc of linux-firmware. To be explicit, I got the new files from these URLS:
  https://gitlab.com/kernel-firmware/linux-firmware/-/raw/0a18a7292a66532633d9586521f0b954c68a9fbc/mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin
  https://gitlab.com/kernel-firmware/linux-firmware/-/raw/0a18a7292a66532633d9586521f0b954c68a9fbc/mediatek/WIFI_RAM_CODE_MT7922_1.bin
3) I regenerated the initial RAM disk associated with the latest version of my kernel (which is the version that was running)
  sudo update-initramfs -u
4) I rebooted

After the reboot, dmesg showed new wireless firmware build times:

  [ 3.125009] mt7921e 0000:01:00.0: enabling device (0000 -> 0002)
  [ 3.131598] mt7921e 0000:01:00.0: ASIC revision: 79220010
  [ 3.217634] mt7921e 0000:01:00.0: HW/SW Version: 0x8a108a10, Build Time: 20230627143702a
  [ 3.234290] mt7921e 0000:01:00.0: WM Firmware Version: ____000000, Build Time: 20230627143946
  [ 4.362764] mt7921e 0000:01:00.0 wlp1s0: renamed from wlan0

Note that my build times are different from Harry's. I think that's because I used the firmware files from the commit that Rudi Daemen suggested, while Harry used the newest version of the files.