Skip to content
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

Hot-swap TZ offset with browser locale in firmware binary #107

Open
thebentern opened this issue Oct 3, 2024 · 3 comments · May be fixed by #110
Open

Hot-swap TZ offset with browser locale in firmware binary #107

thebentern opened this issue Oct 3, 2024 · 3 comments · May be fixed by #110
Assignees
Labels
enhancement New feature or request

Comments

@thebentern
Copy link
Contributor

Flow in bash:
sed -i 's/tzplaceholder /CST6CDT,M3.2.0,M11.1.0\x0/' firmware.bin
truncate --size=-32 firmware.bin
sha256sum firmware.bin | xxd -r -ps >> firmware.bin

@thebentern thebentern added the enhancement New feature or request label Oct 3, 2024
@thebentern
Copy link
Contributor Author

@jp-bennett
Copy link

We will need to ask esptool to generate a byte of checksum, and replace the 33rd byte from the end of the file. Then the last 32 bytes can be trimmed and replaced with the sha256sum.

@jp-bennett
Copy link

Rak4631 doesn't need any hashing or checksum modifications. Just overwrite the placeholder bytes with the right string and null-terminate it. RP 2040 still to be checked.

@thebentern thebentern linked a pull request Oct 5, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants