Commit 74b19ad1c180fe32a01bccc35b0be1425132d927

Authored by Marcel Ziswiler
Committed by Tom Rini
1 parent b891d01038

apalis/colibri_t30: move environment location

Now with the config block handling in place move the U-Boot environment
location before the config block at the end of 1st "boot sector" as
deployed during production using our downstream BSP.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>

Showing 2 changed files with 8 additions and 6 deletions Side-by-side Diff

include/configs/apalis_t30.h
... ... @@ -32,11 +32,12 @@
32 32 #define CONFIG_GENERIC_MMC
33 33 #define CONFIG_TEGRA_MMC
34 34  
35   -/* Environment in eMMC, at the end of 2nd "boot sector" */
  35 +/* Environment in eMMC, before config block at the end of 1st "boot sector" */
36 36 #define CONFIG_ENV_IS_IN_MMC
37   -#define CONFIG_ENV_OFFSET (-CONFIG_ENV_SIZE)
  37 +#define CONFIG_ENV_OFFSET (-CONFIG_ENV_SIZE + \
  38 + CONFIG_TDX_CFG_BLOCK_OFFSET)
38 39 #define CONFIG_SYS_MMC_ENV_DEV 0
39   -#define CONFIG_SYS_MMC_ENV_PART 2
  40 +#define CONFIG_SYS_MMC_ENV_PART 1
40 41  
41 42 /* USB host support */
42 43 #define CONFIG_USB_EHCI
include/configs/colibri_t30.h
... ... @@ -32,11 +32,12 @@
32 32 #define CONFIG_GENERIC_MMC
33 33 #define CONFIG_TEGRA_MMC
34 34  
35   -/* Environment in eMMC, at the end of 2nd "boot sector" */
  35 +/* Environment in eMMC, before config block at the end of 1st "boot sector" */
36 36 #define CONFIG_ENV_IS_IN_MMC
37   -#define CONFIG_ENV_OFFSET (-CONFIG_ENV_SIZE)
  37 +#define CONFIG_ENV_OFFSET (-CONFIG_ENV_SIZE + \
  38 + CONFIG_TDX_CFG_BLOCK_OFFSET)
38 39 #define CONFIG_SYS_MMC_ENV_DEV 0
39   -#define CONFIG_SYS_MMC_ENV_PART 2
  40 +#define CONFIG_SYS_MMC_ENV_PART 1
40 41  
41 42 /* USB host support */
42 43 #define CONFIG_USB_EHCI