aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManorit Chawdhry2023-07-06 23:54:31 -0500
committerUdit Kumar2023-07-07 00:16:27 -0500
commit949e9cf709391136aa9a7a7f2c2215a9855261ef (patch)
tree3ecd51fdec86ba8196358e8395007f997ac40fab
parent414a012626128efd68ec41a07db28b311b87b65b (diff)
downloadti-u-boot-949e9cf709391136aa9a7a7f2c2215a9855261ef.tar.gz
ti-u-boot-949e9cf709391136aa9a7a7f2c2215a9855261ef.tar.xz
ti-u-boot-949e9cf709391136aa9a7a7f2c2215a9855261ef.zip
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>
-rw-r--r--configs/am64x_evm_a53_defconfig3
-rw-r--r--configs/j7200_evm_a72_defconfig4
-rw-r--r--configs/j721e_evm_a72_defconfig4
-rw-r--r--configs/j721s2_evm_a72_defconfig3
-rw-r--r--configs/j784s4_evm_a72_defconfig4
-rw-r--r--doc/board/ti/k3.rst27
6 files changed, 27 insertions, 18 deletions
diff --git a/configs/am64x_evm_a53_defconfig b/configs/am64x_evm_a53_defconfig
index f47d2cbb0ac..412e742e601 100644
--- a/configs/am64x_evm_a53_defconfig
+++ b/configs/am64x_evm_a53_defconfig
@@ -13,7 +13,6 @@ CONFIG_TARGET_AM642_A53_EVM=y
13CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y 13CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
14CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x80480000 14CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x80480000
15CONFIG_ENV_SIZE=0x20000 15CONFIG_ENV_SIZE=0x20000
16CONFIG_ENV_OFFSET=0x680000
17CONFIG_SYS_SPI_U_BOOT_OFFS=0x300000 16CONFIG_SYS_SPI_U_BOOT_OFFS=0x300000
18CONFIG_DM_GPIO=y 17CONFIG_DM_GPIO=y
19CONFIG_SPL_DM_SPI=y 18CONFIG_SPL_DM_SPI=y
@@ -85,8 +84,6 @@ CONFIG_OF_LIST="k3-am642-evm k3-am642-sk"
85CONFIG_MULTI_DTB_FIT=y 84CONFIG_MULTI_DTB_FIT=y
86CONFIG_SPL_MULTI_DTB_FIT=y 85CONFIG_SPL_MULTI_DTB_FIT=y
87CONFIG_SPL_MULTI_DTB_FIT_NO_COMPRESSION=y 86CONFIG_SPL_MULTI_DTB_FIT_NO_COMPRESSION=y
88CONFIG_ENV_IS_IN_MMC=y
89CONFIG_SYS_MMC_ENV_PART=1
90CONFIG_NET_RANDOM_ETHADDR=y 87CONFIG_NET_RANDOM_ETHADDR=y
91CONFIG_SPL_DM=y 88CONFIG_SPL_DM=y
92CONFIG_SPL_DM_SEQ_ALIAS=y 89CONFIG_SPL_DM_SEQ_ALIAS=y
diff --git a/configs/j7200_evm_a72_defconfig b/configs/j7200_evm_a72_defconfig
index 40bb1450ceb..d897d74de6a 100644
--- a/configs/j7200_evm_a72_defconfig
+++ b/configs/j7200_evm_a72_defconfig
@@ -11,7 +11,6 @@ CONFIG_TARGET_J7200_A72_EVM=y
11CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y 11CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
12CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x80480000 12CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x80480000
13CONFIG_ENV_SIZE=0x20000 13CONFIG_ENV_SIZE=0x20000
14CONFIG_ENV_OFFSET=0x700000
15CONFIG_DM_GPIO=y 14CONFIG_DM_GPIO=y
16CONFIG_SPL_DM_SPI=y 15CONFIG_SPL_DM_SPI=y
17CONFIG_DEFAULT_DEVICE_TREE="k3-j7200-common-proc-board" 16CONFIG_DEFAULT_DEVICE_TREE="k3-j7200-common-proc-board"
@@ -21,7 +20,6 @@ CONFIG_SPL_MMC=y
21CONFIG_SPL_SERIAL=y 20CONFIG_SPL_SERIAL=y
22CONFIG_SPL_DRIVERS_MISC=y 21CONFIG_SPL_DRIVERS_MISC=y
23CONFIG_SPL_STACK_R_ADDR=0x82000000 22CONFIG_SPL_STACK_R_ADDR=0x82000000
24CONFIG_ENV_OFFSET_REDUND=0x720000
25CONFIG_SPL_FS_FAT=y 23CONFIG_SPL_FS_FAT=y
26CONFIG_SPL_LIBDISK_SUPPORT=y 24CONFIG_SPL_LIBDISK_SUPPORT=y
27CONFIG_SPL_SPI_FLASH_SUPPORT=y 25CONFIG_SPL_SPI_FLASH_SUPPORT=y
@@ -87,8 +85,6 @@ CONFIG_OF_CONTROL=y
87CONFIG_SPL_OF_CONTROL=y 85CONFIG_SPL_OF_CONTROL=y
88CONFIG_SPL_MULTI_DTB_FIT=y 86CONFIG_SPL_MULTI_DTB_FIT=y
89CONFIG_SPL_MULTI_DTB_FIT_NO_COMPRESSION=y 87CONFIG_SPL_MULTI_DTB_FIT_NO_COMPRESSION=y
90CONFIG_ENV_OVERWRITE=y
91CONFIG_ENV_IS_IN_MMC=y
92CONFIG_SYS_REDUNDAND_ENVIRONMENT=y 88CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
93CONFIG_SYS_RELOC_GD_ENV_ADDR=y 89CONFIG_SYS_RELOC_GD_ENV_ADDR=y
94CONFIG_NET_RANDOM_ETHADDR=y 90CONFIG_NET_RANDOM_ETHADDR=y
diff --git a/configs/j721e_evm_a72_defconfig b/configs/j721e_evm_a72_defconfig
index eaf2b7f2756..a5c1df7e005 100644
--- a/configs/j721e_evm_a72_defconfig
+++ b/configs/j721e_evm_a72_defconfig
@@ -88,11 +88,7 @@ CONFIG_OF_LIST="k3-j721e-common-proc-board k3-j721e-sk"
88CONFIG_MULTI_DTB_FIT=y 88CONFIG_MULTI_DTB_FIT=y
89CONFIG_SPL_MULTI_DTB_FIT=y 89CONFIG_SPL_MULTI_DTB_FIT=y
90CONFIG_SPL_MULTI_DTB_FIT_NO_COMPRESSION=y 90CONFIG_SPL_MULTI_DTB_FIT_NO_COMPRESSION=y
91CONFIG_ENV_OVERWRITE=y
92CONFIG_ENV_IS_NOWHERE=y
93CONFIG_ENV_IS_IN_FAT=y
94CONFIG_SYS_REDUNDAND_ENVIRONMENT=y 91CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
95CONFIG_ENV_FAT_DEVICE_AND_PART="1:1"
96CONFIG_SYS_RELOC_GD_ENV_ADDR=y 92CONFIG_SYS_RELOC_GD_ENV_ADDR=y
97CONFIG_NET_RANDOM_ETHADDR=y 93CONFIG_NET_RANDOM_ETHADDR=y
98CONFIG_SPL_DM=y 94CONFIG_SPL_DM=y
diff --git a/configs/j721s2_evm_a72_defconfig b/configs/j721s2_evm_a72_defconfig
index 6cf32513b35..90d80403719 100644
--- a/configs/j721s2_evm_a72_defconfig
+++ b/configs/j721s2_evm_a72_defconfig
@@ -88,10 +88,7 @@ CONFIG_SPL_OF_CONTROL=y
88CONFIG_OF_LIST="k3-j721s2-common-proc-board k3-am68-sk-base-board" 88CONFIG_OF_LIST="k3-j721s2-common-proc-board k3-am68-sk-base-board"
89CONFIG_SPL_MULTI_DTB_FIT=y 89CONFIG_SPL_MULTI_DTB_FIT=y
90CONFIG_SPL_MULTI_DTB_FIT_NO_COMPRESSION=y 90CONFIG_SPL_MULTI_DTB_FIT_NO_COMPRESSION=y
91CONFIG_ENV_OVERWRITE=y
92CONFIG_ENV_IS_IN_FAT=y
93CONFIG_SYS_REDUNDAND_ENVIRONMENT=y 91CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
94CONFIG_ENV_FAT_DEVICE_AND_PART="1:1"
95CONFIG_SYS_RELOC_GD_ENV_ADDR=y 92CONFIG_SYS_RELOC_GD_ENV_ADDR=y
96CONFIG_NET_RANDOM_ETHADDR=y 93CONFIG_NET_RANDOM_ETHADDR=y
97CONFIG_SPL_DM=y 94CONFIG_SPL_DM=y
diff --git a/configs/j784s4_evm_a72_defconfig b/configs/j784s4_evm_a72_defconfig
index 1e969172ab3..8cdf9342306 100644
--- a/configs/j784s4_evm_a72_defconfig
+++ b/configs/j784s4_evm_a72_defconfig
@@ -9,7 +9,6 @@ CONFIG_NR_DRAM_BANKS=2
9CONFIG_SOC_K3_J784S4=y 9CONFIG_SOC_K3_J784S4=y
10CONFIG_TARGET_J784S4_A72_EVM=y 10CONFIG_TARGET_J784S4_A72_EVM=y
11CONFIG_ENV_SIZE=0x20000 11CONFIG_ENV_SIZE=0x20000
12CONFIG_ENV_OFFSET=0x680000
13CONFIG_DM_GPIO=y 12CONFIG_DM_GPIO=y
14CONFIG_SPL_DM_SPI=y 13CONFIG_SPL_DM_SPI=y
15CONFIG_DEFAULT_DEVICE_TREE="k3-j784s4-evm" 14CONFIG_DEFAULT_DEVICE_TREE="k3-j784s4-evm"
@@ -18,7 +17,6 @@ CONFIG_SPL_MMC=y
18CONFIG_SPL_SERIAL=y 17CONFIG_SPL_SERIAL=y
19CONFIG_SPL_DRIVERS_MISC=y 18CONFIG_SPL_DRIVERS_MISC=y
20CONFIG_SPL_STACK_R_ADDR=0x82000000 19CONFIG_SPL_STACK_R_ADDR=0x82000000
21CONFIG_ENV_OFFSET_REDUND=0x6A0000
22CONFIG_SPL_FIT_IMAGE_POST_PROCESS=y 20CONFIG_SPL_FIT_IMAGE_POST_PROCESS=y
23CONFIG_SPL_FS_FAT=y 21CONFIG_SPL_FS_FAT=y
24CONFIG_SPL_LIBDISK_SUPPORT=y 22CONFIG_SPL_LIBDISK_SUPPORT=y
@@ -91,8 +89,6 @@ CONFIG_SPL_OF_CONTROL=y
91CONFIG_SPL_MULTI_DTB_FIT=y 89CONFIG_SPL_MULTI_DTB_FIT=y
92CONFIG_OF_LIST="k3-j784s4-evm k3-am69-sk" 90CONFIG_OF_LIST="k3-j784s4-evm k3-am69-sk"
93CONFIG_SPL_MULTI_DTB_FIT_NO_COMPRESSION=y 91CONFIG_SPL_MULTI_DTB_FIT_NO_COMPRESSION=y
94CONFIG_ENV_OVERWRITE=y
95CONFIG_ENV_IS_IN_MMC=y
96CONFIG_SYS_REDUNDAND_ENVIRONMENT=y 92CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
97CONFIG_SYS_RELOC_GD_ENV_ADDR=y 93CONFIG_SYS_RELOC_GD_ENV_ADDR=y
98CONFIG_NET_RANDOM_ETHADDR=y 94CONFIG_NET_RANDOM_ETHADDR=y
diff --git a/doc/board/ti/k3.rst b/doc/board/ti/k3.rst
index ff983748d51..58e4ad2f6f2 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
385 The devices now also have distroboot enabled so if the fit image doesn't 385 The devices now also have distroboot enabled so if the fit image doesn't
386 work then the fallback to normal distroboot will be there on hs devices, 386 work then the fallback to normal distroboot will be there on hs devices,
387 this will need to be explicitly disabled by changing the boot_targets. 387 this will need to be explicitly disabled by changing the boot_targets.
388
389Saving environment
390------------------
391
392SAVEENV is disabled by default and for the new flow uses Uenv.txt as the default
393way for saving the environments. This has been done as Uenv.txt is more granular
394then the saveenv command and can be used across various bootmodes too.
395
396**Writing to MMC/EMMC**
397
398.. code-block::
399
400 => env export -t $loadaddr <list of variables>
401 => fatwrite mmc ${mmcdev} ${loadaddr} ${bootenvfile} ${filesize}
402
403**Reading from MMC/EMMC**
404
405By default run envboot will read it from the MMC/EMMC partition ( based on
406mmcdev) and set the environments.
407
408If manually needs to be done then the environment can be read from the
409filesystem and then imported
410
411.. code-block::
412
413 => fatload mmc ${mmcdev} ${loadaddr} ${bootenvfile}
414 => env import -t ${loadaddr} ${filesize}