pandora-state: remove mmap limit
authorGrazvydas Ignotas <notasas@gmail.com>
Sat, 27 Feb 2016 21:30:33 +0000 (23:30 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Sat, 27 Feb 2016 21:30:33 +0000 (23:30 +0200)
might be useful for emulators

recipes/pandora-system/pandora-state.bb
recipes/pandora-system/pandora-state/rc.pandora-state

index 4f5cc4a..c87375a 100755 (executable)
@@ -5,7 +5,7 @@ COMPATIBLE_MACHINE = "omap3-pandora"
 
 RDEPENDS = "pandora-scripts"
 
 
 RDEPENDS = "pandora-scripts"
 
-PR = "r25"
+PR = "r26"
 inherit update-rc.d
 
 INITSCRIPT_NAME = "pandora-state"
 inherit update-rc.d
 
 INITSCRIPT_NAME = "pandora-state"
index cbdfb36..82fdee7 100644 (file)
@@ -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
        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
 }
 
 case "$1" in