[PATCH] efi_loader: add /dtbs search path

Caleb Connolly caleb.connolly at linaro.org
Mon Jul 22 19:55:23 CEST 2024


Add an additional search path /dtbs, this is where dtbs are installed on
postmarketOS and potentially other distros.

Signed-off-by: Caleb Connolly <caleb.connolly at linaro.org>
---
 lib/efi_loader/efi_fdt.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/efi_loader/efi_fdt.c b/lib/efi_loader/efi_fdt.c
index 86ba00c2bdd9..4777943b80df 100644
--- a/lib/efi_loader/efi_fdt.c
+++ b/lib/efi_loader/efi_fdt.c
@@ -42,8 +42,11 @@ int efi_get_distro_fdt_name(char *fname, int size, int seq)
 		break;
 	case 2:
 		prefix = "/dtb/current";
 		break;
+	case 3:
+		prefix = "/dtbs";
+		break;
 	default:
 		return log_msg_ret("pref", -EINVAL);
 	}
 
-- 
2.45.2



More information about the U-Boot mailing list