Name
Date
Size
#Lines
LOC

..--

org/open_power/OCC/H--97

scripts/H--438411

subprojects/H--

.clang-formatH A D01-Feb-20253.7 KiB137135

.gitignoreH A D09-Mar-202550 5344

LICENSEH A D13-Oct-201511.1 KiB203169

OWNERSH A D21-Dec-20231.6 KiB4540

README.mdH A D09-Mar-20251.6 KiB5236

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 KiB

meson.optionsH A D09-Mar-2025318

oemhandler.cppH A D09-Mar-202514.8 KiB466333

oemhandler.hppH A D16-Aug-20242.5 KiB8961

README.md

1This .so file is designed to support the OpenPOWER's BIOS OEM commands.
2Documentation can be found by contacting the OpenPOWER mailing list @
3https://github.com/open-power/op-build
4
5## To Build
6
7```
8To build this package, do the following steps:
9
10    meson setup build
11    ninja -C build
12
13To clean the repository again run rm -rf build.
14```
15
16## Supported Commands
17
18- Partial Add
19- Prepare for host update
20- BMC Factory Reset
21
22## Command Documentation
23
24### BMC Factory Reset
25
26Netfun: 0x3a Command: 0x11
27
28This command will call to reset the BMC to its factory default. See [here][0]
29for the factory reset implementation details.
30
31This includes:
32
331. Power the chassis off. The host needs to be powered off because the factory
34   reset deletes the inventory items, which are needed for the BMC during the
35   power on path, causing the power on to fail. The inventory items are
36   repopulated during a host power on. An enhancement to OpenBMC would be to
37   handle missing inventory items during a BMC reboot when the host is on.
382. Set the BMC to perform factory reset on reboot.
393. Reboot the BMC for the factory reset to take effect.
40
41Because the chassis is powered off, the host does not receive a return code when
42successful.
43
44This command is not allowed when the IPMI restriction mode is set to
45'Whitelist'. See [here][1] for more information.
46
47[0]:
48  https://github.com/openbmc/phosphor-dbus-interfaces/tree/master/xyz/openbmc_project/Common/FactoryReset#xyzopenbmc_projectsoftwarebmcupdater
49[1]:
50  https://github.com/openbmc/phosphor-dbus-interfaces/blob/master/yaml/xyz/openbmc_project/Control/Security/RestrictionMode.interface.yaml
51