commit | b58c79ebdcf5d16086abe8420740179a8bbdfc3a | [log] [tgz] |
---|---|---|
author | Jonathan Doman <jonathan.doman@intel.com> | Wed Aug 12 15:11:30 2020 -0700 |
committer | Jonathan Doman <jonathan.doman@intel.com> | Mon Aug 24 20:58:26 2020 +0000 |
tree | 484fca9358a54d27eab37c325bea30467ac0ab00 | |
parent | 0dfeda6235bde10e0aedd28ba166b9e49b074833 [diff] |
Add BMCBootReason Redfish message In order to demarcate separate FW boots within a continuous stream of Redfish event logs, add a BMCBootReason message which is logged during every BMC FW bootup. This message also provides the current FW version string, as well as a reason describing why the boot happened (e.g. power loss, user request, watchdog timeout). Tested: Inserted message into journal using logger-systemd and observed Redfish event at redfish/v1/Systems/system/LogServices/EventLog/Entries. Change-Id: I0f0a10ebf300e1a9f2e18bb6735d95e96aeb8473 Signed-off-by: Jonathan Doman <jonathan.doman@intel.com>
This component attempts to be a "do everything" embedded webserver for openbmc.
At this time, the webserver implements a few interfaces:
BMCWeb is configured by setting -D
flags that correspond to options in bmcweb/CMakeLists.txt
and then compiling. For example, cmake -DBMCWEB_ENABLE_KVM=NO ...
followed by make
. The option names become C++ preprocessor symbols that control which code is compiled into the program.
When BMCWeb starts running, it reads persistent configuration data (such as UUID and session data) from a local file. If this is not usable, it generates a new configuration.
When BMCWeb SSL support is enabled and a usable certificate is not found, it will generate a self-sign a certificate before launching the server. The keys are generated by the secp384r1
algorithm. The certificate
C=US, O=OpenBMC, CN=testhost
,SHA-256
algorithm.