summaryrefslogtreecommitdiffstats
path: root/meta-openbmc-machines/meta-openpower/common/recipes-bsp/skiboot/skiboot/0002-external-common-Teach-ARM-code-to-erase-mtd-chips.patch
Commit message (Collapse)AuthorAgeFilesLines
* Fix pflash PNOR accessJoel Stanley2016-11-171-50/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pflash changes: Move to latest upstream release of skiboot which includes the mtd erase patch we were carrying. Adds a patch to fix parsing of the longer mtd labels we have since updating the device tree bindings. dev: size erasesize name mtd0: 00060000 00001000 "u-boot" mtd1: 00020000 00001000 "u-boot-env" mtd2: 00280000 00001000 "kernel" mtd3: 001c0000 00001000 "initramfs" mtd4: 01740000 00001000 "rofs" mtd5: 00400000 00001000 "rwfs" mtd6: 02000000 00001000 "1e620000.flash-controller:flash@1" mtd7: 08000000 00001000 "1e630000.flash-controller:pnor@0" Linux kernel changes: Three of the patches move the comaptible string for the bt interface to match what we have sent upstream. There is also a dts change to the mtd nodes that add back the 'pnor' label to the PNOR mtd device, as required by pflash. Cédric Le Goater (2): ipmi/bt-bmc: change compatible node to 'aspeed, ast2400-ibt-bmc' ARM: dts: aspeed: fix flash module device nodes Joel Stanley (2): ipmi/bt-bmc: Add comaptible node for ast2500 arm: dts: aspeed: Use upstream comaptible string Fixes openbmc/openbmc#785 Change-Id: If2c293b85075edcf3078ef599e7b61f3a6d77c66 Signed-off-by: Joel Stanley <joel@jms.id.au>
* pflash: fix erase command when using mtd backendJoel Stanley2016-11-071-0/+50
The libflash mtd backend lacked support for full-chip erase so it did not work. This patch adds that support to libflash. Patch is on it's way upstream[1]. Note: the old MMIO access method could perform a wole-chip erase on SPI NOR parts that supported it. This was sometimes a fraction faster than erasing each page one-by-one when re-flashing the entire chip. The mtd API does not (yet) provide a userspace API for that, so libflash always erases the flash one page at a time. This means you are better off using the -e command over -E. Fixes: openbmc/openbmc#747 [1] http://patchwork.ozlabs.org/patch/691765/ Change-Id: I20cf50e70a8487edc8cd77d41e73832913237b1b Signed-off-by: Joel Stanley <joel@jms.id.au>
OpenPOWER on IntegriCloud