summaryrefslogtreecommitdiffstats
path: root/meta-phosphor
diff options
context:
space:
mode:
authorMilton D. Miller II <miltonm@us.ibm.com>2015-12-04 02:30:53 -0600
committerMilton D. Miller II <miltonm@us.ibm.com>2015-12-05 13:48:14 -0600
commit620dadf5b4729fd8e83c14f10b842a2a1698c237 (patch)
tree79381165a07582708351ff439dcf273c6f9eb9b4 /meta-phosphor
parent6d6e571be255fe95b3c3eac31fca9666c10490a9 (diff)
downloadtalos-openbmc-620dadf5b4729fd8e83c14f10b842a2a1698c237.tar.gz
talos-openbmc-620dadf5b4729fd8e83c14f10b842a2a1698c237.zip
Add flash copy commands to busybox
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.
Diffstat (limited to 'meta-phosphor')
-rw-r--r--meta-phosphor/common/recipes-core/busybox/busybox/flash.cfg4
-rw-r--r--meta-phosphor/common/recipes-core/busybox/busybox_%.bbappend1
2 files changed, 5 insertions, 0 deletions
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 000000000..39ba10d74
--- /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 225f17ab3..3c4f2b61f 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"
OpenPOWER on IntegriCloud