From 0b2cfd883b0352fb34de9802fa8d666a0fee4f53 Mon Sep 17 00:00:00 2001 From: Grazvydas Ignotas Date: Sat, 27 Feb 2016 23:30:33 +0200 Subject: [PATCH] pandora-state: remove mmap limit might be useful for emulators --- recipes/pandora-system/pandora-state.bb | 2 +- recipes/pandora-system/pandora-state/rc.pandora-state | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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 -- 2.39.2