diff --git a/sys/boot/uboot/fdt/uboot_fdt.c b/sys/boot/uboot/fdt/uboot_fdt.c index 5caef8f..cc8c025 100644 --- a/sys/boot/uboot/fdt/uboot_fdt.c +++ b/sys/boot/uboot/fdt/uboot_fdt.c @@ -75,7 +75,11 @@ fdt_platform_load_dtb(void) * If the U-boot environment contains a variable giving the name of a * file, use it if we can load and validate it. */ - s = ub_env_get("fdtfile"); + s = getenv("fdtfile"); + if (s == NULL) + s = getenv("fdt_file"); + if (s == NULL) + s = ub_env_get("fdtfile"); if (s == NULL) s = ub_env_get("fdt_file"); if (s != NULL && *s != '\0') {