diff options
author | Manorit Chawdhry <m-chawdhry@ti.com> | 2023-07-07 10:24:31 +0530 |
---|---|---|
committer | Udit Kumar <u-kumar1@ti.com> | 2023-07-07 10:46:27 +0530 |
commit | 949e9cf709391136aa9a7a7f2c2215a9855261ef (patch) | |
tree | 3ecd51fdec86ba8196358e8395007f997ac40fab /doc | |
parent | 414a012626128efd68ec41a07db28b311b87b65b (diff) |
configs: k3: Remove saved environments
Having saved environments usually causes inconsistencies while in
development workflow. The saved environments conflict with the
default ones that U-boot should be updating during development
but that doesn't happen and the saved environments need to be
reset during bootups to test the changes causing extra debugs.
Remove the saved environments as a default. Environments can always
be re-enabled locally if one does like them or needs them for
some production environment. Optionally, Uenv.txt can also be used on
some of the boot media.
Signed-off-by: Manorit Chawdhry <m-chawdhry@ti.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/board/ti/k3.rst | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/doc/board/ti/k3.rst b/doc/board/ti/k3.rst index ff983748d5..58e4ad2f6f 100644 --- a/doc/board/ti/k3.rst +++ b/doc/board/ti/k3.rst @@ -385,3 +385,30 @@ and the same can be extended to other platforms The devices now also have distroboot enabled so if the fit image doesn't work then the fallback to normal distroboot will be there on hs devices, this will need to be explicitly disabled by changing the boot_targets. + +Saving environment +------------------ + +SAVEENV is disabled by default and for the new flow uses Uenv.txt as the default +way for saving the environments. This has been done as Uenv.txt is more granular +then the saveenv command and can be used across various bootmodes too. + +**Writing to MMC/EMMC** + +.. code-block:: + + => env export -t $loadaddr <list of variables> + => fatwrite mmc ${mmcdev} ${loadaddr} ${bootenvfile} ${filesize} + +**Reading from MMC/EMMC** + +By default run envboot will read it from the MMC/EMMC partition ( based on +mmcdev) and set the environments. + +If manually needs to be done then the environment can be read from the +filesystem and then imported + +.. code-block:: + + => fatload mmc ${mmcdev} ${loadaddr} ${bootenvfile} + => env import -t ${loadaddr} ${filesize} |