Read smbios2 file failed
Garrett, Mike (HPE Server Firmware)
mike.garrett at hpe.com
Wed Sep 15 23:18:57 AEST 2021
We recently did the same thing and got it working. All you have to do is take the RAW smbios records blob in binary form (delivered as noted below in whatever way you choose) and prepend a specific header: https://github.com/openbmc/smbios-mdr/blob/33c948a473bd273fea0cff82d4c99b70b7784be6/include/smbios_mdrv2.hpp#L114
It is a little bit fragile as it introduces a dependency on the file download logic to write a non-standard header defined in another service that could potentially change.
Mike
> -----Original Message-----
> From: openbmc <openbmc-
> bounces+mike.garrett=hpe.com at lists.ozlabs.org> On Behalf Of Andrei
> Kartashev
> Sent: Wednesday, September 15, 2021 3:17 AM
> To: Thang Nguyen <thang at amperemail.onmicrosoft.com>; openbmc
> <openbmc at lists.ozlabs.org>
> Subject: Re: Read smbios2 file failed
>
> I don't know what is format of "dmidecode --dump-bin", but if it just raw
> dump of smbios then you only need to add mdr header.
>
> See answer for the same question here:
> INVALID URI REMOVED
> 021-July/026882.html__;!!NpxR!2w0FkPs2KyaB6XOvB8et52bWKqAMLImmL-
> iUk9A_zZbJ8WLhMeXdvRAp-pcxt8Q$
>
> On Wed, 2021-09-15 at 12:41 +0700, Thang Nguyen wrote:
> > Hi Andrei,
> >
> > I see output of "dmidecode --dump-bin" follows SMBIOS specification.
> > As
> > the data for smbios-mdr does not follow this, do you know about the
> > document or any information I can reference to prepare data to send to
> > BMC??
> >
> >
> > Best Regards,
> >
> > Thang Q. Nguyen
> >
> > On 14/09/2021 15:51, Andrei Kartashev wrote:
> > > No, it is not same as "dmidecode --dump-bin".
> > >
> > > On Tue, 2021-09-14 at 13:46 +0700, Thang Nguyen wrote:
> > > > On 13/09/2021 23:56, Andrei Kartashev wrote:
> > > > > You need to somehow deliver smbios data image to BMC. This
> > > > > means, your BIOS should implementat some logic to transfer this
> > > > > data.
> > > > > For BMC side see example here:
> > > > > https://github.com/openbmc/intel-ipmi-
> oem/blob/master/src/smbios
> > > > > mdrv2handler.cpp
> > > > Hi Andrei,
> > > >
> > > > What is the format of smbios data to transfer to BMC? Is it the
> > > > same content of "dmidecode --dump-bin" command from Host Linux?
> or
> > > > anything special in formatting the content to send?
> > > >
> > > > > On Mon, 2021-09-13 at 17:40 +0300, Alexander Raih wrote:
> > > > > > Hi guys, I am beginner in openbmc I build openbmc with
> > > > > > smbios-mdr repository and I have error:
> > > > > >
> > > > > > Read data from flash error - Open MDRV2 table file failure
> > > > > >
> > > > > > There isnt file in /var/lib/smbios/smbios2
> > > > > >
> > > > > > How I can resolve this problem?
> > > > > > Help me please!!!
>
>
> --
> Best regards,
> Andrei Kartashev
>
More information about the openbmc
mailing list