cheatsheet.md (5e080664d9fd52160c9bbf41d0d76db40db28796) | cheatsheet.md (155192f5158dac8c330e350cdddae92719d1b2ad) |
---|---|
1 2# OpenBMC cheatsheet 3 4This document is intended to provide a set of recipes for common OpenBMC 5customisation tasks, without having to know the full yocto build process. 6 7## Using a local kernel build 8 --- 34 unchanged lines hidden (view full) --- 43$ TEMPLATECONF=meta-openbmc-machines/meta-openpower/meta-rackspace/meta-barreleye/conf . oe-init-build-env 44$ bitbake obmc-phosphor-image 45``` 46 47## Building the OpenBMC SDK 48Looking for a way to compile your programs for 'ARM' but you happen to be running on a 'PPC' or 'x86' system? You can build the sdk receive a fakeroot environment. 49``` 50$ bitbake -c populate_sdk obmc-phosphor-image | 1 2# OpenBMC cheatsheet 3 4This document is intended to provide a set of recipes for common OpenBMC 5customisation tasks, without having to know the full yocto build process. 6 7## Using a local kernel build 8 --- 34 unchanged lines hidden (view full) --- 43$ TEMPLATECONF=meta-openbmc-machines/meta-openpower/meta-rackspace/meta-barreleye/conf . oe-init-build-env 44$ bitbake obmc-phosphor-image 45``` 46 47## Building the OpenBMC SDK 48Looking for a way to compile your programs for 'ARM' but you happen to be running on a 'PPC' or 'x86' system? You can build the sdk receive a fakeroot environment. 49``` 50$ bitbake -c populate_sdk obmc-phosphor-image |
51$ ./tmp/deploy/sdk/openbmc-phosphor-glibc-x86_64-obmc-phosphor-image-armv5e-toolchain-1.8+snapshot.sh | 51$ ./tmp/deploy/sdk/openbmc-phosphor-glibc-x86_64-obmc-phosphor-image-armv5e-toolchain-2.1.sh |
52``` 53Follow the prompts. After it has been installed the default to setup your env will be similar to this command 54``` | 52``` 53Follow the prompts. After it has been installed the default to setup your env will be similar to this command 54``` |
55. /opt/openbmc-phosphor/1.8+snapshot/environment-setup-armv5e-openbmc-linux-gnueabi | 55. /opt/openbmc-phosphor/2.1/environment-setup-armv5e-openbmc-linux-gnueabi |
56``` 57 58## Rebuilds & Reconfiguration 59 60You can reconfigure your build by removing the build/conf dir: 61``` 62rm -rf build/conf 63``` --- 95 unchanged lines hidden --- | 56``` 57 58## Rebuilds & Reconfiguration 59 60You can reconfigure your build by removing the build/conf dir: 61``` 62rm -rf build/conf 63``` --- 95 unchanged lines hidden --- |