commit | e762a08b77d7e15fc2fec983f6f5b5481f7e4bfa | [log] [tgz] |
---|---|---|
author | Milton D. Miller II <miltonm@us.ibm.com> | Wed Feb 24 12:04:05 2016 -0600 |
committer | Milton D. Miller II <miltonm@us.ibm.com> | Wed Feb 24 12:11:57 2016 -0600 |
tree | 0abeb7a0bae72384bf938de64e6ba4578ca6adc6 | |
parent | ec0ba3c1ddd26ccd7bfee27b2b900f7c73401ad9 [diff] |
initfs: Use stty to drain output before reboot To see all the messages during shutdown call stty cooked. A side effect of setting any mode is it will call ioctl(TIOC_DRAIN) to drain the buffers first without regard to any change in the mode. Shutdown and flash update now show the final ouptut and "Rebooting" message before the reboot system call. Before: + set +x Remaining mounts: tmpfs / tmpfs rw,nosuid,nodev,mode=755 0 0 dev /dev devtmpfs rw,relatime,size=126384k,nr_inodes=31596,mode=755 0 0 proc /proc proc rw,relatime 0 0 sys /s U-Boot 2013.07 (Feb 23 2016 - 10:21:23) After: + set +x Remaining mounts: tmpfs / tmpfs rw,nosuid,nodev,mode=755 0 0 dev /dev devtmpfs rw,relatime,size=126384k,nr_inodes=31596,mode=755 0 0 proc /proc proc rw,relatime 0 0 sys /sys sysfs rw,relatime 0 0 tmpfs /run tmpfs rw,nosuid,nodev,mode=755 0 0 reboot: Restarting system U-Boot 2013.07 (Feb 23 2016 - 10:21:23) 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