diff options
author | Tim Harvey <tharvey@gateworks.com> | 2021-07-16 15:44:12 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-08-01 09:05:24 -0600 |
commit | c03cb022305b40e3efd7271c055e8bc6aefa7f75 (patch) | |
tree | f79242479053dc3427a7c0c353e5f1aab6eb59d2 | |
parent | 5371593aed56ee11cbb6cc6ac8d058fcd9b8f58c (diff) | |
download | u-boot-c03cb022305b40e3efd7271c055e8bc6aefa7f75.zip u-boot-c03cb022305b40e3efd7271c055e8bc6aefa7f75.tar.gz u-boot-c03cb022305b40e3efd7271c055e8bc6aefa7f75.tar.bz2 |
common: board_r: print error if binman_init fails
Display an error if binman_init fails.
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
-rw-r--r-- | common/board_r.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/common/board_r.c b/common/board_r.c index 3f82404..e3e6248 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -323,10 +323,16 @@ static int initr_manual_reloc_cmdtable(void) static int initr_binman(void) { + int ret; + if (!CONFIG_IS_ENABLED(BINMAN_FDT)) return 0; - return binman_init(); + ret = binman_init(); + if (ret) + printf("binman_init failed:%d\n", ret); + + return ret; } #if defined(CONFIG_MTD_NOR_FLASH) |