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
This commit is contained in:
Richard Purdie 2008-05-06 09:22:01 +00:00
parent 584aeb5e87
commit f6d5b98a58
1 changed files with 7 additions and 0 deletions

View File

@ -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