maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   exec bin on os 06 (https://talk.maemo.org/showthread.php?t=2453)

skler 2006-07-12 13:27

exec bin on os 06
 
I have transfer rpc.portmap for arm to nokia but when I try to exec it:

/usr/sbin # ./rpc.portmap
/bin/sh: ./rpc.portmap: not found
/usr/sbin # ls -l rpc.portmap
-rwxr-xr-x 1 root root 36304 Jul 3 18:05 rpc.portmap
/usr/sbin # id
uid=0(root) gid=0(root)

why?

penguinbait 2006-07-12 15:25

from command line I think you can type "apt-get install nfs-common"

I believe this installs portmap, but nfs support is not in the kernel so its not going to do you much good...

aflegg 2006-07-12 15:31

The reason it didn't work (same reason faber had for mplayer failing) is that the architecture of the system has changed to EABI in 2006 OS.

Short version: everything needs recompiling, nothing will work directly transferred from one system to another.

johsua 2006-07-12 16:31

freshly compiled exec gets the same error.
 
I tried to use the cross compiler in scratchbox to get a gcc-compiled 'Hello world' program to work. On my mmc I get: permission denied (I know the permissions are correct), and when I move it to home I get: file not found, and I know it's there. Any ideas on that?

aflegg 2006-07-12 16:39

The mmc is mounted "noexec" hence the "permission denied".

As for "not found" I'd guess it'd one of: missing libraries, wrong Scratchbox target (i.e. PC not ARM) or Maemo 1.1 SDK rather than Maemo 2.0 one (ARM vs. ARMEL)

HTH,

Andrew

mallard 2006-07-12 16:40

Quote:

Originally Posted by johsua
I tried to use the cross compiler in scratchbox to get a gcc-compiled 'Hello world' program to work. On my mmc I get: permission denied (I know the permissions are correct), and when I move it to home I get: file not found, and I know it's there. Any ideas on that?

Do a "chmod +x" on the file. It won't run from a FAT formatted mmc because FAT doesn't support UNIX permissions.

johsua 2006-07-12 16:54

The permissions are correct - rwxr x r x. The mmc card issue now makes sense, but the file not found error when it's in home is odd.

The Hello world app was compiled in scratchbox for the ARM processor. I checked it using the file command, and it works with the ARM emulator in scratchbox. I didn't use the maemo2.0 SDK, as this is a command line program - I didn't think it would need it. Perhaps this is my problem.

Hedgecore 2006-07-12 18:09

From ~ you're typing ./filename right? ;)

aflegg 2006-07-12 18:32

johsua: if you didn't use the Maemo 2.0 SDK you'll need to find another EABI toolchain: the standard gcc cross-compiling for ARM won't do it.

The Maemo SDK includes a toolchain from CodeSourcery. The OpenEmbdedded people are also working on native EABI support in gcc:

http://dominion.kabel.utwente.nl/koe...eabi-toolchain

HTH,

Andrew

johsua 2006-07-12 23:17

Hedgecore:

yes - I am typing ./filename

Andrew-

Thanks! That is what I needed to know. I will start over with the maemo2.0 directions.


All times are GMT. The time now is 21:24.

vBulletin® Version 3.8.8