]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - config/u-boot/boot.cmd
u-boot: enable boot from additional mmc device
[ipfire-2.x.git] / config / u-boot / boot.cmd
index 5cb4b8971cdb3d310a43dfc5093b1fa70e25a0a7..b86b6809ae6944561815f67c5bf439606849cb85 100644 (file)
@@ -3,8 +3,12 @@ if test ${boot_dev} = ""; then
        setenv root_dev /dev/mmcblk0p3;
 fi;
 
+if test ${dev_num} = ""; then
+       setenv dev_num 0;
+fi;
+
 if test ${boot_part} = ""; then
-       setenv boot_part 0:1;
+       setenv boot_part ${dev_num}:1;
 fi;
 
 if test ${soc} = "kirkwood"; then