Ynt: Ynt: Ynt: Ynt: Ynt: (External) Re: Adding Inventory

Oğuzhan ÇAĞLAR oguzhan.caglar at pavotek.com.tr
Thu Sep 1 16:25:29 AEST 2022


Hello again,


I haven't received any response since I sent the e-mail to you. I'm waiting for your answer. I successfully built the "Intel-oem-ipmi" but I'm still confused about the first question that is related to getting SMBIOS info.



Thank you.


Saygılarımla / Best Regards,



Oğuzhan Çağlar

Yazılım Tasarım Mühendisi












Pavo Tasarım Üretim Elektronik Tic. A.Ş.

Sanayi Mah. Teknopark İstanbul Yerleşkesi Ar-Ge Binaları 4C Kat:1-2

Pendik / İstanbul / TÜRKİYE


PɅVOTEK<http://pavotek.com.tr/>




Tel           : +90 (216) 354 72 86


Faks        : +90 (216) 354 76 77





www.pavotek.com.tr<http://www.pavotek.com.tr/>

________________________________
Gönderen: Oğuzhan ÇAĞLAR
Gönderildi: 18 Ağustos 2022 Perşembe 14:21:17
Kime: Andrei Kartashev; Brad Bishop
Bilgi: <openbmc at lists.ozlabs.org>
Konu: Ynt: Ynt: Ynt: Ynt: Ynt: (External) Re: Adding Inventory


Thanks,


1) I'm confused about this. I didn't connect any BMC's i2c buses to the CPU. Is that any problem for me? I mean, I have to BMC's i2c buses to CPU? Because these pins were not connected to any CPU's pins. It is empty. May it be my problem? I mean, If I connect these buses to CPU, Can I get the information?


2) When I build the "intel-oem-ipmi", It shows me an error. I guess The "intel-oem-ipmi" is required for the x86 CPU. I start to think that the openbmc doesn't support this. I attached the error file.


Regards.


Oğuzhan Çağlar

Software Design Engineer




[https://posta.pavotek.com.tr/owa/]








[https://posta.pavotek.com.tr/owa/]


Pavo Tasarım Üretim Elektronik Tic. A.Ş.

Teknopark İstanbul, Kurtköy Pendik İSTANBUL




       [https://posta.pavotek.com.tr/owa/] <http://pavotek.com.tr/>


Tel             : +90 (216) 354 72 86


Faks         : +90 (216) 354 76 77


Gsm          : +90 (507) 585 10 60


oguzhan.caglar at pavotek.com.tr<mailto:oguzhan.caglar at pavotek.com.tr>





www.pavotek.com.tr<http://www.pavotek.com.tr/>




________________________________
Gönderen: Andrei Kartashev <a.kartashev at yadro.com>
Gönderildi: 18 Ağustos 2022 Perşembe 11:38:44
Kime: Oğuzhan ÇAĞLAR; Brad Bishop
Bilgi: <openbmc at lists.ozlabs.org>
Konu: Re: Ynt: Ynt: Ynt: Ynt: (External) Re: Adding Inventory


Warning: This e-mail came from an external source. If you do not trust the sender or if there is anything suspicious in the content of the e-mail, please inform the IT department.



1) It depends on your board, you should know better. If you don't know,
then it is likely KCS.
2) Yes
3) Yes, you don't need to have to create any additional configs
4) Yes, the common way is to program VPD/FRU to eeprom during
production stage. But this can vary depending on your board design and
manufacturing workflow.

Brad, I feel this questions rises each time when newcomers start
porting OBMC on their new board. Seems like we should have this
information in somewhere beginners guide.

