commit | bfb33b53d01b3e3db2e2b52b2bff622367c08804 | [log] [tgz] |
---|---|---|
author | Milton Miller <miltonm@us.ibm.com> | Mon May 23 18:22:11 2016 -0500 |
committer | Milton Miller <miltonm@us.ibm.com> | Thu Jun 30 14:46:43 2016 -0500 |
tree | 32d132392b2c11004230d6988f216a48e7bf068b | |
parent | aa42dfda27582483ccf907720d4bb2e386b6d761 [diff] |
initfs: update: add check for image size vs mtd size The flashcp command will check the file size vs the partition size, so add a check when looking at images. Use stat -L -c "%s" to get the file size, and compare it to the mtd size from the sysfs size attribute. If this check is suppressed the enforcement is left to flashcp. Signed-off-by: Milton Miller <miltonm@us.ibm.com>
OpenBMC uses Yocto/Open-Embedded for a build system, which supports an out-of-tree build. It is recommended that you create an empty directory somewhere to hold the build. This directory will get big.
On Ubuntu 14.04 the following packages are required to build the default target
sudo apt-get install -y git build-essential libsdl1.2-dev texinfo gawk chrpath diffstat
On Fedora 23 the following packages are required to build the default target:
sudo dnf install -y git patch diffstat texinfo chrpath SDL-devel bitbake sudo dnf groupinstall "C Development Tools and Libraries"
To start a build:
cd <builddir> . <repodir>/openbmc-env bitbake obmc-phosphor-image