![]() |
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? |
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... |
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. |
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?
|
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 |
Quote:
|
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. |
From ~ you're typing ./filename right? ;)
|
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 |
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