-
Notifications
You must be signed in to change notification settings - Fork 17.6k
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
Support for scripting in flash using littlefs #28724
base: master
Are you sure you want to change the base?
Conversation
Oh excellent!! Have you tried with both NOR and NAND? |
No, still a lot of work to do as there is lots of duplication currently. The code is from @ntamas but needs a bunch of rework to get into master. I have a plan, but the main thing is that it now works for me locally and I know how to proceed from here. |
Let me know if I can help with reworking this PR for inclusion. This is something that we at @skybrush-io would also be interested in. |
Oh yes, there are a lot small H743 based FPVDrone FCs that only have dataflash. This will be important update to all those (and others). Thanks Andy. |
Thanks Andy, this will be most useful! |
@ntamas actually it's not so bad - I think what you have done is correct. I really want the block logger to die, but I don't think that's going to be possible on boards with very small flash chips |
it will be very interesting to see how this goes! and some stats on storage overhead (and flash cost) would be useful |
@andyp1per assuming this works out and testing is good, we should fork littlefs so we point to our own github org, we've tended to regret it when we don't do that |
Working quite nicely for me now. Not yet flown it. |
5f67678
to
5392b80
Compare
use correct read status for nor flash implement format on littlefs optimize device calls in littlefs flash usage check for fileops allowed in littlefs
5392b80
to
01c281d
Compare
littlefs doesn't have much space free.
01c281d
to
424f673
Compare
This completely replaces the flash based support, including logging with a littlefs backend. This results in much more reliable FS access as well as support for things like scripting.
With thanks to @ntamas for the original code