Name Date Size #Lines LOC

..--

org/open_power/OCC/H--4436

scripts/H--457428

subprojects/H--2115

.clang-formatH A D01-Feb-20253.7 KiB137135

.gitignoreH A D09-Mar-202550 44

LICENSEH A D13-Oct-201511.1 KiB203169

OWNERSH A D21-Dec-20231.6 KiB4540

README.mdH A D12-Jun-20251.7 KiB5336

bootstrap.shH A D13-Apr-2021521 2014

elog-errors.hppH A D16-Aug-202414.1 KiB521404

host-interface.cppH A D16-Aug-20241.9 KiB6742

host-interface.hppH A D22-Jul-20221.8 KiB6327

meson.buildH A D09-Mar-20251.3 KiB5848

meson.optionsH A D09-Mar-2025318 1613

oemhandler.cppH A D02-Apr-202514.8 KiB477344

oemhandler.hppH A D16-Aug-20242.5 KiB8961

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