mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-20 20:04:46 +00:00
binman: add documentation for binman sign option
Add the documentation about binman sign option and providing an example. Signed-off-by: Ivan Mikhaylov <fr0st61te@gmail.com> Add a section about 'binman sign' at the bottom: Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
c5fe73ecb4
commit
0f40e23fd2
1 changed files with 47 additions and 0 deletions
|
@ -1366,6 +1366,24 @@ when it was created.
|
||||||
|
|
||||||
.. _`BinmanLogging`:
|
.. _`BinmanLogging`:
|
||||||
|
|
||||||
|
Signing FIT container with private key in an image
|
||||||
|
--------------------------------------------------
|
||||||
|
|
||||||
|
You can sign FIT container with private key in your image.
|
||||||
|
For example::
|
||||||
|
|
||||||
|
$ binman sign -i image.bin -k privatekey -a sha256,rsa4096 fit
|
||||||
|
|
||||||
|
binman will extract FIT container, sign and replace it immediately.
|
||||||
|
|
||||||
|
If you want to sign and replace FIT container in place::
|
||||||
|
|
||||||
|
$ binman sign -i image.bin -k privatekey -a sha256,rsa4096 -f fit.fit fit
|
||||||
|
|
||||||
|
which will sign FIT container with private key and replace it immediately
|
||||||
|
inside your image.
|
||||||
|
|
||||||
|
|
||||||
Logging
|
Logging
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
@ -1751,6 +1769,35 @@ Options:
|
||||||
output directory if a single test is run (pass test name at the end of the
|
output directory if a single test is run (pass test name at the end of the
|
||||||
command line
|
command line
|
||||||
|
|
||||||
|
binman sign
|
||||||
|
-----------
|
||||||
|
|
||||||
|
Usage::
|
||||||
|
|
||||||
|
binman sign [-h] -a ALGO [-f FILE] -i IMAGE -k KEY [paths ...]
|
||||||
|
|
||||||
|
positional arguments:
|
||||||
|
|
||||||
|
paths
|
||||||
|
Paths within file to sign (wildcard)
|
||||||
|
|
||||||
|
options:
|
||||||
|
|
||||||
|
-h, --help
|
||||||
|
show this help message and exit
|
||||||
|
|
||||||
|
-a ALGO, --algo ALGO
|
||||||
|
Hash algorithm e.g. sha256,rsa4096
|
||||||
|
|
||||||
|
-f FILE, --file FILE
|
||||||
|
Input filename to sign
|
||||||
|
|
||||||
|
-i IMAGE, --image IMAGE
|
||||||
|
Image filename to update
|
||||||
|
|
||||||
|
-k KEY, --key KEY
|
||||||
|
Private key file for signing
|
||||||
|
|
||||||
binman tool
|
binman tool
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue