[maemo-developers] [maemo-developers] Questions to HOWTO:Set up CPU transparency with your device and sbrsh

From: Timo Steuerwald timo.steuerwald at gmx.de
Date: Thu Nov 3 13:49:05 EET 2005
Marcelo_Guara wrote:

>hi all,
>
>tryes to compile the file main.c inside of directory hello-world directly
>using gcc, for example:
>
># gcc -o hello main.c
># ./hello
>
>  
>
Compilation works, but on execution I get this:

[sbox-ARM: ~/hello-world] > ./hello
sbrsh: Permission denied

If I look at config.log as stated by autoconf.sh, I find this Permission 
denied statement again:

<------------snip------------>
configure:2105: checking whether the C compiler works
configure:2111: ./a.out
sbrsh: Permission denied
configure:2114: $? = 1
configure:2123: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
<------------snip------------>

Of course, I already read the scratchbox documentation, but my settings 
seem to be correct.
In the home directory of the scratchbox user:
<------------snip------------>
[sbox-ARM: ~] > cat .sbrsh
ARM 192.168.2.15 myPassword
nfs     192.168.2.14:/scratchbox/users/timo/targets/ARM  / rw,nolock,noac
nfs     192.168.2.14:/scratchbox/users/timo/home /home rw,nolock,noac
bind    /dev          /dev
bind    /dev/pts      /dev/pts
bind    /proc         /proc
bind    /tmp          /tmp
<------------snip------------>

I already changed the first line to ARM timo at 192.168.2.15 myPassword
This have i already seen in the scratchbox documentation, but it doesn't 
change a thing. :-(
On the device:
<------------snip------------>
~ $ cat .sbrshd
192.168.2.14 myPassword
<------------snip------------>

Both user have the name "timo".
On my ubuntu machine /etc/exports looks like this:
<------------snip------------>
root at ubuntu:/ # cat /etc/exports
# /etc/exports: the access control list for filesystems which may be 
exported
#               to NFS clients.  See exports(5).
/scratchbox/users/timo/targets/ARM 
192.168.2.15(rw,all_squash,anonuid=1000,anongid=1000,sync)
/scratchbox/users/timo/home 
192.168.2.15(rw,all_squash,anonuid=1000,anongid=1000,sync)
<------------snip------------>

Any ideas what I have done wrong?
Please help!

Cheers,

Timo

More information about the maemo-developers mailing list