From: Pali Rohár <pali@kernel.org>
Date: Fri, 23 Jul 2021 09:14:35 +0000 (+0200)
Subject: kwbimage: Update help message about how to extract from an existing image
X-Git-Tag: v2025.01-rc5-pxa1908~1770^2~6
X-Git-Url: http://git.dujemihanovic.xyz/img/static/gitweb.css?a=commitdiff_plain;h=3d7b93d51c26092010626708ba9adaf9a65a764f;p=u-boot.git

kwbimage: Update help message about how to extract from an existing image

Extracting is now supported by dumpimage, so mention it in help instead
of `kwbimage -x`.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
---

diff --git a/tools/kwbimage.c b/tools/kwbimage.c
index 5665198db0..00cb338d64 100644
--- a/tools/kwbimage.c
+++ b/tools/kwbimage.c
@@ -961,7 +961,7 @@ static size_t image_headersz_v1(int *hasext)
 			fprintf(stderr,
 				"Didn't find the file '%s' in '%s' which is mandatory to generate the image\n"
 				"This file generally contains the DDR3 training code, and should be extracted from an existing bootable\n"
-				"image for your board. See 'kwbimage -x' to extract it from an existing image.\n",
+				"image for your board. Use 'dumpimage -T kwbimage -p 0' to extract it from an existing image.\n",
 				binarye->binary.file, dir);
 			return 0;
 		}