From 620dadf5b4729fd8e83c14f10b842a2a1698c237 Mon Sep 17 00:00:00 2001 From: "Milton D. Miller II" Date: Fri, 4 Dec 2015 02:30:53 -0600 Subject: 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. --- 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 (limited to 'meta-phosphor/common/recipes-core') 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" -- cgit v1.2.1