From: Grazvydas Ignotas Date: Sat, 27 Feb 2016 21:30:33 +0000 (+0200) Subject: pandora-state: remove mmap limit X-Git-Tag: sz_174~5 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=openpandora.oe.git;a=commitdiff_plain;h=0b2cfd883b0352fb34de9802fa8d666a0fee4f53 pandora-state: remove mmap limit might be useful for emulators --- diff --git a/recipes/pandora-system/pandora-state.bb b/recipes/pandora-system/pandora-state.bb index 4f5cc4a..c87375a 100755 --- a/recipes/pandora-system/pandora-state.bb +++ b/recipes/pandora-system/pandora-state.bb @@ -5,7 +5,7 @@ COMPATIBLE_MACHINE = "omap3-pandora" RDEPENDS = "pandora-scripts" -PR = "r25" +PR = "r26" inherit update-rc.d INITSCRIPT_NAME = "pandora-state" diff --git a/recipes/pandora-system/pandora-state/rc.pandora-state b/recipes/pandora-system/pandora-state/rc.pandora-state index cbdfb36..82fdee7 100644 --- a/recipes/pandora-system/pandora-state/rc.pandora-state +++ b/recipes/pandora-system/pandora-state/rc.pandora-state @@ -132,6 +132,9 @@ d_start() { if [ -e /sys/devices/platform/soc-audio/PCM1773/pmdown_time ]; then echo 60000 > /sys/devices/platform/soc-audio/PCM1773/pmdown_time fi + + # remove the mmap limit, useful for emulators + echo 0 > /proc/sys/vm/mmap_min_addr } case "$1" in