mmc: Create a symlink for HBB to its LID file

With the eventual switch for the host firmware to use PLDM, the vpnor
partition files would not exist anymore. As a temporary transition, need
to create a symlink from HBB to its LID file for the existing mboxd
process to load the data into memory. Eventually, a new lightweight
application would load the contents of this LID file into memory, at
which point this symlink could be removed.

Additionally, the vpnor partition names and their corresponding LID
numbers will be read via a json file as part of the PLDM transition, so
this hardcoded LID number can be dynamically be determined at that
point.

Tested: Verified symlink got created in Rainier and it booted to OS.

mboxd trace:
[ 1621534119.097184649] Fulfilling read request against
/var/lib/phosphor-software-manager/pnor/rw/HBB at offset 0x0 into
0x72879000 for 1048576

$ ls -l /var/lib/phosphor-software-manager/pnor/rw/HBB
lrwxrwxrwx    1 root     root            12 May 20 17:58
/var/lib/phosphor-software-manager/pnor/rw/HBB -> 81e0065a.lid

Change-Id: I1d8362b5b9205f6e16f950e5a94fd417402b9f63
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
1 file changed
tree: 28dd701c70a631cf1f270d462e457e278183aa58
  1. dbus/
  2. m4/
  3. mmc/
  4. static/
  5. test/
  6. ubi/
  7. vpnor/
  8. .clang-format
  9. .gitignore
  10. .shellcheck
  11. activation.cpp
  12. activation.hpp
  13. bootstrap.sh
  14. configure.ac
  15. functions.cpp
  16. functions.hpp
  17. generate-tar
  18. generate-ubi
  19. image_verify.cpp
  20. image_verify.hpp
  21. item_updater.cpp
  22. item_updater.hpp
  23. item_updater_main.cpp
  24. LICENSE
  25. MAINTAINERS
  26. Makefile.am
  27. meson.build
  28. meson_options.txt
  29. msl_verify.cpp
  30. msl_verify.hpp
  31. msl_verify_main.cpp
  32. op-pnor-msl.service
  33. openpower-pnor-update@.service
  34. org.open_power.Software.Host.Updater.service
  35. README.md
  36. utils.cpp
  37. utils.hpp
  38. version.cpp
  39. version.hpp
README.md

openpower-pnor-code-mgmt

OpenPower PNOR (Processor NOR) Code Management provides a set of host software management applications for OpenPower systems. The host firmware is stored on the PNOR chip. More information can be found at Software Architecture or Host Code Update

To Build

To build this package, do the following steps:

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

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