Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cmao0914 opened this issue Mar 25, 2019 · 0 comments
Open

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

cmao0914 opened this issue Mar 25, 2019 · 0 comments

Comments

@cmao0914
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant