commit | 6a42dc61107f2d9b3fb52f064026c9f20d4c755e | [log] [tgz] |
---|---|---|
author | Potin Lai <potin.lai@quantatw.com> | Mon Sep 16 14:46:52 2024 +0800 |
committer | Patrick Williams <patrick@stwcx.xyz> | Tue Nov 19 15:43:20 2024 -0500 |
tree | 92cbebde7d2465515816301056760051de52e380 | |
parent | 9f892fa6a75eaaddf250472ee9086edba7ecbac0 [diff] |
Change primary postcode interface to byte array At least one processor implementation currently uses 9 byte post codes, which does not fit nicely into any standard types. The backends are changing dbus interface to be two arrays rather than a {uint64, array}, which will allow arbitrary sized postcodes[1]. [1]: https://gerrit.openbmc.org/c/openbmc/phosphor-dbus-interfaces/+/74633 Tested: - Test with 9 bytes postcode system ``` { "@odata.id": "/redfish/v1/Systems/system/LogServices/PostCodes/Entries", "@odata.type": "#LogEntryCollection.LogEntryCollection", "Description": "Collection of POST Code Log Entries", "Members": [ { "@odata.id": "/redfish/v1/Systems/system/LogServices/PostCodes/Entries/B1-1", "@odata.type": "#LogEntry.v1_9_0.LogEntry", "Created": "2024-10-08T16:37:51.180760+00:00", "EntryType": "Event", "Id": "B1-1", "Message": "Boot Count: 1; Time Stamp Offset: 0.0000 seconds; POST Code: 0x01000000000001C000", "MessageArgs": [ "1", "0.0000", "0x01000000000001C000" ], "MessageId": "OpenBMC.0.2.BIOSPOSTCode", "Name": "POST Code Log Entry", "Severity": "OK" }, { "@odata.id": "/redfish/v1/Systems/system/LogServices/PostCodes/Entries/B1-2", "@odata.type": "#LogEntry.v1_9_0.LogEntry", "Created": "2024-10-08T16:37:51.282429+00:00", "EntryType": "Event", "Id": "B1-2", "Message": "Boot Count: 1; Time Stamp Offset: 0.1017 seconds; POST Code: 0x01000000020001C100", "MessageArgs": [ "1", "0.1017", "0x01000000020001C100" ], "MessageId": "OpenBMC.0.2.BIOSPOSTCode", "Name": "POST Code Log Entry", "Severity": "OK" }, { "@odata.id": "/redfish/v1/Systems/system/LogServices/PostCodes/Entries/B1-3", "@odata.type": "#LogEntry.v1_9_0.LogEntry", "Created": "2024-10-08T16:37:51.654501+00:00", "EntryType": "Event", "Id": "B1-3", "Message": "Boot Count: 1; Time Stamp Offset: 0.4737 seconds; POST Code: 0x01000000010001C000", "MessageArgs": [ "1", "0.4737", "0x01000000010001C000" ], "MessageId": "OpenBMC.0.2.BIOSPOSTCode", "Name": "POST Code Log Entry", "Severity": "OK" }, ...... } ``` - Test attachment (secondary postcode) with maunul feed postcode - promary: 0x010203040506070809 - secondary: 0x090807060504030201 ``` root@bmc:~# busctl set-property xyz.openbmc_project.State.Boot.Raw /xyz/openbmc_project/state/boot/raw0 xyz.openbmc_project.State.Boot.Raw Value '(ayay)' 9 1 2 3 4 5 6 7 8 9 9 9 8 7 6 5 4 3 2 1 root@bmc:~# curl -u root:0penBmc -k https://127.0.0.1/redfish/v1/Systems/system/LogServices/PostCodes/Entries/B1-1 { "@odata.id": "/redfish/v1/Systems/system/LogServices/PostCodes/Entries/B1-1", "@odata.type": "#LogEntry.v1_9_0.LogEntry", "AdditionalDataURI": "/redfish/v1/Systems/system/LogServices/PostCodes/Entries/B1-1/attachment", "Created": "2024-10-15T00:52:38.408819+00:00", "EntryType": "Event", "Id": "B1-1", "Message": "Boot Count: 1; Time Stamp Offset: 0.0000 seconds; POST Code: 0x010203040506070809", "MessageArgs": [ "1", "0.0000", "0x010203040506070809" ], "MessageId": "OpenBMC.0.2.BIOSPOSTCode", "Name": "POST Code Log Entry", "Severity": "OK" } root@bmc:~# curl -u root:0penBmc -k https://127.0.0.1/redfish/v1/Systems/system/LogServices/PostCodes/Entries/B1-1/attachment CQgHBgUEAwIB ``` Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: Id5e8779b191e733e6be32294d21a0a1775c48db4
This component attempts to be a "do everything" embedded webserver for OpenBMC.
The webserver implements a few distinct interfaces:
bmcweb at a protocol level supports http and https. TLS is supported through OpenSSL.
Bmcweb supports multiple authentication protocols:
Each of these types of authentication is able to be enabled or disabled both via runtime policy changes (through the relevant Redfish APIs) or via configure time options. All authentication mechanisms supporting username/password are routed to libpam, to allow for customization in authentication implementations.
All authorization in bmcweb is determined at routing time, and per route, and conform to the Redfish PrivilegeRegistry.
*Note: Non-Redfish functions are mapped to the closest equivalent Redfish privilege level.
bmcweb is configured per the meson build files. Available options are documented in meson_options.txt
meson setup builddir ninja -C builddir
If any of the dependencies are not found on the host system during configuration, meson will automatically download them via its wrap dependencies mentioned in bmcweb/subprojects
.
bmcweb relies on some on-system data for storage of persistent data that is internal to the process. Details on the exact data stored and when it is read/written can seen from the persistent_data
namespace.
When SSL support is enabled and a usable certificate is not found, bmcweb will generate a self-signed a certificate before launching the server. Please see the bmcweb source code for details on the parameters this certificate is built with.
bmcweb is capable of aggregating resources from satellite BMCs. Refer to AGGREGATION.md for more information on how to enable and use this feature.