Skip to content

[Question] About the Get FRU Inv Area Info command #1

Description

@cmao0914

Hi there,
I trace storagecommands.cpp and encounter some statements that I don't understand. Could you help me?

Whe I run Get FRU Inv Area Info command, the replaceCacheFru function is called in storagecommands.cpp.
At line 160, the fru.first.str is converted into a binary value and as a key to create a FRU table.
Ref:https://github.com/openbmc/intel-ipmi-oem/blob/master/src/storagecommands.cpp#L160

At line 186, the devId variable is sill the unconverted request data, how can it be found in the FRU table(deviceHashes table)?
Ref:https://github.com/openbmc/intel-ipmi-oem/blob/master/src/storagecommands.cpp#L186

For example, fru.first.str is xyz.openbmc_project.FruDevice.abc string and it is converted into 0x28(the value is assumed), how do I get 0x28 in advance when I run the FRU raw command?

Is there any setting I need to do?

Many thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions