smegw01: Pass 'mmcpart' to the kernel command line
PATCH 1/3 smegw01: Pass 'mmcpart' to the kernel command line
When using SWUpdate, it is necessary to toggle between partitions.
Use the 'mmcpart' environment variable to accomplish that.
--- include/configs/smegw01.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
include/configs/smegw01.h +1 -2
@@ -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 ...; " \
Signature · 1 line
2.25.1
PATCH 2/3 smegw01: Add redundant environment support
Add redundant environment support as it is required by SWUpdate.
While at it, place the CONFIG_ENV_OFFSET at 0x100000 to allow more headroom.
--- configs/smegw01_defconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
configs/smegw01_defconfig +3 -1
@@ -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
Signature · 1 line
2.25.1
PATCH 2/3 smegw01: Add redundant environment support
Quoted 5 lines
Add redundant environment support as it is required by SWUpdate.
While at it, place theCONFIG_ENV_OFFSETat0x100000to allow more headroom.Signed-off-by Fabio Estevam <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== 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: [email protected] =====================================================================
PATCH 3/3 smegw01: Select IMX_HAB
In reply to Fabio EstevamSelect IMX_HAB to allow secure boot.
--- configs/smegw01_defconfig | 1 + 1 file changed, 1 insertion(+)
configs/smegw01_defconfig +1 -0
@@ -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"
Signature · 1 line
2.25.1
PATCH 3/3 smegw01: Select IMX_HAB
Quoted 2 lines
Select
IMX_HABto allow secure boot.Signed-off-by Fabio Estevam <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== 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: [email protected] =====================================================================
PATCH 1/3 smegw01: Pass 'mmcpart' to the kernel command line
In reply to Fabio EstevamQuoted 3 lines
When using SWUpdate, it is necessary to toggle between partitions. Use the 'mmcpart' environment variable to accomplish that.
Signed-off-by Fabio Estevam <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== 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: [email protected] =====================================================================