All of lore.kernel.org
 help / color / mirror / Atom feed
* Question on flashing firmware and bmc image
@ 2018-09-24 14:16 Pietro Maltoni
  2018-09-26  3:12 ` Lei YU
  0 siblings, 1 reply; 4+ messages in thread
From: Pietro Maltoni @ 2018-09-24 14:16 UTC (permalink / raw)
  To: openbmc; +Cc: Andrea Bartolini

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

I'm a student in university of bologna and for a research project I have to work with openbmc on a Tyan palmetto system.



I have successfully compiled and installed an openbmc firmware on the palmetto system following the guide https://github.com/openbmc/openbmc.

After installing it I've recognized that oem openpower commands and sensors are not available.

For instance when doing ipmitool sdr elist I do not see openpower sensors(occ ones) as well as netfn in ipmi does not contain commands for the occ.



By searching on the code I've recognized that these are in meta-openpower recipes. How can i enable them? Is there a standard procedure for enabling them on openpower hardware or in palmetto?

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

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

* Re: Question on flashing firmware and bmc image
  2018-09-24 14:16 Question on flashing firmware and bmc image Pietro Maltoni
@ 2018-09-26  3:12 ` Lei YU
  2018-09-26 16:48   ` Pietro Maltoni
  0 siblings, 1 reply; 4+ messages in thread
From: Lei YU @ 2018-09-26  3:12 UTC (permalink / raw)
  To: pietro.maltoni; +Cc: OpenBMC Maillist, a.bartolini

The questions in the mail does not reflect to the title, hope you could use a
more specific title.

On Wed, Sep 26, 2018 at 7:53 AM Pietro Maltoni
<pietro.maltoni@studio.unibo.it> wrote:

> After installing it I've recognized that oem openpower commands and sensors are not available.
>
> For instance when doing ipmitool sdr elist I do not see openpower sensors(occ ones) as well as netfn in ipmi does not contain commands for the occ.

What is the revision of your build?
The ipmi related configs are not complete for Palmetto, and there is a
[recent commit][1] to add part of the sensors for ipmi.
With the commit, ipmi sdr elist works ok.
If you are looking to adding more sensors, patches are welcome!

And what do you mean by "netfn in ipmi does not contain commands for the occ"?

>
> By searching on the code I've recognized that these are in meta-openpower recipes. How can i enable them? Is there a standard procedure for enabling them on openpower hardware or in palmetto?

Please refer to the below link as an example of ipmi config for Palmetto's
sensors.


[1]: https://github.com/openbmc/openbmc/commit/f47fb7cf87e6d69132f4ca101206dbf091097027#diff-d90eaa8cd7210f2f005894b7f7001d9d

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

* Re: Question on flashing firmware and bmc image
  2018-09-26  3:12 ` Lei YU
@ 2018-09-26 16:48   ` Pietro Maltoni
  2018-09-27  1:40     ` Lei YU
  0 siblings, 1 reply; 4+ messages in thread
From: Pietro Maltoni @ 2018-09-26 16:48 UTC (permalink / raw)
  To: Lei YU; +Cc: OpenBMC Maillist, Andrea Bartolini

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

Thank for your reply,

Now i see the openpower sensors and if I issue the ipmitool  sel elist command I see the OCC represented as follow:

“
occ_3_0050       | 08h | ok  |  0.0 | Device Enabled
“


However when I try to issue ipmitool raw 0x3A command we do not get passthrough toward OCC, as it seems that the OCC netfn codes is not defined.


“RAW Commands:  raw <netfn> <cmd> [data]

Network Function Codes:

  VAL   HEX     STRING
==============================================
  0     0x00    Chassis
  2     0x02    Bridge
  4     0x04    SensorEvent
  6     0x06    Application
  8     0x08    Firmware
  10    0x0a    Storage
  12    0x0c    Transport
“

This is my version of BMC image
commit 282ba3dea1b56d620202e7ffe24cfdb671ceed6d
Author: Alexander Filippov <a.filippov@yadro.com>
Date:   Mon Sep 10 09:47:35 2018 +0300

And this is the pnor image version.
commit 4fd251a60984d2eb39ed5895a8f84b979f5d0b4a (HEAD -> master, origin/master, origin/HEAD)
Merge: c50dae9 d8de440
Author: Corey Swenson <cswenson@us.ibm.com>
Date:   Tue Sep 4 12:18:44 2018 -0500



________________________________
Da: Lei YU <mine260309@gmail.com>
Inviato: mercoledì 26 settembre 2018 05:12
A: Pietro Maltoni
Cc: OpenBMC Maillist; Andrea Bartolini
Oggetto: Re: Question on flashing firmware and bmc image

The questions in the mail does not reflect to the title, hope you could use a
more specific title.

On Wed, Sep 26, 2018 at 7:53 AM Pietro Maltoni
<pietro.maltoni@studio.unibo.it> wrote:

> After installing it I've recognized that oem openpower commands and sensors are not available.
>
> For instance when doing ipmitool sdr elist I do not see openpower sensors(occ ones) as well as netfn in ipmi does not contain commands for the occ.

What is the revision of your build?
The ipmi related configs are not complete for Palmetto, and there is a
[recent commit][1] to add part of the sensors for ipmi.
With the commit, ipmi sdr elist works ok.
If you are looking to adding more sensors, patches are welcome!

And what do you mean by "netfn in ipmi does not contain commands for the occ"?

>
> By searching on the code I've recognized that these are in meta-openpower recipes. How can i enable them? Is there a standard procedure for enabling them on openpower hardware or in palmetto?

Please refer to the below link as an example of ipmi config for Palmetto's
sensors.


[1]: https://github.com/openbmc/openbmc/commit/f47fb7cf87e6d69132f4ca101206dbf091097027#diff-d90eaa8cd7210f2f005894b7f7001d9d

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

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

* Re: Question on flashing firmware and bmc image
  2018-09-26 16:48   ` Pietro Maltoni
@ 2018-09-27  1:40     ` Lei YU
  0 siblings, 0 replies; 4+ messages in thread
From: Lei YU @ 2018-09-27  1:40 UTC (permalink / raw)
  To: pietro.maltoni; +Cc: OpenBMC Maillist, a.bartolini

So what exactly netfn are you trying to use?
Please check the code in
https://github.com/openbmc/openpower-host-ipmi-oem/blob/master/oemhandler.cpp#L225:
only below netfn are implemented:
* IPMI_CMD_PESEL
* IPMI_CMD_PREP_FW_UPDATE
* IPMI_CMD_RESET_BMC_PASSWORD

On Thu, Sep 27, 2018 at 12:48 AM Pietro Maltoni
<pietro.maltoni@studio.unibo.it> wrote:
>
> Thank for your reply,
>
> Now i see the openpower sensors and if I issue the ipmitool  sel elist command I see the OCC represented as follow:
>
> “
> occ_3_0050       | 08h | ok  |  0.0 | Device Enabled
> “
>
> However when I try to issue ipmitool raw 0x3A command we do not get passthrough toward OCC, as it seems that the OCC netfn codes is not defined.
>
>
> “RAW Commands:  raw <netfn> <cmd> [data]
>
> Network Function Codes:
>
>   VAL   HEX     STRING
> ==============================================
>   0     0x00    Chassis
>   2     0x02    Bridge
>   4     0x04    SensorEvent
>   6     0x06    Application
>   8     0x08    Firmware
>   10    0x0a    Storage
>   12    0x0c    Transport
> “
>
> This is my version of BMC image
> commit 282ba3dea1b56d620202e7ffe24cfdb671ceed6d
> Author: Alexander Filippov <a.filippov@yadro.com>
> Date:   Mon Sep 10 09:47:35 2018 +0300
>
> And this is the pnor image version.
> commit 4fd251a60984d2eb39ed5895a8f84b979f5d0b4a (HEAD -> master, origin/master, origin/HEAD)
> Merge: c50dae9 d8de440
> Author: Corey Swenson <cswenson@us.ibm.com>
> Date:   Tue Sep 4 12:18:44 2018 -0500
>
>
>
> ________________________________
> Da: Lei YU <mine260309@gmail.com>
> Inviato: mercoledì 26 settembre 2018 05:12
> A: Pietro Maltoni
> Cc: OpenBMC Maillist; Andrea Bartolini
> Oggetto: Re: Question on flashing firmware and bmc image
>
> The questions in the mail does not reflect to the title, hope you could use a
> more specific title.
>
> On Wed, Sep 26, 2018 at 7:53 AM Pietro Maltoni
> <pietro.maltoni@studio.unibo.it> wrote:
>
> > After installing it I've recognized that oem openpower commands and sensors are not available.
> >
> > For instance when doing ipmitool sdr elist I do not see openpower sensors(occ ones) as well as netfn in ipmi does not contain commands for the occ.
>
> What is the revision of your build?
> The ipmi related configs are not complete for Palmetto, and there is a
> [recent commit][1] to add part of the sensors for ipmi.
> With the commit, ipmi sdr elist works ok.
> If you are looking to adding more sensors, patches are welcome!
>
> And what do you mean by "netfn in ipmi does not contain commands for the occ"?
>
> >
> > By searching on the code I've recognized that these are in meta-openpower recipes. How can i enable them? Is there a standard procedure for enabling them on openpower hardware or in palmetto?
>
> Please refer to the below link as an example of ipmi config for Palmetto's
> sensors.
>
>
> [1]: https://github.com/openbmc/openbmc/commit/f47fb7cf87e6d69132f4ca101206dbf091097027#diff-d90eaa8cd7210f2f005894b7f7001d9d

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

end of thread, other threads:[~2018-09-27  1:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-24 14:16 Question on flashing firmware and bmc image Pietro Maltoni
2018-09-26  3:12 ` Lei YU
2018-09-26 16:48   ` Pietro Maltoni
2018-09-27  1:40     ` Lei YU

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.