You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/nvs_flash/nvs_partition_generator/README.rst
+21-15Lines changed: 21 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ Prerequisites
12
12
To use this utility in encryption mode, the following packages need to be installed:
13
13
- cryptography package
14
14
15
-
This dependency is already captured by including these packages in `requirement.txt` in top level IDF directory.
15
+
These dependencies is already captured by including these packages in `requirement.txt` in top level IDF directory.
16
16
17
17
CSV file format
18
18
---------------
@@ -28,7 +28,7 @@ Type
28
28
Encoding
29
29
Supported values are: ``u8``, ``i8``, ``u16``, ``u32``, ``i32``, ``string``, ``hex2bin``, ``base64`` and ``binary``. This specifies how actual data values are encoded in the resultant binary file. Difference between ``string`` and ``binary`` encoding is that ``string`` data is terminated with a NULL character, whereas ``binary`` data is not.
30
30
31
-
.. note:: For ``file`` type, only ``hex2bin``, ``base64``, ``string`` and ``binary`` is supported as of now.
31
+
.. note:: For ``file`` type, only ``hex2bin``, ``base64``, ``string`` and ``binary`` is supported as of now.
32
32
33
33
Value
34
34
Data value.
@@ -44,7 +44,7 @@ Below is an example dump of such CSV file::
44
44
key1,data,u8,1
45
45
key2,file,string,/path/to/file
46
46
47
-
.. note:: Make sure there are no spaces before and after ',' in CSV file.
47
+
.. note:: Make sure there are no spaces before and after ',' or at the end of each line in CSV file.
.. note:: If `--keygen` is given with `--keyfile` argument, generated keys will be stored in `--keyfile` file. If `--keygen` argument is absent, `--keyfile` is taken as input file having key for encryption.
140
144
141
145
142
-
*To generate* **only** *encryption keys with this utility* ( Creates an `encryption_keys.bin` file in current directory ): ::
146
+
*To generate* **only** *encryption keys with this utility*::
143
147
144
148
python nvs_partition_gen.py --keygen true
145
149
146
-
.. note:: This `encryption_keys.bin` file is compatible with NVS key-partition structure. Refer to :ref:`nvs_key_partition` for more details.
150
+
This creates an `encryption_keys_<timestamp>.bin` file.
147
151
152
+
.. note:: This newly created file having encryption keys in `keys/` directory is compatible with NVS key-partition structure. Refer to :ref:`nvs_key_partition` for more details.
148
153
149
154
150
155
You can also provide the format version number (in any of the two modes):
@@ -179,3 +184,4 @@ Caveats
179
184
- Utility doesn't check for duplicate keys and will write data pertaining to both keys. User needs to make sure keys are distinct.
180
185
- Once a new page is created, no data will be written in the space left in previous page. Fields in the CSV file need to be ordered in such a way so as to optimize memory.
0 commit comments