-
Notifications
You must be signed in to change notification settings - Fork 2
Improved Gnuton Version Detection #492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Fix "Offline" Version Detection for Gnuton
|
To mention this kinda overlaps with the previous PR: #464 |
Very good catch!! It looks like Gnuton keeps throwing a few "curveballs" with the naming of the image files, especially WRT Alpha and Beta releases :>). But I think you nailed it down this time. |
Martinski4GitHub
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved!! Good job, Bud!!
|
Is it me or are we only keeping that logic for the We don't use the release_link value it sets for anything else offline. So basically; what do you think about changing the flow so the requiredRAM_kb does not rely on the release URL for the memory calculations in offline mode (or even in production online mode) and instead uses the file size of the F/W file locally stored on the router? This would eliminate the need to communicate with any external body when in offline mode, and would technically work with the production online mode as well as long as it's using the downloaded F/W file for the calculations. The only problem I see with this, which I may need to think more on, is the very first phase of requiredRAM_kb is done before the F/W file is downloaded in production releases. So that theory wouldn't work for that first memory check/phase. Unless we keep it as is for production and instead modify the requiredRAM_kb to be able to work with a release link or a local file and only use the local file for offline mode... More to think on. |
I have an idea where the " |


Patch Gnuton Offline Version Detection
Issues found below in detail:
Gnuton beta file names are longer and use a different format than our regex currently handles:

This means when doing an offline flash, the version is not detected as a "BETA" as found below:

However on Merlin builds the detection does work for alpha and beta builds as found below:

The end result is the script cannot find the beta file as found below:

2 Fixes introduced:
The end result is found below:

-Stable Release Working:
-Beta Releases Now working as well:
