]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - config/u-boot/boot.cmd
core140: add gui.cgi
[ipfire-2.x.git] / config / u-boot / boot.cmd
index 5184e6f8723f56b040a56045d8fc7cbcc9daf1e7..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
@@ -39,7 +43,7 @@ if test "${SERIAL-CONSOLE}" = "ON"; then
        if test ${console} = ""; then
                if test "${board}" = "rpi"; then
                        if test ${cpu} = "armv8"; then
-                               if test "${fdtfile}" = "boradcom/bcm2837-rpi-3-b-plus.dtb"; then
+                               if test "${fdtfile}" = "broadcom/bcm2837-rpi-3-b-plus.dtb"; then
                                        setenv console ttyS1,115200n8;
                                else
                                        if test "${fdtfile}" = "broadcom/bcm2837-rpi-3-b.dtb"; then
@@ -91,5 +95,8 @@ fi ;
 bootz ${kernel_addr_r} ${ramdisk_addr} ${fdt_addr_r};
 booti ${kernel_addr_r} ${ramdisk_addr} ${fdt_addr_r};
 
+bootz ${kernel_addr_r} - ${fdt_addr_r};
+booti ${kernel_addr_r} - ${fdt_addr_r};
+
 # Recompile with:
 # mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr