[U-Boot][PATCH 2/2] fpga: improve loads usage information
Ibai Erkiaga
ibai.erkiaga-elorza at amd.com
Wed Jan 8 15:03:51 CET 2025
Current usage information for loads command is too verbose and long for
a command usage prompt. This flag simplifies the text for readability
purposes.
Signed-off-by: Ibai Erkiaga <ibai.erkiaga-elorza at amd.com>
---
The authentication and encryption flag naming is redundant with the
description notes included. Use authflag and encflag names for the
command pattern and use description lines for explanation.
New output looks like this:
loads [dev] [address] [size] [authflag] [encflag] [Userkey address]
Load device from memory buffer with secure bistream (authenticated/encrypted/both)(Xilinx only)
-authflag: 0 for OCM, 1 for DDR, 2 for no authentication (specifies where to perform authentication)
-encflag: 0 for device key, 1 for user key, 2 for no encryption
-Userkey address: specifies the address where user key is stored when user key is selected
NOTE: the secure bitstream has to be created using Xilinx bootgen tool only.
---
cmd/fpga.c | 18 ++++++------------
1 file changed, 6 insertions(+), 12 deletions(-)
diff --git a/cmd/fpga.c b/cmd/fpga.c
index cba38662958..cbcbe9c32f1 100644
--- a/cmd/fpga.c
+++ b/cmd/fpga.c
@@ -437,17 +437,11 @@ U_BOOT_CMD(fpga, 6, 1, do_fpga_wrapper,
#endif
#endif
#if defined(CONFIG_CMD_FPGA_LOAD_SECURE)
- " loads\t[dev] [address] [size] [auth-OCM-0/DDR-1/noauth-2]\n"
- "\t[enc-devkey(0)/userkey(1)/nenc(2) [Userkey address]\n"
- "\tLoads the secure bistreams(authenticated/encrypted/both\n"
- "\tauthenticated and encrypted) of [size] from [address] (Xilinx only)\n"
- "\t -The auth-OCM/DDR flag specifies to perform authentication\n"
- "\tin OCM or in DDR. 0 for OCM, 1 for DDR, 2 for no authentication.\n"
- "\t -The enc flag specifies which key to be used for decryption\n"
- "\t0-device key, 1-user key, 2-no encryption.\n"
- "\t -The optional Userkey address specifies from which address key\n"
- "\thas to be used for decryption if user key is selected.\n"
- "\tNOTE: the secure bitstream has to be created using Xilinx\n"
- "\tbootgen tool only.\n"
+ " loads\t[dev] [address] [size] [authflag] [encflag] [Userkey address]\n"
+ "\tLoad device from memory buffer with secure bistream (authenticated/encrypted/both)(Xilinx only)\n"
+ "\t -authflag: 0 for OCM, 1 for DDR, 2 for no authentication (specifies where to perform authentication)\n"
+ "\t -encflag: 0 for device key, 1 for user key, 2 for no encryption\n"
+ "\t -Userkey address: specifies the address where user key is stored when user key is selected\n"
+ "\tNOTE: the secure bitstream has to be created using Xilinx bootgen tool only.\n"
#endif
);
--
2.42.0.325.g3a06386e31
More information about the U-Boot
mailing list