A toolset for unpacking, modifying and recreating ESP32 NVS partitions
First we need to extract all the data contained in the NVS partition to a JSON format
python nvs_read.py nvs.bin data.json
Second we need to convert this JSON format to the nvs_partition_gen.py CSV format
python generate_nvs_csv.py data.json data.csv
Edit the CSV file OR the blob data pointed to by a CVS entry
clone the esp-idf repo:
git clone https://github.com/espressif/esp-idf.git
generate nvs partition (assuming the original partition size is 16384)
./esp-idf/components/nvs_flash/nvs_partition_generator/nvs_partition_gen.py generate data.csv mod-nvs.bin 16384