-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Add Storage Extension Support #7000
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
Is this ready for testing? |
@bill88t You can start with testing. |
Manually built f44288d and flashed on waveshare_esp32s2_pico as a uf2. Had to look in the source to find it. Attempting a wget test. Works just fine. It works if we go back to the first partition and to the 2nd again. |
If |
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.
I appreciate you re-working how the storage.erase_filesystem call will work.
I have one minor nit, though.
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.
I like this API -- thanks!
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.
Just one thing!
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.
Glad to get this in -- it will be in beta.2, which is imminent.
Adds ability to extend
CIRCUITPY
storage by utilizing the next update partition on boards withdualbank
support.The
ota_x
anduser_fs
partitions are presented as a continuous flash storage block withuser_fs
always forming the first part and the second part is one of theota_x
next update partition. These partition may not be contiguous in thepartition-table
.Couple limitations as re-sizing filesystem without erasing isn't supported currently:
ota_x
app partitions need to contain bootable image, storage extension has to be turned off.Note: TinyUF2 will need to be updated so it flashes the next update partition instead of defaulting to
ota_0
in order to avoid data corruption when storage is extended.