Searched hist:"25 a0f634" (Results 1 – 4 of 4) sorted by relevance
/openbmc/service-config-manager/ |
H A D | meson.build | 25a0f634 Thu Nov 11 02:32:07 CST 2021 Chicago Duan <duanzhijia01@inspur.com> ADD USB Code Update enable/disable
phosphor_usb_code_update is an application that use USB to do FW update. phosphor_usb_code_update service is not a daemon, but an app that will be called after inserting a USB flash disk.
This commit creates an object of phosphor_usb_code_update when phosphor_usb_code_update is not started. We can enable/disable phosphor_usb_code_update by setting the "Enabled" property to true/false.
Please configure the “usb-code-update” option in your bb/bbappend to enable this feature.
For phosphor_usb_code_update, useful rules files is /lib/udev/rules.d/70-bmc-usb.rules. When usb code update is disabled, srvcfg_manager creates an empty symlink /etc/udev/rules.d/70-bmc-usb.rules, which causes /lib/udev/rules.d/70-bmc-usb.rules inoperative. When usb code update is enabled, srvcfg_manager deletes /etc/udev/rules.d/70-bmc-usb.rules.
The commits of phosphor_usb_code_update is: https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-bmc-code-mgmt/+/48742/1
Test: get "Enabled" property: busctl get-property xyz.openbmc_project.Control.Service.Manager /xyz/openbmc_project/control/service/phosphor_2dusb_2dcode_2dupdate xyz.openbmc_project.Control.Service.Attributes Enabled b true
set "Enabled" property to false: busctl set-property xyz.openbmc_project.Control.Service.Manager /xyz/openbmc_project/control/service/phosphor_2dusb_2dcode_2dupdate xyz.openbmc_project.Control.Service.Attributes Enabled b false
busctl get-property xyz.openbmc_project.Control.Service.Manager /xyz/openbmc_project/control/service/phosphor_2dusb_2dcode_2dupdate xyz.openbmc_project.Control.Service.Attributes Enabled b false
The "Enabled" property will be persisted,reboot the BMC, then get the "Enabled" property: busctl get-property xyz.openbmc_project.Control.Service.Manager /xyz/openbmc_project/control/service/phosphor_2dusb_2dcode_2dupdate xyz.openbmc_project.Control.Service.Attributes Enabled b false
Signed-off-by: Chicago Duan <duanzhijia01@inspur.com> Change-Id: Iba7ffb541628d563e2c54c3e1c8c4dbe85f1507b
|
/openbmc/service-config-manager/inc/ |
H A D | srvcfg_manager.hpp | 25a0f634 Thu Nov 11 02:32:07 CST 2021 Chicago Duan <duanzhijia01@inspur.com> ADD USB Code Update enable/disable
phosphor_usb_code_update is an application that use USB to do FW update. phosphor_usb_code_update service is not a daemon, but an app that will be called after inserting a USB flash disk.
This commit creates an object of phosphor_usb_code_update when phosphor_usb_code_update is not started. We can enable/disable phosphor_usb_code_update by setting the "Enabled" property to true/false.
Please configure the “usb-code-update” option in your bb/bbappend to enable this feature.
For phosphor_usb_code_update, useful rules files is /lib/udev/rules.d/70-bmc-usb.rules. When usb code update is disabled, srvcfg_manager creates an empty symlink /etc/udev/rules.d/70-bmc-usb.rules, which causes /lib/udev/rules.d/70-bmc-usb.rules inoperative. When usb code update is enabled, srvcfg_manager deletes /etc/udev/rules.d/70-bmc-usb.rules.
The commits of phosphor_usb_code_update is: https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-bmc-code-mgmt/+/48742/1
Test: get "Enabled" property: busctl get-property xyz.openbmc_project.Control.Service.Manager /xyz/openbmc_project/control/service/phosphor_2dusb_2dcode_2dupdate xyz.openbmc_project.Control.Service.Attributes Enabled b true
set "Enabled" property to false: busctl set-property xyz.openbmc_project.Control.Service.Manager /xyz/openbmc_project/control/service/phosphor_2dusb_2dcode_2dupdate xyz.openbmc_project.Control.Service.Attributes Enabled b false
busctl get-property xyz.openbmc_project.Control.Service.Manager /xyz/openbmc_project/control/service/phosphor_2dusb_2dcode_2dupdate xyz.openbmc_project.Control.Service.Attributes Enabled b false
The "Enabled" property will be persisted,reboot the BMC, then get the "Enabled" property: busctl get-property xyz.openbmc_project.Control.Service.Manager /xyz/openbmc_project/control/service/phosphor_2dusb_2dcode_2dupdate xyz.openbmc_project.Control.Service.Attributes Enabled b false
Signed-off-by: Chicago Duan <duanzhijia01@inspur.com> Change-Id: Iba7ffb541628d563e2c54c3e1c8c4dbe85f1507b
|
/openbmc/service-config-manager/src/ |
H A D | srvcfg_manager.cpp | 25a0f634 Thu Nov 11 02:32:07 CST 2021 Chicago Duan <duanzhijia01@inspur.com> ADD USB Code Update enable/disable
phosphor_usb_code_update is an application that use USB to do FW update. phosphor_usb_code_update service is not a daemon, but an app that will be called after inserting a USB flash disk.
This commit creates an object of phosphor_usb_code_update when phosphor_usb_code_update is not started. We can enable/disable phosphor_usb_code_update by setting the "Enabled" property to true/false.
Please configure the “usb-code-update” option in your bb/bbappend to enable this feature.
For phosphor_usb_code_update, useful rules files is /lib/udev/rules.d/70-bmc-usb.rules. When usb code update is disabled, srvcfg_manager creates an empty symlink /etc/udev/rules.d/70-bmc-usb.rules, which causes /lib/udev/rules.d/70-bmc-usb.rules inoperative. When usb code update is enabled, srvcfg_manager deletes /etc/udev/rules.d/70-bmc-usb.rules.
The commits of phosphor_usb_code_update is: https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-bmc-code-mgmt/+/48742/1
Test: get "Enabled" property: busctl get-property xyz.openbmc_project.Control.Service.Manager /xyz/openbmc_project/control/service/phosphor_2dusb_2dcode_2dupdate xyz.openbmc_project.Control.Service.Attributes Enabled b true
set "Enabled" property to false: busctl set-property xyz.openbmc_project.Control.Service.Manager /xyz/openbmc_project/control/service/phosphor_2dusb_2dcode_2dupdate xyz.openbmc_project.Control.Service.Attributes Enabled b false
busctl get-property xyz.openbmc_project.Control.Service.Manager /xyz/openbmc_project/control/service/phosphor_2dusb_2dcode_2dupdate xyz.openbmc_project.Control.Service.Attributes Enabled b false
The "Enabled" property will be persisted,reboot the BMC, then get the "Enabled" property: busctl get-property xyz.openbmc_project.Control.Service.Manager /xyz/openbmc_project/control/service/phosphor_2dusb_2dcode_2dupdate xyz.openbmc_project.Control.Service.Attributes Enabled b false
Signed-off-by: Chicago Duan <duanzhijia01@inspur.com> Change-Id: Iba7ffb541628d563e2c54c3e1c8c4dbe85f1507b
|
H A D | main.cpp | 25a0f634 Thu Nov 11 02:32:07 CST 2021 Chicago Duan <duanzhijia01@inspur.com> ADD USB Code Update enable/disable
phosphor_usb_code_update is an application that use USB to do FW update. phosphor_usb_code_update service is not a daemon, but an app that will be called after inserting a USB flash disk.
This commit creates an object of phosphor_usb_code_update when phosphor_usb_code_update is not started. We can enable/disable phosphor_usb_code_update by setting the "Enabled" property to true/false.
Please configure the “usb-code-update” option in your bb/bbappend to enable this feature.
For phosphor_usb_code_update, useful rules files is /lib/udev/rules.d/70-bmc-usb.rules. When usb code update is disabled, srvcfg_manager creates an empty symlink /etc/udev/rules.d/70-bmc-usb.rules, which causes /lib/udev/rules.d/70-bmc-usb.rules inoperative. When usb code update is enabled, srvcfg_manager deletes /etc/udev/rules.d/70-bmc-usb.rules.
The commits of phosphor_usb_code_update is: https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-bmc-code-mgmt/+/48742/1
Test: get "Enabled" property: busctl get-property xyz.openbmc_project.Control.Service.Manager /xyz/openbmc_project/control/service/phosphor_2dusb_2dcode_2dupdate xyz.openbmc_project.Control.Service.Attributes Enabled b true
set "Enabled" property to false: busctl set-property xyz.openbmc_project.Control.Service.Manager /xyz/openbmc_project/control/service/phosphor_2dusb_2dcode_2dupdate xyz.openbmc_project.Control.Service.Attributes Enabled b false
busctl get-property xyz.openbmc_project.Control.Service.Manager /xyz/openbmc_project/control/service/phosphor_2dusb_2dcode_2dupdate xyz.openbmc_project.Control.Service.Attributes Enabled b false
The "Enabled" property will be persisted,reboot the BMC, then get the "Enabled" property: busctl get-property xyz.openbmc_project.Control.Service.Manager /xyz/openbmc_project/control/service/phosphor_2dusb_2dcode_2dupdate xyz.openbmc_project.Control.Service.Attributes Enabled b false
Signed-off-by: Chicago Duan <duanzhijia01@inspur.com> Change-Id: Iba7ffb541628d563e2c54c3e1c8c4dbe85f1507b
|