Revision Date Author Comments
# 4e82bc84 28-Sep-2021 Adriana Kobylak <anoo@us.ibm.com>

mmc: Handle missing pnor.toc file

The pnor.toc file is a mboxd implemenation, and therefore will not exist
once the host uses PLDM instead, which uses .lid files instead of pnor
partition files. As

mmc: Handle missing pnor.toc file

The pnor.toc file is a mboxd implemenation, and therefore will not exist
once the host uses PLDM instead, which uses .lid files instead of pnor
partition files. As part of the transition, the pnor.toc file is being
built into a .lid file for images that do not contain pnor partition
files. Handle this transition by creating a symlink from pnor partition
file to .lid file. This would remain in place until all the PLDM support
from the hostboot side is in place and mboxd is removed.

Tested: Verified rainier powers on and mboxd starts successfully, and
the volatile partition gets cleared.

Change-Id: I59364c0abf100dab5a38d277f0587d0dd221b53d
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>

show more ...


# 4c2386a5 17-Sep-2021 Adriana Kobylak <anoo@us.ibm.com>

mmc: Add dependency to openpower-update-bios-attr-table.service

The openpower-update-bios-attr-table.service creates symlinks to lid
files is the partition files do not exist. The service
openpower-

mmc: Add dependency to openpower-update-bios-attr-table.service

The openpower-update-bios-attr-table.service creates symlinks to lid
files is the partition files do not exist. The service
openpower-process-host-firmware.service creates symlinks to the well
known firmware name by deleting the base partition file and creting a
symlink. If both services run at the same time, they can interfere,
causing the bios attr service to create a symlink when it's not desired
(it thinks the file doesn't exist but it's because the process host fw
service just deleted it to create its symlink). Add a dependency to
serialize them.

Tested:
Before fix:
Sep 17 14:18:35 p10bmc systemd[1]: Starting Set POWER host firmware well-known names...
Sep 17 14:18:35 p10bmc systemd[1]: Starting Update BIOS attr table with host firmware well-known names...
Sep 17 14:18:35 p10bmc openpower-update-manager[2026]: "/media/hostfw/running/DEVTREE": File exists
Sep 17 14:18:35 p10bmc systemd[1]: openpower-process-host-firmware.service: Deactivated successfully.
Sep 17 14:18:35 p10bmc systemd[1]: Finished Set POWER host firmware well-known names.
Sep 17 14:18:35 p10bmc systemd[1]: openpower-update-bios-attr-table.service: Deactivated successfully.
Sep 17 14:18:35 p10bmc systemd[1]: Finished Update BIOS attr table with host firmware well-known names.

After fix:
Sep 17 14:19:26 p10bmc systemd[1]: Starting Set POWER host firmware well-known names...
Sep 17 14:19:26 p10bmc systemd[1]: openpower-process-host-firmware.service: Deactivated successfully.
Sep 17 14:19:26 p10bmc systemd[1]: Finished Set POWER host firmware well-known names.
Sep 17 14:19:26 p10bmc systemd[1]: Starting Update BIOS attr table with host firmware well-known names...
Sep 17 14:19:26 p10bmc systemd[1]: openpower-update-bios-attr-table.service: Deactivated successfully.
Sep 17 14:19:26 p10bmc systemd[1]: Finished Update BIOS attr table with host firmware well-known names.

Change-Id: I3bc0366a38676d391e1087c27f2fcff487ac5914
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>

show more ...


# 0ddd4fad 14-Jul-2021 Isaac Kurth <blisaac91@gmail.com>

item_updater_mmc: Implement bios factory reset

Implemented the method ItemUpdaterMMC::reset. It clears files in
/media/hostfw/ related to managing console and virtualization
information, then recrea

item_updater_mmc: Implement bios factory reset

Implemented the method ItemUpdaterMMC::reset. It clears files in
/media/hostfw/ related to managing console and virtualization
information, then recreates those files using bus calls to service
files. Added checks to obmc-flash-bios so it doesn't cause problems
when its methods are run multiple times. Modified latest services to
allow them to run more than once. Services which depend on the init
service will run after it.

Tested: Created extra files in the directories that the reset method
removes. Called the reset method using busctl. Verified that the
added files were removed and that the removed files that belong were
recreated. Verified that all services called were run.

Signed-off-by: Isaac Kurth <blisaac91@gmail.com>
Change-Id: I1e04e97a7c5c9e3fa8b5ee7af47b7320ff3e91d3

show more ...


# 53a27395 14-Jun-2021 Adriana Kobylak <anoo@us.ibm.com>

mmc: Add update-bios-attr-table subcommand

Add the update-bios-attr-table subcommand to update the bios attribute
table with the host firmware well-known names based on system type. The
system type

mmc: Add update-bios-attr-table subcommand

Add the update-bios-attr-table subcommand to update the bios attribute
table with the host firmware well-known names based on system type. The
system type is provided by Entity Manager, and this new subcommand uses
some of the existing infrastructure that the process-host-firmware
subcommand has to determine the system type.

Add a new service file to run this new subcommand so that it can block
waiting for the entity manager interface to appear on D-Bus.

Subsequent commands will add parsing the JSON file to build the bios
attribute string and set the bios attribute property.

Change-Id: Iacee975e273bae562d2d42cd8b642b9d0744a121
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>

show more ...