| 10c57656 | 30-Sep-2025 |
Ed Tanous <etanous@nvidia.com> |
Allow decoding MAC addresses in some FRUs
Some motherboards store their mac address in a zlib compressed chunk at a known location in the FRU. Decode that section, and pull the mac address into the
Allow decoding MAC addresses in some FRUs
Some motherboards store their mac address in a zlib compressed chunk at a known location in the FRU. Decode that section, and pull the mac address into the appropriate field.
This requires some refactoring so that the indexing can now have the indexes passed through the various parse functions.
To use this functionality requires the use of libxml and zlib, which are added as new dependencies.
Change-Id: Icb5c2e46e2a08ca83b3559892169ee2b3f319b2e Signed-off-by: Ed Tanous <etanous@nvidia.com>
show more ...
|
| 8feb0454 | 15-Sep-2025 |
Alexander Hansen <alexander.hansen@9elements.com> |
use phosphor-logging
Migrate all instances of std::cerr and std::cout to phosphor-logging such as lg2::error, lg2::info, lg2::debug, ...
The use of modern logging infrastructure helps with developm
use phosphor-logging
Migrate all instances of std::cerr and std::cout to phosphor-logging such as lg2::error, lg2::info, lg2::debug, ...
The use of modern logging infrastructure helps with development since additional logging levels such as `debug` and `warning` are available.
Migrating the remaining logging calls helps to make the code more readable and uniform.
Tested: Inspection, and on Tyan S8030
Restarted EM with patch applied. Logs appear as usual.
``` Sep 15 13:52:46 s8030-bmc-30303035c0c1 entity-manager[23480]: Inventory Added: Supermicro PWS 920P SQ 0 Sep 15 13:52:46 s8030-bmc-30303035c0c1 entity-manager[23480]: Inventory Added: Supermicro PWS 920P SQ 1 Sep 15 13:52:46 s8030-bmc-30303035c0c1 entity-manager[23480]: Inventory Added: Tyan S8030 Baseboard Sep 15 13:52:46 s8030-bmc-30303035c0c1 entity-manager[23480]: Inventory Added: MBX 1.57 Chassis ```
`busctl tree` output appears as before.
Did a power cycle to trigger a few more log prints
``` Sep 15 13:55:14 s8030-bmc-30303035c0c1 entity-manager[23480]: power match triggered ```
Created configuration file with missing fields to trigger error print. ``` { "Exposes": [], "Type": "error" } ```
``` Sep 15 13:56:58 s8030-bmc-30303035c0c1 entity-manager[23659]: Finished loading json configuration in 7938ms Sep 15 13:56:58 s8030-bmc-30303035c0c1 entity-manager[23659]: configuration file missing probe: {"Exposes":[],"Type":"error"} Sep 15 13:56:59 s8030-bmc-30303035c0c1 entity-manager[23659]: configuration file missing probe: {"Exposes":[],"Type":"error"} ```
Change-Id: I3452f983c9c14cd02ab9b56451c4b3e4a13c3979 Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
show more ...
|
| 25680e3d | 03-Oct-2025 |
Marc Olberding <molberding@nvidia.com> |
fru-device: fixup fru edit commit
Adds a number of fixups to review comments and simplifications to the flow of the previous fru-edit commit.
Tested: Edited FRU property on nvl32-obmc ``` root@nvl3
fru-device: fixup fru edit commit
Adds a number of fixups to review comments and simplifications to the flow of the previous fru-edit commit.
Tested: Edited FRU property on nvl32-obmc ``` root@nvl32-obmc:/sys/bus/i2c/devices/4-0051# busctl introspect xyz.openbmc_project.FruDevice /xyz/openbmc_project/FruDevice/MSX4_MG1_000 NAME TYPE SIGNATURE RESULT/VALUE FLAGS org.freedesktop.DBus.Introspectable interface - - - .Introspect method - s - org.freedesktop.DBus.Peer interface - - - .GetMachineId method - s - .Ping method - - - org.freedesktop.DBus.Properties interface - - - .Get method ss v - .GetAll method s a{sv} - .Set method ssv - - .PropertiesChanged signal sa{sv}as - - xyz.openbmc_project.FruDevice interface - - - .UpdateFruField method ss b - .ADDRESS property u 81 emits-change .BOARD_INFO_AM1 property s "NULL" emits-change writable .BOARD_LANGUAGE_CODE property s "0" emits-change .BOARD_MANUFACTURER property s "Giga Computing" emits-change writable .BOARD_MANUFACTURE_DATE property s "20250101T000800Z" emits-change .BOARD_PART_NUMBER property s "123456789AB" emits-change writable .BOARD_PRODUCT_NAME property s "MSX4-MG1-000" emits-change writable .BOARD_SERIAL_NUMBER property s "S2510200007" emits-change writable .BUS property u 4 emits-change .CHASSIS_PART_NUMBER property s "01234567" emits-change writable .CHASSIS_SERIAL_NUMBER property s "01234567890123456789AB" emits-change writable .CHASSIS_TYPE property s "23" emits-change .Common_Format_Version property s "1" emits-change .PRODUCT_ASSET_TAG property s "01234567890" emits-change writable .PRODUCT_LANGUAGE_CODE property s "0" emits-change .PRODUCT_MANUFACTURER property s "Giga Computing" emits-change writable .PRODUCT_PART_NUMBER property s "000000000001" emits-change writable .PRODUCT_PRODUCT_NAME property s "XL44-SX2-AAS1-000" emits-change writable .PRODUCT_SERIAL_NUMBER property s "01234567890123" emits-change writable .PRODUCT_VERSION property s "0100" emits-change writable root@nvl32-obmc:/sys/bus/i2c/devices/4-0051# busctl call xyz.openbmc_project.FruDevice /xyz/openbmc_project/FruDevice/MSX4_MG1_000 xyz.openbmc_project.FruDevice UpdateFruField ss "PRODUCT_ASSET_TAG" "12345678901234" b true root@nvl32-obmc:/sys/bus/i2c/devices/4-0051# busctl introspect xyz.openbmc_project.FruDevice /xyz/openbmc_project/FruDevice/MSX4_MG1_000 NAME TYPE SIGNATURE RESULT/VALUE FLAGS org.freedesktop.DBus.Introspectable interface - - - .Introspect method - s - org.freedesktop.DBus.Peer interface - - - .GetMachineId method - s - .Ping method - - - org.freedesktop.DBus.Properties interface - - - .Get method ss v - .GetAll method s a{sv} - .Set method ssv - - .PropertiesChanged signal sa{sv}as - - xyz.openbmc_project.FruDevice interface - - - .UpdateFruField method ss b - .ADDRESS property u 81 emits-change .BOARD_INFO_AM1 property s "NULL" emits-change writable .BOARD_LANGUAGE_CODE property s "0" emits-change .BOARD_MANUFACTURER property s "Giga Computing" emits-change writable .BOARD_MANUFACTURE_DATE property s "20250101T000800Z" emits-change .BOARD_PART_NUMBER property s "123456789AB" emits-change writable .BOARD_PRODUCT_NAME property s "MSX4-MG1-000" emits-change writable .BOARD_SERIAL_NUMBER property s "S2510200007" emits-change writable .BUS property u 4 emits-change .CHASSIS_PART_NUMBER property s "01234567" emits-change writable .CHASSIS_SERIAL_NUMBER property s "01234567890123456789AB" emits-change writable .CHASSIS_TYPE property s "23" emits-change .Common_Format_Version property s "1" emits-change .PRODUCT_ASSET_TAG property s "12345678901234" emits-change writable .PRODUCT_LANGUAGE_CODE property s "0" emits-change .PRODUCT_MANUFACTURER property s "Giga Computing" emits-change writable .PRODUCT_PART_NUMBER property s "000000000001" emits-change writable .PRODUCT_PRODUCT_NAME property s "XL44-SX2-AAS1-000" emits-change writable .PRODUCT_SERIAL_NUMBER property s "01234567890123" emits-change writable .PRODUCT_VERSION property s "0100" emits-change writable ```
Change-Id: Ic4cd7111cd4f3694faed79793e1abc98f254617b Signed-off-by: Marc Olberding <molberding@nvidia.com>
show more ...
|