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.

johsua 2006-07-13 06:34

OK. Now I can't download the rootstraps from maemo. I get the following error:

Authorization Required
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.

Apache/1.3.33 Server at ossostage.cidercone.com Port 80

Any ideas?

skler 2006-07-13 12:55

Quote:

Originally Posted by penguinbait
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...


this kernel image have nfs support but I must install portmap.
http://mummola.cs.tut.fi/n770/files/...3client-zImage

I can't find nfs-common do u find it?

penguinbait 2006-07-13 13:59

looks like the server may be down? Also did they change that kernel image after non-Beta release? I installed that one and could not boot, I had to download the nokia image, unpack it, and reflash the original kernel back down. I had previously installed this on the non-beta 2006 version, but had no working kernel image with nfs support


Nokia770-26:~# apt-get install nfs-common
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
libwrap0 portmap
Recommended packages:
tcpd
The following NEW packages will be installed:
libwrap0 nfs-common portmap
0 upgraded, 3 newly installed, 0 to remove and 3 not upgraded.
Need to get 110kB of archives.
After unpacking 434kB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
libwrap0 portmap nfs-common
Install these packages without verification [y/N]? y
Err http://repository.maemo.org mistral-beta/free libwrap0 7.6.dbs-8
404 Not Found [IP: 70.245.59.33 80]
Err http://repository.maemo.org mistral-beta/free portmap 5-9
404 Not Found [IP: 70.245.59.33 80]
Err http://repository.maemo.org mistral-beta/free nfs-common 1:1.0.6-3.1sdk1
404 Not Found [IP: 70.245.59.33 80]
Failed to fetch http://repository.maemo.org/pool/mae...bs-8_armel.deb 404 Not Found [IP: 70.245.59.33 80]
Failed to fetch http://repository.maemo.org/pool/mae..._5-9_armel.deb 404 Not Found [IP: 70.245.59.33 80]
Failed to fetch http://repository.maemo.org/pool/mae...sdk1_armel.deb 404 Not Found [IP: 70.245.59.33 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Nokia770-26:~#

skler 2006-07-14 18:20

good. I resovle the problem changing this:
deb http://repository.maemo.org/ mistral-beta free non-free
with this:
deb http://repository.maemo.org/ mistral free non-free

a full cat of sources.list is theres:

/home/user # cat /etc/apt/sources.list
#maemo:essential
deb http://catalogue.tableteer.nokia.com/certified/ mistral user
deb http://catalogue.tableteer.nokia.com/non-certified/ mistral user
deb http://repository.maemo.org/contrib/ mistral free non-free
deb http://repository.maemo.org/ mistral free non-free
deb http://only.mawhrin.net/fbreader/maemo/ mistral user
deb http://www.kernelconcepts.de/~fuchs/nokia770/ex_2006/ ./
deb http://maemo-hackers.org/apt/ mistral main
deb http://www.mulliner.org/nokia770/repository/ maemo2 free
deb http://maemo.org.br/platform/apt/ python python
deb http://zeus.rm-fr.net/~skyhusker/maemo/ mistral user
deb http://www.oakcourt.dyndns.org/maemo/ ./
/home/user #

I have successful installed all package
and all run perfectly:

/home/user # mount -t nfs 10.0.10.6:/mnt/dati /home/user/MyDocs/dati/

/home/user # mount
/dev/mtdblock4 on / type jffs2 (rw,rpsize=1024,rpuid=0,rpuid=30000)
none on /tmp type tmpfs (rw)
/proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
none on /dev type tmpfs (rw)
devpts on /dev/pts type devpts (rw)
/dev/mmcblk0p1 on /media/mmc1 type vfat (utf8,uid=29999,shortname=mixed)
10.0.10.6:/mnt/dati on /home/user/MyDocs/dati type nfs (addr=10.0.10.6)


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

vBulletin® Version 3.8.8