[PATCH 4/6] bootm: fit: Print error when image is not signed
Sascha Hauer
s.hauer at pengutronix.de
Tue May 10 07:08:07 PDT 2016
when fit is configured to force signed images then print an error
message when an unsigned image is opened to give the user a clue
what went wrong.
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
common/image-fit.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/common/image-fit.c b/common/image-fit.c
index a6e1082..ceb55c2 100644
--- a/common/image-fit.c
+++ b/common/image-fit.c
@@ -485,8 +485,11 @@ static int fit_open_configuration(struct fit_handle *handle, const char *name)
return ret;
}
- if (ret < 0)
+ if (ret < 0) {
+ pr_err("configuration '%s': %s does not have a signature\n",
+ unit, desc);
return ret;
+ }
}
if (of_property_read_string(conf_node, "kernel", &unit) == 0) {
--
2.8.0.rc3
More information about the barebox
mailing list