From 0e94062c2b5d7ceac5889dccfe35db5d62461531 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Tue, 8 Nov 2016 10:37:53 -0700 Subject: util/amdfwtool: add usage text Change-Id: I0ddb4516c03b0240d9134b35753ad901932d3f53 Signed-off-by: Martin Roth Reviewed-on: https://review.coreboot.org/17323 Tested-by: build bot (Jenkins) Reviewed-by: Marshall Dawson --- util/amdfwtool/amdfwtool.c | 44 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) (limited to 'util/amdfwtool') diff --git a/util/amdfwtool/amdfwtool.c b/util/amdfwtool/amdfwtool.c index e1b3c21ce4..5cd0f285f5 100644 --- a/util/amdfwtool/amdfwtool.c +++ b/util/amdfwtool/amdfwtool.c @@ -147,7 +147,49 @@ static uint32_t fletcher32(const uint16_t *pptr, int length) static void usage(void) { - printf("Create AMD Firmware combination\n"); + printf("amdfwtool: Create AMD Firmware combination\n"); + printf("Usage: amdfwtool [options] -f -o \n"); + printf("-x | --xhci Add XHCI blob\n"); + printf("-i | --imc Add IMC blob\n"); + printf("-g | --gec Add GEC blob\n"); + + printf("\nPSP options:\n"); + printf("-p | --pubkey Add pubkey\n"); + printf("-b | --bootloader Add bootloader\n"); + printf("-s | --smufirmware Add smufirmware\n"); + printf("-r | --recovery Add recovery\n"); + printf("-k | --rtmpubkey Add rtmpubkey\n"); + printf("-c | --secureos Add secureos\n"); + printf("-n | --nvram Add nvram\n"); + printf("-d | --securedebug Add securedebug\n"); + printf("-t | --trustlets Add trustlets\n"); + printf("-u | --trustletkey Add trustletkey\n"); + printf("-w | --smufirmware2 Add smufirmware2\n"); + printf("-m | --smuscs Add smuscs\n"); + +#if PSP2 + printf("\nPSP2 options:\n"); + printf("-P | --pubkey2 Add pubkey\n"); + printf("-B | --bootloader2 Add bootloader\n"); + printf("-S | --smufirmware_2 Add smufirmware\n"); + printf("-R | --recovery2 Add recovery\n"); + printf("-K | --rtmpubkey2 Add rtmpubkey\n"); + printf("-C | --secureos2 Add secureos\n"); + printf("-N | --nvram2 Add nvram\n"); + printf("-D | --securedebug2 Add securedebug\n"); + printf("-T | --trustlets2 Add trustlets\n"); + printf("-U | --trustletkey2 Add trustletkey\n"); + printf("-W | --smufirmware2_2 Add smufirmware2\n"); + printf("-M | --smuscs2 Add smuscs\n"); +#endif + + printf("\n-o | --output output filename\n"); + printf("-f | --flashsize ROM size in bytes\n"); + printf(" size must be larger than %dKB\n", + MIN_ROM_KB); + printf(" and must a multiple of 1024\n"); + printf("-h | --help show this help\n"); + } typedef enum _amd_fw_type { -- cgit v1.2.3