This is to make easier development with uEnv.txt to update from the
board on the fly from u-boot to MMC boot media.

Signed-off-by: Manorit Chawdhry <m-chawd...@ti.com>
---
 include/env/ti/mmc.env | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/env/ti/mmc.env b/include/env/ti/mmc.env
index 0256a2d2aaca..886e4cab36fe 100644
--- a/include/env/ti/mmc.env
+++ b/include/env/ti/mmc.env
@@ -34,6 +34,9 @@ envboot=if mmc dev ${mmcdev}; then
                fi;
        fi;
   fi;
+save_uenv=
+       env export -t $loadaddr $save_to_env save_to_env;
+       fatwrite mmc ${mmcdev} ${loadaddr} ${bootenvfile} ${filesize};
 mmcloados=
        if test ${boot_fdt} = yes || test ${boot_fdt} = try; then
                if run get_fdt_mmc; then

-- 
2.43.0

Reply via email to