-
Notifications
You must be signed in to change notification settings - Fork 111
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
Read current partitions #164
base: main
Are you sure you want to change the base?
Conversation
Hi @tyeth thank you for your PR. Will take a look when I have some time. Regarding the file manager, I wanted to implement it too for the esp-idf vscode extension but the issue is to get the file tree from binaries when you don't really know what is in the image. Required work is a bit out of my scope but I will poke some people about it. |
9a142ad
to
e25415f
Compare
@tyeth May it helps. Here it is a Platformio Python script which does similar what your PR does for esptool.js. For working correctly to extract the files I had to compile the mklittlefs tool myself. P.S I was deep in the rabbit hole ;-) |
@Jason2866 thanks so much! |
@tyeth Just tested your tool online. Well done. Love it! |
There is a Python LittleFS implementation https://github.com/jrast/littlefs-python |
I'm looking for feedback, I've added the partition reader to esptool-js, along with the ability to download flash data.
Test it here: https://tyeth.github.io/read-partitions-esptool-js/
Ideally I want to have a littlefs and fatfs data explorer incorporated too, but I'm a little ways off (down the rabbit hole of filemanagers, although the fatfs/littlefs stuff should be okay).
I mainly want this for easy editing of secrets in littlefs devices, along with dropping files into the file system with relative ease (without installing anything).
I would really appreciate any suggestion of open source easy to use file manager type components or whatever (typescript/javascript/wasm), along with feedback on whether you think the esptool-js should include the partition/flash reading functionality, and potentially file manager (reading file systems from partition / img / bin and editing the contents through a file explorer).
Before submitting this properly I'd clean up the code along with css / todo comments.