Skip to content

Minor Fixes#423

Merged
Martinski4GitHub merged 2 commits intodevfrom
ExtremeFiretop-patch-1
Mar 12, 2025
Merged

Minor Fixes#423
Martinski4GitHub merged 2 commits intodevfrom
ExtremeFiretop-patch-1

Conversation

@ExtremeFiretop
Copy link
Owner

@ExtremeFiretop ExtremeFiretop commented Mar 11, 2025

Minor Fixes

  1. Added a check to validate the downloaded firmware version by MerlinAU is infact the version found by the router's webs_update.sh script.

Seems to me what happened at some point for my RT-AX92U router is @gnuton built the firmwares; (lets say at midnight) and his Github action automatically published it. Shortly after it was automatically published, the Webs-Update.sh script ran and found the update.

MerlinAU then ran a few hours later by cron job, by that point the builds were hidden. (Gnuton had unpublished or hidden the builds by 3AM) But because they were published and the webs_update.sh script detected it, and started to flash.

So instead MerlinAU downloaded the latest 388.8_2 and downgraded me from the latest alpha lol.

image
image

This additional check will cancel the script if this happens again and the versions don't match. Along with additional Gnuton specific changes to make sure we grab the right version by parsing for matching version and matching Product ID.

  1. Fixed the post email upgrade weirdness we found in January here:
    New Checkmarks on WebGUI #395 (comment)

image

In short; we shouldn't be using: _GetLatestFWUpdateVersionFromRouter_ 1 because that does not split on the dash. That was a me mistake when I implemented this I think?

While _GetLatestFWUpdateVersionFromRouter_ does split the version information at the dash for things like rog, or -gnuton.

@Martinski4GitHub
Copy link
Collaborator

Minor Fixes

1. Added a check to validate the downloaded firmware version by MerlinAU is infact the version found by the router's webs_update.sh script.

Seems to me what happened at some point for my RT-AX92U router is @gnuton built the firmwares; (lets say at midnight) and his Github action automatically published it. Shortly after it was automatically published, the Webs-Update.sh script ran and found the update.

MerlinAU then ran a few hours later by cron job, by that point the builds were hidden. (Gnuton had unpublished or hidden the builds by 3AM) But because they were published and the webs_update.sh script detected it, and started to flash.

So instead MerlinAU downloaded the latest 388.8_2 and downgraded me from the latest alpha lol.

...

This additional check will cancel the script if this happens again and the versions don't match. Along with additional Gnuton specific changes to make sure we grab the right version by parsing for matching version and matching Product ID.

2. Fixed the post email upgrade weirdness we found in January here:
   [New Checkmarks on WebGUI #395 (comment)](https://github.com/ExtremeFiretop/MerlinAutoUpdate-Router/pull/395#issuecomment-2614229361)

....

In short; we shouldn't be using: _GetLatestFWUpdateVersionFromRouter_ 1 because that does not split on the dash. That was a me mistake when I implemented this I think?

While _GetLatestFWUpdateVersionFromRouter_ does split the version information at the dash for things like rog, or -gnuton.

Very good finds, bud!! I can only assume that this scenario with a Gnuton F/W build being published and then, hours later, being "recalled" (i.e. unpublished or hidden somehow) is an extremely rare event, and that's why we've never seen a user reporting that MerlinAU "downgraded" the installed F/W version. I don't recall reading about this same scenario happening with RMerlin's F/W releases at all.

In any case, it's always good to add code that double-checks & verifies that the correct F/W release version is in fact being installed. Excellent job, bud!

Copy link
Collaborator

@Martinski4GitHub Martinski4GitHub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to go!!

@Martinski4GitHub Martinski4GitHub merged commit 9116e0b into dev Mar 12, 2025
8 checks passed
@ExtremeFiretop
Copy link
Owner Author

Minor Fixes

1. Added a check to validate the downloaded firmware version by MerlinAU is infact the version found by the router's webs_update.sh script.

Seems to me what happened at some point for my RT-AX92U router is @gnuton built the firmwares; (lets say at midnight) and his Github action automatically published it. Shortly after it was automatically published, the Webs-Update.sh script ran and found the update.
MerlinAU then ran a few hours later by cron job, by that point the builds were hidden. (Gnuton had unpublished or hidden the builds by 3AM) But because they were published and the webs_update.sh script detected it, and started to flash.
So instead MerlinAU downloaded the latest 388.8_2 and downgraded me from the latest alpha lol.
...
This additional check will cancel the script if this happens again and the versions don't match. Along with additional Gnuton specific changes to make sure we grab the right version by parsing for matching version and matching Product ID.

2. Fixed the post email upgrade weirdness we found in January here:
   [New Checkmarks on WebGUI #395 (comment)](https://github.com/ExtremeFiretop/MerlinAutoUpdate-Router/pull/395#issuecomment-2614229361)

....
In short; we shouldn't be using: _GetLatestFWUpdateVersionFromRouter_ 1 because that does not split on the dash. That was a me mistake when I implemented this I think?
While _GetLatestFWUpdateVersionFromRouter_ does split the version information at the dash for things like rog, or -gnuton.

Very good finds, bud!! I can only assume that this scenario with a Gnuton F/W build being published and then, hours later, being "recalled" (i.e. unpublished or hidden somehow) is an extremely rare event, and that's why we've never seen a user reporting that MerlinAU "downgraded" the installed F/W version. I don't recall reading about this same scenario happening with RMerlin's F/W releases at all.

Thank you! Yes i think it's fairly rare, but we should probably build in a "safety" against it. I won't lie, it really confused me to wake up to my router DOWNGRADED by MerlinAU hahaha

In any case, it's always good to add code that double-checks & verifies that the correct F/W release version is in fact being installed.

Agreed!

@ExtremeFiretop
Copy link
Owner Author

Btw check SNB, spdMerlin reports. I'm troubleshooting as we speak

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants