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

ESP32 dual booting #156

Closed
wants to merge 198 commits into from
Closed

Conversation

troyhacks
Copy link
Collaborator

@troyhacks troyhacks commented Aug 21, 2024

We have two app partitions... why not use them?

This allows switching between the OTA partitions on the fly. If you flash via the web interface, this can be used to roll-back to your previous firmware... or to just switch between two firmwares on the same ESP32 for A/B testing without reflashing.

If you only flash a board over serial, app0 is always flashed - but if you use OTA, then app1 is flashed and the board is adjusted to boot from it instead. The next time you OTA update, app0 will be overwritten and you'll boot from it, etc.

This allows pressing "^" on the serial console to switch boot partitions between app0 and app1, if they both exist and appear to be valid.

Could also be moved into the GUI as a button/option.

@troyhacks troyhacks closed this Aug 21, 2024
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.

1 participant