Create SPIFFS image and flash it.
mkspiffs is added to create SPIFFS image from directory with files. Build process changed to flash SPIFFS image if necessary
This commit is contained in:
parent
5c12b7c7e9
commit
d25b8b2a55
7 changed files with 352 additions and 1 deletions
34
extras/spiffs/mkspiffs/README.md
Normal file
34
extras/spiffs/mkspiffs/README.md
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
# mkspiffs Create spiffs image
|
||||
|
||||
mkspiffs is a command line utility to create an image of SPIFFS in order
|
||||
to write to flash.
|
||||
|
||||
## Usage
|
||||
|
||||
mkspiffs will be built automatically if you include the following line in your
|
||||
makefile:
|
||||
|
||||
```
|
||||
$(eval $(call make_spiffs_image,files))
|
||||
```
|
||||
|
||||
where *files* is the directory with files that should go into SPIFFS image.
|
||||
|
||||
Or you can build mkspiffs manually with:
|
||||
|
||||
```
|
||||
make SPIFFS_SIZE=0x100000
|
||||
```
|
||||
|
||||
mkspiffs cannot be built without specifying SPIFFS size because it uses the
|
||||
same SPIFFS sources as the firmware. And for the firmware SPIFFS size is
|
||||
compile time defined.
|
||||
|
||||
Please note that if you change SPIFFS_SIZE you need to rebuild mkspiffs.
|
||||
The easiest way is to run `make clean` for you project.
|
||||
|
||||
To manually generate SPIFFS image from directory, run:
|
||||
|
||||
```
|
||||
mkspiffs DIRECTORY IMAGE_NAME
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue