Question on flashing firmware and bmc image

Lei YU mine260309 at gmail.com
Thu Sep 27 11:40:27 AEST 2018


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 at 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 at 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 at us.ibm.com>
> Date:   Tue Sep 4 12:18:44 2018 -0500
>
>
>
> ________________________________
> Da: Lei YU <mine260309 at 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 at 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


More information about the openbmc mailing list