u-boot.lists.denx.de archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] smegw01: Pass 'mmcpart' to the kernel command line
@ 2021-08-24 10:58 Fabio Estevam
  2021-08-24 10:58 ` [PATCH 2/3] smegw01: Add redundant environment support Fabio Estevam
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Fabio Estevam @ 2021-08-24 10:58 UTC (permalink / raw)
  To: sbabic; +Cc: u-boot, Fabio Estevam

When using SWUpdate, it is necessary to toggle between partitions.

Use the 'mmcpart' environment variable to accomplish that.

Signed-off-by: Fabio Estevam <festevam@denx.de>
---
 include/configs/smegw01.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/include/configs/smegw01.h b/include/configs/smegw01.h
index 6f7b46e49b..e66047acbd 100644
--- a/include/configs/smegw01.h
+++ b/include/configs/smegw01.h
@@ -29,9 +29,8 @@
 	"bootm_size=0x10000000\0" \
 	"mmcdev=0\0" \
 	"mmcpart=1\0" \
-	"mmcroot=/dev/mmcblk0p1 rootwait rw\0" \
 	"mmcargs=setenv bootargs console=${console},${baudrate} " \
-		"root=${mmcroot}\0" \
+		"root=/dev/mmcblk0p${mmcpart} rootwait rw\0" \
 	"loadimage=load mmc ${mmcdev}:${mmcpart} ${loadaddr} boot/${image}\0" \
 	"loadfdt=load mmc ${mmcdev}:${mmcpart} ${fdt_addr} boot/${fdtfile}\0" \
 	"mmcboot=echo Booting from mmc ...; " \
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/3] smegw01: Add redundant environment support
  2021-08-24 10:58 [PATCH 1/3] smegw01: Pass 'mmcpart' to the kernel command line Fabio Estevam
@ 2021-08-24 10:58 ` Fabio Estevam
  2021-10-20 12:21   ` sbabic
  2021-08-24 10:58 ` [PATCH 3/3] smegw01: Select IMX_HAB Fabio Estevam
  2021-10-20 12:20 ` [PATCH 1/3] smegw01: Pass 'mmcpart' to the kernel command line sbabic
  2 siblings, 1 reply; 6+ messages in thread
From: Fabio Estevam @ 2021-08-24 10:58 UTC (permalink / raw)
  To: sbabic; +Cc: u-boot, Fabio Estevam

Add redundant environment support as it is required
by SWUpdate.

While at it, place the CONFIG_ENV_OFFSET at 0x100000 to allow
more headroom.

Signed-off-by: Fabio Estevam <festevam@denx.de>
---
 configs/smegw01_defconfig | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/configs/smegw01_defconfig b/configs/smegw01_defconfig
index 75fd5bc24a..8e2e95765b 100644
--- a/configs/smegw01_defconfig
+++ b/configs/smegw01_defconfig
@@ -4,10 +4,11 @@ CONFIG_NR_DRAM_BANKS=1
 CONFIG_SYS_MEMTEST_START=0x80000000
 CONFIG_SYS_MEMTEST_END=0xa0000000
 CONFIG_ENV_SIZE=0x2000
-CONFIG_ENV_OFFSET=0xC0000
+CONFIG_ENV_OFFSET=0x100000
 CONFIG_DM_GPIO=y
 CONFIG_DEFAULT_DEVICE_TREE="imx7d-smegw01"
 CONFIG_TARGET_SMEGW01=y
+CONFIG_ENV_OFFSET_REDUND=0x110000
 CONFIG_ARMV7_BOOT_SEC_DEFAULT=y
 # CONFIG_ARMV7_VIRT is not set
 CONFIG_IMX_RDC=y
@@ -35,6 +36,7 @@ CONFIG_CMD_FAT=y
 CONFIG_CMD_FS_GENERIC=y
 CONFIG_OF_CONTROL=y
 CONFIG_ENV_OVERWRITE=y
+CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_BOUNCE_BUFFER=y
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 3/3] smegw01: Select IMX_HAB
  2021-08-24 10:58 [PATCH 1/3] smegw01: Pass 'mmcpart' to the kernel command line Fabio Estevam
  2021-08-24 10:58 ` [PATCH 2/3] smegw01: Add redundant environment support Fabio Estevam
