Skip to contentSkip to conversation

arm: at91: gardena-smart-gateway-at91sam: Adjust to production values

PATCH Superseded Reto Schneider 3 participants 4 messages Apr 14, 2021 – May 6, 2021 Arm/Microchip (AT91) SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: at91: gardena-smart-gateway-at91sam: Adjust to production values

From: Reto Schneider <[email protected]>

This commit updates the default config with the values that are actually used "in the wild" and which are close to what is used on the MediaTek MT7688 based, 2nd generation of the GARDENA smart gateway:
- Reduce startup time by setting bootdelay to 0 (still allows accessing the shell, one just has to send a key press quicker)
- Adjusting U-Boot environment volume names and MTD partitions to the actual layout

---

 configs/gardena-smart-gateway-at91sam_defconfig | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
configs/gardena-smart-gateway-at91sam_defconfig +5 -4
index e3d5bc47d6..76a1c42ce0 100644
@@ -24,6 +24,7 @@ CONFIG_NAND_BOOT=y
 CONFIG_BOOTDELAY=3
 CONFIG_USE_BOOTARGS=y
 CONFIG_BOOTARGS="console=ttyS0,115200 earlyprintk mtdparts=atmel_nand:256k(bootstrap)ro,768k(uboot)ro,256k(env_redundant),256k(env),512k(dtb),6M(kernel)ro,-(rootfs) rootfstype=ubifs ubi.mtd=6 root=ubi0:rootfs rw"
+CONFIG_BOOTDELAY=0
 CONFIG_SYS_CONSOLE_IS_IN_ENV=y
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_SPL_SYS_MALLOC_SIMPLE=y
@@ -46,8 +47,8 @@ CONFIG_CMD_CACHE=y
 CONFIG_CMD_TIME=y
 CONFIG_CMD_FAT=y
 CONFIG_CMD_MTDPARTS=y
-CONFIG_MTDIDS_DEFAULT="nand0=nand0"
-CONFIG_MTDPARTS_DEFAULT="nand0:1536k(uboot),1024k(unused),512k(dtb_old),4608k(kernel_old),86528k(ubi),-(rootfs_old)"
+CONFIG_MTDIDS_DEFAULT="nand0=atmel_nand"
+CONFIG_MTDPARTS_DEFAULT="atmel_nand:1536k(uboot),10752k(unused),-(ubi)"
 CONFIG_CMD_UBI=y
 CONFIG_OF_CONTROL=y
 CONFIG_SPL_OF_CONTROL=y
@@ -55,8 +56,8 @@ CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clocks clock-names interrupt
 CONFIG_ENV_IS_IN_UBI=y
 CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
 CONFIG_ENV_UBI_PART="ubi"
-CONFIG_ENV_UBI_VOLUME="env"
-CONFIG_ENV_UBI_VOLUME_REDUND="env_r"
+CONFIG_ENV_UBI_VOLUME="uboot_env0"
+CONFIG_ENV_UBI_VOLUME_REDUND="uboot_env1"
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_DM=y
Signature · 1 line
2.29.2
#1 lore raw

PATCH 1/1 arm: at91: gardena-smart-gateway-at91sam: Adjust to production values

Hi Reto,

Quoted 21 lines · Reto Schneider

From: Reto Schneider <[email protected]>

This commit updates the default config with the values that are actually used "in the wild" and which are close to what is used on the MediaTek MT7688 based, 2nd generation of the GARDENA smart gateway:
- Reduce startup time by setting bootdelay to 0 (still allows accessing the shell, one just has to send a key press quicker)
- Adjusting U-Boot environment volume names and MTD partitions to the actual layout

---

  configs/gardena-smart-gateway-at91sam_defconfig | 9 +++++----
  1 file changed, 5 insertions(+), 4 deletions(-)
configs/gardena-smart-gateway-at91sam_defconfig +0 -0
index e3d5bc47d6..76a1c42ce0 100644

configs/gardena-smart-gateway-at91sam_defconfig CONFIG_NAND_BOOT=y · line 24

Quoted 1 line
configs/gardena-smart-gateway-at91sam_defconfig +0 -0
@@ -24,6 +24,7 @@ CONFIG_NAND_BOOT=y
  CONFIG_BOOTDELAY=3

Please see below...

configs/gardena-smart-gateway-at91sam_defconfig CONFIG_NAND_BOOT=y · line 27

Quoted 3 lines
configs/gardena-smart-gateway-at91sam_defconfig +1 -0
  CONFIG_USE_BOOTARGS=y
  CONFIG_BOOTARGS="console=ttyS0,115200 earlyprintk mtdparts=atmel_nand:256k(bootstrap)ro,768k(uboot)ro,256k(env_redundant),256k(env),512k(dtb),6M(kernel)ro,-(rootfs) rootfstype=ubifs ubi.mtd=6 root=ubi0:rootfs rw"
+CONFIG_BOOTDELAY=0

I'm wondering if this defconfig was generated via make savedefconfig? As there are multiple configurations for BOOTDELAY. Could you please double-check again?

Other than that:

Thanks,
Stefan

Quoted 16 lines
configs/gardena-smart-gateway-at91sam_defconfig +2 -2
  CONFIG_SYS_CONSOLE_IS_IN_ENV=y
  CONFIG_SYS_CONSOLE_INFO_QUIET=y
  CONFIG_SPL_SYS_MALLOC_SIMPLE=y
@@ -46,8 +47,8 @@ CONFIG_CMD_CACHE=y
  CONFIG_CMD_TIME=y
  CONFIG_CMD_FAT=y
  CONFIG_CMD_MTDPARTS=y
