spiffs tools
Generate spiffs image from files
Only support Linux
-
Open terminal here
-
Create
fsdir, and put files in this forlder -
Genrate by execute script
gen_spiffs_image.py
python gen_spiffs_image.py ../../projects/maixpy_k210/config_defaults.mk
the config file from project folder, you can use config_defaults.mk if you compiled maixpy with default config, or you must use build/config/global_config.mk
-
Then the image file(
maixpy_spiffs.img) will be infs_imagefolder -
Burn it to flash at correct address with kflash_gui or
kflash.py, this adress is assigned in the config file(config_defaults.mkorbuild/config/global_config.mk)( variableCONFIG_SPIFFS_START_ADDR)

pack_spiffs_ops.gif: https://cdn.sipeed.com/pack_spiffs_ops.gif