Query regarding using the Redfish in OpenBMC

Joseph Reynolds jrey at linux.ibm.com
Sat Jul 25 07:57:50 AEST 2020


On 7/24/20 8:40 AM, Mike wrote:
> I’m trying to do the same and struggling to get it up on a Rasp Pi 4.
>
> My first approach was to add layers to meta-raspberrypi, and I got to 
> the point where the web was up, but I could not log in with root. I 
> added a missing layer that adds groups to the accounts and will test 
> later today.
>
> The second approach was to use the evb config files. But it can’t make 
> the image. It seems to be using meta-phosphor image layers instead of 
> meta-raspberrypi layers. I used openbmc tag 2.9. I will try 2.8 later 
> and see if it compiles.

I think your build configuration would include both the meta-raspberrypi 
and meta-phosphor layers.
The meta-phosphor layer brings in the BMCWeb recipe [1] and BMCWeb 
enables Redfish by default [2].
So I think your approach should work, but I do not have experience 
setting up machines.
Andrew added a tutorial for this [3].

[1]: 
https://github.com/openbmc/openbmc/blob/master/meta-phosphor/recipes-phosphor/interfaces/bmcweb_git.bb
[2]: https://github.com/openbmc/bmcweb/blob/master/CMakeLists.txt#L37
[3]: https://gist.github.com/geissonator/77d4f6c6ed17bb0693b4251137f77fb4

The root password is configured in the phosphor-defaults.inc [4] (and 
other places such as in various EVB layers) and the root user is 
authorized to use redfish APIs per the bmcweb recipe ([1] again).

[4]: 
https://github.com/openbmc/openbmc/blob/master/meta-phosphor/conf/distro/include/phosphor-defaults.inc#L229

Note the default port for BMCWeb is 443 (HTTPS).

A few more questions:
1. How are you getting the RPI's IP address?  Are you just looking for 
it, or do you learn it by using the RPI's serial connection and signing in?
2. Are you using the RPI's serial port to debug?  If so, can you sign on 
as root?  If you can, does the systemctl command show the bmcweb service 
is running?  If it is, does bmcweb show any error messages for failed 
attempts to use Redfish APIs?

- Joseph

>
> I will post more details later. I can provide config files etc. I am 
> away from my computer for awhile.
>
> How are you building? Are you using an evb config? What tag are you using?
>
>
>
> Sent from my iPhone
>
>> On Jul 24, 2020, at 6:01 AM, khader basha shaik 
>> <shaikkhaderbasha601 at gmail.com> wrote:
>>
>> 
>> Hi Joseph,
>>
>> Thanks for your response.
>>
>> I will be using Raspberrypi3 system.
>>
>> Can you please guide what further steps I should take in order to 
>> view the /redfish/v1 content in the 
>> web(https://xxx.xxx.xxx:8000/redfish/v1).

The default port is 443 (HTTPS) unless you changed it in a recipe. (This 
is not common.)
If you continue to enter "https:" you should not need to specify port.

>>
>> Any pointer on this is really helpful.
>>
>> I have gone through the documents the developer docs but could not 
>> find anything that points to enabling the redfish stuff in the browser.
>> Please correct me if i am wrong
>>
>> Thanks & Regards,
>> Khader B Shaik
>>
>>
>>
>> On Thu, 23 Jul 2020 at 19:25, Joseph Reynolds <jrey at linux.ibm.com 
>> <mailto:jrey at linux.ibm.com>> wrote:
>>
>>     On 7/23/20 5:48 AM, khader basha shaik wrote:
>>     > Hi Team,
>>     >
>>     > I am newbiee to  Openbmc.  I want to view  the redfish/v1
>>     > (https://10.xxx.xxx.xxx:8000/redfish/v1) contents in the browser
>>     > .Could you please guide me on what changes i need to so
>>     that i view
>>     > the /redfish/v1/ content in the browser .
>>     >
>>     > here are the steps i have followed:
>>     >
>>     >  1. Clone OpenBMC project : git clone
>>     > https://github.com/openbmc/openbmc.git in the server machine .
>>     >  2. Compile using the following command:
>>     >     TEMPLATECONF=meta-phosphor/conf  . openbmc-env
>>     >  3. modify the following files:
>>     >
>>     >   *  #build vi conf/local.conf  (modify the  line
>>     "-MACHINE??=qemuarm"
>>     >     " to "-MACHINE??=raspberrypi3-64" "
>>     >   * #build vi conf/bblayer.conf (add the following line
>>     >  "/home/khader<username>/openbmc/meta-raspberrypi \"  to the line
>>     >     above /home/khader<username>/openbmc/metaphosphor \"
>>     >
>>     >        4. #build  bitbake obmc-phosphor-image
>>     >
>>     > The above steps I have used to build an Openbmc project.
>>     >
>>     >
>>     > Can you help me what further steps should i need to do so that
>>     i can
>>     > view the /redfish/v1/  content in the webbrowser.
>>
>>     What BMC system will you use to upload, boot, and run the BMC
>>     firmware
>>     image?  A QEMU virtual system?
>>     Have you seen the developer docs here?
>>     https://github.com/openbmc/docs/tree/master/development
>>
>>     Good luck,
>>     - Joseph
>>
>>     >
>>     > Note:- I am compiling the openbmc code in the server machine.
>>     >
>>     > Any help /guidelines on this will really help me alot.
>>     > Appreciate all your help.
>>     >
>>     > Thanks & Regards,
>>     > khader B Shaik
>>



More information about the openbmc mailing list