#
444b5ea4 |
| 19-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: I0a1783b101aa4e7d4b80fd5e1fc1b2beb86c5caa
show more ...
|
#
b4e3704c |
| 12-Oct-2021 |
Willy Tu <wltu@google.com> |
google-ipmi-sys: Convert input to use std::span<const uint8_t>
Change-Id: I533de34c04e3d2577cb9076add441153b2994c30 Signed-off-by: Willy Tu <wltu@google.com>
|
#
ff3cd8e9 |
| 15-Sep-2021 |
Willy Tu <wltu@google.com> |
google-ipmi-sys: Refactor to use new version of OEM IPMI Handler
Using the new version of ipmi handler provide a higher level wrapper over the same functionalities. It helps us parse the input and o
google-ipmi-sys: Refactor to use new version of OEM IPMI Handler
Using the new version of ipmi handler provide a higher level wrapper over the same functionalities. It helps us parse the input and output to have more control of the input/output we see.
The input and output will be `std::uint8_t, std::optional<std::vector<uint8_t>>`.
This represents `subcommand` and any input data.
Changes to note, - all subcommand in the request/response struct are removed. It will be managed by the wrapper directly. - Unit tests checking for input with only the subcommand are removed. - Move all reply struct to header files to be accessible in unit test.
Tested: All IPMI OEM command still works the same as before this change.
Change-Id: I4230ab84a497a867248fe82224e32cc69b314b64 Signed-off-by: Willy Tu <wltu@google.com>
show more ...
|
#
a2056e9c |
| 10-Oct-2021 |
Willy Tu <wltu@google.com> |
Add Google Copyright 2021
Change-Id: I26020265613218d0c8df85b83772856bfc555e86 Signed-off-by: Willy Tu <wltu@google.com>
|
#
3b1b427c |
| 02-Mar-2021 |
Willy Tu <wltu@google.com> |
Add OEM command to request flash size
The BMC flash is `/dev/mtd0` and the size can found in `/sys/class/mtd/mtd0/size`. This OEM command will request that information with MTDINFO.
Tested: Success
Add OEM command to request flash size
The BMC flash is `/dev/mtd0` and the size can found in `/sys/class/mtd/mtd0/size`. This OEM command will request that information with MTDINFO.
Tested: Successfully requested the flash size information with ipmitool.
``` cat /sys/class/mtd/mtd0/size 67108864 ``` 67108864 / 1024 / 1024 = 64MB flash
``` ipmitool raw 0x2e 0x32 0x79 0x2b 0x00 0x09 79 2b 00 09 00 00 00 04 ``` Output in little endian. 0x04000000 -> 67108864
Change-Id: Iec1b33503d1166a42ceef4b8491e5c19c3a077fe Signed-off-by: Willy Tu <wltu@google.com>
show more ...
|