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

Andrei Kartashev a.kartashev at yadro.com
Wed Aug 17 19:02:39 AEST 2022


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
> 
>  
> 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/work
> /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/work
> /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
> > 
> > 
> > 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
> > > 
> > > 
> > > 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
> > > > 
> > > > 
> > > 
> > > --
> > > 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



More information about the openbmc mailing list