[PATCH openbmc 5/8] u-boot : add fw_env.config

OpenBMC Patches openbmc-patches at stwcx.xyz
Fri Jan 29 09:50:16 AEDT 2016


From: "Milton D. Miller II" <miltonm at us.ibm.com>

Add the fw_env.config file to SRC_URI to include it in the build
tree, and update it to point to /dev/mtd2 as 128k, which the
current flash layout.

Signed-off-by: Milton Miller <miltonm at us.ibm.com>
---
 .../meta-aspeed/meta-ast2400/recipes-bsp/u-boot/files/fw_env.config    | 3 ++-
 .../meta-ast2400/recipes-bsp/u-boot/u-boot_2013.07%.bbappend           | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta-openbmc-bsp/meta-aspeed/meta-ast2400/recipes-bsp/u-boot/files/fw_env.config b/meta-openbmc-bsp/meta-aspeed/meta-ast2400/recipes-bsp/u-boot/files/fw_env.config
index 9cb3ad2..fe09890 100644
--- a/meta-openbmc-bsp/meta-aspeed/meta-ast2400/recipes-bsp/u-boot/files/fw_env.config
+++ b/meta-openbmc-bsp/meta-aspeed/meta-ast2400/recipes-bsp/u-boot/files/fw_env.config
@@ -7,11 +7,12 @@
 
 # NOR example
 # MTD device name	Device offset	Env. size	Flash sector size	Number of sectors
-/dev/mtd1		0x0000		0x20000		0x20000
+#/dev/mtd1		0x0000		0x20000		0x20000
 #/dev/mtd2		0x0000		0x4000		0x4000
 
 # MTD SPI-dataflash example
 # MTD device name	Device offset	Env. size	Flash sector size	Number of sectors
+/dev/mtd2		0x00000		0x20000
 #/dev/mtd5		0x4200		0x4200
 #/dev/mtd6		0x4200		0x4200
 
diff --git a/meta-openbmc-bsp/meta-aspeed/meta-ast2400/recipes-bsp/u-boot/u-boot_2013.07%.bbappend b/meta-openbmc-bsp/meta-aspeed/meta-ast2400/recipes-bsp/u-boot/u-boot_2013.07%.bbappend
index 12fddbf..50adb9f 100644
--- a/meta-openbmc-bsp/meta-aspeed/meta-ast2400/recipes-bsp/u-boot/u-boot_2013.07%.bbappend
+++ b/meta-openbmc-bsp/meta-aspeed/meta-ast2400/recipes-bsp/u-boot/u-boot_2013.07%.bbappend
@@ -1,5 +1,6 @@
 FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
 
+SRC_URI += "file://fw_env.config"
 SRC_URI += "file://config.patch"
 
 # Do not install u-boot in rootfs
-- 
2.6.4




More information about the openbmc mailing list