Skip to contentSkip to conversation

qemu again :(

DISCUSSION Steffen Sledz 3 participants 5 messages Nov 5, 2009 – Jan 18, 2010

lore
Share & tools
lore
#0 lore raw

Yesterday i tried to use OE at my new notebook for the first time. But i hit a qemu problem again:

# bitbake emacs (clean build)

ERROR: function do_compile failed
ERROR: log data follows (/home/sledz/work/HydraIP/OE/tmp.4/work/armv5te-angstrom-linux-gnueabi/emacs-22.3-r1/temp/log.do_compile.8552) | NOTE: make -j 8 QEMU=qemu-arm -s 1048576 -L /home/sledz/work/HydraIP/OE/tmp.4/work/armv5te-angstrom-linux-gnueabi/emacs-22.3-r1/qemu-treedir
...
| mmap: Permission denied
| make[1]: *** [test-distrib] Error 255

All solutions for this problem i found see the cause in a wrong setting of mmap_min_addr (see e.g.
<http://www.bugcommunity.com/wiki/index.php/Kernel_and_Rootfs_Build_System#Potential_Problems_.26_Their_Solutions:>).

But this setting is correct at my notebook:

# cat /proc/sys/vm/mmap_min_addr
0

Hmmmm? What else could be the cause for this error?

Steffen

#1 lore raw
Quoted 18 lines · Steffen Sledz

Yesterday i tried to use OE at my new notebook for the first time. But i hit a qemu problem again:

# bitbake emacs (clean build)

ERROR: function do_compile failed
ERROR: log data follows (/home/sledz/work/HydraIP/OE/tmp.4/work/armv5te-angstrom-linux-gnueabi/emacs-22.3-r1/temp/log.do_compile.8552) | NOTE: make -j 8 QEMU=qemu-arm -s 1048576 -L /home/sledz/work/HydraIP/OE/tmp.4/work/armv5te-angstrom-linux-gnueabi/emacs-22.3-r1/qemu-treedir
...
| mmap: Permission denied
| make[1]: *** [test-distrib] Error 255

All solutions for this problem i found see the cause in a wrong setting of mmap_min_addr (see e.g.
<http://www.bugcommunity.com/wiki/index.php/Kernel_and_Rootfs_Build_System#Potential_Problems_.26_Their_Solutions:>).

Quoted 6 lines

But this setting is correct at my notebook:

# cat /proc/sys/vm/mmap_min_addr
0

Hmmmm? What else could be the cause for this error?

i suspect koen will hate me for this but i documented what it took
for me to build angstrom over at my wiki:

http://www.crashcourse.ca/wiki/index.php/Angstrom

and if you read carefully, you'll notice that even if that value is correctly set to zero, you might still get an SELinux violation. it's just a suggestion.

rday
--

========================================================================
Robert P. J. Day Waterloo, Ontario, CANADA

Linux Consulting, Training and Kernel Pedantry.

Web page:                                          http://crashcourse.ca
Twitter:                                       http://twitter.com/rpjday

========================================================================

#2 lore raw
Quoted 11 lines · Robert P. J. Day
Quoted 11 lines

Yesterday i tried to use OE at my new notebook for the first time. But i hit a qemu problem again:
...
| mmap: Permission denied

All solutions for this problem i found see the cause in a wrong setting of mmap_min_addr (see e.g.
<http://www.bugcommunity.com/wiki/index.php/Kernel_and_Rootfs_Build_System#Potential_Problems_.26_Their_Solutions:>).

But this setting is correct at my notebook:

Quoted 7 lines
Quoted 2 lines
# cat /proc/sys/vm/mmap_min_addr
0

...
and if you read carefully, you'll notice that even if that value is correctly set to zero, you might still get an SELinux violation. it's just a suggestion.

Thanx for the hint, but there's no SELinux (and no Apparmor) running.

Steffen

#3 lore raw
Quoted 14 lines · Steffen Sledz
Quoted 13 lines
Quoted 13 lines

Yesterday i tried to use OE at my new notebook for the first time. But i hit a qemu problem again:
...
| mmap: Permission denied

All solutions for this problem i found see the cause in a wrong setting of mmap_min_addr (see e.g.
<http://www.bugcommunity.com/wiki/index.php/Kernel_and_Rootfs_Build_System#Potential_Problems_.26_Their_Solutions:>).

But this setting is correct at my notebook:

# cat /proc/sys/vm/mmap_min_addr
0
Quoted 6 lines
Quoted 4 lines

...
and if you read carefully, you'll notice that even if that value is correctly set to zero, you might still get an SELinux violation. it's just a suggestion.

Thanx for the hint, but there's no SELinux (and no Apparmor) running.

I have the same problem on Ubuntu 9.10 (karmic).
When I pass -r 2.6.18 or lower to qemu though, the qemu hangs itself and will never finish. With -r 2.6.19 and up, it gives me the "mmap: No such device or address" message.

Did you find a solution in the mean time ?

Marc

#4 lore raw
Quoted 6 lines · Marc Olzheim

I have the same problem on Ubuntu 9.10 (karmic).
When I pass -r 2.6.18 or lower to qemu though, the qemu hangs itself and will never finish. With -r 2.6.19 and up, it gives me the "mmap: No such device or address" message.

Did you find a solution in the mean time ?

No, sorry. Problem is still pending. :(

Steffen