LittleFS data upload - running from outside the IDE #1477
-
I'd like to provide my users with a means to upload a data folder to an existing Pico. My search skills are failing (and the new GitHub UI is fighting me). What is the minimum required (other than Python) and is there an example command line ? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
What I would suggest is doing one upload with upload verbosity (File->Preferences->Show Verbose Output->Upload) enabled. I believe you get all the command line options needed to do the upload in your log, which you can then cut and paste in your own scripts. |
Beta Was this translation helpful? Give feedback.
-
Thanks. I already had that switched on and tried to grep through the source for likely strings. This is all I see on the output:
I think I'm fine with uf2.conv.py for the actual uploading, but I don't know how to create the .bin file from the filesystem data directory. I'll try following the path from clicking on that menu item. |
Beta Was this translation helpful? Give feedback.
-
That's it. Thanks. Seems I only have the macOS binary on my system (and it's also installed with the esp32 and esp8266 cores). So I assume the Boards Manager is intelligent enough to only download and stage what is required, and therefore a Windows user will have a Windows binary, etc. |
Beta Was this translation helpful? Give feedback.
Ah, I guess I don't print out the actual command line. I think you have all the info needed, though.
Just run mklittlefs (installed as part of the toolchain, or downloadable from GH) to make the FS image. You'll need to turn "256k" into the byte count, but otherwise it's cut-n-paste: