-
-
Notifications
You must be signed in to change notification settings - Fork 73
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
Improve OTA process, reduce LittleFS partition #805
Comments
This is a good idea, which I have also though about in the past, but as long as the manual upload is temporarily stored on littlefs, this will not get high priority from me. Other priorities have kept me from rewriting the upload feature. Also (as far as I know) there is no way to re-partition existing installations through a simple firmware upgrade, making this useful only for new devices, leaving existing devices stuck on the last version that fit the current partitioning scheme. This is a deal breaker for us, as we have some thousands out there already. I must also admit I have not done too much research on any of these aspects, so the solution may be simple. I am open for hints and discussions on this matter. |
Re-partitioning should be as simple as writing a new partitions.bin to the correct flash offset and rebooting. Since the start offset of Edit: Moving LittleFS might be tricky, if its contents don't fit into RAM. But it can also be done by creating a temporary LittleFS on |
Thank you for the valuable input, really appreciate it. I will slot out some time to look closer on this, as it sounds like the best way forward |
Just as an update, I have a working solution locally, but there are some details I need to sort out still which I have not yet found time for. |
This feature is now out for testing in #879 |
With two app partitions, the LittleFS partition doesn't need to be as large as it is right now. To make space for future features and address the C3 issue (#786), it would be nice to reduce the FS to 256k or so and grow the app partitions. Then write directly into the inactive one during update and swap the booting partition after verifying. This would give ~1.8MB app space on 4MB devices.
The text was updated successfully, but these errors were encountered: