On 12:56-20240124, Manorit Chawdhry wrote:
> 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};

Please NO! saveenv has ability.. why not use that? it is better to
improve the commands themselves.

>  mmcloados=
>       if test ${boot_fdt} = yes || test ${boot_fdt} = try; then
>               if run get_fdt_mmc; then
> 
> -- 
> 2.43.0
> 

-- 
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 
849D 1736 249D

Reply via email to