summaryrefslogtreecommitdiffstats
path: root/scripts/poky-qemu-internal
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-05-06 09:22:01 +0000
committerRichard Purdie <richard@openedhand.com>2008-05-06 09:22:01 +0000
commitf6d5b98a5866911f6a3392ae073dad384e907388 (patch)
tree472e5d7a6985473c74feb5a5aa27d343c60b6e13 /scripts/poky-qemu-internal
parent584aeb5e871a610d6f65c139fd31e6403e08f73c (diff)
downloadpoky-f6d5b98a5866911f6a3392ae073dad384e907388.tar.gz
scripts/poky-qemu-internal: Check /proc/sys/vm/mmap_min_addr value and error if its potentially problematic
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4437 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'scripts/poky-qemu-internal')
-rwxr-xr-xscripts/poky-qemu-internal7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/poky-qemu-internal b/scripts/poky-qemu-internal
index 64273bda38..c5f38e74d3 100755
--- a/scripts/poky-qemu-internal
+++ b/scripts/poky-qemu-internal
@@ -77,6 +77,13 @@ if [ ! -f "$ZIMAGE" ]; then
77 return 77 return
78fi 78fi
79 79
80if [ -e /proc/sys/vm/mmap_min_addr ]; then
81 if [ `cat /proc/sys/vm/mmap_min_addr` != "0" ]; then
82 echo "Error, please set /proc/sys/vm/mmap_min_addr to 0 since otherwise it can cause problems with QEMU"
83 return
84 fi
85fi
86
80if [ "$MACHINE" = "qemuarm" ]; then 87if [ "$MACHINE" = "qemuarm" ]; then
81 QEMU=qemu-system-arm 88 QEMU=qemu-system-arm
82 if [ "$TYPE" = "ext2" ]; then 89 if [ "$TYPE" = "ext2" ]; then