diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2016-01-25 00:45:59 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-26 22:31:09 +0000 |
commit | 155ba626b46bf71acde6c24402fce1682da53b90 (patch) | |
tree | 138701811f0554a238d1c84055b8e3c376cfd9ce /meta/conf/abi_version.conf | |
parent | a9db2b514e1f1093cd80a7793813136f26e531da (diff) | |
download | openembedded-core-155ba626b46bf71acde6c24402fce1682da53b90.tar.gz openembedded-core-155ba626b46bf71acde6c24402fce1682da53b90.tar.bz2 openembedded-core-155ba626b46bf71acde6c24402fce1682da53b90.zip |
image.bbclass: check INITRAMFS_MAXSIZE
Usually, the initramfs' maxsize can be 1/2 of ram size since modern
kernel uses tmpfs as initramfs by dafault, and tmpfs allocates 1/2 of
ram by default at boot time, which will be used to locate the initramfs.
Set INITRAMFS_MAXSIZE to 131072K (128M) by default (ram 256M), the
initramfs is small usually, for example, core-image-minimal-initramfs is
about 21M (uncompressed, 17M * 1.3) by default, but if the user add a
lot pkgs to initramfs, we can error and stop to let the user know ealier
rather than fail to boot (e.g., OOM-killer) at boot time.
Please see the bug for more info:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=5963
[YOCTO #5963]
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/conf/abi_version.conf')
0 files changed, 0 insertions, 0 deletions