diff options
author | Chen Yugang <yugang.chen@linux.intel.com> | 2019-07-15 13:31:26 +0300 |
---|---|---|
committer | Chen Yugang <yugang.chen@linux.intel.com> | 2019-07-16 13:27:48 +0300 |
commit | ec22471baaac04eae1192f6d4cf2f071a804a3ae (patch) | |
tree | dae69c8d6ab3b9bc562f36ce6a031166e1cf507d /settings | |
parent | 8da74af86aa9f4484e217755ea412540a8690820 (diff) | |
download | provingground-ec22471baaac04eae1192f6d4cf2f071a804a3ae.tar.xz |
Fix issue: set/get system boot options command
issue: set/get system boot options command return 0xff.
This IPMI command set/get system boot options commands
worked fine before. After default.yaml has been
removed and used default.hpp instead, it runs into issue
because some Properties related with boot options are
missed in default.hpp while transferring from default.YAML
to default.hpp.
Now add these Properties to default.hpp, it works fine.
tested
test by IPMI set/get system boot options commands
set boot option:
ipmitool raw 0x00 0x08 0x05 0x80 0x18 0x00 0x00 0x00
get boot option:
ipmitool raw 0x00 0x09 0x05 0x00 0x00
Change-Id: I465ae877fb6c906144127fb0932088cca4aca70d
Signed-off-by: Chen Yugang <yugang.chen@linux.intel.com>
Diffstat (limited to 'settings')
-rw-r--r-- | settings/include/defaults.hpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/settings/include/defaults.hpp b/settings/include/defaults.hpp index b728c48..dc81e41 100644 --- a/settings/include/defaults.hpp +++ b/settings/include/defaults.hpp @@ -46,6 +46,13 @@ inline void loadSettings(sdbusplus::asio::object_server &objectServer, "BootSource", "xyz.openbmc_project.Control.Boot.Source.Sources.Default"); + setting = &settings.emplace_back(objectServer, + "/xyz/openbmc_project/control/host0/boot", + "xyz.openbmc_project.Control.Boot.Mode"); + + setting->addProperty("BootMode", + "xyz.openbmc_project.Control.Boot.Mode.Modes.Regular"); + setting = &settings.emplace_back( objectServer, "/xyz/openbmc_project/control/host0/boot/one_time", "xyz.openbmc_project.Control.Boot.Source"); @@ -55,6 +62,19 @@ inline void loadSettings(sdbusplus::asio::object_server &objectServer, "xyz.openbmc_project.Control.Boot.Source.Sources.Default"); setting = &settings.emplace_back( + objectServer, "/xyz/openbmc_project/control/host0/boot/one_time", + "xyz.openbmc_project.Control.Boot.Mode"); + + setting->addProperty("BootMode", + "xyz.openbmc_project.Control.Boot.Mode.Modes.Regular"); + + setting = &settings.emplace_back( + objectServer, "/xyz/openbmc_project/control/host0/boot/one_time", + "xyz.openbmc_project.Object.Enable"); + + setting->addProperty("Enabled", true); + + setting = &settings.emplace_back( objectServer, "/xyz/openbmc_project/control/host0/power_cap", "xyz.openbmc_project.Control.Power.Cap"); |