[Skiboot] [PATCH] pflash: Support encoding/decoding ECC'd partitions

Stewart Smith stewart at linux.ibm.com
Fri Feb 15 14:32:00 AEDT 2019


Stewart Smith <stewart at linux.ibm.com> writes:
> With the new --ecc option, pflash can add/remove ECC when
> reading/writing flash partitions protected by ECC.
>
> This is *not* flawless with current PNORs out in the wild though, as
> they do not typically fill the whole partition with valid ECC data, so
> you have to know how big the valid ECC'd data is and specify the size
> manually. Note that for some partitions this is pratically impossible
> without knowing the details of the content of the partition.
>
> A future patch is likely to introduce an option to "stop reading data
> when ECC starts failing and assume everything is okay rather than error
> out" to support reading the "valid" data from existing PNOR images.
>
> Signed-off-by: Stewart Smith <stewart at linux.ibm.com>
> ---
>  external/pflash/pflash.c                      | 43 ++++++++++++++-----
>  external/pflash/test/results/00-usage.out     |  4 ++
>  .../pflash/test/results/05-bad-numbers.out    |  4 ++
>  3 files changed, 41 insertions(+), 10 deletions(-)

Merged to master as of 816a1d7bb2efcaf2a4b62018b21984131cd52dd3

-- 
Stewart Smith
OPAL Architect, IBM.



More information about the Skiboot mailing list