* [PATCH 2/4] configs: phycore_am62x_a53_defconfig: Enable ENV_IS_IN_SPI_FLASH
2025-02-10 15:25 [PATCH 1/4] configs: phycore_am64x_a53_defconfig: Enable ENV_IS_IN_SPI_FLASH Daniel Schultz
@ 2025-02-10 15:25 ` Daniel Schultz
2025-02-11 3:47 ` Wadim Egorov
2025-02-10 15:25 ` [PATCH 3/4] board: Phytec: phycore_am64x: Increase size for Image in SPI Daniel Schultz
` (3 subsequent siblings)
4 siblings, 1 reply; 9+ messages in thread
From: Daniel Schultz @ 2025-02-10 15:25 UTC (permalink / raw)
To: w.egorov, trini, u-boot; +Cc: upstream, Daniel Schultz
Enable ENV_IS_IN_SPI_FLASH to read the environment from the SPI
flash when booting from it. The oftree, kernel and ramdisk sizes
are located in this environment and therefore required to boot
an initramfs.
Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
---
configs/phycore_am62x_a53_defconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/configs/phycore_am62x_a53_defconfig b/configs/phycore_am62x_a53_defconfig
index 0494fc408b7..d7aa59bf1dd 100644
--- a/configs/phycore_am62x_a53_defconfig
+++ b/configs/phycore_am62x_a53_defconfig
@@ -13,6 +13,7 @@ CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x80b80000
CONFIG_SF_DEFAULT_SPEED=25000000
CONFIG_ENV_SIZE=0x20000
CONFIG_ENV_OFFSET=0x680000
+CONFIG_ENV_SECT_SIZE=0x20000
CONFIG_SPL_DM_SPI=y
CONFIG_DEFAULT_DEVICE_TREE="ti/k3-am625-phyboard-lyra-rdk"
CONFIG_OF_LIBFDT_OVERLAY=y
@@ -84,6 +85,7 @@ CONFIG_SPL_MULTI_DTB_FIT_NO_COMPRESSION=y
CONFIG_ENV_OVERWRITE=y
CONFIG_ENV_IS_NOWHERE=y
CONFIG_ENV_IS_IN_MMC=y
+CONFIG_ENV_IS_IN_SPI_FLASH=y
CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
CONFIG_SYS_MMC_ENV_DEV=1
CONFIG_NET_RANDOM_ETHADDR=y
--
2.25.1
^ permalink raw reply related [flat|nested] 9+ messages in thread* Re: [PATCH 2/4] configs: phycore_am62x_a53_defconfig: Enable ENV_IS_IN_SPI_FLASH
2025-02-10 15:25 ` [PATCH 2/4] configs: phycore_am62x_a53_defconfig: " Daniel Schultz
@ 2025-02-11 3:47 ` Wadim Egorov
0 siblings, 0 replies; 9+ messages in thread
From: Wadim Egorov @ 2025-02-11 3:47 UTC (permalink / raw)
To: Daniel Schultz, trini, u-boot; +Cc: upstream
Am 10.02.25 um 22:25 schrieb Daniel Schultz:
> Enable ENV_IS_IN_SPI_FLASH to read the environment from the SPI
> flash when booting from it. The oftree, kernel and ramdisk sizes
> are located in this environment and therefore required to boot
> an initramfs.
>
> Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
Reviewed-by: Wadim Egorov <w.egorov@phytec.de>
> ---
> configs/phycore_am62x_a53_defconfig | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/configs/phycore_am62x_a53_defconfig b/configs/phycore_am62x_a53_defconfig
> index 0494fc408b7..d7aa59bf1dd 100644
> --- a/configs/phycore_am62x_a53_defconfig
> +++ b/configs/phycore_am62x_a53_defconfig
> @@ -13,6 +13,7 @@ CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x80b80000
> CONFIG_SF_DEFAULT_SPEED=25000000
> CONFIG_ENV_SIZE=0x20000
> CONFIG_ENV_OFFSET=0x680000
> +CONFIG_ENV_SECT_SIZE=0x20000
> CONFIG_SPL_DM_SPI=y
> CONFIG_DEFAULT_DEVICE_TREE="ti/k3-am625-phyboard-lyra-rdk"
> CONFIG_OF_LIBFDT_OVERLAY=y
> @@ -84,6 +85,7 @@ CONFIG_SPL_MULTI_DTB_FIT_NO_COMPRESSION=y
> CONFIG_ENV_OVERWRITE=y
> CONFIG_ENV_IS_NOWHERE=y
> CONFIG_ENV_IS_IN_MMC=y
> +CONFIG_ENV_IS_IN_SPI_FLASH=y
> CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
> CONFIG_SYS_MMC_ENV_DEV=1
> CONFIG_NET_RANDOM_ETHADDR=y
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 3/4] board: Phytec: phycore_am64x: Increase size for Image in SPI
2025-02-10 15:25 [PATCH 1/4] configs: phycore_am64x_a53_defconfig: Enable ENV_IS_IN_SPI_FLASH Daniel Schultz
2025-02-10 15:25 ` [PATCH 2/4] configs: phycore_am62x_a53_defconfig: " Daniel Schultz
@ 2025-02-10 15:25 ` Daniel Schultz
2025-02-11 3:47 ` Wadim Egorov
2025-02-10 15:25 ` [PATCH 4/4] board: Phytec: phycore_am62x: " Daniel Schultz
` (2 subsequent siblings)
4 siblings, 1 reply; 9+ messages in thread
From: Daniel Schultz @ 2025-02-10 15:25 UTC (permalink / raw)
To: w.egorov, trini, u-boot; +Cc: upstream, Daniel Schultz
Increase the maximum Image size from 23 MB to 26 MB by moving the
initramfs start address up. This gives us a bigger ranger to
provide kernel images which are not stripped down too much.
Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
---
board/phytec/phycore_am64x/phycore_am64x.env | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/board/phytec/phycore_am64x/phycore_am64x.env b/board/phytec/phycore_am64x/phycore_am64x.env
index 3032b518e0b..d69dfe75674 100644
--- a/board/phytec/phycore_am64x/phycore_am64x.env
+++ b/board/phytec/phycore_am64x/phycore_am64x.env
@@ -21,4 +21,4 @@ get_cmd=tftp
spi_fdt_addr=0x700000
spi_image_addr=0x800000
-spi_ramdisk_addr=0x1e00000
+spi_ramdisk_addr=0x2200000
--
2.25.1
^ permalink raw reply related [flat|nested] 9+ messages in thread* Re: [PATCH 3/4] board: Phytec: phycore_am64x: Increase size for Image in SPI
2025-02-10 15:25 ` [PATCH 3/4] board: Phytec: phycore_am64x: Increase size for Image in SPI Daniel Schultz
@ 2025-02-11 3:47 ` Wadim Egorov
0 siblings, 0 replies; 9+ messages in thread
From: Wadim Egorov @ 2025-02-11 3:47 UTC (permalink / raw)
To: Daniel Schultz, trini, u-boot; +Cc: upstream
Am 10.02.25 um 22:25 schrieb Daniel Schultz:
> Increase the maximum Image size from 23 MB to 26 MB by moving the
> initramfs start address up. This gives us a bigger ranger to
> provide kernel images which are not stripped down too much.
>
> Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
Reviewed-by: Wadim Egorov <w.egorov@phytec.de>
> ---
> board/phytec/phycore_am64x/phycore_am64x.env | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/board/phytec/phycore_am64x/phycore_am64x.env b/board/phytec/phycore_am64x/phycore_am64x.env
> index 3032b518e0b..d69dfe75674 100644
> --- a/board/phytec/phycore_am64x/phycore_am64x.env
> +++ b/board/phytec/phycore_am64x/phycore_am64x.env
> @@ -21,4 +21,4 @@ get_cmd=tftp
>
> spi_fdt_addr=0x700000
> spi_image_addr=0x800000
> -spi_ramdisk_addr=0x1e00000
> +spi_ramdisk_addr=0x2200000
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 4/4] board: Phytec: phycore_am62x: Increase size for Image in SPI
2025-02-10 15:25 [PATCH 1/4] configs: phycore_am64x_a53_defconfig: Enable ENV_IS_IN_SPI_FLASH Daniel Schultz
2025-02-10 15:25 ` [PATCH 2/4] configs: phycore_am62x_a53_defconfig: " Daniel Schultz
2025-02-10 15:25 ` [PATCH 3/4] board: Phytec: phycore_am64x: Increase size for Image in SPI Daniel Schultz
@ 2025-02-10 15:25 ` Daniel Schultz
2025-02-11 3:47 ` Wadim Egorov
2025-02-11 3:46 ` [PATCH 1/4] configs: phycore_am64x_a53_defconfig: Enable ENV_IS_IN_SPI_FLASH Wadim Egorov
2025-02-21 3:28 ` Tom Rini
4 siblings, 1 reply; 9+ messages in thread
From: Daniel Schultz @ 2025-02-10 15:25 UTC (permalink / raw)
To: w.egorov, trini, u-boot; +Cc: upstream, Daniel Schultz
Increase the maximum Image size from 23 MB to 26 MB by moving the
initramfs start address up. This gives us a bigger ranger to
provide kernel images which are not stripped down too much.
Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
---
board/phytec/phycore_am62x/phycore_am62x.env | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/board/phytec/phycore_am62x/phycore_am62x.env b/board/phytec/phycore_am62x/phycore_am62x.env
index 711ca3040c4..024f38ebba3 100644
--- a/board/phytec/phycore_am62x/phycore_am62x.env
+++ b/board/phytec/phycore_am62x/phycore_am62x.env
@@ -22,4 +22,4 @@ get_cmd=tftp
spi_fdt_addr=0x700000
spi_image_addr=0x800000
-spi_ramdisk_addr=0x1e00000
+spi_ramdisk_addr=0x2200000
--
2.25.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH 4/4] board: Phytec: phycore_am62x: Increase size for Image in SPI
2025-02-10 15:25 ` [PATCH 4/4] board: Phytec: phycore_am62x: " Daniel Schultz
@ 2025-02-11 3:47 ` Wadim Egorov
0 siblings, 0 replies; 9+ messages in thread
From: Wadim Egorov @ 2025-02-11 3:47 UTC (permalink / raw)
To: Daniel Schultz, trini, u-boot; +Cc: upstream
Am 10.02.25 um 22:25 schrieb Daniel Schultz:
> Increase the maximum Image size from 23 MB to 26 MB by moving the
> initramfs start address up. This gives us a bigger ranger to
> provide kernel images which are not stripped down too much.
>
> Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
Reviewed-by: Wadim Egorov <w.egorov@phytec.de>
> ---
> board/phytec/phycore_am62x/phycore_am62x.env | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/board/phytec/phycore_am62x/phycore_am62x.env b/board/phytec/phycore_am62x/phycore_am62x.env
> index 711ca3040c4..024f38ebba3 100644
> --- a/board/phytec/phycore_am62x/phycore_am62x.env
> +++ b/board/phytec/phycore_am62x/phycore_am62x.env
> @@ -22,4 +22,4 @@ get_cmd=tftp
>
> spi_fdt_addr=0x700000
> spi_image_addr=0x800000
> -spi_ramdisk_addr=0x1e00000
> +spi_ramdisk_addr=0x2200000
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/4] configs: phycore_am64x_a53_defconfig: Enable ENV_IS_IN_SPI_FLASH
2025-02-10 15:25 [PATCH 1/4] configs: phycore_am64x_a53_defconfig: Enable ENV_IS_IN_SPI_FLASH Daniel Schultz
` (2 preceding siblings ...)
2025-02-10 15:25 ` [PATCH 4/4] board: Phytec: phycore_am62x: " Daniel Schultz
@ 2025-02-11 3:46 ` Wadim Egorov
2025-02-21 3:28 ` Tom Rini
4 siblings, 0 replies; 9+ messages in thread
From: Wadim Egorov @ 2025-02-11 3:46 UTC (permalink / raw)
To: Daniel Schultz, trini, u-boot; +Cc: upstream
Am 10.02.25 um 22:25 schrieb Daniel Schultz:
> Enable ENV_IS_IN_SPI_FLASH to read the environment from the SPI
> flash when booting from it. The oftree, kernel and ramdisk sizes
> are located in this environment and therefore required to boot
> an initramfs.
>
> Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
Reviewed-by: Wadim Egorov <w.egorov@phytec.de>
> ---
> configs/phycore_am64x_a53_defconfig | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/configs/phycore_am64x_a53_defconfig b/configs/phycore_am64x_a53_defconfig
> index f0c7ee26384..4ee1bd829a3 100644
> --- a/configs/phycore_am64x_a53_defconfig
> +++ b/configs/phycore_am64x_a53_defconfig
> @@ -14,6 +14,7 @@ CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
> CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x80480000
> CONFIG_ENV_SIZE=0x20000
> CONFIG_ENV_OFFSET=0x680000
> +CONFIG_ENV_SECT_SIZE=0x20000
> CONFIG_DM_GPIO=y
> CONFIG_SPL_DM_SPI=y
> CONFIG_DEFAULT_DEVICE_TREE="ti/k3-am642-phyboard-electra-rdk"
> @@ -91,6 +92,7 @@ CONFIG_SPL_MULTI_DTB_FIT_NO_COMPRESSION=y
> CONFIG_ENV_OVERWRITE=y
> CONFIG_ENV_IS_NOWHERE=y
> CONFIG_ENV_IS_IN_MMC=y
> +CONFIG_ENV_IS_IN_SPI_FLASH=y
> CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
> CONFIG_SYS_MMC_ENV_DEV=1
> CONFIG_NET_RANDOM_ETHADDR=y
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [PATCH 1/4] configs: phycore_am64x_a53_defconfig: Enable ENV_IS_IN_SPI_FLASH
2025-02-10 15:25 [PATCH 1/4] configs: phycore_am64x_a53_defconfig: Enable ENV_IS_IN_SPI_FLASH Daniel Schultz
` (3 preceding siblings ...)
2025-02-11 3:46 ` [PATCH 1/4] configs: phycore_am64x_a53_defconfig: Enable ENV_IS_IN_SPI_FLASH Wadim Egorov
@ 2025-02-21 3:28 ` Tom Rini
4 siblings, 0 replies; 9+ messages in thread
From: Tom Rini @ 2025-02-21 3:28 UTC (permalink / raw)
To: w.egorov, u-boot, Daniel Schultz; +Cc: upstream
On Mon, 10 Feb 2025 07:25:45 -0800, Daniel Schultz wrote:
> Enable ENV_IS_IN_SPI_FLASH to read the environment from the SPI
> flash when booting from it. The oftree, kernel and ramdisk sizes
> are located in this environment and therefore required to boot
> an initramfs.
>
>
Applied to u-boot/next, thanks!
--
Tom
^ permalink raw reply [flat|nested] 9+ messages in thread