[PATCH openbmc] Add flash copy commands to busybox

OpenBMC Patches openbmc-patches at stwcx.xyz
Thu Dec 10 12:30:36 AEDT 2015


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

The flashcp command will copy a file to a mtd device after erasing the
partition.   This is useful for updating the bmc u-boot, kernel,
environment, and/or initrd.  It can also be used for upating the whole
pnor, or partitions if we later add ffs partition parsing.
---
 meta-phosphor/common/recipes-core/busybox/busybox/flash.cfg  | 4 ++++
 meta-phosphor/common/recipes-core/busybox/busybox_%.bbappend | 1 +
 2 files changed, 5 insertions(+)
 create mode 100644 meta-phosphor/common/recipes-core/busybox/busybox/flash.cfg

diff --git a/meta-phosphor/common/recipes-core/busybox/busybox/flash.cfg b/meta-phosphor/common/recipes-core/busybox/busybox/flash.cfg
new file mode 100644
index 0000000..39ba10d
--- /dev/null
+++ b/meta-phosphor/common/recipes-core/busybox/busybox/flash.cfg
@@ -0,0 +1,4 @@
+CONFIG_FLASHCP=y
+CONFIG_FLASH_LOCK=y
+CONFIG_FLASH_UNLOCK=y
+CONFIG_FLASH_ERASEALL=y
diff --git a/meta-phosphor/common/recipes-core/busybox/busybox_%.bbappend b/meta-phosphor/common/recipes-core/busybox/busybox_%.bbappend
index 225f17a..3c4f2b6 100644
--- a/meta-phosphor/common/recipes-core/busybox/busybox_%.bbappend
+++ b/meta-phosphor/common/recipes-core/busybox/busybox_%.bbappend
@@ -1,2 +1,3 @@
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 SRC_URI += "file://busybox.cfg"
+SRC_URI += "file://flash.cfg"
-- 
2.6.3




More information about the openbmc mailing list