-
Notifications
You must be signed in to change notification settings - Fork 20
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
Command Line Interface for LittleFS-Python #50
Conversation
Being able to specify the total size instead of number of blocks would be more convenient. If it could accept those parameters as either integers or hexadecimal that would also make it easier to send over parameters right out of partitions.csv on esp-idf. |
per @ianlevesque , you can add something like:
And then in the |
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.
Added a few comments, mostly just alternative ways to accomplish similar goals with argparse. Feel free to disregard, as most of the comments are more stylistic than functionality. Functionality-wise, I think this PR is great. Thank you!
To accomplish @ianlevesque feature request of providing |
With the latest commit most everything mentioned above should be available. |
I haven't actually ran the code, but it all looks very good! |
@ianlevesque have you had a chance to play around with it to see if we can now use this as a suitable mklittlefs replacement in esp_littlefs? |
I very quickly updated the PR joltwallet/esp_littlefs#140 to use this, and it works. Only caveat is that there are two config parameters, CONFIG_LITTLEFS_OBJ_NAME_LEN & CONFIG_LITTLEFS_PAGE_SIZE, that can no longer be passed in. If they were added as parameters then this would have all of the functionality from mklittlefs before. littlefs-python does have them, just not exposed as CLI parameters on this new script |
I'm like 99% sure Supporting a custom I think we should just assert it to be the default 255 in |
No other concerns here then. |
6ba8f3a
to
76aaf3d
Compare
No description provided.