How to build openBMC binary for Palmetto

Palmetto is the power server that Tyan built.

In my work at Rackspace, I often build custom openBMC builds for the sake of testing stability / new features. We have couple of Palmetto servers that we very occasionally play with.

Here’s how you can build your own openBMC binary for Palmetto.

If you are building on Ubuntu you need to install following packages before you build openBMC:

sudo apt-get install -y git build-essential libsdl1.2-dev texinfo gawk chrpath diffstat

If you are building on Fedora 23 you need to install the following packages before you build openBMC

sudo dnf install -y git patch diffstat texinfo chrpath SDL-devel bitbake
sudo dnf groupinstall "C Development Tools and Libraries"

 

Build Process:

First, clone the openBMC repository from github. If you are cloning form master this is how you’d do it:

git clone https://github.com/openbmc/openbmc

Then run the following commands for Palmetto:

cd openbmc
TEMPLATECONF=meta-openbmc-machines/meta-openpower/meta-ibm/meta-palmetto/conf . oe-init-build-env
bitbake obmc-phosphor-image

 

If you run it a laptop with decent power, it takes about 2-3 hours.

If you wanna rebuild your binary, then you will have to first clear your config before you run above 3 commands again.

This is the command to clear the config:

rm -rf build/conf

Comment here for any issues you run into, while building the binary or if you want a link to a latest binary.

Advertisements
How to build openBMC binary for Palmetto

3 thoughts on “How to build openBMC binary for Palmetto

  1. yio says:

    Dear ADIGANGIDI,

    Thank you very much to share your work on palmetto. We are also working on palmetto to play with both openBMC and openpower stack. We have build the image but since I’m afraid to burn out my palmetto, I can not dare to flash my binary. Is it possible to share an openBMC image for palmetto that you have already tried? and also how do you flash that image? there is a tool in megarac console but is there any other way?

    Thank you very much,
    Best wishes,
    yio

    Like

    1. hi yio

      You can try flashing the binary from host using SoC flash tool. Never tried megarac. You can also use flash programmers to directly flash the binary.

      Best
      Adi

      Like

  2. yio says:

    Dear Adi,

    Thank you for your reply. may you share your the bmc image file that is produced after the build procedure you give here. Than we may compare with ours to be sure with our configuration. Besides we can first try to burn the flash with the one you build and tested on palmetto. Since there is no golden Flash on Palmetto, I want to double check our build procedure and environment.

    Best wishes,
    Yusuf.

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s