[PATCH openbmc 4/6] u-boot : switch to repro, add fw_env.config
OpenBMC Patches
openbmc-patches at stwcx.xyz
Thu Jan 21 10:10:18 AEDT 2016
From: "Milton D. Miller II" <miltonm at us.ibm.com>
Switch to the obmc repro so that u-boot can effectively download the
kernel and initrd for recovery from corrupted flash partitions.
Add the fw_env.config pointing to /dev/mtd2 as 128k, which the
current flash layout.
---
.../meta-ast2400/recipes-bsp/u-boot/files/fw_env.config | 4 ++--
.../meta-ast2400/recipes-bsp/u-boot/u-boot_2013.07%.bbappend | 7 ++-----
meta-phosphor/common/recipes-bsp/u-boot/u-boot_2013.07.bb | 9 +++++----
3 files changed, 9 insertions(+), 11 deletions(-)
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..07be77a 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,8 +7,8 @@
# NOR example
# MTD device name Device offset Env. size Flash sector size Number of sectors
-/dev/mtd1 0x0000 0x20000 0x20000
-#/dev/mtd2 0x0000 0x4000 0x4000
+#/dev/mtd1 0x0000 0x20000 0x20000
+/dev/mtd2 0x0000 0x20000 0x10000
# MTD SPI-dataflash example
# MTD device name Device offset Env. size Flash sector size Number of sectors
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 6d4a18f..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,10 +1,7 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
-#SRC_URI += "file://fw_env.config
-SRC_URI += "file://patch-2013.07/0000-u-boot-aspeed-064.patch \
- file://patch-2013.07/0001-u-boot-openbmc.patch \
- file://config.patch \
- "
+SRC_URI += "file://fw_env.config"
+SRC_URI += "file://config.patch"
# Do not install u-boot in rootfs
#do_install[postfuncs] += "remove_uboot_from_rootfs"
diff --git a/meta-phosphor/common/recipes-bsp/u-boot/u-boot_2013.07.bb b/meta-phosphor/common/recipes-bsp/u-boot/u-boot_2013.07.bb
index f3e2f56..6349d97 100644
--- a/meta-phosphor/common/recipes-bsp/u-boot/u-boot_2013.07.bb
+++ b/meta-phosphor/common/recipes-bsp/u-boot/u-boot_2013.07.bb
@@ -12,13 +12,14 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb \
# This revision corresponds to the tag "v2013.07"
# We use the revision in order to avoid having to fetch it from the repo during parse
-SRCREV = "62c175fbb8a0f9a926c88294ea9f7e88eb898f6c"
+# SRCREV = "62c175fbb8a0f9a926c88294ea9f7e88eb898f6c"
+SRCREV="${AUTOREV}"
+
PV = "v2013.07+git${SRCPV}"
-SRC_URI = "git://git.denx.de/u-boot.git;branch=master \
- file://0001-am335x_evm.h-Add-use-DEFAULT_LINUX_BOOT_ENV-environm.patch \
- "
+UBRANCH = "v2013.07-aspeed-openbmc"
+SRC_URI = "git://git@github.com/openbmc/u-boot.git;branch=${UBRANCH};protocol=https"
S = "${WORKDIR}/git"
--
2.6.4
More information about the openbmc
mailing list