From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: some possible fixes in the OE web pages
Date: Thu, 13 May 2010 08:40:37 +0200 [thread overview]
Message-ID: <20100513064037.GB3370@jama> (raw)
In-Reply-To: <201005130953.59314.roman@khimov.ru>
On Thu, May 13, 2010 at 09:53:54AM +0400, Roman I Khimov wrote:
> В сообщении от Четверг 13 мая 2010 01:30:53 автор Robert P. J. Day написал:
> > * on http://wiki.openembedded.net/index.php/OEandYourDistro#Ubuntu,
> > there's a reference to configuring for qemu-arm:
> >
> > echo 128 > /proc/sys/vm/mmap_min_addr
> >
> > from memory, i always simply set that to zero on fedora. is there
> > something magic about the value 128? at the moment, it's at the
> > default value of 65536 on this ubuntu system.
>
> With current qemu in OE mmap_min_addr tricks are not needed at all.
Hi,
On some systems (I have report from fedora and kubuntu) it still needs 0
in mmap_min_addr :/.
Investigating why, but it's slow because it doesn't fail on my box.
My guess is that this chunk from
http://git.qemu.org/qemu.git/tree/linux-user/main.c
cannot work on systems where normal user is not allowed to read
/proc/sys/vm/mmap_min_addr and mmap_min_addr is not initialized with
sane value.
/*
* Read in mmap_min_addr kernel parameter. This value is used
* When loading the ELF image to determine whether guest_base
* is needed. It is also used in mmap_find_vma.
*/
{
FILE *fp;
if ((fp = fopen("/proc/sys/vm/mmap_min_addr", "r")) != NULL) {
unsigned long tmp;
if (fscanf(fp, "%lu", &tmp) == 1) {
mmap_min_addr = tmp;
qemu_log("host mmap_min_addr=0x%lx\n", mmap_min_addr);
}
fclose(fp);
}
}
But here (gentoo) it works ok with 4096 in mmap_min_addr and qemu-native
from OE as well as app-emulation/qemu-kvm-0.12.3* from gentoo.
BTW: 0.12.4 is out, but in changelog I don't see anything I must have.
Regards,
--
uin:136542059 jid:Martin.Jansa@gmail.com
Jansa Martin sip:jamasip@voip.wengo.fr
JaMa
next prev parent reply other threads:[~2010-05-13 6:44 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-12 21:30 some possible fixes in the OE web pages Robert P. J. Day
2010-05-13 5:53 ` Roman I Khimov
2010-05-13 6:40 ` Martin Jansa [this message]
2010-05-13 8:23 ` Roman I Khimov
2010-05-13 8:46 ` Martin Jansa
2010-05-13 8:59 ` Roman I Khimov
2010-05-13 9:23 ` Martin Jansa
2010-05-13 9:38 ` QEMU mmap_min_addr issue Was: " Martin Jansa
2010-05-13 10:11 ` Martin Jansa
2010-05-13 12:20 ` Robert P. J. Day
2010-05-13 12:32 ` Martin Jansa
2010-05-13 12:53 ` Robert P. J. Day
2010-05-13 10:17 ` Robert P. J. Day
2010-05-13 10:18 ` Robert P. J. Day
2010-05-13 9:57 ` Robert P. J. Day
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=20100513064037.GB3370@jama \
--to=martin.jansa@gmail.com \
--cc=openembedded-devel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.