diff mbox series

[v2,1/5] binman: add documentation for binman sign option

Message ID 20230308011342.21992-2-fr0st61te@gmail.com
State Accepted
Delegated to: Simon Glass
Headers show
Series Introduce new sign binman's option | expand

Commit Message

Ivan Mikhaylov March 8, 2023, 1:13 a.m. UTC
Add the documentation about binman sign option and providing an
example.

Signed-off-by: Ivan Mikhaylov <fr0st61te@gmail.com>
---
 tools/binman/binman.rst | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

Comments

Simon Glass March 11, 2023, 1:47 a.m. UTC | #1
Add the documentation about binman sign option and providing an
example.

Signed-off-by: Ivan Mikhaylov <fr0st61te@gmail.com>
---
 tools/binman/binman.rst | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

Applied to u-boot-dm/next, thanks!
Simon Glass March 12, 2023, 5:36 p.m. UTC | #2
Add the documentation about binman sign option and providing an
example.

Signed-off-by: Ivan Mikhaylov <fr0st61te@gmail.com>
---
 tools/binman/binman.rst | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

Applied to u-boot-dm/next, thanks!
Applied to u-boot-dm/next, thanks!
diff mbox series

Patch

diff --git a/tools/binman/binman.rst b/tools/binman/binman.rst
index 0921e31878..c9d352e3ba 100644
--- a/tools/binman/binman.rst
+++ b/tools/binman/binman.rst
@@ -1330,6 +1330,24 @@  You can also replace just a selection of entries::
 
 .. _`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
 -------