A tool to generate fru.bin

John Wang wangzqbj at inspur.com
Fri Jan 4 23:16:56 AEDT 2019


Hi all,

When I debug the fru function, I found that I need a tool to generate
binary data that conforms to the fru protocol specification, so that it can
be stored on the eeprom, and then I implement one myself.
https://github.com/inspur-bmc/fru-generator

This tool generates fru.bin based on the json file.

Usge:
        fru-generator -j fru.json -b fru.bin

The command to read fru:
phosphor-read-eeprom  --eeprom=/sys/bus/i2c/devices/xxx/eeprom --fruid=xx

We can also simulate a fru eeprom device like this:
phosphor-read-eeprom  --eeprom=/tmp/fru.bin --fruid=xx

I would like to contribute this tool to the community, if anyone is
interested.

Regards

-John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20190104/a95821f3/attachment.html>


More information about the openbmc mailing list