All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vijay Khemka <vijaykhemka@fb.com>
To: "周 远清" <zhouyuanqing8@outlook.com>,
	"Wang, Kuiying" <kuiying.wang@intel.com>
Cc: "openbmc@lists.ozlabs.org" <openbmc@lists.ozlabs.org>
Subject: Re: 回复: About FRU
Date: Wed, 27 May 2020 21:15:09 +0000	[thread overview]
Message-ID: <0FA5C43C-DEBB-4671-84A1-EFA79FABF777@fb.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3671 bytes --]

Hi Harley,
You don’t need any configuration for eeprom if you are using entity manager package. Just add this package in your image and at the start /usr/bin/fru-device process will start which will enumerate all eeprom existed in the system and create a dbus interface for each fru device found. In my system, it shows like below.

Service xyz.openbmc_project.FruDevice:

    └─/xyz/openbmc_project/FruDevice

      ├─/xyz/openbmc_project/FruDevice/0_80

      ├─/xyz/openbmc_project/FruDevice/0_81

      ├─/xyz/openbmc_project/FruDevice/1_113

      ├─/xyz/openbmc_project/FruDevice/2_112

      ├─/xyz/openbmc_project/FruDevice/2_16

      ├─/xyz/openbmc_project/FruDevice/2_22

      ├─/xyz/openbmc_project/FruDevice/3_104

      ├─/xyz/openbmc_project/FruDevice/3_108

      ├─/xyz/openbmc_project/FruDevice/3_113

      ├─/xyz/openbmc_project/FruDevice/3_36

      ├─/xyz/openbmc_project/FruDevice/3_68

      ├─/xyz/openbmc_project/FruDevice/3_81

      ├─/xyz/openbmc_project/FruDevice/6_32

      ├─/xyz/openbmc_project/FruDevice/6_33

      ├─/xyz/openbmc_project/FruDevice/6_78

      ├─/xyz/openbmc_project/FruDevice/6_79

      ├─/xyz/openbmc_project/FruDevice/6_80

      ├─/xyz/openbmc_project/FruDevice/7_69

      ├─/xyz/openbmc_project/FruDevice/8_31

      ├─/xyz/openbmc_project/FruDevice/9_39

      ├─/xyz/openbmc_project/FruDevice/9_84

      ├─/xyz/openbmc_project/FruDevice/Ava_M_2_SSD_Adapter

      └─/xyz/openbmc_project/FruDevice/Tioga_Pass_Single_Side

Regards
-Vijay

From: 周 远清 <zhouyuanqing8@outlook.com>
Date: Wednesday, May 27, 2020 at 1:33 AM
To: "Wang, Kuiying" <kuiying.wang@intel.com>, Vijay Khemka <vijaykhemka@fb.com>
Cc: "openbmc@lists.ozlabs.org" <openbmc@lists.ozlabs.org>
Subject: 回复: About FRU

Hi

     My project uses phosphor-fru, and a phosphor-read-eeprom is generated during compilation. I think when openbmc starts, phosphor-read-eeprom will read the configuration information of eeprom from a configuration file (such as i2c channel number, i2c address), and then read FRU information from eeprom.
     If the entity-manager module is used,add json configuration file for my device into entity-manager. then I use the phoshor-fru method, in which configuration file should I configure the eeprom information?

     phosphor-read-eeprom will exits after reading the eeprom information, so how is the FRU information read to the IPMI process?

Thanks
Harley


________________________________
发件人: Wang, Kuiying <kuiying.wang@intel.com>
发送时间: 2020年5月27日 15:58
收件人: zhouyuanqing8@outlook.com <zhouyuanqing8@outlook.com>
抄送: openbmc@lists.ozlabs.org <openbmc@lists.ozlabs.org>
主题: RE: About FRU


Hi Harley,

You could add json configuration file for your device into entity-manager as below:

https://github.com/openbmc/entity-manager/tree/master/configurations





Thanks,

Kwin.





Hello everyone,



       My motherboard has an EEPROM device to store FRU related information. How can I configure it in the openbmc configuration file to see this FRU information through the ipmitool fru print command?



Are there some examples to provide reference, I did not find a place to configure the eeprom device in the openbmc project?



Is there any documentation about FRU indicating that the module reads and parses information from eeprom, and then it can be read by the ipmitool fru print command? What is the process like?



Thanks

Harley





[-- Attachment #2: Type: text/html, Size: 14803 bytes --]

             reply	other threads:[~2020-05-27 21:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-27 21:15 Vijay Khemka [this message]
2020-05-28  2:11 ` 回复: 回复: About FRU 周 远清
  -- strict thread matches above, loose matches on Subject: below --
2020-05-27  7:58 Wang, Kuiying
2020-05-27  8:33 ` 回复: " 周 远清

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0FA5C43C-DEBB-4671-84A1-EFA79FABF777@fb.com \
    --to=vijaykhemka@fb.com \
    --cc=kuiying.wang@intel.com \
    --cc=openbmc@lists.ozlabs.org \
    --cc=zhouyuanqing8@outlook.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.