[Retired Thread] GL.iNET Flint 2 (GL-MT6000) Snapshot / Experimental / Bleeding Edge

There are some great discussions going on around the GL-MT6000 in various threads I have linked below. However, it should be beneficial to have a thread more specific to those who are a bit more Snapshot savvy and are willing to try things/updates that tend to be more experimental* / bleeding-edge*.

That said, comments/suggestions in this thread should not be mistaken as being "average user" safe and stable. There be dragons in this thread. :wink:


Links to existing GL-MT6000 discussions:


* Disclaimer
If you run Snapshot/experimental builds, you have to accept that stability may be compromised. Don't run Snapshot/experimental builds if your goal is to be hands-off with your MT6000. :wink:

2 Likes

Latest MT7986 firmware here -- dated 20240507:

https://git01.mediatek.com/plugins/gitiles/openwrt/feeds/mtk-openwrt-feeds/+/1c24909aa41eb62c8170798194794e75a508ad08

root@AP:~# dmesg | grep -i firmware
[    0.000000] psci: PSCIv1.1 detected in firmware.
[   11.706733] platform 15010000.wed: MTK WED WO Firmware Version: DEV_000000, Build Time: 20240507160523
[   12.334240] mt798x-wmac 18000000.wifi: WM Firmware Version: ____000000, Build Time: 20240507160318
[   12.377243] mt798x-wmac 18000000.wifi: WA Firmware Version: DEV_000000, Build Time: 20240507160509
2 Likes

Are you replacing the files owned by kmod-mt7986-firmware by hand? Seems risky.

1 Like

Sure am :smiley: Of course, it has some risk, but it's nothing one can't revert back from if needed.

1 Like

Not risky at all. Use your preferred method and replace all the corresponding .bin files with the new ones, then reboot. Easy peasy.

3 Likes

To clarify my risk statement, a new firmware may have newly introduced bugs. "Risky" in the sense that there is some level of unknown stability until tested. :slight_smile:

2 Likes

I downloaded and am running the latest MediaTek firmware on stock 23.05.3 with no obvious problems or improvements. I should've ran some slightly in-depth tests before and after. Lazy... :face_with_diagonal_mouth:

Thanks for the pointers about kmod-mt7986-firmware and simply overwriting it's installed files. I guess you keep that package installed even with the incorrect files copied over?

From my perspective, yes, I just leave the kmod-mt7986-firmware and mt7986-wo-firmware packages selected in my build. But I put the latest firmware I want to run into my build via files/lib/firmware/mediatek/:

user@6a61cecfb182:~/openwrt$ ls -lah files/lib/firmware/mediatek/
total 7.2M
drwxr-xr-x 2 user user 4.0K May  9 13:38 .
drwxr-xr-x 3 user user 4.0K May  9 13:38 ..
-rw-r--r-- 1 user user  13K May  9 13:38 mt7986_rom_patch.bin
-rw-r--r-- 1 user user  13K May  9 13:38 mt7986_rom_patch_mt7975.bin
-rw-r--r-- 1 user user 511K May  9 13:38 mt7986_wa.bin
-rw-r--r-- 1 user user 2.2M May  9 13:38 mt7986_wm.bin
-rw-r--r-- 1 user user 2.2M May  9 13:38 mt7986_wm_mt7975.bin
-rw-r--r-- 1 user user 2.4M May  9 13:38 mt7986_wo_0.bin
-rw-r--r-- 1 user user 2.4M May  9 13:38 mt7986_wo_1.bin

In this way, the firmware I choose to run overrides the included firmware from the packages listed above.

1 Like

@_FailSafe is there an improvement when using the new mt firmware ?
How do you download them ? I get a 5kb file for mt7986_rom_patch. Current file is about 13kb ?

Yeah, it's tricky to get the files downloaded without pulling the HTML content instead of the binary content.

Here's a little script I threw together for this. It will download the .tgz file containing the firmware and then extract just the mt7986 .bin files that are needed to place into the /lib/firmware/mediatek/ directory on your MT6000 (or to include in your build via files/lib/firmware/mediatek/). Just download this script and chmod +x it to execute.

Given the commit hash I posted here, usage of this script would look like this:

./get-mt7986-fw.sh 1c24909aa41eb62c8170798194794e75a508ad08

The script will create a new directory in your PWD named mt7986-firmware and that's where the mt7986 binaries will land after downloaded and extracted. Copy or move them from that location to wherever you need based on your use-case.

3 Likes

I had trouble with that too.

Eventually I found the "tgz" archive links for the whole firmware directory at the top of the page. https://git01.mediatek.com/plugins/gitiles/openwrt/feeds/mtk-openwrt-feeds/+archive/1c24909aa41eb62c8170798194794e75a508ad08/autobuild_mac80211_release/package/kernel/mt76/src/firmware.tar.gz

Now that I think about it... is there any way to verify file integrity from that mediatek site? Just download it a few times and compare checksums? That seems kinda mean to mediatek's bandwidth though...


