Tool to build and unpack SPIFFS images.
./mkspiffs {-c <pack_dir>|-l|-i} [-b <number>] [-p <number>] [-s
<number>] [--] [--version] [-h] <image_file>
Where:
-c <pack_dir>, --create <pack_dir>
create spiffs image from a directory
-- OR --
-l, --list
list files in spiffs image
-- OR --
-i, --visualize
visualize spiffs image
-b <number>, --block <number>
fs block size, in bytes
-p <number>, --page <number>
fs page size, in bytes
-s <number>, --size <number>
fs image size, in bytes
--, --ignore_rest
Ignores the rest of the labeled arguments following this flag.
--version
Displays version information and exits.
-h, --help
Displays usage information and exits.
<image_file>
(required) spiffs image file
You need gcc (>= 4.8) and make. On Windows, use MinGW.
Run:
$ make dist
Linux | Windows |
---|---|
MIT
- Error handling
- Determine the image size automatically when opening a file
- Code cleanup