From f6d5b98a5866911f6a3392ae073dad384e907388 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 6 May 2008 09:22:01 +0000 Subject: 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 --- scripts/poky-qemu-internal | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'scripts') 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 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 -- cgit v1.2.3-54-g00ecf