From c02b4ff8d2005a76e8d94b2a5f9152c0023f02e1 Mon Sep 17 00:00:00 2001 From: The-going <48602507+The-going@users.noreply.github.com> Date: Sun, 1 Dec 2024 19:06:30 +0300 Subject: [PATCH] bootscripts: Set the expected default path to "${prefix}dtb/${vendor}" Set the expected default path to /boot/dtb/allwinner and start analyzing if the DTB file is not found in this path. The folder with the vendor's name is now part of the path, not part of the file name. This greatly facilitates the analysis of various possible options in a simple u-boot shell. --- config/bootscripts/boot-sun50i-next.cmd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/bootscripts/boot-sun50i-next.cmd b/config/bootscripts/boot-sun50i-next.cmd index 2724f49c5b..5702c17472 100644 --- a/config/bootscripts/boot-sun50i-next.cmd +++ b/config/bootscripts/boot-sun50i-next.cmd @@ -13,14 +13,14 @@ setenv console "both" setenv docker_optimizations "on" setenv bootlogo "false" +setenv vendor "allwinner" + # Remember the default u-boot fdtfile setenv deffdt_file ${fdtfile} # Remember the default u-boot fdtdir setenv deffdt_dir "${prefix}dtb" -if test "$fdtdir" = ""; then setenv fdtdir "${deffdt_dir}";fi - -setenv vendor "allwinner" +if test "$fdtdir" = ""; then setenv fdtdir "${deffdt_dir}/${vendor}";fi # Print boot source itest.b *0x10028 == 0x00 && echo "U-boot loaded from SD"