diff options
author | Manorit Chawdhry | 2023-07-06 23:54:31 -0500 |
---|---|---|
committer | Udit Kumar | 2023-07-07 00:16:27 -0500 |
commit | 949e9cf709391136aa9a7a7f2c2215a9855261ef (patch) | |
tree | 3ecd51fdec86ba8196358e8395007f997ac40fab | |
parent | 414a012626128efd68ec41a07db28b311b87b65b (diff) | |
download | ti-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_defconfig | 3 | ||||
-rw-r--r-- | configs/j7200_evm_a72_defconfig | 4 | ||||
-rw-r--r-- | configs/j721e_evm_a72_defconfig | 4 | ||||
-rw-r--r-- | configs/j721s2_evm_a72_defconfig | 3 | ||||
-rw-r--r-- | configs/j784s4_evm_a72_defconfig | 4 | ||||
-rw-r--r-- | doc/board/ti/k3.rst | 27 |
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 | |||
13 | CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y | 13 | CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y |
14 | CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x80480000 | 14 | CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x80480000 |
15 | CONFIG_ENV_SIZE=0x20000 | 15 | CONFIG_ENV_SIZE=0x20000 |
16 | CONFIG_ENV_OFFSET=0x680000 | ||
17 | CONFIG_SYS_SPI_U_BOOT_OFFS=0x300000 | 16 | CONFIG_SYS_SPI_U_BOOT_OFFS=0x300000 |
18 | CONFIG_DM_GPIO=y | 17 | CONFIG_DM_GPIO=y |
19 | CONFIG_SPL_DM_SPI=y | 18 | CONFIG_SPL_DM_SPI=y |
@@ -85,8 +84,6 @@ CONFIG_OF_LIST="k3-am642-evm k3-am642-sk" | |||
85 | CONFIG_MULTI_DTB_FIT=y | 84 | CONFIG_MULTI_DTB_FIT=y |
86 | CONFIG_SPL_MULTI_DTB_FIT=y | 85 | CONFIG_SPL_MULTI_DTB_FIT=y |
87 | CONFIG_SPL_MULTI_DTB_FIT_NO_COMPRESSION=y | 86 | CONFIG_SPL_MULTI_DTB_FIT_NO_COMPRESSION=y |
88 | CONFIG_ENV_IS_IN_MMC=y | ||
89 | CONFIG_SYS_MMC_ENV_PART=1 | ||
90 | CONFIG_NET_RANDOM_ETHADDR=y | 87 | CONFIG_NET_RANDOM_ETHADDR=y |
91 | CONFIG_SPL_DM=y | 88 | CONFIG_SPL_DM=y |
92 | CONFIG_SPL_DM_SEQ_ALIAS=y | 89 | CONFIG_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 | |||
11 | CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y | 11 | CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y |
12 | CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x80480000 | 12 | CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x80480000 |
13 | CONFIG_ENV_SIZE=0x20000 | 13 | CONFIG_ENV_SIZE=0x20000 |
14 | CONFIG_ENV_OFFSET=0x700000 | ||
15 | CONFIG_DM_GPIO=y | 14 | CONFIG_DM_GPIO=y |
16 | CONFIG_SPL_DM_SPI=y | 15 | CONFIG_SPL_DM_SPI=y |
17 | CONFIG_DEFAULT_DEVICE_TREE="k3-j7200-common-proc-board" | 16 | CONFIG_DEFAULT_DEVICE_TREE="k3-j7200-common-proc-board" |
@@ -21,7 +20,6 @@ CONFIG_SPL_MMC=y | |||
21 | CONFIG_SPL_SERIAL=y | 20 | CONFIG_SPL_SERIAL=y |
22 | CONFIG_SPL_DRIVERS_MISC=y | 21 | CONFIG_SPL_DRIVERS_MISC=y |
23 | CONFIG_SPL_STACK_R_ADDR=0x82000000 | 22 | CONFIG_SPL_STACK_R_ADDR=0x82000000 |
24 | CONFIG_ENV_OFFSET_REDUND=0x720000 | ||
25 | CONFIG_SPL_FS_FAT=y | 23 | CONFIG_SPL_FS_FAT=y |
26 | CONFIG_SPL_LIBDISK_SUPPORT=y | 24 | CONFIG_SPL_LIBDISK_SUPPORT=y |
27 | CONFIG_SPL_SPI_FLASH_SUPPORT=y | 25 | CONFIG_SPL_SPI_FLASH_SUPPORT=y |
@@ -87,8 +85,6 @@ CONFIG_OF_CONTROL=y | |||
87 | CONFIG_SPL_OF_CONTROL=y | 85 | CONFIG_SPL_OF_CONTROL=y |
88 | CONFIG_SPL_MULTI_DTB_FIT=y | 86 | CONFIG_SPL_MULTI_DTB_FIT=y |
89 | CONFIG_SPL_MULTI_DTB_FIT_NO_COMPRESSION=y | 87 | CONFIG_SPL_MULTI_DTB_FIT_NO_COMPRESSION=y |
90 | CONFIG_ENV_OVERWRITE=y | ||
91 | CONFIG_ENV_IS_IN_MMC=y | ||
92 | CONFIG_SYS_REDUNDAND_ENVIRONMENT=y | 88 | CONFIG_SYS_REDUNDAND_ENVIRONMENT=y |
93 | CONFIG_SYS_RELOC_GD_ENV_ADDR=y | 89 | CONFIG_SYS_RELOC_GD_ENV_ADDR=y |
94 | CONFIG_NET_RANDOM_ETHADDR=y | 90 | CONFIG_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" | |||
88 | CONFIG_MULTI_DTB_FIT=y | 88 | CONFIG_MULTI_DTB_FIT=y |
89 | CONFIG_SPL_MULTI_DTB_FIT=y | 89 | CONFIG_SPL_MULTI_DTB_FIT=y |
90 | CONFIG_SPL_MULTI_DTB_FIT_NO_COMPRESSION=y | 90 | CONFIG_SPL_MULTI_DTB_FIT_NO_COMPRESSION=y |
91 | CONFIG_ENV_OVERWRITE=y | ||
92 | CONFIG_ENV_IS_NOWHERE=y | ||
93 | CONFIG_ENV_IS_IN_FAT=y | ||
94 | CONFIG_SYS_REDUNDAND_ENVIRONMENT=y | 91 | CONFIG_SYS_REDUNDAND_ENVIRONMENT=y |
95 | CONFIG_ENV_FAT_DEVICE_AND_PART="1:1" | ||
96 | CONFIG_SYS_RELOC_GD_ENV_ADDR=y | 92 | CONFIG_SYS_RELOC_GD_ENV_ADDR=y |
97 | CONFIG_NET_RANDOM_ETHADDR=y | 93 | CONFIG_NET_RANDOM_ETHADDR=y |
98 | CONFIG_SPL_DM=y | 94 | CONFIG_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 | |||
88 | CONFIG_OF_LIST="k3-j721s2-common-proc-board k3-am68-sk-base-board" | 88 | CONFIG_OF_LIST="k3-j721s2-common-proc-board k3-am68-sk-base-board" |
89 | CONFIG_SPL_MULTI_DTB_FIT=y | 89 | CONFIG_SPL_MULTI_DTB_FIT=y |
90 | CONFIG_SPL_MULTI_DTB_FIT_NO_COMPRESSION=y | 90 | CONFIG_SPL_MULTI_DTB_FIT_NO_COMPRESSION=y |
91 | CONFIG_ENV_OVERWRITE=y | ||
92 | CONFIG_ENV_IS_IN_FAT=y | ||
93 | CONFIG_SYS_REDUNDAND_ENVIRONMENT=y | 91 | CONFIG_SYS_REDUNDAND_ENVIRONMENT=y |
94 | CONFIG_ENV_FAT_DEVICE_AND_PART="1:1" | ||
95 | CONFIG_SYS_RELOC_GD_ENV_ADDR=y | 92 | CONFIG_SYS_RELOC_GD_ENV_ADDR=y |
96 | CONFIG_NET_RANDOM_ETHADDR=y | 93 | CONFIG_NET_RANDOM_ETHADDR=y |
97 | CONFIG_SPL_DM=y | 94 | CONFIG_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 | |||
9 | CONFIG_SOC_K3_J784S4=y | 9 | CONFIG_SOC_K3_J784S4=y |
10 | CONFIG_TARGET_J784S4_A72_EVM=y | 10 | CONFIG_TARGET_J784S4_A72_EVM=y |
11 | CONFIG_ENV_SIZE=0x20000 | 11 | CONFIG_ENV_SIZE=0x20000 |
12 | CONFIG_ENV_OFFSET=0x680000 | ||
13 | CONFIG_DM_GPIO=y | 12 | CONFIG_DM_GPIO=y |
14 | CONFIG_SPL_DM_SPI=y | 13 | CONFIG_SPL_DM_SPI=y |
15 | CONFIG_DEFAULT_DEVICE_TREE="k3-j784s4-evm" | 14 | CONFIG_DEFAULT_DEVICE_TREE="k3-j784s4-evm" |
@@ -18,7 +17,6 @@ CONFIG_SPL_MMC=y | |||
18 | CONFIG_SPL_SERIAL=y | 17 | CONFIG_SPL_SERIAL=y |
19 | CONFIG_SPL_DRIVERS_MISC=y | 18 | CONFIG_SPL_DRIVERS_MISC=y |
20 | CONFIG_SPL_STACK_R_ADDR=0x82000000 | 19 | CONFIG_SPL_STACK_R_ADDR=0x82000000 |
21 | CONFIG_ENV_OFFSET_REDUND=0x6A0000 | ||
22 | CONFIG_SPL_FIT_IMAGE_POST_PROCESS=y | 20 | CONFIG_SPL_FIT_IMAGE_POST_PROCESS=y |
23 | CONFIG_SPL_FS_FAT=y | 21 | CONFIG_SPL_FS_FAT=y |
24 | CONFIG_SPL_LIBDISK_SUPPORT=y | 22 | CONFIG_SPL_LIBDISK_SUPPORT=y |
@@ -91,8 +89,6 @@ CONFIG_SPL_OF_CONTROL=y | |||
91 | CONFIG_SPL_MULTI_DTB_FIT=y | 89 | CONFIG_SPL_MULTI_DTB_FIT=y |
92 | CONFIG_OF_LIST="k3-j784s4-evm k3-am69-sk" | 90 | CONFIG_OF_LIST="k3-j784s4-evm k3-am69-sk" |
93 | CONFIG_SPL_MULTI_DTB_FIT_NO_COMPRESSION=y | 91 | CONFIG_SPL_MULTI_DTB_FIT_NO_COMPRESSION=y |
94 | CONFIG_ENV_OVERWRITE=y | ||
95 | CONFIG_ENV_IS_IN_MMC=y | ||
96 | CONFIG_SYS_REDUNDAND_ENVIRONMENT=y | 92 | CONFIG_SYS_REDUNDAND_ENVIRONMENT=y |
97 | CONFIG_SYS_RELOC_GD_ENV_ADDR=y | 93 | CONFIG_SYS_RELOC_GD_ENV_ADDR=y |
98 | CONFIG_NET_RANDOM_ETHADDR=y | 94 | CONFIG_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 | |||
389 | Saving environment | ||
390 | ------------------ | ||
391 | |||
392 | SAVEENV is disabled by default and for the new flow uses Uenv.txt as the default | ||
393 | way for saving the environments. This has been done as Uenv.txt is more granular | ||
394 | then 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 | |||
405 | By default run envboot will read it from the MMC/EMMC partition ( based on | ||
406 | mmcdev) and set the environments. | ||
407 | |||
408 | If manually needs to be done then the environment can be read from the | ||
409 | filesystem and then imported | ||
410 | |||
411 | .. code-block:: | ||
412 | |||
413 | => fatload mmc ${mmcdev} ${loadaddr} ${bootenvfile} | ||
414 | => env import -t ${loadaddr} ${filesize} | ||