nvs_part_util: Fix Readme and disable multipage blob by default

This commit is contained in:
Shivani Tipnis 2019-03-27 14:46:40 +05:30
parent 533d90b4c2
commit abb114475f
3 changed files with 6 additions and 6 deletions

View file

@ -56,8 +56,8 @@ When a new namespace entry is encountered in the CSV file, each follow-up entrie
Multipage Blob Support Multipage Blob Support
---------------------- ----------------------
By default, binary blobs are allowed to span over multiple pages and written in the format mentioned in section :ref:`structure_of_entry`. By default, binary blobs are not allowed to span over multiple pages as written in the format mentioned in section :ref:`structure_of_entry`.
If older format is intended to be used, the utility provides an option to disable this feature. If this format is intended to be used, the utility provides an option to enable this feature.
Encryption Support Encryption Support
------------------- -------------------
@ -123,8 +123,6 @@ A sample CSV file is provided with the utility::
+------------------------+----------------------------------------------------------------------------------------------+ +------------------------+----------------------------------------------------------------------------------------------+
| output | Path to output converted binary file. Will use stdout if omitted | | output | Path to output converted binary file. Will use stdout if omitted |
+------------------------+----------------------------------------------------------------------------------------------+ +------------------------+----------------------------------------------------------------------------------------------+
| size | Size of NVS Partition in KB. Eg. 12KB |
+------------------------+----------------------------------------------------------------------------------------------+
| --version {v1,v2} | Set version. Default: v2 | | --version {v1,v2} | Set version. Default: v2 |
+-------------------------------+---------------------------------------------------------------------------------------+ +-------------------------------+---------------------------------------------------------------------------------------+
| --keygen {True,False} | Generate keys for encryption. Default: False | | --keygen {True,False} | Generate keys for encryption. Default: False |

View file

@ -674,7 +674,7 @@ def main():
"--version", "--version",
help='Set version. Default: v2', help='Set version. Default: v2',
choices=['v1','v2'], choices=['v1','v2'],
default='v2') default='v1')
parser.add_argument( parser.add_argument(
"--keygen", "--keygen",

View file

@ -2418,7 +2418,9 @@ TEST_CASE("test nvs apis for nvs partition generator utility with encryption ena
"--encrypt", "--encrypt",
"True", "True",
"--keyfile", "--keyfile",
"../nvs_partition_generator/testdata/encryption_keys.txt",NULL)); "../nvs_partition_generator/testdata/encryption_keys.txt",
"--version",
"v2",NULL));
} else { } else {
CHECK(childpid > 0); CHECK(childpid > 0);
int status; int status;