#
d5e8e73b |
| 10-May-2023 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest .clang-format from the docs repository and reformat the repository.
Change-Id: I50e60f2b1a9db9039cb5450ae509064eaeaa9d2e Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
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 ...
|
#
25773a7e |
| 21-Jan-2022 |
Adriana Kobylak <anoo@us.ibm.com> |
Use flash id to write image to flash
Update the item updater helper functions to take the flash id instead of the version id since flash id is the name of the volumes/partitions.
The flash id was b
Use flash id to write image to flash
Update the item updater helper functions to take the flash id instead of the version id since flash id is the name of the volumes/partitions.
The flash id was being persisted for the mmc layout with the name of "partlabel". This is not needed anymore since the flash id is now being passed by the service files.
The write functions/service files still use the version id to know where the image files are located in /tmp/. They then set the value of flash id (Path property) which is then used by the other functions such as Delete and setting the u-boot environment variables.
Tested: Code update and Delete functions work on ubi and mmc.
Change-Id: I87c5b8ae2e24af30256dc3b436859835f14cda05 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
show more ...
|
#
4ce901c5 |
| 02-Sep-2021 |
Patrick Williams <patrick@stwcx.xyz> |
exception: switch to public sdbus exception SdBusError was intended to be a private error type inside sdbusplus. Switch all catch locations to use the general sdbusplus::exception type.
exception: switch to public sdbus exception SdBusError was intended to be a private error type inside sdbusplus. Switch all catch locations to use the general sdbusplus::exception type. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I25679cac0b64183f7b8508edb21609d64334e319
show more ...
|
#
2af0fdfb |
| 01-Sep-2021 |
Adriana Kobylak <anoo@us.ibm.com> |
ubi: Fix log typo Change-Id: Iee15ac756149bfc34d92b7b7da85ced205baabd6 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
|
#
c9bb6425 |
| 27-Aug-2021 |
Patrick Williams <patrick@stwcx.xyz> |
logging: switch to lg2 Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Id62fbc10ab83a0cf94d235e1d1ea3e031295fbf5
|
#
56ec62e2 |
| 20-Jan-2021 |
Adriana Kobylak <anoo@us.ibm.com> |
reset: Call execute() instead of systemd service The obmc-flash-bmc-setenv@.service file calls a script that runs the fw_setenv command. Call the fw_setenv command directly as an eff
reset: Call execute() instead of systemd service The obmc-flash-bmc-setenv@.service file calls a script that runs the fw_setenv command. Call the fw_setenv command directly as an effort to move away from systemd service calls which are async calls and are harder to monitor for completion. The only difference is that the script calls fw_setenv twice because for certain variables such as field mode, the code parses the actual environment file to get the value, and if the system supports a redundant environment, then fw_setenv is needed to be called twice so that the updated value is reflected in both redundant copies and the code parses the value correctly. Factory reset is not a value that is parsed by this code, so a single call is enough. Tested: Verified in witherspoon that the rwreset environment variable was set and factory reset occurred upon reboot. Change-Id: I76691b1c8c78aa9232074d10d435a3e944b1cd9a Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
show more ...
|
#
22848ece |
| 28-Oct-2019 |
Adriana Kobylak <anoo@us.ibm.com> |
Move function to enable field mode to common code The only different between ubi and static layout for setting field mode was masking the usr-local.mount service file. Now that the servi
Move function to enable field mode to common code The only different between ubi and static layout for setting field mode was masking the usr-local.mount service file. Now that the service file is in the common code, it makes sense to move the function to the common code. Tested: - Witherspoon: Verified setting field mode disabled the /usr/local mount as it currently does. - Romulus: Verified that after setting the field mode, the usr-local.mount service file could not be started because it's masked. Change-Id: I8afb755366053c38f72d682e874308c42e232d98 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
show more ...
|
#
3b6a4cd7 |
| 10-Dec-2018 |
Adriana Kobylak <anoo@us.ibm.com> |
Remove deprecated is_method_error code The is_method_error() function is no longer needed, instead a try-catch block should be used instead. Reference: https://lists.ozlabs.org/p
Remove deprecated is_method_error code The is_method_error() function is no longer needed, instead a try-catch block should be used instead. Reference: https://lists.ozlabs.org/pipermail/openbmc/2018-October/013696.html, Change-Id: I1919ea33fc18be2b8afd51fb1f85ddef15041e7c 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 ...
|
#
bbcb7be1 |
| 17-Jul-2018 |
Adriana Kobylak <anoo@us.ibm.com> |
Move setting the priority U-Boot variable to ubi The service that sets the priority value is unique to the ubi layout because there is only one version at a time on the static layout
Move setting the priority U-Boot variable to ubi The service that sets the priority value is unique to the ubi layout because there is only one version at a time on the static layout. Move the calling of the service to the ubi implementation. Tested: - Witherspoon: Priorities are still set. - Romulus: The BMC.Updater app does not core dump with the latest sdbusplus changes due to calling a non-existent service. Change-Id: Ica1c68f00d5cb43c51ee09c5a3851613edf941d5 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
show more ...
|
#
56aaf454 |
| 21-Jun-2018 |
Lei YU <mine260309@gmail.com> |
item_updater: sort ubi specific code Add item_updater_helper and implement it in ubi and static layouts. Tested: Build this repo on both Romulus and Witherspoon OK; Test
item_updater: sort ubi specific code Add item_updater_helper and implement it in ubi and static layouts. Tested: Build this repo on both Romulus and Witherspoon OK; Tested on Romulus and Witherspoon that code update works fine. Change-Id: I706cfe63900f89bb41672dcc745b3483e06838c7 Signed-off-by: Lei YU <mine260309@gmail.com>
show more ...
|