Skip to content

A toolset for unpacking, modifying and recreating ESP32 NVS partitions

License

Notifications You must be signed in to change notification settings

BrownFineSecurity/esp32-nvs-mod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

esp32-nvs-mod

A toolset for unpacking, modifying and recreating ESP32 NVS partitions

Step 1 - Unpacking: nvs_read.py

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

Step 2 - Convert to CVS format: generate_nvs_csv.py

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

Step 3 - Modify key/value data

Edit the CSV file OR the blob data pointed to by a CVS entry

Step 4 - Build new NVS partition

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

About

A toolset for unpacking, modifying and recreating ESP32 NVS partitions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages