From 5eecaf84d91c2523767da239aa5dbbf42af13bfc Mon Sep 17 00:00:00 2001 From: Howard Chiu Date: Wed, 6 Apr 2022 15:40:00 +0800 Subject: [PATCH] ast25xx_fix Change-Id: Ib4e5afdf6404934e7c4e50fce1c3ef7ef87233e6 --- .../recipes-bsp/u-boot/files/fw_env_flash_32M_nor.config | 2 ++ meta-aspeed/recipes-bsp/u-boot/files/u-boot_flash_32M.cfg | 3 +++ meta-aspeed/recipes-bsp/u-boot/u-boot-aspeed-sdk_2019.04.bb | 1 + .../recipes-bsp/u-boot/u-boot-fw-utils-aspeed-sdk_2019.04.bb | 3 +++ 4 files changed, 9 insertions(+) create mode 100644 meta-aspeed/recipes-bsp/u-boot/files/fw_env_flash_32M_nor.config create mode 100644 meta-aspeed/recipes-bsp/u-boot/files/u-boot_flash_32M.cfg diff --git a/meta-aspeed/recipes-bsp/u-boot/files/fw_env_flash_32M_nor.config b/meta-aspeed/recipes-bsp/u-boot/files/fw_env_flash_32M_nor.config new file mode 100644 index 000000000000..52d0882661eb --- /dev/null +++ b/meta-aspeed/recipes-bsp/u-boot/files/fw_env_flash_32M_nor.config @@ -0,0 +1,2 @@ +# MTD device name Device offset Env. size Flash sector size Number of sectors +/dev/mtd/u-boot-env 0x0000 0x20000 0x1000 diff --git a/meta-aspeed/recipes-bsp/u-boot/files/u-boot_flash_32M.cfg b/meta-aspeed/recipes-bsp/u-boot/files/u-boot_flash_32M.cfg new file mode 100644 index 000000000000..49332ebbc7cb --- /dev/null +++ b/meta-aspeed/recipes-bsp/u-boot/files/u-boot_flash_32M.cfg @@ -0,0 +1,3 @@ +CONFIG_BOOTCOMMAND="bootm 20080000" +CONFIG_ENV_SIZE=0x20000 +CONFIG_ENV_OFFSET=0x60000 diff --git a/meta-aspeed/recipes-bsp/u-boot/u-boot-aspeed-sdk_2019.04.bb b/meta-aspeed/recipes-bsp/u-boot/u-boot-aspeed-sdk_2019.04.bb index 108f8489d22a..e12dd229f52e 100644 --- a/meta-aspeed/recipes-bsp/u-boot/u-boot-aspeed-sdk_2019.04.bb +++ b/meta-aspeed/recipes-bsp/u-boot/u-boot-aspeed-sdk_2019.04.bb @@ -8,6 +8,7 @@ require recipes-bsp/u-boot/u-boot.inc PROVIDES += "u-boot" DEPENDS += "bc-native dtc-native" +SRC_URI:append:uboot-flash-32768 = "file://u-boot_flash_32M.cfg" SRC_URI:append:uboot-flash-65536 = "file://u-boot_flash_64M.cfg" SRC_URI:append:df-phosphor-mmc = " file://u-boot-env-ast2600.txt" SRC_URI += " \ diff --git a/meta-aspeed/recipes-bsp/u-boot/u-boot-fw-utils-aspeed-sdk_2019.04.bb b/meta-aspeed/recipes-bsp/u-boot/u-boot-fw-utils-aspeed-sdk_2019.04.bb index 22976efc4f5f..f3ffa840709e 100644 --- a/meta-aspeed/recipes-bsp/u-boot/u-boot-fw-utils-aspeed-sdk_2019.04.bb +++ b/meta-aspeed/recipes-bsp/u-boot/u-boot-fw-utils-aspeed-sdk_2019.04.bb @@ -10,10 +10,13 @@ RPROVIDES:${PN} += "u-boot-fw-utils" SRC_URI += "file://fw_env_ast2600_nor.config" SRC_URI += "file://fw_env_ast2600_mmc.config" +SRC_URI += "file://fw_env_flash_32M_nor.config" SRC_URI += "file://fw_env_flash_64M_nor.config" +SRC_URI += "file://u-boot_flash_32M.cfg" ENV_CONFIG_FILE = "fw_env_ast2600_nor.config" ENV_CONFIG_FILE:df-phosphor-mmc = "fw_env_ast2600_mmc.config" +ENV_CONFIG_FILE:uboot-flash-32768 = "fw_env_flash_32M_nor.config" ENV_CONFIG_FILE:uboot-flash-65536 = "fw_env_flash_64M_nor.config" INSANE_SKIP:${PN} = "already-stripped"