Reply
Thread Tools
Posts: 23 | Thanked: 0 times | Joined on Jul 2006
#1
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's Avatar
Posts: 3,096 | Thanked: 1,525 times | Joined on Jan 2006 @ Michigan, USA
#2
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's Avatar
Posts: 1,463 | Thanked: 81 times | Joined on Oct 2005 @ UK
#3
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.
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
Now known as
Jaffa
 
johsua's Avatar
Posts: 449 | Thanked: 18 times | Joined on Apr 2006 @ Eureka, CA
#4
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's Avatar
Posts: 1,463 | Thanked: 81 times | Joined on Oct 2005 @ UK
#5
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
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
Now known as
Jaffa
 
Posts: 75 | Thanked: 1 time | Joined on Apr 2006
#6
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's Avatar
Posts: 449 | Thanked: 18 times | Joined on Apr 2006 @ Eureka, CA
#7
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's Avatar
Posts: 1,361 | Thanked: 115 times | Joined on Oct 2005 @ Toronto, Ontario, Canada
#8
From ~ you're typing ./filename right?
 
aflegg's Avatar
Posts: 1,463 | Thanked: 81 times | Joined on Oct 2005 @ UK
#9
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
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
Now known as
Jaffa
 
johsua's Avatar
Posts: 449 | Thanked: 18 times | Joined on Apr 2006 @ Eureka, CA
#10
Hedgecore:

yes - I am typing ./filename

Andrew-

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


 
Forum Jump


All times are GMT. The time now is 17:51.