earlephilhower / mklittlefs

Utility for creating LittleFS images for upload on the ESP8266 and RP2040 Pico
MIT License
159 stars 54 forks source link

Automatically grab FS size from image size #31

Closed earlephilhower closed 1 year ago

earlephilhower commented 1 year ago

Fixes #20 Fixes #29 Fixes #14

The CLI required the user to pass in the FS size, but it seems most people neglected to do this and the default 0x10000 was used, causing LittleFS to truncate most images.

Now require the -s size option on creation, and auto-read the size when doing a list or update operation. Users can still manually code in a size from the command like if needed.