32e9ea16 | 01-Feb-2025 |
Patrick Williams <patrick@stwcx.xyz> |
meson: reformat with meson formatter
Apply the `meson format` results.
Change-Id: I116103d8e0994e09ecb6381f5bb7d564608826b2 Signed-off-by: Patrick Williams <patrick@stwcx.xyz> |
3d73712f | 01-Feb-2025 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: update latest spec and reformat
Copy the latest format file from the docs repository and apply.
Change-Id: If81a5a0bc8458a6feb94ba5c52adbe7294d43475 Signed-off-by: Patrick Williams <p
clang-format: update latest spec and reformat
Copy the latest format file from the docs repository and apply.
Change-Id: If81a5a0bc8458a6feb94ba5c52adbe7294d43475 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
edbf17d7 | 18-Dec-2024 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: re-format for clang-19
clang-format-19 isn't compatible with the clang-format-18 output, so we need to reformat the code with the latest version. A few parameters in clang-tidy have b
clang-format: re-format for clang-19
clang-format-19 isn't compatible with the clang-format-18 output, so we need to reformat the code with the latest version. A few parameters in clang-tidy have been deprecated, so adjust the style file accordingly.
See Ie2f6eb3b043f2d655c9df806815afd7971fd0947 for updated style. See I88192b41ab7a95599a90915013579608af7bc56f for clang-19 enablement.
Change-Id: I9338e3aa3377d6e02a786b858a40e95c62fd35a0 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
42a44c28 | 16-Aug-2024 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we need to reformat the code with the latest version. The way clang-18 handles lambda forma
clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we need to reformat the code with the latest version. The way clang-18 handles lambda formatting also changed, so we have made changes to the organization default style format to better handle lambda formatting.
See I5e08687e696dd240402a2780158664b7113def0e for updated style. See Iea0776aaa7edd483fa395e23de25ebf5a6288f71 for clang-18 enablement.
Change-Id: I09e19a126d456dc184fd70e82d4e4e4217fa8ee7 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
3f596287 | 12-Apr-2024 |
Willy Tu <wltu@google.com> |
handler: Support more retry logic
Add retry logic for more methods that may fail due to unstable ipmi interfaces. Also added one seconds sleep in between retries to allow some time for the interface
handler: Support more retry logic
Add retry logic for more methods that may fail due to unstable ipmi interfaces. Also added one seconds sleep in between retries to allow some time for the interface to be initialized.
Tested: Updated BMC firmware with the new tool and didn't have any regression.
Change-Id: Ifc4155dd895f1a654da9e03f17e4c1e8613c9133 Signed-off-by: Willy Tu <wltu@google.com>
show more ...
|
a9423469 | 20-Oct-2023 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: copy latest and re-format
clang-format-17 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-17 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: Ie6154ef3394b8e652a8cb1ac33d68e3c3cec8cd8 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
1038836c | 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: I2ee8cbc4581d0c3ccdc130b646357c45fa0373db Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
1b23b772 | 15-Mar-2023 |
Willy Tu <wltu@google.com> |
Add retry to sendFile handler
In cases where the ipmi interface is interrupted, we want to be able to recover automatically without having to retrigger it again. For example, this may happen if the
Add retry to sendFile handler
In cases where the ipmi interface is interrupted, we want to be able to recover automatically without having to retrigger it again. For example, this may happen if the ipminet interface gets reconfigure in the middle of transfering an image.
The inital goal was to have the retry for ipminet only with and restart at the remaining data instead of from the beginning. The issue there is that we needed to restart the ipmi blob session to write again and doing so will clear out the existing written data. When trying to write to existing session will caused the update to be stalled and required a ipmi restart to recover.
Tested: images is able to be tranfered fully and validated after we interrupted the ipminet interface in the middle.
Change-Id: Id734f6a92625bc6a1256fea010fb4b068f7bf1d5 Signed-off-by: Willy Tu <wltu@google.com>
show more ...
|
9bb21e3e | 08-Apr-2022 |
William A. Kennington III <wak@google.com> |
tools/net: Handle files which don't support sendfile
This adds a fallback read / write model.
Tested: ran against non-sendfile compatible file and it sent to the BMC successfully.
Change-Id: I6fd7
tools/net: Handle files which don't support sendfile
This adds a fallback read / write model.
Tested: ran against non-sendfile compatible file and it sent to the BMC successfully.
Change-Id: I6fd781ad19cd37376ca90743f799988e50ed460e Signed-off-by: William A. Kennington III <wak@google.com> Signed-off-by: Willy Tu <wltu@google.com>
show more ...
|
28c00d6e | 27-Apr-2022 |
Patrick Williams <patrick@stwcx.xyz> |
span: switch to std
Reduce the dependency on stdplus' version of span now that we are using C++20 and use the one out of the STL instead.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-
span: switch to std
Reduce the dependency on stdplus' version of span now that we are using C++20 and use the one out of the STL instead.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I040ba1796d6f278353fbc990ea6b62314927951e
show more ...
|
99d292a3 | 08-Feb-2022 |
Willy Tu <wltu@google.com> |
phosphor-ipmi-flash: Code Health Cleanup
Removed the following warning. - using decl '*' is unused - 'push_back' is called inside a loop; consider pre-allocating the container capacity before th
phosphor-ipmi-flash: Code Health Cleanup
Removed the following warning. - using decl '*' is unused - 'push_back' is called inside a loop; consider pre-allocating the container capacity before the loop - function '*' defined in a header file; function definitions in header files can lead to ODR violations
Change-Id: I44e4b0f8056a853fb45b690394be1a8ebec45b20 Signed-off-by: Willy Tu <wltu@google.com>
show more ...
|
2862421c | 09-Nov-2021 |
Patrick Venture <venture@google.com> |
tools/test: delete now returns a boolean
Updates the test mock expectation to return a boolean.
Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I8f10a1b561900295b2613317c09de688a4d9d
tools/test: delete now returns a boolean
Updates the test mock expectation to return a boolean.
Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I8f10a1b561900295b2613317c09de688a4d9d944
show more ...
|
35b77c9b | 13-Sep-2021 |
Willy Tu <wltu@google.com> |
build: remove autotool
Change-Id: I662c8a5d29453622744f44c1984416f1303354e6 Signed-off-by: Willy Tu <wltu@google.com> |
bcae9002 | 12-Sep-2021 |
Willy Tu <wltu@google.com> |
build: Add meson build
Changes to note, - `with_systemdsystemunitdir` and `with_tmpfilesdir` is removed since it is not being documented nor used in OpenBMC. - Removed the Code coverage feature wi
build: Add meson build
Changes to note, - `with_systemdsystemunitdir` and `with_tmpfilesdir` is removed since it is not being documented nor used in OpenBMC. - Removed the Code coverage feature with `-DDHAVE_GCOV`, since it is not used and meson covers it. - Removed `--enable-oe-sdk` for using the OpenBMC SDK. It should work directly with no change required.
Tested: ``` Jan 01 00:01:54 ipmid[709]: Try loading blob from persistent data Jan 01 00:01:54 ipmid[709]: Stale blob data, resetting internals... Jan 01 00:01:56 ipmid[709]: config loaded: /flash/bios Jan 01 00:01:56 ipmid[709]: config loaded: /flash/image Jan 01 00:01:56 ipmid[709]: config loaded: /flash/dummy ... ```
``` $ ls /usr/lib/blob-ipmid/ libfirmwareblob.so libfirmwarecleanupblob.so libversionblob.so ```
Testing the service, ``` $ echo "hello" > /tmp/test.txt $ burn_my_bmc -command update -layout dummy -image /tmp/test.txt Sending over the firmware image. Opening the verification file Committing to /flash/verify to trigger service Calling stat on /flash/verify session to check status running success Returned success succeeded ```
On the BMC. ``` /run/initramfs$ cat dummy hello ```
Change-Id: I21c7c33bd62c0ee40681cb40da90125c125bea2f Signed-off-by: Willy Tu <wltu@google.com>
show more ...
|
f88bcf3b | 14-Oct-2021 |
William A. Kennington III <wak@google.com> |
tools/helper: Streamline return types
These functions can already return exceptions, so make better use of them for reporting failures.
Change-Id: I572e9e3ee44bbd5add601f3246bb4f95cb9308bf Signed-o
tools/helper: Streamline return types
These functions can already return exceptions, so make better use of them for reporting failures.
Change-Id: I572e9e3ee44bbd5add601f3246bb4f95cb9308bf Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
9b7a3b4f | 11-Oct-2021 |
Willy Tu <wltu@google.com> |
tools: Support empty image file and ignore the fileSize check
Removed the unit test for checking file size of zero.
Tested:
Sending `/dev/null` and still works fine.
Change-Id: Ibbde4fd430d9550fb
tools: Support empty image file and ignore the fileSize check
Removed the unit test for checking file size of zero.
Tested:
Sending `/dev/null` and still works fine.
Change-Id: Ibbde4fd430d9550fb7b75b6a583a53d4425d8075 Signed-off-by: Willy Tu <wltu@google.com>
show more ...
|
b487eb47 | 16-Sep-2021 |
Willy Tu <wltu@google.com> |
phosphor-ipmi-flash: Fix all C++ warnings
Change-Id: I89236b2dab88ca725e269bb8f5b2cbfd271e807a Signed-off-by: Willy Tu <wltu@google.com> |
203ad804 | 09-Sep-2021 |
Willy Tu <wltu@google.com> |
updater: Cleanup Active blob to support multiple stages
Without the change, the update will fail due to existing active blob. ``` ./burn_my_bmc --command update --interface ipmipci \ --image test
updater: Cleanup Active blob to support multiple stages
Without the change, the update will fail due to existing active blob. ``` ./burn_my_bmc --command update --interface ipmipci \ --image test.txt --sig test.txt --type bios Sending over the firmware image. sendFile with /flash/bios and test.txt Opening the cleanup blob Committing to the cleanup blob Closing cleanup blob Exception received: blob exception received: Received IPMI_CC: 255 ```
With the Change, it will delete the active blob to continue the update. ``` ./burn_my_bmc --command update --interface ipmipci \ --image test.txt --sig test.txt --type bios Found an active blob, deleting /flash/active/image Opening the cleanup blob Committing to the cleanup blob Closing cleanup blob Committing to the cleanup blob Closing cleanup blob Sending over the firmware image. sendFile with /flash/bios and test.txt 000Find [0x1050 0x750] bar0[0x90100000] Progress: 100.00% 001Sending over the hash file. sendFile with /flash/hash and test.txt 000Find [0x1050 0x750] bar0[0x90100000] Progress: 100.00% 001Opening the verification file Committing to /flash/verify to trigger service Calling stat on /flash/verify session to check status running running failed Returned non-success (could still be running (unlikely)) failed Opening the cleanup blob Committing to the cleanup blob Closing cleanup blob Exception received: Verification failed ```
Signed-off-by: Willy Tu <wltu@google.com> Change-Id: I46a802c7faece60a9b5354db47860e796af99107
show more ...
|
f450486f | 25-Apr-2021 |
Willy Tu <wltu@google.com> |
test: Replace the C++ MOCK_METHOD<n> macros with the new MOCK_METHOD
Change-Id: I5099c727e9e918f19fa61acc91ef75250ebc6fa6 Signed-off-by: Willy Tu <wltu@google.com> |
d6b337e6 | 16-Apr-2021 |
Patrick Venture <venture@google.com> |
tools: split io interface out
Splits the io interface out into its own file to decouple the internal/sys from it.
Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I65860e32152ef49cd98
tools: split io interface out
Splits the io interface out into its own file to decouple the internal/sys from it.
Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I65860e32152ef49cd987c11eb408516e13fadb29
show more ...
|
328f520f | 16-Mar-2021 |
Jie Yang <jjy@google.com> |
tools/handler: Read the running version
A host tool would read the running firmware version through polling the version blob state.
Signed-off-by: Jie Yang <jjy@google.com> Change-Id: I0d68fff6527c
tools/handler: Read the running version
A host tool would read the running firmware version through polling the version blob state.
Signed-off-by: Jie Yang <jjy@google.com> Change-Id: I0d68fff6527cd52360abee1cb225a8f228d68392
show more ...
|
c7fa2c28 | 18-Feb-2021 |
Vivekanand Veeracholan <vveerach@google.com> |
tools/pci: Replace memcpy on pci write with aligned copy
memcpy() does unaligned access. Using it for device memory causes exception (SIGBUS). Replace the memcpy in PciAccessBridge::write with align
tools/pci: Replace memcpy on pci write with aligned copy
memcpy() does unaligned access. Using it for device memory causes exception (SIGBUS). Replace the memcpy in PciAccessBridge::write with aligned copy.
Signed-off-by: Vivekanand Veeracholan <vveerach@google.com> Change-Id: I8e573715dc8971be547d882ce3cb6de31b2620e4
show more ...
|
55b1a71d | 18-Feb-2021 |
Vivekanand Veeracholan <vveerach@google.com> |
tools/pci: Use pci_device_enable() to enable bridge
Enabling the bridge by writing to the PCI config space does not enable all the host resources required. Use pci_device_enable api.
Signed-off-by:
tools/pci: Use pci_device_enable() to enable bridge
Enabling the bridge by writing to the PCI config space does not enable all the host resources required. Use pci_device_enable api.
Signed-off-by: Vivekanand Veeracholan <vveerach@google.com> Change-Id: I159a132b76eadc569efb8fb47488a4abd4c27404
show more ...
|
53ecd290 | 25-Jan-2021 |
William A. Kennington III <wak@google.com> |
tools: Make progress bar starting more consistent
Change-Id: I0bfa967efa1c350551dd7b68f9fd72695db638c7 Signed-off-by: William A. Kennington III <wak@google.com> |
0d5bb784 | 19-Jan-2021 |
William A. Kennington III <wak@google.com> |
tools/progress: Add finish and abort functions
We have external progress handlers which would like to implement these functions, in order to update the screen upon completion or error.
Change-Id: I
tools/progress: Add finish and abort functions
We have external progress handlers which would like to implement these functions, in order to update the screen upon completion or error.
Change-Id: I2df4654d5e2092407a83d2c8bbb020dcce84ac50 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|