@ 2021-08-24 10:58 ` Fabio Estevam
  2021-10-20 12:20   ` sbabic
  2021-10-20 12:20 ` [PATCH 1/3] smegw01: Pass 'mmcpart' to the kernel command line sbabic
  2 siblings, 1 reply; 6+ messages in thread
From: Fabio Estevam @ 2021-08-24 10:58 UTC (permalink / raw)
  To: sbabic; +Cc: u-boot, Fabio Estevam

Select IMX_HAB to allow secure boot.

Signed-off-by: Fabio Estevam <festevam@denx.de>
---
 configs/smegw01_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configs/smegw01_defconfig b/configs/smegw01_defconfig
index 8e2e95765b..0c980213b8 100644
--- a/configs/smegw01_defconfig
+++ b/configs/smegw01_defconfig
@@ -13,6 +13,7 @@ CONFIG_ARMV7_BOOT_SEC_DEFAULT=y
 # CONFIG_ARMV7_VIRT is not set
 CONFIG_IMX_RDC=y
 CONFIG_IMX_BOOTAUX=y
+CONFIG_IMX_HAB=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/storopack/smegw01/imximage.cfg"
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 3/3] smegw01: Select IMX_HAB
  2021-08-24 10:58 ` [PATCH 3/3] smegw01: Select IMX_HAB Fabio Estevam
@ 2021-10-20 12:20   ` sbabic
  0 siblings, 0 replies; 6+ messages in thread
From: sbabic @ 2021-10-20 12:20 UTC (permalink / raw)
  To: Fabio Estevam, u-boot

> Select IMX_HAB to allow secure boot.
> Signed-off-by: Fabio Estevam <festevam@denx.de>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic@denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 1/3] smegw01: Pass 'mmcpart' to the kernel command line
  2021-08-24 10:58 [PATCH 1/3] smegw01: Pass 'mmcpart' to the kernel command line Fabio Estevam
  2021-08-24 10:58 ` [PATCH 2/3] smegw01: Add redundant environment support Fabio Estevam
  2021-08-24 10:58 ` [PATCH 3/3] smegw01: Select IMX_HAB Fabio Estevam
@ 2021-10-20 12:20 ` sbabic
  2 siblings, 0 replies; 6+ messages in thread
From: sbabic @ 2021-10-20 12:20 UTC (permalink / raw)
  To: Fabio Estevam, u-boot

> When using SWUpdate, it is necessary to toggle between partitions.
> Use the 'mmcpart' environment variable to accomplish that.
> Signed-off-by: Fabio Estevam <festevam@denx.de>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic@denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 2/3] smegw01: Add redundant environment support
  2021-08-24 10:58 ` [PATCH 2/3] smegw01: Add redundant environment support Fabio Estevam
@ 2021-10-20 12:21   ` sbabic
  0 siblings, 0 replies; 6+ messages in thread
From: sbabic @ 2021-10-20 12:21 UTC (permalink / raw)
  To: Fabio Estevam, u-boot

> Add redundant environment support as it is required
> by SWUpdate.
> While at it, place the CONFIG_ENV_OFFSET at 0x100000 to allow
> more headroom.
> Signed-off-by: Fabio Estevam <festevam@denx.de>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic@denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-10-20 12:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-24 10:58 [PATCH 1/3] smegw01: Pass 'mmcpart' to the kernel command line Fabio Estevam
2021-08-24 10:58 ` [PATCH 2/3] smegw01: Add redundant environment support Fabio Estevam
2021-10-20 12:21   ` sbabic
2021-08-24 10:58 ` [PATCH 3/3] smegw01: Select IMX_HAB Fabio Estevam
2021-10-20 12:20   ` sbabic
2021-10-20 12:20 ` [PATCH 1/3] smegw01: Pass 'mmcpart' to the kernel command line sbabic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).