Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
org/open_power/OCC/ | H | - | - | 44 | 36 | |
scripts/ | H | - | - | 457 | 428 | |
subprojects/ | H | - | - | 21 | 15 | |
.clang-format | H A D | 01-Feb-2025 | 3.7 KiB | 137 | 135 | |
.gitignore | H A D | 09-Mar-2025 | 50 | 4 | 4 | |
LICENSE | H A D | 13-Oct-2015 | 11.1 KiB | 203 | 169 | |
OWNERS | H A D | 21-Dec-2023 | 1.6 KiB | 45 | 40 | |
README.md | H A D | 12-Jun-2025 | 1.7 KiB | 53 | 36 | |
bootstrap.sh | H A D | 13-Apr-2021 | 521 | 20 | 14 | |
elog-errors.hpp | H A D | 16-Aug-2024 | 14.1 KiB | 521 | 404 | |
host-interface.cpp | H A D | 16-Aug-2024 | 1.9 KiB | 67 | 42 | |
host-interface.hpp | H A D | 22-Jul-2022 | 1.8 KiB | 63 | 27 | |
meson.build | H A D | 09-Mar-2025 | 1.3 KiB | 58 | 48 | |
meson.options | H A D | 09-Mar-2025 | 318 | 16 | 13 | |
oemhandler.cpp | H A D | 02-Apr-2025 | 14.8 KiB | 477 | 344 | |
oemhandler.hpp | H A D | 16-Aug-2024 | 2.5 KiB | 89 | 61 |
README.md
1# openpower-host-ipmi-oem 2 3This .so file is designed to support the OpenPOWER's BIOS OEM commands. 4Documentation can be found by contacting the OpenPOWER mailing list @ 5<https://github.com/open-power/op-build> 6 7## To Build 8 9To build this package, do the following steps: 10 11```shell 12meson setup build 13ninja -C build 14``` 15 16To clean the repository again run `rm -rf build`. 17 18## Supported Commands 19 20- Partial Add 21- Prepare for host update 22- BMC Factory Reset 23 24## Command Documentation 25 26### BMC Factory Reset 27 28Netfun: 0x3a Command: 0x11 29 30This command will call to reset the BMC to its factory default. See the 31[`FactoryReset`][0] interface for the factory reset implementation details. 32 33This includes: 34 351. Power the chassis off. The host needs to be powered off because the factory 36 reset deletes the inventory items, which are needed for the BMC during the 37 power on path, causing the power on to fail. The inventory items are 38 repopulated during a host power on. An enhancement to OpenBMC would be to 39 handle missing inventory items during a BMC reboot when the host is on. 402. Set the BMC to perform factory reset on reboot. 413. Reboot the BMC for the factory reset to take effect. 42 43Because the chassis is powered off, the host does not receive a return code when 44successful. 45 46This command is not allowed when the IPMI restriction mode is set to 47'Whitelist'. See the [`RestrictedModes`][1] interrface for more information. 48 49[0]: 50 https://github.com/openbmc/phosphor-dbus-interfaces/tree/master/xyz/openbmc_project/Common/FactoryReset#xyzopenbmc_projectsoftwarebmcupdater 51[1]: 52 https://github.com/openbmc/phosphor-dbus-interfaces/blob/master/yaml/xyz/openbmc_project/Control/Security/RestrictionMode.interface.yaml 53