Chapter 2. API Reference
+---------------------+--------------------------------------------------------
------------+
→
|
--keygen
|
→
+---------------------+--------------------------------------------------------
------------+
→
|
--inputkey INPUTKEY
|
→
+---------------------+--------------------------------------------------------
------------+
→
|
--outdir OUTDIR
|
→
|
|
→
+---------------------+--------------------------------------------------------
------------+
→
You can run the utility to generate factory images for each device using the command below. A sample CSV file is
provided with the utility:
python mfg_gen.py generate samples/sample_config.csv samples/sample_values_
singlepage_blob.csv Sample
→
The master value CSV file should have the path in the file type relative to the directory from which you are running
the utility.
To generate encrypted factory images for each device:
You can run the utility to encrypt factory images for each device using the command below. A sample CSV file is
provided with the utility:
• Encrypt by allowing the utility to generate encryption keys:
python mfg_gen.py generate samples/sample_config.csv samples/sample_values_
singlepage_blob.csv Sample
→
Note: Encryption key of the following format <outdir>/keys/keys-<prefix>-<fileid>.bin is cre-
ated.
Note: This newly created file having encryption keys in keys/ directory is compatible with NVS key-partition
structure. Refer to
NVS key partition
• Encrypt by providing the encryption keys as input binary file:
python mfg_gen.py generate samples/sample_config.csv samples/sample_values_
singlepage_blob.csv Sample
→
To generate only encryption keys: Usage:
python mfg_gen.py generate-key [-h] [--keyfile KEYFILE] [--outdir OUTDIR]
Optional Arguments:
+--------------------+---------------------------------------------------------
-------------+
→
|
Parameter
|
→
+====================+======================================================================+
|
-h, --help
|
→
Espressif Systems
|
Generates key
|
File having key
|
Output directory to store files created
|
(Default: current directory)
0x3000
0x3000
--keygen
for more details.
0x3000
--inputkey keys/sample_keys.bin
|
|
show this help message
704
Submit Document Feedback
(continued from previous page)
for
encrypting NVS partition
for
encrypting NVS partition
Description
and
exit
␣
␣
␣
␣
␣
␣
(continues on next page)
Release v4.4
Need help?
Do you have a question about the ESP32-S2 and is the answer not in the manual?