On Thu, 2022-08-18 at 07:31 +0000, Oğuzhan ÇAĞLAR wrote:
> «Внимание! Данное письмо от внешнего адресата!»
>
> Thank you, It is too helpful!
>
> 1) What is the interface over which the Intel x86 CPU sends data to
> the BMC? KCS or something?
> 2) I see /var/lib/smbios but don't see /var/lib/smbios/smbios2 in my
> system. It will be created when the file is received?
> 3) When the file arrives from the CPU to the BMC, Can I see the
> information in webui? Do I have to create any configuration files in
> entity-manager or phosphor-inventory-manager to do this?
> 4) Besides the CPU and DIMM information, How can I see the
> information of the chassis and board? I think the only way to do this
> is FRU? I mean, this information is kept in any EEPROM as binary in
> the production process of boards. If I think wrong, Is there any way
> to see the information of the chassis or board?
>
> Regards.
>
> Oğuzhan Çağlar
> Software Design Engineer
>
>
>
> Pavo Tasarım Üretim Elektronik Tic. A.Ş.
> Teknopark İstanbul, Kurtköy Pendik İSTANBUL
>
>
> Tel             : +90 (216) 354 72 86
> Faks         : +90 (216) 354 76 77
> Gsm          : +90 (507) 585 10 60
> oguzhan.caglar at pavotek.com.tr
>
> www.pavotek.com.tr<http://www.pavotek.com.tr>
>
>
> Gönderen: Andrei Kartashev <a.kartashev at yadro.com>
> Gönderildi: 17 Ağustos 2022 Çarşamba 12:02:39
> Kime: Oğuzhan ÇAĞLAR; openbmc at lists.ozlabs.org
> Konu: Re: Ynt: Ynt: Ynt: (External) Re: Adding Inventory
>
>
> Warning: This e-mail came from an external source. If you do not
> trust the sender or if there is anything suspicious in the content of
> the e-mail, please inform the IT department.
>
>
>
> On Mon, 2022-08-15 at 12:36 +0000, Oğuzhan ÇAĞLAR wrote:
> >
> > Thank you, Andrei,
> >
> > I successfully built it now. Why do I get this error?
>
> cpuinfo is additional daemon, that actually do nothing with smbios,
> but
> it can get some CPU-related information by using PECI interface. For
> about couple of years PECI wasn't supported by upstream OpenBMC, the
> implementation was only in Intel's fork.
> I don't know actual situation, but I guess you just miss some
> libraries
> for PECI support.
> Anyway, you don't need this at this stage.
>
> > In addition, I guess I have to dive into BIOS to get information
> > about CPU and DIMM. Is it right?
>
> Yes, smbiosmdrv2 daemon reads SMBIOS information from the file
> /var/lib/smbios/smbios2 and you have to somehow deliver it to the BMC
> filesystem.
>
> > Is there any example to do that?
>
> Not sure. I think I saw somewhere in the Internet example of
> delivering
> it using phosphor-ipmi-blobs.
>
> > What exactly do the smbios-mdr daemon?
> >
>
> Well, it just parse SMBIOS tables from binary file and expose
> extracted
> information to dbus for other daemons use.
>
> > Oğuzhan Çağlar
> > Yazılım Mühendisi
> >
> >
> >
> > Pavo Tasarım Üretim Elektronik Tic. A.Ş.
> > Teknopark İstanbul, Kurtköy Pendik İSTANBUL
> >
> >
> > Tel             : +90 (216) 354 72 86
> > Faks         : +90 (216) 354 76 77
> > Gsm          : +90 (507) 585 10 60
> > oguzhan.caglar at pavotek.com.tr
> >
> > www.pavotek.com.tr<http://www.pavotek.com.tr>
> >
> >
> > Gönderen: Andrei Kartashev <a.kartashev at yadro.com>
> > Gönderildi: 15 Ağustos 2022 Pazartesi 13:23:33
> > Kime: Oğuzhan ÇAĞLAR; openbmc at lists.ozlabs.org
> > Konu: Re: Ynt: Ynt: (External) Re: Adding Inventory
> >
> >
> > Warning: This e-mail came from an external source. If you do not
> > trust the sender or if there is anything suspicious in the content
> > of
> > the e-mail, please inform the IT department.
> >
> >
> >
> > As I assumed, it is PCUInfo issue:
> >
> > |
> > /home/pavo/oguz/pavoopenbmc/aspeedopenbmc/openbmc/build/epca/tmp/wo
> > rk
> > /a
> > rm1176jzs-openbmc-linux-gnueabi/smbios-
> > mdr/1.0+gitAUTOINC+e4ea37716d-
> > r1/git/src/cpuinfo_main.cpp:407:14: error: 'icxd' was not declared
> > in
> > this scope; did you mean 'icx'?
> > |   407 |         case icxd:
> > |       |              ^~~~
> > |       |              icx
> > |
> > /home/pavo/oguz/pavoopenbmc/aspeedopenbmc/openbmc/build/epca/tmp/wo
> > rk
> > /a
> > rm1176jzs-openbmc-linux-gnueabi/smbios-
> > mdr/1.0+gitAUTOINC+e4ea37716d-
> > r1/git/src/cpuinfo_main.cpp:408:14: error: 'spr' was not declared
> > in
> > this scope
> > |   408 |         case spr:
> > |       |              ^~~
> >
> >
> > Turn it off in you bbappend with `PACKAGECONFIG:remove = "
> > cpuinfo"`
> >
> >
> >
> > On Mon, 2022-08-15 at 07:25 +0000, Oğuzhan ÇAĞLAR wrote:
> > >
> > > I'm sharing with you that my yocto errors are related to smbios-
> > > mdr in the .txt file.
> > >
> > > I don't understand, How can the CPU information match with
> > > entity-
> > > manager configuration files? I saw your comment in openbmc list
> > > about
> > > PCIe. It probes only with xyz.openbmc_project.FruDevice.
> > >
> > >
> > > Oğuzhan Çağlar
> > > Software Design Engineer
> > >
> > >
> > >
> > > Pavo Tasarım Üretim Elektronik Tic. A.Ş.
> > > Teknopark İstanbul, Kurtköy Pendik İSTANBUL
> > >
> > >
> > > Tel             : +90 (216) 354 72 86
> > > Faks         : +90 (216) 354 76 77
> > > Gsm          : +90 (507) 585 10 60
> > > oguzhan.caglar at pavotek.com.tr
> > >
> > > www.pavotek.com.tr<http://www.pavotek.com.tr>
> > >
> > >
> > > Gönderen: Andrei Kartashev <a.kartashev at yadro.com>
> > > Gönderildi: 12 Ağustos 2022 Cuma 22:14:38
> > > Kime: Oğuzhan ÇAĞLAR; openbmc at lists.ozlabs.org
> > > Konu: Re: Ynt: (External) Re: Adding Inventory
> > >
> > >
> > > Warning: This e-mail came from an external source. If you do not
> > > trust the sender or if there is anything suspicious in the
> > > content
> > > of
> > > the e-mail, please inform the IT department.
> > >
> > >
> > >
> > > I have no idea on what do you mean saying "added the CPU and DIMM
> > > configuration files within the .yaml files", but I guess you are
> > > trying
> > > to hardcode this information, which I believe not what ou
> > > actually
> > > expect to get.
> > > You probably should learn how the OpenBMC works inside. You can
> > > use
> > > busctl tool for that.
> > >
> > > Regarding compilation error of smbios-mdr daemon, I can say
> > > nothing
> > > without knowing the issue. There should not be any special
> > > configuration files for this smbios-mdr recipe but probably you
> > > trying
> > > to build CPUInfo part of the recipe without having PECI library.
> > > You
> > > likely should disable cpuinfo app.
> > >
> > > On Fri, 2022-08-12 at 06:50 +0000, Oğuzhan ÇAĞLAR wrote:
> > > > Hi Andrei,
> > > >
> > > > Thank you for your information. I have already added the CPU
> > > > and
> > > > DIMM
> > > > configuration files within the .yaml files. When I added these
> > > > files(related to the path:
> > > > xyz.openbmc_project.Inventory.Item.Cpu
> > > > and xyz.openbmc_project.Inventory.Item.Dimm), I see the CPU and
> > > > DIMM
> > > > entries over WebUI. However, In this way, I add the properties
> > > > such
> > > > as (PartNumber, SerialNumber, etc.) on my own. I have already
> > > > generated a .bin file that has FRU information (chassis, board
> > > > etc.)
> > > > and I included this in BMC's image file. In addition, I see the
> > > > properties related to Chassis, Board on WebUI.
> > > >
> > > > I have already checked the smbios-mdr daemon in openbmc.
> > > > However,
> > > > when I include this daemon in my yocto image, the bitbake shows
> > > > some
> > > > errors that are related to smbios-mdr's .cpp files. I guess I
> > > > have
> > > > to
> > > > create some configuration files before doing it. Is it wrong?
> > > > What
> > > > should I do?
> > > >
> > > > I guess I have to need some code in BIOS. Is there any example
> > > > to
> > > > do
> > > > this? I don't know where I should start.
> > > >
> > > > Thank you.
> > > >
> > > > Oğuzhan Çağlar
> > > > Software Design Engineer
> > > >
> > > >
> > > >
> > > > Pavo Tasarım Üretim Elektronik Tic. A.Ş.
> > > > Teknopark İstanbul, Kurtköy Pendik İSTANBUL
> > > >
> > > >
> > > > Tel             : +90 (216) 354 72 86
> > > > Faks         : +90 (216) 354 76 77
> > > > Gsm          : +90 (507) 585 10 60
> > > > oguzhan.caglar at pavotek.com.tr
> > > >
> > > > www.pavotek.com.tr<http://www.pavotek.com.tr>
> > > >
> > > >
> > > > Gönderen: Andrei Kartashev <a.kartashev at yadro.com>
> > > > Gönderildi: 11 Ağustos 2022 Perşembe 22:28:16
> > > > Kime: Oğuzhan ÇAĞLAR; openbmc at lists.ozlabs.org
> > > > Konu: (External) Re: Adding Inventory
> > > >
> > > >
> > > > Warning: This e-mail came from an external source. If you do
> > > > not
> > > > trust the sender or if there is anything suspicious in the
> > > > content
> > > > of
> > > > the e-mail, please inform the IT department.
> > > >
> > > >
> > > >
> > > > Hello Oguzhan,
> > > >
> > > > This is a very common question for newcomers, I believe is was
> > > > already
> > > > answered somewhere in the list.
> > > > BMC out of the box don't have any knowledge on host's equipment
> > > > (CPU,
> > > > DIMM, Drive, AIC, etc) - it is up to you to deliver this
> > > > information
> > > > from host to BMC. As for now the most common way to feed BMC
> > > > the
> > > > information regarding CPU and DIMM is to transfer smbios tables
> > > > via
> > > > ipmi. You can implement any other mechanism but any way, you
> > > > need
> > > > to
> > > > have some code in your BIOS.
> > > >
> > > > As soon as you have the CPU/DIMM information on BMC it can be
> > > > shown
> > > > in
> > > > bmcweb by implementing corresponding dbus interfaces
> > > > (xyz.openbmc_project.Inventory.Item.Cpu and
> > > > xyz.openbmc_project.Inventory.Item.Dimm). smbiosmdrv2 daemon do
> > > > this,
> > > > but you also can add EntityManager configuration files for this
> > > > or
> > > > write your own daemon to expose the interfaces.
> > > >
> > > > On Thu, 2022-08-04 at 08:07 +0000, Oğuzhan ÇAĞLAR wrote:
> > > > > Hello,
> > > > >
> > > > > I'm working on openbmc for ast2500 bmc. I want to add
> > > > > inventory
> > > > > such
> > > > > as CPU and DIMM etc. I added the chassis from .json file but
> > > > > I
> > > > > couldn't add the CPU and DIMM. I know this is to related with
> > > > > entity-
> > > > > manager. How can I add these inventory on WEBUI? Can you give
> > > > > some
> > > > > information about this issue?
> > > > >
> > > > > Regards.
> > > > >
> > > > > Oğuzhan Çağlar
> > > > > Software Design Engineer
> > > > >
> > > > >
> > > > >
> > > > > Pavo Tasarım Üretim Elektronik Tic. A.Ş.
> > > > > Teknopark İstanbul, Kurtköy Pendik İSTANBUL
> > > > >
> > > > >
> > > > > Tel             : +90 (216) 354 72 86
> > > > > Faks         : +90 (216) 354 76 77
> > > > > Gsm          : +90 (507) 585 10 60
> > > > > oguzhan.caglar at pavotek.com.tr
> > > > >
> > > > > www.pavotek.com.tr<http://www.pavotek.com.tr>
> > > > >
> > > > >
> > > >
> > > > --
> > > > Best regards,
> > > > Andrei Kartashev,
> > > > Lead BMC Developer
> > > >
> > >
> > > --
> > > Best regards,
> > > Andrei Kartashev,
> > > Lead BMC Developer
> > >
> >
> > --
> > Best regards,
> > Andrei Kartashev,
> > Lead BMC Developer
> >
>
> --
> Best regards,
> Andrei Kartashev,
> Lead BMC Developer
>

--
Best regards,
Andrei Kartashev,
Lead BMC Developer

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20220901/4a428d30/attachment-0001.htm>


More information about the openbmc mailing list