commit | a4c19b0032900982b4e8ae85791f4dbd498457a8 | [log] [tgz] |
---|---|---|
author | Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com> | Wed Mar 01 13:15:45 2023 +0800 |
committer | DelphineCCChiu <Delphine_CC_Chiu@wiwynn.com> | Mon Apr 24 01:14:51 2023 +0000 |
tree | fd267315e568bb55d68b617fc101b4ae0325e9c5 | |
parent | 65a66543d3ef4f5e68b3fd3c6b66e4238a164eaf [diff] |
Support OCP debug card postcode display Description: - Meson option postcode display path is supported - Support OCP debug card postcode display Example of test process: 1. Set postcode-display-path as /sys/bus/i2c/devices/12- 000f/postcode-display-slot in project layer 2. Press OCP debug card uart button to the host to check 3. Host power on 4. The postcode should start displaying on the OCP debug card screen with user-readable string representation for those codes Note: - The postcode-display-path was setting by CLD driver, which will though CPLD setting ocp-debug card (link: https://lore.kernel.org/lkml/20230117094425.19004-1-Delphine_CC_Chiu@Wiwynn.com/) Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com> Change-Id: I915c0ec29d763b8933835a9fdc8881648ca95d24
This phosphor-post-code-manager repository provides an infrastructure to persist the POST codes in BMC filesystem & it also owns the systemd services that are responsible for exposing the BIOS Post Codes to rest of the world via redfish.
To build phosphor-post-code-manager package , do the following steps:
meson <build directory> ninja -C <build directory>
This repository ships xyz.openbmc_project.State.Boot.PostCode.service
systemd service along with its template version and a tiny binary that exposes the necessary dbus interfaces & methods to extract the POST codes per boot cycle.
This repository is tightly coupled with phosphor-host-postd OpenBMC respository which is responsible for emitting the dbus signals for every new POST Code.
phosphor-post-code-manager is architected to look for the property changed signals which are being emitted from the service that hosts Value property on xyz.openbmc_project.State.Boot.Raw
interface & archive them per boot on the filesystem, so that those can be exposed over redfish