All of lore.kernel.org
 help / color / mirror / Atom feed
* how get smbios blob with intel-ipmi-oem
@ 2022-10-11  9:27 Nikita Pavlov
  2022-10-11 10:10 ` Paul Fertser
  0 siblings, 1 reply; 3+ messages in thread
From: Nikita Pavlov @ 2022-10-11  9:27 UTC (permalink / raw)
  To: openbmc

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

Hi All,

Now I work with intel-ipmi-oem and want to get smbios blob.
I use intel-ipmi-oem lib and ipmi-whitelist.conf with phosphor-host-ipmid.

I test this by ipmitool like this ipmitool raw 0x30 0x1a and get:
Unable to send RAW command (channel=0x0 netfn=0x30 lun=0x0 cmd=0x1a
rsp=0xc1): Invalid command
 In journalctl:
Oct 11 09:06:43 QV-00002-3a1b4b0da2c0 ipmid[278]: Channel/NetFn/Cmd not
whitelisted

How I can debug  this ?

Are there any examples how to get blob with intel-ipmi-oem ?

-- 
Best Regards,
Nikita Pavlov
E-mail: icepbix@gmail.com

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: how get smbios blob with intel-ipmi-oem
  2022-10-11  9:27 how get smbios blob with intel-ipmi-oem Nikita Pavlov
@ 2022-10-11 10:10 ` Paul Fertser
  2022-10-11 18:26   ` Nikita Pavlov
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Fertser @ 2022-10-11 10:10 UTC (permalink / raw)
  To: Nikita Pavlov; +Cc: openbmc

Hi Nikita,

On Tue, Oct 11, 2022 at 12:27:58PM +0300, Nikita Pavlov wrote:
> Now I work with intel-ipmi-oem and want to get smbios blob. 

If you're going to use MDRv1 protocol then I can share the experience.

We use intel-ipmi-oem and it handles requests like 0x3e:0x20 (for
region status) by calling methods of a D-Bus object, which you should
also be able to query manually following

busctl introspect xyz.openbmc_project.Smbios.MDR_V1 /xyz/openbmc_project/Smbios/MDR_V1

output.

"xyz.openbmc_project.Smbios.MDR_V1" is handled by
https://github.com/Intel-BMC/provingground/tree/master/services/smbios .

Example of requesting status of the first region:

# ipmitool raw 0x3e 0x20 1
 11 01 01 02 00 00 80 cc 0a 91

> I use intel-ipmi-oem lib and ipmi-whitelist.conf with phosphor-host-ipmid.
> I test this by ipmitool like this ipmitool raw 0x30 0x1a and get:

Why are you using 0x30 0x1a, it seems to be
<Intel General Application>:<Get NIC Info> so completely unrelated?

HTH
-- 
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercerpav@gmail.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: how get smbios blob with intel-ipmi-oem
  2022-10-11 10:10 ` Paul Fertser
@ 2022-10-11 18:26   ` Nikita Pavlov
  0 siblings, 0 replies; 3+ messages in thread
From: Nikita Pavlov @ 2022-10-11 18:26 UTC (permalink / raw)
  To: Paul Fertser, openbmc

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

Hi Paul,
Thanks for your response.

I request to this <Intel General Application>:<Get NIC Info> for test.

Now I have some compile errors this
https://github.com/Intel-BMC/provingground/tree/master/services/smbios
...
In file included from /home/qs/provingground/services/smbios/src/cpu.cpp:17:
/home/qs/provingground/services/smbios/src/cpu.hpp:111:17: error:
‘std::string phosphor::smbios::Cpu::processorSocket(std::string)’ marked
‘override’, but does not override
  111 |     std::string processorSocket(std::string value) override;
...
/home/qs/provingground/services/smbios/src/cpu.cpp: In member function
‘std::string phosphor::smbios::Cpu::processorSocket(std::string)’:
/home/qs/provingground/services/smbios/src/cpu.cpp:38:9: error:
‘processorSocket’ is not a member of
‘sdbusplus::xyz::openbmc_project::Inventory::Item::server::Cpu’
   38 |         processorSocket(value);
...
And other typical errors.

I'll fix them and post my progress.



вт, 11 окт. 2022 г. в 13:10, Paul Fertser <fercerpav@gmail.com>:

> Hi Nikita,
>
> On Tue, Oct 11, 2022 at 12:27:58PM +0300, Nikita Pavlov wrote:
> > Now I work with intel-ipmi-oem and want to get smbios blob.
>
> If you're going to use MDRv1 protocol then I can share the experience.
>
> We use intel-ipmi-oem and it handles requests like 0x3e:0x20 (for
> region status) by calling methods of a D-Bus object, which you should
> also be able to query manually following
>
> busctl introspect xyz.openbmc_project.Smbios.MDR_V1
> /xyz/openbmc_project/Smbios/MDR_V1
>
> output.
>
> "xyz.openbmc_project.Smbios.MDR_V1" is handled by
> https://github.com/Intel-BMC/provingground/tree/master/services/smbios .
>
> Example of requesting status of the first region:
>
> # ipmitool raw 0x3e 0x20 1
>  11 01 01 02 00 00 80 cc 0a 91
>
> > I use intel-ipmi-oem lib and ipmi-whitelist.conf with
> phosphor-host-ipmid.
> > I test this by ipmitool like this ipmitool raw 0x30 0x1a and get:
>
> Why are you using 0x30 0x1a, it seems to be
> <Intel General Application>:<Get NIC Info> so completely unrelated?
>
> HTH
> --
> Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
> mailto:fercerpav@gmail.com
>

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-10-11 18:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-11  9:27 how get smbios blob with intel-ipmi-oem Nikita Pavlov
2022-10-11 10:10 ` Paul Fertser
2022-10-11 18:26   ` Nikita Pavlov

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.