aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-bsp/rpi-u-boot-scr/files/boot.cmd.in
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-bsp/rpi-u-boot-scr/files/boot.cmd.in')
-rw-r--r--recipes-bsp/rpi-u-boot-scr/files/boot.cmd.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/recipes-bsp/rpi-u-boot-scr/files/boot.cmd.in b/recipes-bsp/rpi-u-boot-scr/files/boot.cmd.in
index ad54cd0..627d181 100644
--- a/recipes-bsp/rpi-u-boot-scr/files/boot.cmd.in
+++ b/recipes-bsp/rpi-u-boot-scr/files/boot.cmd.in
@@ -1,3 +1,4 @@
fdt addr ${fdt_addr} && fdt get value bootargs /chosen bootargs
fatload mmc 0:1 ${kernel_addr_r} @@KERNEL_IMAGETYPE@@
+if test ! -e mmc 0:1 uboot.env; then saveenv; fi;
@@KERNEL_BOOTCMD@@ ${kernel_addr_r} - ${fdt_addr}