* Q: (cross)compiling for the Meshcube (fwd)
@ 2004-07-22 15:56 Ralf Ackermann
2004-07-22 16:14 ` Ratin Kumar
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Ralf Ackermann @ 2004-07-22 15:56 UTC (permalink / raw)
To: linux-mips; +Cc: Ralf Ackermann
Hello,
I'm trying to (cross)compile some more modules/applications for the
meshcube - but failed so far.
I installed (on an i386 system):
binutils-mipsel-linux-2.13.2.1-3.i386.rpm
gcc-mipsel-linux-2.95.4-1.i386.rpm
(from ftp://ftp.linux-mips.org/pub/linux/mips/crossdev/)
Making a hello world program fails with:
mipsel-linux-gcc hello.c -o hello
/usr/mipsel-linux/bin/ld: cannot open crt1.o: No such file or directory
collect2: ld returned 1 exit status
My questions:
- Are there any specific hints for the cross-compile environment
(or: "What are you using ... and would therefore suggest ?)
- Is there any chance to use a native gcc on the cube itself?
(could this e.g. been done by chrooting into a (which?)
existing MIPS Linux distribution that is mounted via NFS)
Any hints are highly appreciated (I have worked with crosscompile/native
environments for ARM so far, but these are my first experiences in the
MIPS world).
regards
Ralf
---------------------------------------------------------------
Dr. Ralf Ackermann _ rac@KOM.tu-darmstadt.de
Multimedia Communications |/ | | |\/| Merckstrasse 25
|\ |_| | | 64283 Darmstadt, Germany
Tel.: (+49) 6151 16-6138 Fax: (+49) 6151 16-6152
---------------------------------------------------------------
http://www.kom.tu-darmstadt.de/~rac
---------------------------------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: (cross)compiling for the Meshcube (fwd)
@ 2004-07-22 16:14 ` Ratin Kumar
0 siblings, 0 replies; 5+ messages in thread
From: Ratin Kumar @ 2004-07-22 16:14 UTC (permalink / raw)
To: 'Ralf Ackermann', linux-mips
You don't mention installing libc for the platform. You will need libraries
for the MIPS(el) target to be present in the cross-compile path.
Try ftp://ftp.linux-mips.org/pub/linux/mips/glibc/mipsel-linux/
On doing Native build, if your platform supports tftp loading of boot kernel
(or if it has a boot kernel which you can pass parameter to), load the
kernel with nfsroot="IP-Address-of-server:/path" ip=ip-address-of-target
This requires an NFS image to be kept somewhere reachable by your target.
There is a tarball of RH7.1(mipsel) NFS dump at MIPS ftp for which worked
for my MALTA.
I did (sometime) ago produce NFS image of RH7.3 for my MALTA board. I can
upload it if you can tell me a location where to put it.
-----Original Message-----
From: linux-mips-bounce@linux-mips.org
[mailto:linux-mips-bounce@linux-mips.org] On Behalf Of Ralf Ackermann
Sent: Thursday, July 22, 2004 8:56 AM
To: linux-mips@linux-mips.org
Cc: Ralf Ackermann
Subject: Q: (cross)compiling for the Meshcube (fwd)
Hello,
I'm trying to (cross)compile some more modules/applications for the
meshcube - but failed so far.
I installed (on an i386 system):
binutils-mipsel-linux-2.13.2.1-3.i386.rpm
gcc-mipsel-linux-2.95.4-1.i386.rpm
(from ftp://ftp.linux-mips.org/pub/linux/mips/crossdev/)
Making a hello world program fails with:
mipsel-linux-gcc hello.c -o hello
/usr/mipsel-linux/bin/ld: cannot open crt1.o: No such file or
directory
collect2: ld returned 1 exit status
My questions:
- Are there any specific hints for the cross-compile environment
(or: "What are you using ... and would therefore suggest ?)
- Is there any chance to use a native gcc on the cube itself?
(could this e.g. been done by chrooting into a (which?)
existing MIPS Linux distribution that is mounted via NFS)
Any hints are highly appreciated (I have worked with crosscompile/native
environments for ARM so far, but these are my first experiences in the
MIPS world).
regards
Ralf
---------------------------------------------------------------
Dr. Ralf Ackermann _ rac@KOM.tu-darmstadt.de
Multimedia Communications |/ | | |\/| Merckstrasse 25
|\ |_| | | 64283 Darmstadt, Germany
Tel.: (+49) 6151 16-6138 Fax: (+49) 6151 16-6152
---------------------------------------------------------------
http://www.kom.tu-darmstadt.de/~rac
---------------------------------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: (cross)compiling for the Meshcube (fwd)
@ 2004-07-22 16:14 ` Ratin Kumar
0 siblings, 0 replies; 5+ messages in thread
From: Ratin Kumar @ 2004-07-22 16:14 UTC (permalink / raw)
To: 'Ralf Ackermann', linux-mips
You don't mention installing libc for the platform. You will need libraries
for the MIPS(el) target to be present in the cross-compile path.
Try ftp://ftp.linux-mips.org/pub/linux/mips/glibc/mipsel-linux/
On doing Native build, if your platform supports tftp loading of boot kernel
(or if it has a boot kernel which you can pass parameter to), load the
kernel with nfsroot="IP-Address-of-server:/path" ip=ip-address-of-target
This requires an NFS image to be kept somewhere reachable by your target.
There is a tarball of RH7.1(mipsel) NFS dump at MIPS ftp for which worked
for my MALTA.
I did (sometime) ago produce NFS image of RH7.3 for my MALTA board. I can
upload it if you can tell me a location where to put it.
-----Original Message-----
From: linux-mips-bounce@linux-mips.org
[mailto:linux-mips-bounce@linux-mips.org] On Behalf Of Ralf Ackermann
Sent: Thursday, July 22, 2004 8:56 AM
To: linux-mips@linux-mips.org
Cc: Ralf Ackermann
Subject: Q: (cross)compiling for the Meshcube (fwd)
Hello,
I'm trying to (cross)compile some more modules/applications for the
meshcube - but failed so far.
I installed (on an i386 system):
binutils-mipsel-linux-2.13.2.1-3.i386.rpm
gcc-mipsel-linux-2.95.4-1.i386.rpm
(from ftp://ftp.linux-mips.org/pub/linux/mips/crossdev/)
Making a hello world program fails with:
mipsel-linux-gcc hello.c -o hello
/usr/mipsel-linux/bin/ld: cannot open crt1.o: No such file or
directory
collect2: ld returned 1 exit status
My questions:
- Are there any specific hints for the cross-compile environment
(or: "What are you using ... and would therefore suggest ?)
- Is there any chance to use a native gcc on the cube itself?
(could this e.g. been done by chrooting into a (which?)
existing MIPS Linux distribution that is mounted via NFS)
Any hints are highly appreciated (I have worked with crosscompile/native
environments for ARM so far, but these are my first experiences in the
MIPS world).
regards
Ralf
---------------------------------------------------------------
Dr. Ralf Ackermann _ rac@KOM.tu-darmstadt.de
Multimedia Communications |/ | | |\/| Merckstrasse 25
|\ |_| | | 64283 Darmstadt, Germany
Tel.: (+49) 6151 16-6138 Fax: (+49) 6151 16-6152
---------------------------------------------------------------
http://www.kom.tu-darmstadt.de/~rac
---------------------------------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Q: (cross)compiling for the Meshcube (fwd)
2004-07-22 15:56 Q: (cross)compiling for the Meshcube (fwd) Ralf Ackermann
2004-07-22 16:14 ` Ratin Kumar
@ 2004-07-22 16:41 ` Thiemo Seufer
2004-07-23 10:41 ` Bruno Randolf
2 siblings, 0 replies; 5+ messages in thread
From: Thiemo Seufer @ 2004-07-22 16:41 UTC (permalink / raw)
To: Ralf Ackermann; +Cc: linux-mips
Ralf Ackermann wrote:
[snip]
> - Is there any chance to use a native gcc on the cube itself?
> (could this e.g. been done by chrooting into a (which?)
> existing MIPS Linux distribution that is mounted via NFS)
Native compiles should work. AFAIK the Meshcube uses a customized
debian, most likely a testing/unstable mix. If you have a debian system
around, you can install the "debootstrap" package there and use it to
create a mips chroot, configure it, export it to the Meshcube, and
install the "build-essential" package there. This gives you the usual
native debian development environment.
Thiemo
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Q: (cross)compiling for the Meshcube (fwd)
2004-07-22 15:56 Q: (cross)compiling for the Meshcube (fwd) Ralf Ackermann
2004-07-22 16:14 ` Ratin Kumar
2004-07-22 16:41 ` Q: " Thiemo Seufer
@ 2004-07-23 10:41 ` Bruno Randolf
2 siblings, 0 replies; 5+ messages in thread
From: Bruno Randolf @ 2004-07-23 10:41 UTC (permalink / raw)
To: linux-mips, dev-list; +Cc: Ralf Ackermann
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
hi!
we use crosstool from http://www.kegel.com/crosstool/ to create a cross
toolchain. it is also part of our build system, we have at
http://www.meshcube.org/ in the CVS. if you check it out, you can cd into the
build/ directory and "make toolchain". the cross prefix is then
mipsel-mtx-linux-gnu-.
greetings,
bruno
On Thursday 22 July 2004 17:56, Ralf Ackermann wrote:
> Hello,
>
> I'm trying to (cross)compile some more modules/applications for the
> meshcube - but failed so far.
>
> I installed (on an i386 system):
> binutils-mipsel-linux-2.13.2.1-3.i386.rpm
> gcc-mipsel-linux-2.95.4-1.i386.rpm
> (from ftp://ftp.linux-mips.org/pub/linux/mips/crossdev/)
>
> Making a hello world program fails with:
> mipsel-linux-gcc hello.c -o hello
> /usr/mipsel-linux/bin/ld: cannot open crt1.o: No such file or directory
> collect2: ld returned 1 exit status
>
> My questions:
> - Are there any specific hints for the cross-compile environment
> (or: "What are you using ... and would therefore suggest ?)
> - Is there any chance to use a native gcc on the cube itself?
> (could this e.g. been done by chrooting into a (which?)
> existing MIPS Linux distribution that is mounted via NFS)
>
> Any hints are highly appreciated (I have worked with crosscompile/native
> environments for ARM so far, but these are my first experiences in the
> MIPS world).
>
> regards
> Ralf
>
> ---------------------------------------------------------------
> Dr. Ralf Ackermann _ rac@KOM.tu-darmstadt.de
> Multimedia Communications |/ | | |\/| Merckstrasse 25
>
> |\ |_| | | 64283 Darmstadt, Germany
>
> Tel.: (+49) 6151 16-6138 Fax: (+49) 6151 16-6152
> ---------------------------------------------------------------
> http://www.kom.tu-darmstadt.de/~rac
> ---------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFBAOtMfg2jtUL97G4RAqaVAJkBIcsWlDTyGUr4Py9AsL/3+lWxIQCffaLI
2H+9w74+YH2YkZbK4KJ4zwQ=
=7PWO
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-07-23 10:43 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-22 15:56 Q: (cross)compiling for the Meshcube (fwd) Ralf Ackermann
2004-07-22 16:14 ` Ratin Kumar
2004-07-22 16:14 ` Ratin Kumar
2004-07-22 16:41 ` Q: " Thiemo Seufer
2004-07-23 10:41 ` Bruno Randolf
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.