]> code.ossystems Code Review - openembedded-core.git/commitdiff
scripts/poky-qemu-internal: Check /proc/sys/vm/mmap_min_addr value and error if its...
authorRichard Purdie <richard@openedhand.com>
Tue, 6 May 2008 09:22:01 +0000 (09:22 +0000)
committerRichard Purdie <richard@openedhand.com>
Tue, 6 May 2008 09:22:01 +0000 (09:22 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4437 311d38ba-8fff-0310-9ca6-ca027cbcb966

scripts/poky-qemu-internal

index 64273bda381c2fa10bea251eee90066ad288edd5..c5f38e74d31b63d288f770dd63603e21f7aa2d2a 100755 (executable)
@@ -77,6 +77,13 @@ if [ ! -f "$ZIMAGE" ]; then
     return
 fi
 
+if [ -e /proc/sys/vm/mmap_min_addr ]; then
+    if [ `cat /proc/sys/vm/mmap_min_addr` != "0" ]; then
+        echo "Error, please set /proc/sys/vm/mmap_min_addr to 0 since otherwise it can cause problems with QEMU"
+       return
+    fi
+fi
+
 if [ "$MACHINE" = "qemuarm" ]; then
     QEMU=qemu-system-arm
     if [ "$TYPE" = "ext2" ]; then