diff options
author | Simon Glass <sjg@chromium.org> | 2022-12-21 16:08:23 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2023-01-18 11:49:13 -0700 |
commit | 90cfae2ade358018bd46f84dba435eabccd4f8f6 (patch) | |
tree | f05f9dde264ab7c8b5a2bae17586bc7d1382e357 /tools/fit_image.c | |
parent | bebc1410ca79f5b8b33ca86b18bd55fd45d13185 (diff) | |
download | u-boot-90cfae2ade358018bd46f84dba435eabccd4f8f6.tar.gz |
mkimage: Add a few more messages for FIT failures
Add messages to make it clearer which part of the FIT creation is failing.
This can happen when an invalid 'algo' property is provided in the .its
file.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/fit_image.c')
-rw-r--r-- | tools/fit_image.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/fit_image.c b/tools/fit_image.c index 923a9755b70..8a18b1b0ba9 100644 --- a/tools/fit_image.c +++ b/tools/fit_image.c @@ -36,8 +36,10 @@ static int fit_add_file_data(struct image_tool_params *params, size_t size_inc, tfd = mmap_fdt(params->cmdname, tmpfile, size_inc, &ptr, &sbuf, true, false); - if (tfd < 0) + if (tfd < 0) { + fprintf(stderr, "Cannot map FDT file '%s'\n", tmpfile); return -EIO; + } if (params->keydest) { struct stat dest_sbuf; |