diff options
author | Sam Protsenko <semen.protsenko@linaro.org> | 2025-01-16 17:01:29 -0600 |
---|---|---|
committer | Minkyu Kang <mk7.kang@samsung.com> | 2025-02-05 19:15:12 +0900 |
commit | ccfd8de541a8ab329e575648dabb934572d55fe6 (patch) | |
tree | cf57316355e65b28f9055187996a5d6a88ef3359 | |
parent | 4d8ccb938d580638aac48d0e432d6699ed3cc4b8 (diff) |
board: samsung: e850-96: Report LDFW loading failures
LDFW firmware loading can fail, e.g. in case if user forgot to upload
the binary to the appropriate location (/EFI/firmware/ldfw.bin on ESP
partition). Report such errors explicitly, so that the user can notice
it early and take necessary actions. But don't return error code from
board_init() in this case, as LDFW firmware is not mandatory for board
operation and is only required for some features like TRNG.
Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
-rw-r--r-- | board/samsung/e850-96/e850-96.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/board/samsung/e850-96/e850-96.c b/board/samsung/e850-96/e850-96.c index c5cef6f19d2..0bef68d2fb2 100644 --- a/board/samsung/e850-96/e850-96.c +++ b/board/samsung/e850-96/e850-96.c @@ -19,6 +19,11 @@ int dram_init_banksize(void) int board_init(void) { - load_ldfw(); + int err; + + err = load_ldfw(); + if (err) + printf("ERROR: LDFW loading failed (%d)\n", err); + return 0; } |