configs: evb-ast2500: defconfig adjustments
cover configs: evb-ast2500: defconfig adjustments
Hello,
Here are small adjustments to the evb-ast2500 defconfig to match the flash layout of openbmc/upstream Linux. With these, one can boot a system from a flash image containing an upstream U-Boot, an upstream kernel and an upstream buildroot using the default configs provided by each component.
Thanks,
C.
Cédric Le Goater (4):
configs: evb-ast2500: Remove MMC support from default settings
configs: evb-ast2500: Adjust boot command
configs: evb-ast2500: Add support for FIT format
configs: evb-ast2500: Set environment in SPI flash
configs/evb-ast2500_defconfig | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-)
Signature · 1 line
2.37.3
PATCH 1/4 configs: evb-ast2500: Remove MMC support from default settings
This saves ~50K in the resulting u-boot.bin file which is important to fit in the U-Boot partition defined in the flash layout of upstream Linux.
--- configs/evb-ast2500_defconfig | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
configs/evb-ast2500_defconfig +2 -3
@@ -23,7 +23,7 @@ CONFIG_SYS_PBSIZE=276 CONFIG_CMD_EEPROM=y CONFIG_CMD_GPIO=y CONFIG_CMD_I2C=y -CONFIG_CMD_MMC=y +# CONFIG_CMD_MMC is not set CONFIG_CMD_DHCP=y CONFIG_BOOTP_BOOTFILESIZE=y CONFIG_CMD_MII=y
@@ -38,8 +38,7 @@ CONFIG_ASPEED_GPIO=y CONFIG_DM_I2C=y CONFIG_SYS_I2C_ASPEED=y CONFIG_I2C_EEPROM=y -CONFIG_MMC_SDHCI=y -CONFIG_MMC_SDHCI_ASPEED=y +# CONFIG_MMC is not set CONFIG_DM_SPI_FLASH=y CONFIG_SPI_FLASH_SFDP_SUPPORT=y CONFIG_SPI_FLASH_GIGADEVICE=y
Signature · 1 line
2.37.3
Re: [PATCH 1/4] configs: evb-ast2500: Remove MMC support from default settings
Quoted 3 lines · Cédric Le Goater
This saves ~50K in the resulting u-boot.bin file which is important to fit in the U-Boot partition defined in the flash layout of upstream Linux.
The downside is we stop testing it builds for ast2500. I guess as long as it's being built for the 2600 that's okay?
Quoted 32 lines
Signed-off-by Cédric Le Goater <[email protected]>--- configs/evb-ast2500_defconfig | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)configs/evb-ast2500_defconfig +2
-4@@ -23,7 +23,7 @@ CONFIG_SYS_PBSIZE=276 CONFIG_CMD_EEPROM=y CONFIG_CMD_GPIO=y CONFIG_CMD_I2C=y -CONFIG_CMD_MMC=y +# CONFIG_CMD_MMC is not set CONFIG_CMD_DHCP=y CONFIG_BOOTP_BOOTFILESIZE=y CONFIG_CMD_MII=y@@ -38,8 +38,7 @@ CONFIG_ASPEED_GPIO=y CONFIG_DM_I2C=y CONFIG_SYS_I2C_ASPEED=y CONFIG_I2C_EEPROM=y -CONFIG_MMC_SDHCI=y -CONFIG_MMC_SDHCI_ASPEED=y +# CONFIG_MMC is not set CONFIG_DM_SPI_FLASH=y CONFIG_SPI_FLASH_SFDP_SUPPORT=y CONFIG_SPI_FLASH_GIGADEVICE=y --2.37.3
Re: [PATCH 1/4] configs: evb-ast2500: Remove MMC support from default settings
Quoted 7 lines · Joel Stanley
Quoted 3 lines · Cédric Le Goater
This saves ~50K in the resulting u-boot.bin file which is important to fit in the U-Boot partition defined in the flash layout of upstream Linux.
The downside is we stop testing it builds for ast2500. I guess as long as it's being built for the 2600 that's okay?
We can not have both MMC and FIT in the same build because of the size of the U-Boot partition. FIT is required to boot.
C.
Quoted 33 lines
Quoted 33 lines
Signed-off-by Cédric Le Goater <[email protected]>--- configs/evb-ast2500_defconfig | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)configs/evb-ast2500_defconfig +2
-4@@ -23,7 +23,7 @@ CONFIG_SYS_PBSIZE=276 CONFIG_CMD_EEPROM=y CONFIG_CMD_GPIO=y CONFIG_CMD_I2C=y -CONFIG_CMD_MMC=y +# CONFIG_CMD_MMC is not set CONFIG_CMD_DHCP=y CONFIG_BOOTP_BOOTFILESIZE=y CONFIG_CMD_MII=y@@ -38,8 +38,7 @@ CONFIG_ASPEED_GPIO=y CONFIG_DM_I2C=y CONFIG_SYS_I2C_ASPEED=y CONFIG_I2C_EEPROM=y -CONFIG_MMC_SDHCI=y -CONFIG_MMC_SDHCI_ASPEED=y +# CONFIG_MMC is not set CONFIG_DM_SPI_FLASH=y CONFIG_SPI_FLASH_SFDP_SUPPORT=y CONFIG_SPI_FLASH_GIGADEVICE=y --2.37.3
Re: [PATCH 1/4] configs: evb-ast2500: Remove MMC support from default settings
In reply to Cédric Le GoaterQuoted 4 lines · Cédric Le Goater
This saves ~50K in the resulting u-boot.bin file which is important to fit in the U-Boot partition defined in the flash layout of upstream Linux.
Signed-off-by Cédric Le Goater <[email protected]>
Applied to u-boot/master, thanks!
Signature · 1 line
Tom
PATCH 2/4 configs: evb-ast2500: Adjust boot command
In reply to Cédric Le GoaterLoading a kernel image is enough.
--- configs/evb-ast2500_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
configs/evb-ast2500_defconfig +1 -1
@@ -13,7 +13,7 @@ CONFIG_SYS_LOAD_ADDR=0x83000000 CONFIG_USE_BOOTARGS=y CONFIG_BOOTARGS="console=ttyS4,115200n8 root=/dev/ram rw" CONFIG_USE_BOOTCOMMAND=y -CONFIG_BOOTCOMMAND="bootm 20080000 20300000" +CONFIG_BOOTCOMMAND="bootm 20080000" CONFIG_PRE_CONSOLE_BUFFER=y # CONFIG_DISPLAY_CPUINFO is not set CONFIG_HUSH_PARSER=y
Signature · 1 line
2.37.3
Re: [PATCH 2/4] configs: evb-ast2500: Adjust boot command
Quoted 4 lines · Cédric Le Goater
Loading a kernel image is enough.
Signed-off-by Cédric Le Goater <[email protected]>
Quoted 20 lines
--- configs/evb-ast2500_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)configs/evb-ast2500_defconfig +1
-2@@ -13,7 +13,7 @@ CONFIG_SYS_LOAD_ADDR=0x83000000 CONFIG_USE_BOOTARGS=y CONFIG_BOOTARGS="console=ttyS4,115200n8 root=/dev/ram rw" CONFIG_USE_BOOTCOMMAND=y -CONFIG_BOOTCOMMAND="bootm 20080000 20300000" +CONFIG_BOOTCOMMAND="bootm 20080000" CONFIG_PRE_CONSOLE_BUFFER=y # CONFIG_DISPLAY_CPUINFO is not set CONFIG_HUSH_PARSER=y --2.37.3
Re: [PATCH 2/4] configs: evb-ast2500: Adjust boot command
In reply to Cédric Le GoaterQuoted 4 lines · Cédric Le Goater
Loading a kernel image is enough.
Signed-off-by Cédric Le Goater <[email protected]>Reviewed-by Joel Stanley <[email protected]>
Applied to u-boot/master, thanks!
Signature · 1 line
Tom
PATCH 3/4 configs: evb-ast2500: Add support for FIT format
In reply to Cédric Le Goater--- configs/evb-ast2500_defconfig | 1 + 1 file changed, 1 insertion(+)
configs/evb-ast2500_defconfig +1 -0
@@ -10,6 +10,7 @@ CONFIG_DM_GPIO=y CONFIG_DEFAULT_DEVICE_TREE="ast2500-evb" CONFIG_PRE_CON_BUF_ADDR=0x1e720000 CONFIG_SYS_LOAD_ADDR=0x83000000 +CONFIG_FIT=y CONFIG_USE_BOOTARGS=y CONFIG_BOOTARGS="console=ttyS4,115200n8 root=/dev/ram rw" CONFIG_USE_BOOTCOMMAND=y
Signature · 1 line
2.37.3
Re: [PATCH 3/4] configs: evb-ast2500: Add support for FIT format
Quoted 2 lines · Cédric Le Goater
Signed-off-by Cédric Le Goater <[email protected]>
Quoted 19 lines
--- configs/evb-ast2500_defconfig | 1 + 1 file changed, 1 insertion(+)configs/evb-ast2500_defconfig +1
-1@@ -10,6 +10,7 @@ CONFIG_DM_GPIO=y CONFIG_DEFAULT_DEVICE_TREE="ast2500-evb" CONFIG_PRE_CON_BUF_ADDR=0x1e720000 CONFIG_SYS_LOAD_ADDR=0x83000000 +CONFIG_FIT=y CONFIG_USE_BOOTARGS=y CONFIG_BOOTARGS="console=ttyS4,115200n8 root=/dev/ram rw" CONFIG_USE_BOOTCOMMAND=y --2.37.3
Re: [PATCH 3/4] configs: evb-ast2500: Add support for FIT format
In reply to Cédric Le GoaterQuoted 2 lines · Cédric Le Goater
Signed-off-by Cédric Le Goater <[email protected]>Reviewed-by Joel Stanley <[email protected]>
Applied to u-boot/master, thanks!
Signature · 1 line
Tom
PATCH 4/4 configs: evb-ast2500: Set environment in SPI flash
In reply to Cédric Le GoaterWe now have a SPI flash driver. Let's use it.
--- configs/evb-ast2500_defconfig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
configs/evb-ast2500_defconfig +4 -1
@@ -5,7 +5,9 @@ CONFIG_SYS_TEXT_BASE=0x0 CONFIG_SYS_MALLOC_LEN=0x2000000 CONFIG_TARGET_EVB_AST2500=y CONFIG_NR_DRAM_BANKS=1 -CONFIG_ENV_SIZE=0x20000 +CONFIG_ENV_SIZE=0x10000 +CONFIG_ENV_OFFSET=0x60000 +CONFIG_ENV_SECT_SIZE=0x1000 CONFIG_DM_GPIO=y CONFIG_DEFAULT_DEVICE_TREE="ast2500-evb" CONFIG_PRE_CON_BUF_ADDR=0x1e720000
@@ -31,6 +33,7 @@ CONFIG_CMD_MII=y CONFIG_CMD_PING=y CONFIG_CMD_NCSI=y CONFIG_ENV_OVERWRITE=y +CONFIG_ENV_IS_IN_SPI_FLASH=y CONFIG_SYS_RELOC_GD_ENV_ADDR=y CONFIG_NET_RANDOM_ETHADDR=y CONFIG_REGMAP=y
Signature · 1 line
2.37.3
Re: [PATCH 4/4] configs: evb-ast2500: Set environment in SPI flash
Quoted 4 lines · Cédric Le Goater
We now have a SPI flash driver. Let's use it.
Signed-off-by Cédric Le Goater <[email protected]>
Quoted 30 lines
--- configs/evb-ast2500_defconfig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)configs/evb-ast2500_defconfig +4
-2@@ -5,7 +5,9 @@ CONFIG_SYS_TEXT_BASE=0x0 CONFIG_SYS_MALLOC_LEN=0x2000000 CONFIG_TARGET_EVB_AST2500=y CONFIG_NR_DRAM_BANKS=1 -CONFIG_ENV_SIZE=0x20000 +CONFIG_ENV_SIZE=0x10000 +CONFIG_ENV_OFFSET=0x60000 +CONFIG_ENV_SECT_SIZE=0x1000 CONFIG_DM_GPIO=y CONFIG_DEFAULT_DEVICE_TREE="ast2500-evb" CONFIG_PRE_CON_BUF_ADDR=0x1e720000@@ -31,6 +33,7 @@ CONFIG_CMD_MII=y CONFIG_CMD_PING=y CONFIG_CMD_NCSI=y CONFIG_ENV_OVERWRITE=y +CONFIG_ENV_IS_IN_SPI_FLASH=y CONFIG_SYS_RELOC_GD_ENV_ADDR=y CONFIG_NET_RANDOM_ETHADDR=y CONFIG_REGMAP=y --2.37.3
Re: [PATCH 4/4] configs: evb-ast2500: Set environment in SPI flash
In reply to Cédric Le GoaterQuoted 4 lines · Cédric Le Goater
We now have a SPI flash driver. Let's use it.
Signed-off-by Cédric Le Goater <[email protected]>Reviewed-by Joel Stanley <[email protected]>
Applied to u-boot/master, thanks!
Signature · 1 line
Tom