2ffa7d4b8987d59de5a8f8843b6e9531  /lib/firmware/mediatek/mt7986_rom_patch.bin
6540c9d5874b17bfc522661c51f5f623  /lib/firmware/mediatek/mt7986_rom_patch_mt7975.bin
4b81b6ff66d61a284b472a044579b308  /lib/firmware/mediatek/mt7986_wa.bin
52ba795a82aafe869cf88dae19015f8c  /lib/firmware/mediatek/mt7986_wm.bin
40e5ecdc132d9c653efac7195190019d  /lib/firmware/mediatek/mt7986_wm_mt7975.bin

That's the md5sum of the 5 files I used.

1 Like

aha, it was not just me then. Thanks for your script

I couldn’t say, I’m not so good at this stuff. I think Mark could

1 Like

Good call on driving into this path more directly. I just pushed an updated v2 of the get-mt7986-fw.sh script and it uses this URL instead now. Saves multiple megabytes of download.

Not seeing a direct way to do that at the moment, but I'll keep digging to see if an idea pops up.

You may already be aware of this, but if you use WED, you will want to make sure to grab 7 total files which include:

mt7986_wo_0.bin
mt7986_wo_1.bin

These are the offloading firmware binaries.

4 Likes

Weird. New bin files downloaded and replaced the old ones ( manually), rebooted and wifi is gone.

A fragment of the boot-log ;

Sat May 11 09:05:36 2024 kern.info kernel: [ 10.233523] mt798x-wmac 18000000.wifi: HW/SW Version: 0x8a108a10, Build Time: 20221012174648a
Sat May 11 09:05:36 2024 kern.info kernel: [ 10.233523]
Sat May 11 09:05:36 2024 kern.info kernel: [ 10.269945] mt798x-wmac 18000000.wifi: WM Firmware Version: , Build Time:
Sat May 11 09:05:36 2024 kern.info kernel: [ 10.283013] mt798x-wmac 18000000.wifi: WA Firmware Version: , Build Time:
Sat May 11 09:05:36 2024 kern.err kernel: [ 12.300198] mt798x-wmac 18000000.wifi: Timeout for initializing firmware
Sat May 11 09:05:36 2024 kern.warn kernel: [ 12.306965] mt798x-wmac: probe of 18000000.wifi failed with error -5

What are the sizes and md5sums of the firmware files you have on your MT6000 now?

i didn't install them but i did download the newer f/w files and the md5sum's matched Nullity's

if you consider that a verification of what the files should match.

@erizan
it should look something like this (original firmware):

Fri May 10 18:03:05 2024 kern.info kernel: [   11.993597] mt798x-wmac 18000000.wifi: HW/SW Version: 0x8a108a10, Build Time: 20221012174648a
Fri May 10 18:03:05 2024 kern.info kernel: [   11.993597]
Fri May 10 18:03:05 2024 kern.info kernel: [   12.096097] mt798x-wmac 18000000.wifi: WM Firmware Version: ____000000, Build Time: 20221012174725
Fri May 10 18:03:05 2024 kern.info kernel: [   12.180185] mt798x-wmac 18000000.wifi: WA Firmware Version: DEV_000000, Build Time: 20221012174937
Fri May 10 18:03:05 2024 kern.info kernel: [   12.285697] mt798x-wmac 18000000.wifi: registering led 'mt76-phy0'
Fri May 10 18:03:05 2024 kern.info kernel: [   12.293377] mt798x-wmac 18000000.wifi: registering led 'mt76-phy1'

1 Like

@_FailSafe I already built and flashed the latest snapshot ( r26280 ). How do I get to show the md5sums of these ? Files look exactly ( log and dir) as shown on @Jack007 post.
I must clarify, I didn't use your script but downloaded them from the link above provided by Nullity.

Regarding file verification, you can git clone https://git01.mediatek.com/openwrt/feeds/mtk-openwrt-feeds, which is ~130MB. Git includes file integrity verification.

The md5sums I posted above matched the git repository. Here's all of them.

2ffa7d4b8987d59de5a8f8843b6e9531  mt7986_rom_patch.bin
6540c9d5874b17bfc522661c51f5f623  mt7986_rom_patch_mt7975.bin
4b81b6ff66d61a284b472a044579b308  mt7986_wa.bin
52ba795a82aafe869cf88dae19015f8c  mt7986_wm.bin
40e5ecdc132d9c653efac7195190019d  mt7986_wm_mt7975.bin
1c47476d104f1c300c3c090ec98518a7  mt7986_wo_0.bin
eee056dbaaa1060fb5f713cbee82e468  mt7986_wo_1.bin
1 Like

Paste the md5sums I posted into a file on the router, then "cd" to the /lib/firmware/mediatek directory and run md5sum -c FILE, for example md5sum -c /root/firmware.md5sum.
or run md5sum /lib/firmware/mediatek/* then compare the numbers.