-CONFIG_MTDIDS_DEFAULT="nand0=nand0"
-CONFIG_MTDPARTS_DEFAULT="nand0:1536k(uboot),1024k(unused),512k(dtb_old),4608k(kernel_old),86528k(ubi),-(rootfs_old)"
+CONFIG_MTDIDS_DEFAULT="nand0=atmel_nand"
+CONFIG_MTDPARTS_DEFAULT="atmel_nand:1536k(uboot),10752k(unused),-(ubi)"
  CONFIG_CMD_UBI=y
  CONFIG_OF_CONTROL=y
  CONFIG_SPL_OF_CONTROL=y

configs/gardena-smart-gateway-at91sam_defconfig CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clocks clock-names interrupt · line 63

Quoted 10 lines
configs/gardena-smart-gateway-at91sam_defconfig +2 -2
@@ -55,8 +56,8 @@ CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clocks clock-names interrupt
  CONFIG_ENV_IS_IN_UBI=y
  CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
  CONFIG_ENV_UBI_PART="ubi"
-CONFIG_ENV_UBI_VOLUME="env"
-CONFIG_ENV_UBI_VOLUME_REDUND="env_r"
+CONFIG_ENV_UBI_VOLUME="uboot_env0"
+CONFIG_ENV_UBI_VOLUME_REDUND="uboot_env1"
  CONFIG_SYS_RELOC_GD_ENV_ADDR=y
  CONFIG_NET_RANDOM_ETHADDR=y
  CONFIG_DM=y

Viele Gr??e,
Stefan

Signature · 3 lines
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr at denx.de
#2 lore raw

PATCH v2 1/1 arm: at91: gardena-smart-gateway-at91sam: Adjust to production values

In reply to Reto Schneider

From: Reto Schneider <[email protected]>

This commit updates the default config with the values that are actually used "in the wild" and which are close to what is used on the MediaTek MT7688 based, 2nd generation of the GARDENA smart gateway:
- Reduce startup time by setting bootdelay to 0 (still allows accessing the shell, one just has to send a key press quicker)
- Adjusting U-Boot environment volume names and MTD partitions to the actual layout

---

Changes in v2:
- Generate with savedefconfig, remove double CONFIG_BOOTDELAY

 configs/gardena-smart-gateway-at91sam_defconfig | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
configs/gardena-smart-gateway-at91sam_defconfig +5 -5
index e3d5bc47d6..40fe0f150e 100644
@@ -21,7 +21,7 @@ CONFIG_DEFAULT_DEVICE_TREE="at91sam9g25-gardena-smart-gateway"
 CONFIG_DEBUG_UART=y
 CONFIG_FIT=y
 CONFIG_NAND_BOOT=y
-CONFIG_BOOTDELAY=3
+CONFIG_BOOTDELAY=0
 CONFIG_USE_BOOTARGS=y
 CONFIG_BOOTARGS="console=ttyS0,115200 earlyprintk mtdparts=atmel_nand:256k(bootstrap)ro,768k(uboot)ro,256k(env_redundant),256k(env),512k(dtb),6M(kernel)ro,-(rootfs) rootfstype=ubifs ubi.mtd=6 root=ubi0:rootfs rw"
 CONFIG_SYS_CONSOLE_IS_IN_ENV=y
@@ -46,8 +46,8 @@ CONFIG_CMD_CACHE=y
 CONFIG_CMD_TIME=y
 CONFIG_CMD_FAT=y
 CONFIG_CMD_MTDPARTS=y
-CONFIG_MTDIDS_DEFAULT="nand0=nand0"
-CONFIG_MTDPARTS_DEFAULT="nand0:1536k(uboot),1024k(unused),512k(dtb_old),4608k(kernel_old),86528k(ubi),-(rootfs_old)"
+CONFIG_MTDIDS_DEFAULT="nand0=atmel_nand"
+CONFIG_MTDPARTS_DEFAULT="atmel_nand:1536k(uboot),10752k(unused),-(ubi)"
 CONFIG_CMD_UBI=y
 CONFIG_OF_CONTROL=y
 CONFIG_SPL_OF_CONTROL=y
@@ -55,8 +55,8 @@ CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clocks clock-names interrupt
 CONFIG_ENV_IS_IN_UBI=y
 CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
 CONFIG_ENV_UBI_PART="ubi"
-CONFIG_ENV_UBI_VOLUME="env"
-CONFIG_ENV_UBI_VOLUME_REDUND="env_r"
+CONFIG_ENV_UBI_VOLUME="uboot_env0"
+CONFIG_ENV_UBI_VOLUME_REDUND="uboot_env1"
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_DM=y
Signature · 1 line
2.29.2
#3 lore raw

PATCH v2 1/1 arm: at91: gardena-smart-gateway-at91sam: Adjust to production values

Quoted 12 lines · Reto Schneider

From: Reto Schneider <[email protected]>

This commit updates the default config with the values that are actually used "in the wild" and which are close to what is used on the MediaTek MT7688 based, 2nd generation of the GARDENA smart gateway:
- Reduce startup time by setting bootdelay to 0 (still allows accessing the shell, one just has to send a key press quicker)
- Adjusting U-Boot environment volume names and MTD partitions to the actual layout

Quoted 8 lines

---

Changes in v2:
- Generate with savedefconfig, remove double CONFIG_BOOTDELAY

  configs/gardena-smart-gateway-at91sam_defconfig | 10 +++++-----
  1 file changed, 5 insertions(+), 5 deletions(-)

Applied to u-boot-atmel/next, thanks !