GithubHelp home page GithubHelp logo

yoonchae / openbmc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from facebook/openbmc

0.0 1.0 0.0 1.44 MB

OpenBMC is an open software framework to build a complete Linux image for a Board Management Controller (BMC).

Makefile 2.06% C 59.47% BitBake 5.63% Shell 9.70% C++ 4.31% Python 16.55% PHP 0.99% SourcePawn 0.61% Assembly 0.22% Pascal 0.47%

openbmc's Introduction

OpenBMC

OpenBMC is an open software framework to build a complete Linux image for a Board Management Controller (BMC).

OpenBMC uses Yocto as the underlying building framework.

Contents

This repository includes 3 set of layers:

  • OpenBMC Common Layer - Common packages and recipes can be used in different types of BMC.
  • BMC System-on-Chip (SoC) Layer - SoC specific drivers and tools. This layer includes the bootloader (u-boot) and the Linux kernel. Both the bootloader and Linux kernel shall include the hardware drivers specific for the SoC.
  • Board Specific Layer - Board specific drivers, configurations, and tools. This layer defines how to configure the image. It also defines what packages to be installed for an OpenBMC image for this board. Any board specific initialization and tools are also included in this layer.

File structure

Yocto naming pattern is used in this repository. meta-layer is used to name a layer. And recipe-abc is used to name a recipe.

The recipes for OpenBMC common layer should be in meta-openbmc/common.

BMC SoC layer and board specific layer are grouped together based on the vendor/manufacturer name. For example, all Facebook boards specific code should be in meta-openbmc/meta-facebook. And meta-openbmc/meta-aspeed includes source code for Aspeed SoCs.

How to build

  • Step 0 - Set up the build environment based on the Yocto project document.

  • Step 1 - Clone Yocto repository.

$ git clone -b fido https://git.yoctoproject.org/git/poky
  • Step 2 - Clone Openembedded and OpenBMC repositories, in the new created poky directory,
$ cd poky
$ git clone -b fido https://github.com/openembedded/meta-openembedded.git
$ git clone [email protected]:facebook/openbmc.git meta-openbmc
  • Step 3 - Initialize a build directory. In poky directory,
$ export TEMPLATECONF=meta-openbmc/meta-facebook/meta-wedge/conf
$ source oe-init-build-env

After this step, you will be dropped into a build directory, poky/build.

  • Step 4 - Start the build within the build directory, poky/build.
$ bitbake wedge-image

The build process automatically fetches all necessary packages and build the complete image. The final build results are in poky/build/tmp/deploy/images/wedge.

  • u-boot.bin - This is the u-boot image for the board.
  • uImage - This the Linux kernel for the board.
  • wedge-image-wedge.cpio.lzma.u-boot - This is the rootfs for the board
  • flash-wedge - This is the complete flash image including u-boot, kernel, and the rootfs.

How can I contribute

If you have an application that can be used by different BMCs, you can contribute your application to the OpenBMC common layer.

If you are a BMC SoC vendor, you can contribute your SoC specific drivers to the BMC SoC layer.

If you are a board vendor, you can contribute your board specific configurations and tools to the Board specific layer. If the board uses a new BMC SoC that is not part of the BMC SoC layer, the SoC specific driver contribution to the BMC SoC layer is also required.

openbmc's People

Contributors

tfangit avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.