From 748244a84b1b8b1a22bf90bbed716a0e5ace1d61 Mon Sep 17 00:00:00 2001 From: pbw Date: Sat, 7 Sep 2024 16:11:35 +0800 Subject: [PATCH] fix bug for booting tp without serial --- platform/generic/platform.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/platform/generic/platform.c b/platform/generic/platform.c index 3470474a..8215b7eb 100644 --- a/platform/generic/platform.c +++ b/platform/generic/platform.c @@ -230,7 +230,11 @@ static int generic_early_init(bool cold_boot) rc = semihosting_init(); else rc = fdt_serial_init(); - if (rc) + + /* console is not a necessary device for tp scalar*/ + if (rc == SBI_ENODEV) + return 0; + else if (rc) return rc; }