-
Notifications
You must be signed in to change notification settings - Fork 48
Add option for --factory #266
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
Comments
the partitions are broken up as For an ota setup you have the following partitions. and without OTA you have the following.. Those are only names. nvs = data nvs = data so with an ota setup you are 2 partitions that are "factory" partitions. app partitions cannot be loaded inside of MicroPython. The data that is written to them can only be done when flashing. They do not contain a file system so you would not be able to access the information that is on it if you add it. There really is no point to having it. You cannot write data to it other than when it is flashed. I already built in a feature that you can use. Compile the firmware the way you want and then go into the I also need to know what your build command is. Once I have those things I will set you up with a way to make all kinds of custom changes without needing to modify anything in the build routine. |
So the idea in having the "factory" partition is that it is a "factory tested" firmware that customer can always revert to, if ota corrupts in some fashion. I have sufficient flash to do this, and seems like a useful thing. I am currently running a script that sed's into the builder/esp32.py file to make some modifications (spiffs, etc) so I can just add factory to that, but thought it might be a useful command line option. |
with an OTA update that's what the second OTA partition is for. It automatically plays round robin between the 2 partitions in case of a failure when flashing it can always revert back to the last known good state. You want a 3rd partition for the purposes of actually holding the original firmware that came with the device. |
I'd like to have a factory partition in addition to ota_0 and ota_1. Is this something you'd like to add as command line option, or should I hack builder/esp32.py?
The text was updated successfully, but these errors were encountered: