base-files: add sysctl.conf

* Reduce kernel console loglevel for all platforms.
* Protect DMA zone for MX5 platforms (for gstreamer/vpu)

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
Javier Viguera 2013-04-26 18:36:55 +02:00
parent daee2f556d
commit a4c6504f5c
2 changed files with 15 additions and 1 deletions

View File

@ -0,0 +1,3 @@
# Console log-level
kernel.printk = 4 4 1 7

View File

@ -5,7 +5,10 @@ PR_append = "+${DISTRO}"
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
SRC_URI += "file://os-release"
SRC_URI += " \
file://os-release \
file://sysctl.conf \
"
TIMESTAMP = "${@time.strftime('%Y%m%d%H%M')}"
LAYERS_REV = "${@"\nLayers revisions:\n%s\n" % '\n'.join(get_layers_branch_rev(d))}"
@ -26,4 +29,12 @@ do_install_append() {
cat >> ${D}${sysconfdir}/os-release <<-EOF
${LAYERS_REV}
EOF
install -m 0644 ${WORKDIR}/sysctl.conf ${D}${sysconfdir}/
}
do_install_append_mx5() {
cat >> ${D}${sysconfdir}/sysctl.conf <<-EOF
# Protect the DMA zone and avoid memory allocation error
vm.lowmem_reserve_ratio = 1 1
EOF
}