Skip to contentSkip to conversation

board/boundarydevices: fix boot partition number in bootscript

Buildroot Thomas Petazzoni 1 participant 1 message Nov 7, 2016

lore
Share & tools
lore
#0 lore raw

commit: https://git.buildroot.net/buildroot/commit/?id=adf31efcd433712f546f2a3bcdb18abe650db27b
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

It was previously hardcoded to use the 1st partition although the bootpart variable was used to download kernel/dtb from any partition.

---
 board/boundarydevices/common/6x_bootscript.txt | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
board/boundarydevices/common/6x_bootscript.txt +3 -5
index e8a08aa..2fc687a 100644
@@ -92,14 +92,12 @@ fi
 
 setenv bootargs "${bootargs} console=${console},115200 vmalloc=400M consoleblank=0 rootwait fixrtc"
 
-bpart=1
-
 if test "sata" = "${dtype}" ; then
-	setenv bootargs "${bootargs} root=/dev/sda${bpart}" ;
+	setenv bootargs "${bootargs} root=/dev/sda${bootpart}" ;
 elif test "usb" = "${dtype}" ; then
-	setenv bootargs "${bootargs} root=/dev/sda${bpart}" ;
+	setenv bootargs "${bootargs} root=/dev/sda${bootpart}" ;
 else
-	setenv bootargs "${bootargs} root=/dev/mmcblk${disk}p${bpart}"
+	setenv bootargs "${bootargs} root=/dev/mmcblk${disk}p${bootpart}"
 fi
 
 if itest.s "x" != "x${disable_giga}" ; then