]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
u-boot: bootscript try to use also devnum instead of dev_num
authorArne Fitzenreiter <arne_f@ipfire.org>
Mon, 4 Oct 2021 06:13:18 +0000 (06:13 +0000)
committerArne Fitzenreiter <arne_f@ipfire.org>
Mon, 4 Oct 2021 06:13:18 +0000 (06:13 +0000)
on newer board the variable was renamed.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
config/u-boot/boot.cmd
config/u-boot/boot.scr

index 8cb8e5fc29a8213151eccc60554052bdfc885662..64e9c05bc950af1890a909a3db16f736e17ae517 100644 (file)
@@ -4,7 +4,10 @@ if test ${boot_dev} = ""; then
 fi;
 
 if test ${dev_num} = ""; then
-       setenv dev_num 0;
+       setenv dev_num ${devnum}
+       if test ${dev_num} = ""; then
+               setenv dev_num 0;
+       fi;
 fi;
 
 if test ${boot_part} = ""; then
index 370ddde49e7602b2cf76d824da520d21b8347b73..875e09dc23cd2b8f17fd46d73f4deed208987004 100644 (file)
Binary files a/config/u-boot/boot.scr and b/config/u-boot/boot.scr differ