maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Maemo SDK under Ubuntu Hardy/kernel 2.6.24 (https://talk.maemo.org/showthread.php?t=19590)

Bundyo 2009-12-28 06:01

Re: Maemo SDK under Ubuntu Hardy/kernel 2.6.24
 
I wasn't able to run it twice with the same settings. After a reboot it shifted back to its previous state. So I'm using RC6 kernel yet.

Muthuraj 2009-12-29 04:19

Re: Maemo SDK under Ubuntu Hardy/kernel 2.6.24
 
Hi,
I'm using Ubuntu 9.10 in my system.
I'm getting an error like this while i run an application in QT
"mmap : permission denied"
How can i resolve this???
Help me...
Thanks in advance...

m4ktub 2009-12-29 11:35

Re: Maemo SDK under Ubuntu Hardy/kernel 2.6.24
 
Quote:

Originally Posted by Bundyo (Post 443583)
I wasn't able to run it twice with the same settings. After a reboot it shifted back to its previous state. So I'm using RC6 kernel yet.

Yes, that also happens to me. I've noticed that when I start the scratchbox from esbox it asks me the root password to execute the command "echo 4096 > ...". Didn't look how to change this so I'm just raising the mmap min addr after starting scratchbox.

blachner 2010-01-01 17:13

Re: Maemo SDK under Ubuntu Hardy/kernel 2.6.24
 
Quote:

Originally Posted by m4ktub;443459
So it looks like you have to do more or less the opposite of what I've been reading. Instead of reducing the mmap limit, since qemu uses it to offset the application addresses, you have to increase it. But I'm not sure if I understood it correctly. I also have no idea of the implications this has on the host system. Hope nothing breaks.

[CODE
$> echo 1048576 > /proc/sys/vm/mmap_min_addr[/CODE]

I've confirmed that all mmap addresses are shifted after this with strace.

I tried the command above before starting scratchbox. But this changes nothing with the mmap problem on the Diablo Armel target. You use openSUSE 11.2 and this works for you? Do you also use the 64 Bit Version of openSUSE 11.2?

m4ktub 2010-01-02 10:36

Re: Maemo SDK under Ubuntu Hardy/kernel 2.6.24
 
I had to run the command after starting the scratchbox because during startup the mmap limit would be set to 4096. At least under esbox.

dlmiles 2010-01-24 21:37

Re: Maemo SDK under Ubuntu Hardy/kernel 2.6.24
 
Do you have SELinux installed and active ? Does /var/log/message have warning in there ?

If it is active then "cat /selinux/enforce" will return "1"

To de-activate as "root" user outside of scratchbox, run:

echo 0 >> /selinux/enforce



This reply assumes you have set VDSO to not randomize (value 2) or disabled completely (0) via sysctl in 32bit Linux. This is also required via kernel command line option "vdso32=" for 64bit Linux.

This reply assumes you have checked the vm.mmap_min_addr=4096 as talked about in previous posts.

blachner 2010-02-13 17:03

Re: Maemo SDK under Ubuntu Hardy/kernel 2.6.24
 
Quote:

Originally Posted by dlmiles (Post 492495)
Do you have SELinux installed and active ? Does /var/log/message have warning in there ?

If it is active then "cat /selinux/enforce" will return "1"

To de-activate as "root" user outside of scratchbox, run:

echo 0 >> /selinux/enforce

SELinux is not installed.


Quote:

Originally Posted by dlmiles (Post 492495)
This reply assumes you have set VDSO to not randomize (value 2) or disabled completely (0) via sysctl in 32bit Linux. This is also required via kernel command line option "vdso32=" for 64bit Linux.

This reply assumes you have checked the vm.mmap_min_addr=4096 as talked about in previous posts.

I have done the following to start scratchbox on openSUSE 11.2 64 Bit:

sysctl abi.vsyscall32=0
echo 4096 > /proc/sys/vm/mmap_min_addr
/opt/scratchbox/sbin/sbox_ctl start

But this don't solve the problems with the diablo arm target.

If I run

apt-get install maemo-sdk-dev

I got a lot of

mmap: Permission denied

errors


All times are GMT. The time now is 06:20.

vBulletin® Version 3.8.8