-
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
How to create a new file or directory in a file generated using LFS? #95
Comments
I have found a way to manipulate the contents of the lfs file. I export the data from the LFS partition on the device to bin and put it into this library. The library can correctly recognize the files in bin, and then I use the library to add files to bin. When I recognize it again, it shows that it has been successfully added, which means that this bin contains both the device's own files and the newly created files using the library. Next, I will rewrite this bin into the device's flash. When I start the device, it prompts a mount failure and receives an -84 error code. Why did this issue occur |
What version of littlefs are you running on your microcontroller? Newer version of littlefs are not backwards compatible with older versions (~1yr old). |
2.5.0,I tried to upgrade the device's LFS to 2.9.0 today, which is the same as the version of this library, but it still failed |
what is the block_size that created these files? |
4096 |
I was unable to unpack the
|
related: I just opened a PR reworking the CLI to be a bit more intuitive, you can try playing around with it if you'd like: |
I wrote this bin into the device's flash, but it still returns -84. |
I only found a way to create a new LFS file in the example, without adding content to the existing LFS file, I think this should be achievable, If possible, please give me a demonstration. Thank you
The text was updated successfully, but these errors were encountered: