Redfish Mapped Commands

Jayashree D jayashree-d at hcl.com
Wed Aug 5 17:24:01 AEST 2020


Thanks Jason for your inputs.

-----Original Message-----
From: openbmc <openbmc-bounces+jayashree-d=hcl.com at lists.ozlabs.org> On Behalf Of openbmc-request at lists.ozlabs.org
Sent: Wednesday, August 5, 2020 1:37 AM
To: openbmc at lists.ozlabs.org
Subject: openbmc Digest, Vol 60, Issue 11

[CAUTION: This Email is from outside the Organization. Unless you trust the sender, Don’t click links or open attachments as it may be a Phishing email, which can steal your Information and compromise your Computer.]

Send openbmc mailing list submissions to
        openbmc at lists.ozlabs.org

To subscribe or unsubscribe via the World Wide Web, visit
        https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.ozlabs.org%2Flistinfo%2Fopenbmc&data=02%7C01%7Cjayashree-d%40hcl.com%7Ced51dc89b13a4679193008d838b27bdf%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637321686525370820&sdata=8YUrKSnnyVPhRhhCaplSQfPfXjI%2BZZMdqrouKdGv8U4%3D&reserved=0
or, via email, send a message with subject or body 'help' to
        openbmc-request at lists.ozlabs.org

You can reach the person managing the list at
        openbmc-owner at lists.ozlabs.org

When replying, please edit your Subject line so it is more specific than "Re: Contents of openbmc digest..."


Today's Topics:

   1. Re: Phosphor virtual sensor (Vijay Khemka)
   2. RE: Query regarding the host LPC address in
      phosphor-ipmi-flash (Connie Yin)
   3. Re: How to put sensors into the ObjectMapper (Matt Spinler)
   4. Re: Redfish Mapped Commands (Bills, Jason M)


----------------------------------------------------------------------

Message: 1
Date: Tue, 4 Aug 2020 18:03:02 +0000
From: Vijay Khemka <vijaykhemka at fb.com>
To: Brad Bishop <bradleyb at fuzziesquirrel.com>,
        "openbmc at lists.ozlabs.org" <openbmc at lists.ozlabs.org>
Subject: Re: Phosphor virtual sensor
Message-ID: <98697C01-7FF9-42C5-B942-2C22C3012AC7 at fb.com>
Content-Type: text/plain; charset="utf-8"

Thanks Brad

?On 8/4/20, 6:12 AM, "Brad Bishop" <bradleyb at fuzziesquirrel.com> wrote:

    On Fri, 2020-07-17 at 20:04 +0000, Vijay Khemka wrote:
    > Hi Brad,
    > Please create a following repo, I will start coding.
    >
    > Regards
    > -Vijay

    Sorry Vijay.  I finally created this today.

    -brad


------------------------------

Message: 2
Date: Tue, 4 Aug 2020 18:11:10 +0000
From: Connie Yin <ConnieY at ami.com>
To: Patrick Venture <venture at google.com>
Cc: "openbmc at lists.ozlabs.org" <openbmc at lists.ozlabs.org>
Subject: RE: Query regarding the host LPC address in
        phosphor-ipmi-flash
Message-ID:
        <E27B8EFBB1796B4A8CF2A20BF59146F901ADF4 at atlms1.us.megatrends.com>
Content-Type: text/plain; charset="utf-8"

Hi, Patrick,

Thanks a lot for the replay.

I got an e820 map of this x86 system (with aspeed ast2500) as follows, and chose the host-lpc address as 0xfe410000 (Unused) alongwith --length 0x10000

+-------------------------------------------------------------------------+
  | Size        | Start       | End         | Usage                         |
  | 16 MB       | 0xFD000000  | 0xFDFFFFFF  | SBREG                         |
  | 64 KB       | 0xFE000000  | 0xFE00FFFF  | PMC MBAR                      |
  | 4 KB        | 0xFE010000  | 0xFE010FFF  | SPI BAR0                      |
  | 88 KB       | 0xFE020000  | 0xFE035FFF  | SerialIo BAR in ACPI mode     |
  | 24 KB       | 0xFE036000  | 0xFE03BFFF  | Unused                        |
  | 4 KB        | 0xFE03C000  | 0xFE03CFFF  | Thermal Device in ACPI mode   |
  | 524 KB      | 0xFE03D000  | 0xFE0BFFFF  | Unused                        |
  | 256 KB      | 0xFE0C0000  | 0xFE0FFFFF  | TraceHub FW BAR               |
  | 1 MB        | 0xFE100000  | 0xFE1FFFFF  | TraceHub MTB BAR              |
  | 2 MB        | 0xFE200000  | 0xFE3FFFFF  | TraceHub SW BAR               |
  | 64 KB       | 0xFE400000  | 0xFE40FFFF  | CIO2 MMIO BAR in ACPI mode    |
  | 2 MB - 64KB | 0xFE410000  | 0xFE5FFFFF  | Unused                        |
  | 2 MB        | 0xFE600000  | 0xFE7FFFFF  | Temp address                  |
  +-------------------------------------------------------------------------+

And configured in BMC with these lines:

PACKAGECONFIG_append_xxx = " static-bmc"
PACKAGECONFIG_append_xxx = " aspeed-lpc"
PACKAGECONFIG_append_xxx = " reboot-update"
IPMI_FLASH_BMC_ADDRESS_xxx = "0x83000000"


And ran this app on host:

./burn_my_bmc
 --command update \
 --interface ipmilpc \
 --image image-bmc \
 --sig image-bmc.sig \
 --type image \
 --address 0xfe41000 \
 --length 0x10000


Sending over the firmware image.
sending writeMeta
writemeta sent
Progress: 100.00%
Sending over the hash file.
sending writeMeta
writemeta sent
Progress: 100.00%
Opening the verification file
Committing to /flash/verify to trigger service Calling stat on /flash/verify session to check status running success Returned success succeeded Opening the update file Committing to /flash/update to trigger service Calling stat on /flash/update session to check status running Opening the cleanup blob Exception received: blob exception received: Received IPMI_CC: 255




I was able to see there was a 32M size of image-bmc had been uploaded under /run/initramfs, but by using hexdump -C, finding this uploaded file was not the correct image data as expected.

Do you have any suggestions?


Thanks,
Connie









-----Original Message-----
From: Patrick Venture [mailto:venture at google.com]
Sent: Friday, July 31, 2020 3:57 PM
To: Connie Yin
Cc: openbmc at lists.ozlabs.org
Subject: Re: Query regarding the host LPC address in phosphor-ipmi-flash

On Fri, Jul 31, 2020 at 11:21 AM Connie Yin <ConnieY at ami.com> wrote:
>
> Hi, Team,
>
>
>
> I am checking this OpemBMC firmware update interface on an x86 system, and wondering how to construct this host LPC address at which the chunk is to be mapped.
>
> I saw once when test on some platform,  0xfedc1000 was used as host LPC address.
>
>
>
> Would anyone please elaborate a little bit more?  To get this host LPC address,  should I add/modify some drivers in BMC? What about host side?

The host-side address is a region set aside in the BIOS that gets reserved in the e820 map.  The BiOS dev adds it manually for this purpose.

>
>
>
>
>
> Thanks a lot.
>
> Connie
>
> P Please consider the environment before printing this email
>
> The information contained in this message may be confidential and proprietary to American Megatrends (AMI). This communication is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. Please promptly notify the sender by reply e-mail or by telephone at 770-246-8600, and then delete or destroy all copies of the transmission.

Please consider the environment before printing this email.

The information contained in this message may be confidential and proprietary to American Megatrends (AMI).  This communication is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited.  Please promptly notify the sender by reply e-mail or by telephone at 770-246-8600, and then delete or destroy all copies of the transmission.

------------------------------

Message: 3
Date: Tue, 4 Aug 2020 14:54:42 -0500
From: Matt Spinler <mspinler at linux.ibm.com>
To: Mike Jones <proclivis at gmail.com>, OpenBMC Maillist
        <openbmc at lists.ozlabs.org>
Subject: Re: How to put sensors into the ObjectMapper
Message-ID: <8d5f2838-4fe2-d8ec-1874-03ac90c4cc7f at linux.ibm.com>
Content-Type: text/plain; charset=utf-8; format=flowed



On 8/3/2020 1:03 PM, Mike Jones wrote:
> My RaspPi work has progressed but I don?t know how to get sensors in 
> the ObjectMapper, which I hope will mean sensors end up in webui.
>
> BASIC INFORMATION
> ------------------------------
>
> At this point, I have my PMbus devices in the device tree like this path:
>
> /sys/firmware/devicetree/base/soc/i2c at 7e804000/ltc2974 at 32/regulators/v
> out0
> to vout3
>
> And the config files like this path:
>
> /etc/default/obmc/hwmon/soc/i2c#7e804000/ltc2974 at 32/reg1 at 32.conf
> <mailto:32/reg1 at 32.conf>
>
> The sensors show up here:
>
> /sys/bus/i2c/devices/1-0032/hwmon/hwmon2
>
> Indicating that the device tree is causing hwmon to offer its 
> telemetry nodes.
>
> From my reading of the docs, it seems like the ObjectMapper keeps an 
> inventory of sensors.
>
> So to search, I did something like:
>
> dbus-send ?system -print-reply \
> ?dest=xyz.openbmc_project.ObjectMapper \ 
> /xyz/openbmc_project/object_mapper \ 
> xyz.openbmc_project.ObjectMapper.GetAncestors \ 
> string:?/xyz/openbmc_project/inventory.system? array:string: | grep
> ltc2974
>
> But none of my devices are there.
>
> I looked at meta-ibm and meta-hxt and could not see how to get the 
> devices into the ObjectMapper.
>
> ACTUAL QUESTIONS
> ------------------------------
>
> So I have these questions:
>
> - What it the mechanism for getting these into the ObjectMapper?

Hi,
The mapper just adds some convenience functions to be able to find things on D-Bus, so if the mapper can't find it, then it isn't on D-Bus.

https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fopenbmc%2Fdocs%2Fblob%2Fmaster%2Farchitecture%2Fsensor-architecture.md&data=02%7C01%7Cjayashree-d%40hcl.com%7Ced51dc89b13a4679193008d838b27bdf%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637321686525370820&sdata=XrhSeOpjTsuanS%2Bwnuk%2Bs2IxRT4NeSGe2sqx%2FuMQuUg%3D&reserved=0
talks about how
phosphor-hwmon-readd will put sensor values on D-Bus.? What I don't think it mentions is that it uses a udev rule to start its service when udev sees the hwmon subsystem hotplug.

> - Once there, will they show up in webui without any other files and 
> recipes?

Yea, they will show up as /xyz/openbmc_project/sensors/<type>/<name> and bmcweb can find that.

> - What docs might describe what I need to know to connect the hwmon 
> devices to the ObjectMapper?

That sensors doc I mentioned above has the goal of describing that.

> - Is there something I have to do to start the ObjectMapper service? I 
> don?t see it with a grep through systemctl.

The service file for that is
/lib/systemd/system/xyz.openbmc_project.ObjectMapper.service. Hopefully that is present on your system.

> - Is there an existing meta layer that would be a good example and a 
> pointer to the proper bb files to look at?

The meta-ibm layer makes extensive use of phosphor-hwmon:
meta-ibm/recipes-phoshpor/sensors/phosphor-hwmon_%.bbappend

>
> THE CODE/LAYERS
> ----------------------------
>
> My work so far is here:
>
> https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgith
> ub.com%2FProclivis%2Fmeta-pmbus&data=02%7C01%7Cjayashree-d%40hcl.c
> om%7Ced51dc89b13a4679193008d838b27bdf%7C189de737c93a4f5a8b686f4ca99419
> 12%7C0%7C0%7C637321686525370820&sdata=LEwalK4CSoxgu9NG72wpa8Xm9WoH
> %2F03qMMy6XhE0abI%3D&reserved=0
>
> Configured by:
>
> https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgith
> ub.com%2FProclivis%2Fconf-meta-rasberrypi-evb&data=02%7C01%7Cjayas
> hree-d%40hcl.com%7Ced51dc89b13a4679193008d838b27bdf%7C189de737c93a4f5a
> 8b686f4ca9941912%7C0%7C0%7C637321686525370820&sdata=7WQg6HwwctNGi%
> 2BwH9%2Bq3%2BskFR2vQ4yB4bCK3Xq0vH48%3D&reserved=0
>
> Thanks, and sorry I am a newbie without tribal knowledge. I am trying 
> to find solutions on my own and only ask for help when stuck.
> Unfortunately, I?m stuck.
>
> Mike


------------------------------

Message: 4
Date: Tue, 4 Aug 2020 13:06:18 -0700
From: "Bills, Jason M" <jason.m.bills at linux.intel.com>
To: openbmc at lists.ozlabs.org
Subject: Re: Redfish Mapped Commands
Message-ID: <adda0f71-217c-70e9-4dd6-d7300a018e48 at linux.intel.com>
Content-Type: text/plain; charset=windows-1252; format=flowed



On 8/4/2020 7:53 AM, Jayashree D wrote:
> Hi All,
>
> I am about to test redfish commands for the following features.
>
> Can anyone point me the related redfish commands for those features?
>
> 1. We are using X86 power control, is there any compatible commands in 
> redfish to test?
 From the system resource (/redfish/v1/Systems/system), you can find the ComputerSystem.Reset action which can be used to initiate resets:
     "Actions": {
         "#ComputerSystem.Reset": {
             "@Redfish.ActionInfo":
"/redfish/v1/Systems/system/ResetActionInfo",
             "target":
"/redfish/v1/Systems/system/Actions/ComputerSystem.Reset"
         }
     },

The allowable values for ResetType are here:
/redfish/v1/Systems/system/ResetActionInfo.

>
> 2. FRU information.
>
> 3. obmc-console-client to connect the host.
>
> 4. To set, start and stop the fan speed controller.
>
> 5. Host Logger.
If you mean the event log, it is here:
/redfish/v1/Systems/system/LogServices/EventLog.

>
> 6. LED
>
> 7. BIOS Upgrade
>
> 8. Settings Manager
>
> Thanks,
>
> Regards,
>
> Jayashree
>
> ::DISCLAIMER::
> ----------------------------------------------------------------------
> -- The contents of this e-mail and any attachment(s) are confidential 
> and intended for the named recipient(s) only. E-mail transmission is 
> not guaranteed to be secure or error-free as information could be 
> intercepted, corrupted, lost, destroyed, arrive late or incomplete, or 
> may contain viruses in transmission. The e mail and its contents (with 
> or without referred errors) shall therefore not attach any liability 
> on the originator or HCL or its affiliates. Views or opinions, if any, 
> presented in this email are solely those of the author and may not 
> necessarily reflect the views or opinions of HCL or its affiliates. 
> Any form of reproduction, dissemination, copying, disclosure, 
> modification, distribution and / or publication of this message 
> without the prior written consent of authorized representative of HCL 
> is strictly prohibited. If you have received this email in error 
> please delete it and notify the sender immediately. Before opening any 
> email and/or attachments, please check them for viruses and other defects.
> ----------------------------------------------------------------------
> --


End of openbmc Digest, Vol 60, Issue 11
***************************************


More information about the openbmc mailing list