PNOR: Restore RedundancyPriority on reset

This commit extends the functionality of the PNOR software updater by
preserving RedundancyPriority values through any kind of reset.

This is accomplished by storing priority values in serial files in
/var/lib/obmc/openpower-pnor-code-mgmt/ using the Cereal library. Each
time a priority value is modified, the value in the corresponding
version file is adjusted.

When the item updater resets, it reads back the priority values from
these files.

Resolves openbmc/openbmc#2040

Change-Id: I908431801e541a1e5b39bcf49ae057f7e340eecc
Signed-off-by: Michael Tritz <mtritz@us.ibm.com>
6 files changed
tree: 7a27f078d4a9fa4bc10316b855383da4ec0c371c
  1. m4/
  2. test/
  3. .gitignore
  4. activation.cpp
  5. activation.hpp
  6. bootstrap.sh
  7. configure.ac
  8. generate-squashfs
  9. item_updater.cpp
  10. item_updater.hpp
  11. item_updater_main.cpp
  12. LICENSE
  13. Makefile.am
  14. README.md
  15. serialize.cpp
  16. serialize.hpp
  17. version.cpp
  18. version.hpp
README.md

To Build

To build this package, do the following steps:

    1. ./bootstrap.sh
    2. ./configure ${CONFIGURE_FLAGS}
    3. make

To full clean the repository again run `./bootstrap.sh clean`.