#
dd003f54 |
| 13-Aug-2024 |
Jagpal Singh Gill <paligill@gmail.com> |
add bios update support
The BIOS would be updated using multipart-form update as HTTP Push URI is being default used for BMC updates.
Tested: ``` > curl -k -H "X-Auth-Token: $token" -X GET https://
add bios update support
The BIOS would be updated using multipart-form update as HTTP Push URI is being default used for BMC updates.
Tested: ``` > curl -k -H "X-Auth-Token: $token" -X GET https://${bmc}/redfish/v1/UpdateService/FirmwareInventory/bios_active { "@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/bios_active", "@odata.type": "#SoftwareInventory.v1_1_0.SoftwareInventory", "Description": "Host image", "Id": "bios_active", "Name": "Software Inventory", "RelatedItem": [ { "@odata.id": "/redfish/v1/Systems/system/Bios" } ], "RelatedItem@odata.count": 1, "Status": { "Health": "OK", "HealthRollup": "OK", "State": "Enabled" }, "Updateable": true, "Version": "null" }
> curl -k -H "X-Auth-Token: $token" -H "Content-Type:multipart/form-data" -X POST -F UpdateParameters="{\"Targets\":[\"/redfish/v1/UpdateService/FirmwareInventory/bios_active\"],\"@Redfish.OperationApplyTime\":\"OnReset\"};type=appli cation/json" -F "UpdateFile=@bios_image.tar;type=application/octet-stream" https://${bmc}/redfish/v1/UpdateService/update { "@odata.id": "/redfish/v1/TaskService/Tasks/0", "@odata.type": "#Task.v1_4_3.Task", "Id": "0", "TaskState": "Running", "TaskStatus": "OK" }
> curl -k -H "X-Auth-Token: $token" -X GET https://${bmc}/redfish/v1/UpdateService/FirmwareInventory/bios_active { "@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/bios_active", "@odata.type": "#SoftwareInventory.v1_1_0.SoftwareInventory", "Description": "Host image", "Id": "bios_active", "Name": "Software Inventory", "RelatedItem": [ { "@odata.id": "/redfish/v1/Systems/system/Bios" } ], "RelatedItem@odata.count": 1, "Status": { "Health": "OK", "HealthRollup": "OK", "State": "Enabled" }, "Updateable": true, "Version": "2.17.0-dev-703-g61fd99b720-TestBios" } ```
Change-Id: I213e28d7d1a00aa15f695ab855a96961113548ae Signed-off-by: Jagpal Singh Gill <paligill@gmail.com>
show more ...
|
#
2431e7f6 |
| 08-Apr-2024 |
Jagpal Singh Gill <paligill@gmail.com> |
start-update-interface: add software_utils
Refactor and move the common code into software_utils namespace. Add new untar API which untars from a unix_fd. This change is based on - https://gerrit.op
start-update-interface: add software_utils
Refactor and move the common code into software_utils namespace. Add new untar API which untars from a unix_fd. This change is based on - https://gerrit.openbmc.org/c/openbmc/phosphor-dbus-interfaces/+/65738 https://gerrit.openbmc.org/c/openbmc/docs/+/65739
Change-Id: Ifcbf78a06ef482ca7c7765efd5c24a533399b979 Signed-off-by: Jagpal Singh Gill <paligill@gmail.com>
show more ...
|
#
bb024eba |
| 08-Apr-2024 |
Jagpal Singh Gill <paligill@gmail.com> |
start-update-interface: item_updater & activation
Refactor item_updater so new update-manager module can call create the required interfaces such as version, activation etc for the incoming update r
start-update-interface: item_updater & activation
Refactor item_updater so new update-manager module can call create the required interfaces such as version, activation etc for the incoming update request. To facilitate this, new APIs are exposed and useUpdateDBusInterface is added to class constructor so required initializations can be performed accordingly. useUpdateDBusInterface helps to skip D-Bus callback registration for new software interfaces as item_updater will rely on start update D-Bus interface for intercepting image update requests. The apply time will be passed to the software manager via start update interface, so this patch adds an apply time parameter to the activation class. checkApplyTimeImmediate() can decide based on useUpdateDBusInterface whether to use the ApplyTime value from activation class or get it from the Settingsd for the old legacy flow. This change is based on - https://gerrit.openbmc.org/c/openbmc/phosphor-dbus-interfaces/+/65738 https://gerrit.openbmc.org/c/openbmc/docs/+/65739
Change-Id: I8477b0850f0a18630c197774bfa076d4c98096b1 Signed-off-by: Jagpal Singh Gill <paligill@gmail.com>
show more ...
|
#
bf2bb2b1 |
| 22-Jul-2022 |
Patrick Williams <patrick@stwcx.xyz> |
sdbusplus: use shorter type aliases
The sdbusplus headers provide shortened aliases for many types. Switch to using them to provide better code clarity and shorter lines. Possible replacements are
sdbusplus: use shorter type aliases
The sdbusplus headers provide shortened aliases for many types. Switch to using them to provide better code clarity and shorter lines. Possible replacements are for: * bus_t * exception_t * manager_t * match_t * message_t * object_t * slot_t
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I96286490697ce5d7fecc1c9c358f5f1d054137ec
show more ...
|
#
25868189 |
| 14-May-2021 |
Lei YU <yulei.sh@bytedance.com> |
bios: Delete uploaded DBus object after update When the BIOS code update is completed, delete the uploaded DBus object so that only the "bios_active" object remains. Otherwise it lea
bios: Delete uploaded DBus object after update When the BIOS code update is completed, delete the uploaded DBus object so that only the "bios_active" object remains. Otherwise it leaves the uploaded DBus object that does not reflect a real thing. Tested: Verify only bios_active remains and the uploaded BIOS object is deleted from DBus, and it is possible to upload and update the same BIOS tarball for multieple times. Signed-off-by: Lei YU <yulei.sh@bytedance.com> Change-Id: I18e76238821f48a3b322594bb359fcb37f28f397
show more ...
|
#
292159f4 |
| 05-May-2020 |
Adriana Kobylak <anoo@us.ibm.com> |
meson: Fix compile errors Meson runs stricter compiler checks. Fix the following errors in preparation to moving to meson: - Unusued parameters. Ex: ../download_manager_main
meson: Fix compile errors Meson runs stricter compiler checks. Fix the following errors in preparation to moving to meson: - Unusued parameters. Ex: ../download_manager_main.cpp:7:14: error: unused parameter ‘argc’ [-Werror=unused-parameter] ../static/item_updater_helper.cpp:16:42: error: unused parameter ‘entryId’ [-Werror=unused-parameter] ../watch.cpp:77:38: error: unused parameter ‘s’ [-Werror=unused-parameter] [test/utest.cpp:166]: (style) Variable 'pubKeyConfFile' is assigned a value that is never used. - Add destructor and initialize variable in init list: ../flash.hpp:18:7: error: ‘class phosphor::software::updater::Flash’ has virtual functions and accessible non-virtual destructor [-Werror=non-virtual-dtor] [version.hpp:81]: callback is assigned in constructor body. Consider performing initialization in initialization list Tested: Verified code update on witherspoon still worked. Change-Id: Ib7a0e0e11d6bfe6eeeb3f2ea4bfefd43505d639e Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
show more ...
|
#
b0ce996a |
| 07-Sep-2018 |
Gunnar Mills <gmills@us.ibm.com> |
clang-format: Update to match docs repo Update the .clang-format file. Now includes header sorting and updating PointerAlignment. Change-Id: I5c7690d8d83cdebe26ff3a73b90a2a8c17d
clang-format: Update to match docs repo Update the .clang-format file. Now includes header sorting and updating PointerAlignment. Change-Id: I5c7690d8d83cdebe26ff3a73b90a2a8c17dd8054 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
show more ...
|
#
37a59043 |
| 12-Jul-2017 |
Michael Tritz <mtritz@us.ibm.com> |
Item Updater: Implement BMC factory reset This commit implements the generic factory reset interface for the BMC software updater. When the reset function is called, a service file is
Item Updater: Implement BMC factory reset This commit implements the generic factory reset interface for the BMC software updater. When the reset function is called, a service file is called which sets the environmental variable to reset the RW volume. Change-Id: Ic69b5d145edd654ed75295a9e9aeef9f53779dad Signed-off-by: Michael Tritz <mtritz@us.ibm.com>
show more ...
|