From: Martin Jansa <martin.jansa@gmail.com>
To: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCHv3 4/6] sanity.bbclass: Check for /proc/sys/vm/mmap_min_addr to be >= 65536
Date: Thu, 3 Mar 2011 08:15:06 +0100 [thread overview]
Message-ID: <20110303071506.GA419@jama.jama.net> (raw)
In-Reply-To: <1299135167-18330-5-git-send-email-raj.khem@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2296 bytes --]
On Wed, Mar 02, 2011 at 10:52:45PM -0800, Khem Raj wrote:
> * Now qemu can handle lower values we can chnage this sanity test
> to check of values if less than 65536
>
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
> meta/classes/sanity.bbclass | 10 ++++++----
> 1 files changed, 6 insertions(+), 4 deletions(-)
>
> diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
> index 13940f8..aae5028 100644
> --- a/meta/classes/sanity.bbclass
> +++ b/meta/classes/sanity.bbclass
> @@ -170,10 +170,12 @@ def check_sanity(e):
> # This path is no longer user-readable in modern (very recent) Linux
> try:
> if os.path.exists("/proc/sys/vm/mmap_min_addr"):
> - f = file("/proc/sys/vm/mmap_min_addr", "r")
> - if (f.read().strip() != "0"):
> - messages = messages + "/proc/sys/vm/mmap_min_addr is not 0. This will cause problems with qemu so please fix the value (as root).\n\nTo fix this in later reboots, set vm.mmap_min_addr = 0 in /etc/sysctl.conf.\n"
> - f.close()
> + f = open("/proc/sys/vm/mmap_min_addr", "r")
> + try:
> + if (int(f.read().strip()) < 65536):
> + messages = messages + "/proc/sys/vm/mmap_min_addr is not >= 65536. This will cause problems with qemu so please fix the value (as root).\n\nTo fix this in later reboots, set vm.mmap_min_addr = 65536 in /etc/sysctl.conf.\n"
> + finally:
> + f.close()
> except:
> pass
>
corner cases when it cannot be read are with kernel between
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=0e1a6ef2dea88101b056b6d9984f3325c5efced3
2.6.33-rc2-0e1a6ef2dea88101b056b6d9984f3325c5efced3
and
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=822cceec7248013821d655545ea45d1c6a9d15b3
2.6.34-rc3-822cceec7248013821d655545ea45d1c6a9d15b3
see:
http://www.mail-archive.com/openembedded-devel@lists.openembedded.org/msg02340.html
Don't know if any large distribution is using 2.6.34 without that 2nd
patch backported.
Regards,
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Type: application/pgp-signature, Size: 205 bytes --]
next prev parent reply other threads:[~2011-03-03 7:16 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-03 6:52 [PATCH V2 0/6] Fixes to get oe-core building Khem Raj
2011-03-03 6:52 ` [PATCHv3 1/6] sqlite3: Update version 3.7.3 -> 3.7.5 Khem Raj
2011-03-03 6:52 ` [PATCHv3 2/6] distro_tracking_fields.inc: Use 2.6.37.2 instead of 2.6.36 for linux-libc-headers Khem Raj
2011-03-08 6:39 ` Khem Raj
2011-03-08 18:51 ` Richard Purdie
2011-03-03 6:52 ` [PATCHv3 3/6] gcc: Statically link in support libraries e.g. libmpfr libgmp etc Khem Raj
2011-03-08 6:38 ` Khem Raj
2011-03-08 18:53 ` Richard Purdie
2011-03-08 19:04 ` Khem Raj
2011-03-12 12:50 ` Richard Purdie
2011-03-14 16:50 ` Tom Rini
2011-03-14 19:54 ` Richard Purdie
2011-03-15 17:33 ` Tom Rini
2011-03-16 13:27 ` Richard Purdie
2011-03-16 17:17 ` Tom Rini
2011-03-14 17:52 ` Khem Raj
2011-03-14 18:01 ` Richard Purdie
2011-03-14 18:42 ` Khem Raj
2011-03-03 6:52 ` [PATCHv3 4/6] sanity.bbclass: Check for /proc/sys/vm/mmap_min_addr to be >= 65536 Khem Raj
2011-03-03 7:15 ` Martin Jansa [this message]
2011-03-03 12:13 ` Richard Purdie
2011-03-03 15:48 ` Khem Raj
2011-03-03 6:52 ` [PATCHv3 5/6] poky-default.inc: Change LINUXLIBCVERSION "2.6.36" -> "2.6.37.2" Khem Raj
2011-03-08 6:39 ` Khem Raj
2011-03-08 18:48 ` Richard Purdie
2011-03-03 6:52 ` [PATCHv3 6/6] rpm: Fix linking error encountered in rpm-native Khem Raj
2011-03-03 12:07 ` Richard Purdie
2011-03-03 12:43 ` Koen Kooi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110303071506.GA419@jama.jama.net \
--to=martin.jansa@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox