From: Tom Rini <tom_rini@mentor.com>
To: <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH v2 7/7] sanity.bbclass: Check for /proc/sys/vm/mmap_min_addr to be >= 65536
Date: Wed, 2 Mar 2011 15:23:48 -0700 [thread overview]
Message-ID: <4D6EC374.6040709@mentor.com> (raw)
In-Reply-To: <1299055045-8096-8-git-send-email-raj.khem@gmail.com>
On 03/02/2011 01:37 AM, 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 | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
> index 13940f8..4fba852 100644
> --- a/meta/classes/sanity.bbclass
> +++ b/meta/classes/sanity.bbclass
> @@ -171,8 +171,8 @@ def check_sanity(e):
> 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"
> + 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"
> f.close()
> except:
> pass
Does this work or fail in the case where the file is unreadable? IIRC
that's the case in certain cases.
--
Tom Rini
Mentor Graphics Corporation
next prev parent reply other threads:[~2011-03-02 22:25 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-02 8:37 [PATCH V2 0/6] Fixes to get oe-core building Khem Raj
2011-03-02 8:37 ` [PATCH v2 1/7] sqlite3: Update version 3.7.3 -> 3.7.5 Khem Raj
2011-03-02 8:56 ` Koen Kooi
2011-03-02 20:35 ` Khem Raj
2011-03-02 9:48 ` Richard Purdie
2011-03-02 14:28 ` Mark Hatle
2011-03-02 20:41 ` Khem Raj
2011-03-02 22:14 ` Tom Rini
2011-03-03 5:29 ` Khem Raj
2011-03-02 8:37 ` [PATCH v2 2/7] lib/oe/path.py: Use bb.utils.mkdirhier instead of bb.mkdirhier Khem Raj
2011-03-02 8:37 ` [PATCH v2 3/7] linux-libc-headers_2.6.37.2.bb: Add checksums Khem Raj
2011-03-02 8:37 ` [PATCH v2 4/7] distro_tracking_fields.inc: Use 2.6.37.2 instead of 2.6.36 for linux-libc-headers Khem Raj
2011-03-02 8:37 ` [PATCH v2 5/7] qemu-0.13.0: Add patch to avoid mmap_min_addr Khem Raj
2011-03-02 8:37 ` [PATCH v2 6/7] gcc: Statically link in support libraries e.g. libmpfr libgmp etc Khem Raj
2011-03-02 8:37 ` [PATCH v2 7/7] sanity.bbclass: Check for /proc/sys/vm/mmap_min_addr to be >= 65536 Khem Raj
2011-03-02 22:23 ` Tom Rini [this message]
2011-03-02 23:21 ` Khem Raj
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=4D6EC374.6040709@mentor.com \
--to=tom_rini@mentor.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