summaryrefslogtreecommitdiffstats
path: root/op-flasher
Commit message (Collapse)AuthorAgeFilesLines
* flasher: fix compile error in 84ab7ePatrick Williams2016-12-121-1/+1
| | | | | Change-Id: I99c65334477f346658d37d1523a58985f8057963 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* flasher: Use arch_flash_* correctlyCyril Bur2016-12-091-1/+7
| | | | | Change-Id: Ica87c55f08cc021a5c6cc0c53d8dafb1d854aec8 Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com>
* flasher: Move to new libflash APIJoel Stanley2016-11-041-15/+7
| | | | | | | | The new API unifies the PNOR and MTD flash access functions so we can call the one API. Change-Id: I49705f14d3433b3a1f4b7d70bccaeea7b494d6a6 Signed-off-by: Joel Stanley <joel@jms.id.au>
* flasher: BMC partition addresses are relative to start of flashJoel Stanley2016-11-041-2/+7
| | | | | | | | | These numbers were the physical address that the flash was mapped to when we were using MMIO access. With MTD access the addresses are relative to the start of the flash device. Change-Id: I7cba8df46fe3cf12ea100072ea77f30c1ecc6e2a Signed-off-by: Joel Stanley <joel@jms.id.au>
* flasher: Remove flash tuned messageJoel Stanley2016-11-041-4/+0
| | | | | | | | The kernel handles all tuning when accessing via mtd so this message is incorrect. Change-Id: I173fc54231a67aeb8b4305b2a333674f8e00d7df Signed-off-by: Joel Stanley <joel@jms.id.au>
* flasher: Unify flash setup functionsJoel Stanley2016-11-041-35/+17
| | | | | | | | | | They almost perform the same codepath, so unify them. This is in preparation for the upcoming libflash API change, they will call the same setup function. Change-Id: If41592f3dc0c5d98db34e7a25ef2f884b031695c Signed-off-by: Joel Stanley <joel@jms.id.au>
* flasher: Use BMC_MTD to represent bmcJoel Stanley2016-11-041-8/+8
| | | | | | | | We were using a boolean to say "yep, we're talking to the BMC flash". Use the enum that is provided by libflash to do this. Change-Id: If40ac3ee64c0827693c93c64ea18a0a34ef79a46 Signed-off-by: Joel Stanley <joel@jms.id.au>
* flasher: unify cleanup commandsJoel Stanley2016-11-041-9/+3
| | | | | | | | Now that we don't do locking there is no difference between the bmc and pnor cleanups. Change-Id: I5fe9d33ce799a84123f9e146e6856dbaa6684b1f Signed-off-by: Joel Stanley <joel@jms.id.au>
* flasher: Remove relocking of flashJoel Stanley2016-11-041-16/+4
| | | | | | | | When using MTD the libflash backend does not perform any locking of the flash, so this is a noop. Change-Id: I7cbac6a9e5c3382652fe1f3ada7b208df4af6b3e Signed-off-by: Joel Stanley <joel@jms.id.au>
* flasher: remove unused ffs_indexJoel Stanley2016-11-041-6/+0
| | | | | | | | | | | | | | ffs_index was used to ensure we updated the ffs header with the actual size. However, the ffs_index was hardcoded to -1 nd never updated, so this cade was never executed. Secondly, recent discussion[1] on the open-power bug tracker suggests that this was never something that should be done. [1] https://github.com/open-power/op-build/pull/696#issuecomment-255012092 Change-Id: I302b48213561c4d4490927fa0953c65a52d82c11 Signed-off-by: Joel Stanley <joel@jms.id.au>
* flasher: Remove unused blocklevel_get_infoJoel Stanley2016-11-041-8/+0
| | | | | | | We retrieve the parameters but don't do anything with them. Change-Id: I5689fb04d6a9f201a6aff6235925b86c77500823 Signed-off-by: Joel Stanley <joel@jms.id.au>
* flasher: Use flash via MTD deviceJoel Stanley2016-10-311-1/+1
| | | | | | | | Now that we have a kernel driver for the NOR, switch do doing all operations via the MTD device. Change-Id: Iff760b79f0779665b44d9118643486900ea8946c Signed-off-by: Joel Stanley <joel@jms.id.au>
* flasher: Add copyright headerJoel Stanley2016-10-311-0/+16
| | | | | Change-Id: I100c00f1d0d19ef32ef45cb97e33eacee0962c3c Signed-off-by: Joel Stanley <joel@jms.id.au>
* op-flasher: Remove pflash treeBrad Bishop2016-09-1255-6205/+0
| | | | | | | No longer needed with the move to the shared object. Change-Id: I36f7d7ba8b3df5ebae67a93ae18f1fa2d5c4d29a Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* op-flasher: use dynamic libflashBrad Bishop2016-09-122-100/+20
| | | | | | | | | Replace the old statically linked snapshot of libflash with the real shared library. Resolves: openbmc/openbmc#542 Change-Id: I3b6f634d17951c714ebc571518ad5067eaf44e97 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* libopenbmc_intf include path updateBrad Bishop2016-06-271-2/+2
| | | | | | | | | Remove the interfaces prefix from applications including openbmc_intf.h. Use brackets rather than quotes in prep for a libopenbmc_intf SDK package. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Merge pull request #107 from bradbishop/deadPatrick Williams2016-06-211-0/+0
|\ | | | | Remove dead code
| * Remove built-in.o from repositoryBrad Bishop2016-06-211-0/+0
| | | | | | | | | | | | Added by mistake when pflash was originally imported. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* | Enable user-overriable CFLAGSBrad Bishop2016-06-211-3/+3
|/ | | | | | | | | Put required CFLAGS (ie pkg-config --cflags) in ALL_CFLAGS and append user specified CFLAGS to that. Use CFLAGS during link. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Reorganize directory structureBrad Bishop2016-06-1058-0/+6639
Moving to directory per-application layout. This facilitates building single applications which is useful in the Yocto build environment since different applications satisfy different OpenBMC build requirements. A number of issues are also addressed: - All applications were pulling in libsystemd and the gdbus libs irrespective of whether or not they were needed. - gpio.o duplicated in every application - moved to libopenbmc_intf - Added install target Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
OpenPOWER on IntegriCloud