Linux MIPS Architecture development
 help / color / mirror / Atom feed
* Compile Mips-Architecture on an i386?
@ 2004-11-04 11:20 Hannes Bischof
  2004-11-04 13:19 ` Thomas Petazzoni
  2004-11-04 21:30 ` Wolfgang Denk
  0 siblings, 2 replies; 9+ messages in thread
From: Hannes Bischof @ 2004-11-04 11:20 UTC (permalink / raw)
  To: linux-mips

Hello!

Ok i´ll describe first my hardware. It´s a small DSL-Router with
the following hardware:

Its a variant of the AR7-Variante TNETD7300(A)GDW 
in it is a MIPS 4KEc Processor
communicationsprocessor (TI DSP) for ADSL interface
USB slave interface
GPIO-Ports and Ethernet
also a 4MB flash memory and a 32MB SDRAM module

OK now the problem:
on the router is a small BusyBox linux and I don´t want to change that now.
But I would like to compile some files like a small webserver or an ftp
programm for the router. Now my question, is it possible to compile a
programm for the router by example on an normal PC(i386)???
What do I need to compile the software so that it runs under the linux
system of the router??

Many questions but I hope some one could help me.

Greets

Maruu

-- 
NEU +++ DSL Komplett von GMX +++ http://www.gmx.net/de/go/dsl
GMX DSL-Netzanschluss + Tarif zum supergünstigen Komplett-Preis!

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Compile Mips-Architecture on an i386?
  2004-11-04 11:20 Hannes Bischof
@ 2004-11-04 13:19 ` Thomas Petazzoni
  2004-11-04 21:32   ` Bruno Randolf
  2004-11-04 21:30 ` Wolfgang Denk
  1 sibling, 1 reply; 9+ messages in thread
From: Thomas Petazzoni @ 2004-11-04 13:19 UTC (permalink / raw)
  To: Hannes Bischof; +Cc: linux-mips

[-- Attachment #1: Type: text/plain, Size: 704 bytes --]

Hello,

Hannes Bischof a écrit :

> What do I need to compile the software so that it runs under the linux
> system of the router??

You need a cross-compilation toolchain (that is a gcc, binutils and libc 
that runs on your i386, but that generates binaries for MIPS).

Different tools are available to do that :

  * Toolchain  : http://www.uclibc.org/toolchains.html
  * Crosstool  : http://kegel.com/crosstool/
  * Debian way : http://skaya.enix.org/wiki/ToolChain

Thomas
-- 
PETAZZONI Thomas - thomas.petazzoni@enix.org
http://thomas.enix.org - Jabber: kos_tom@sourcecode.de
KOS: http://kos.enix.org/ - Lolut: http://lolut.utbm.info
Fingerprint : 0BE1 4CF3 CEA4 AC9D CC6E  1624 F653 CB30 98D3 F7A7

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Compile Mips-Architecture on an i386?
  2004-11-04 11:20 Hannes Bischof
  2004-11-04 13:19 ` Thomas Petazzoni
@ 2004-11-04 21:30 ` Wolfgang Denk
  1 sibling, 0 replies; 9+ messages in thread
From: Wolfgang Denk @ 2004-11-04 21:30 UTC (permalink / raw)
  To: Hannes Bischof; +Cc: linux-mips

In message <20244.1099567205@www38.gmx.net> you wrote:
> 
> programm for the router. Now my question, is it possible to compile a
> programm for the router by example on an normal PC(i386)???

Yes, of course this is possible. This is what everybody does every day.

> What do I need to compile the software so that it runs under the linux
> system of the router??

You need a set of cross development tools.  I'd  recommend  our  ELDK
(Embedded  Linux  Development  Kit, see http://www.denx.de/ELDK.html)
which is available for free, but I'm obviously biased.

[Note: ELDK 3.1 will be released in a couple of days.]

Viele Grüße,

Wolfgang Denk

-- 
See us @ Embedded/Electronica Munich, Nov 09 - 12, Hall A.6 Booth 513
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
The biggest difference between time and space is that you can't reuse
time.                                                 - Merrick Furst

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Compile Mips-Architecture on an i386?
  2004-11-04 13:19 ` Thomas Petazzoni
@ 2004-11-04 21:32   ` Bruno Randolf
  0 siblings, 0 replies; 9+ messages in thread
From: Bruno Randolf @ 2004-11-04 21:32 UTC (permalink / raw)
  To: linux-mips

[-- Attachment #1: Type: text/plain, Size: 775 bytes --]

hi!

another option is to use the openembedded build system:

http://openembedded.org/oe_wiki/

it includes the cross-toolchain and has lots of packages which you can 
compile.

bruno

On Thursday 04 November 2004 14:19, Thomas Petazzoni wrote:
> Hello,
>
> Hannes Bischof a écrit :
> > What do I need to compile the software so that it runs under the linux
> > system of the router??
>
> You need a cross-compilation toolchain (that is a gcc, binutils and libc
> that runs on your i386, but that generates binaries for MIPS).
>
> Different tools are available to do that :
>
>   * Toolchain  : http://www.uclibc.org/toolchains.html
>   * Crosstool  : http://kegel.com/crosstool/
>   * Debian way : http://skaya.enix.org/wiki/ToolChain
>
> Thomas

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: Compile Mips-Architecture on an i386?
@ 2004-11-05  1:49 Joseph Chiu
  2004-11-05  1:49 ` Joseph Chiu
  0 siblings, 1 reply; 9+ messages in thread
From: Joseph Chiu @ 2004-11-05  1:49 UTC (permalink / raw)
  To: Bruno Randolf, linux-mips

If you're doing it to get stuff done, a pre-built package (commercial or opensource) is the way to go.  But I also rebuilt my toolchain from scratch and learned immensely from it...

> -----Original Message-----
> From: linux-mips-bounce@linux-mips.org
> [mailto:linux-mips-bounce@linux-mips.org]On Behalf Of Bruno Randolf
> Sent: Thursday, November 04, 2004 1:33 PM
> To: linux-mips@linux-mips.org
> Subject: Re: Compile Mips-Architecture on an i386?
> 
> 
> hi!
> 
> another option is to use the openembedded build system:
> 
> http://openembedded.org/oe_wiki/
> 
> it includes the cross-toolchain and has lots of packages 
> which you can 
> compile.
> 
> bruno
> 
> On Thursday 04 November 2004 14:19, Thomas Petazzoni wrote:
> > Hello,
> >
> > Hannes Bischof a écrit :
> > > What do I need to compile the software so that it runs 
> under the linux
> > > system of the router??
> >
> > You need a cross-compilation toolchain (that is a gcc, 
> binutils and libc
> > that runs on your i386, but that generates binaries for MIPS).
> >
> > Different tools are available to do that :
> >
> >   * Toolchain  : http://www.uclibc.org/toolchains.html
> >   * Crosstool  : http://kegel.com/crosstool/
> >   * Debian way : http://skaya.enix.org/wiki/ToolChain
> >
> > Thomas
> 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: Compile Mips-Architecture on an i386?
  2004-11-05  1:49 Joseph Chiu
@ 2004-11-05  1:49 ` Joseph Chiu
  0 siblings, 0 replies; 9+ messages in thread
From: Joseph Chiu @ 2004-11-05  1:49 UTC (permalink / raw)
  To: Bruno Randolf, linux-mips

If you're doing it to get stuff done, a pre-built package (commercial or opensource) is the way to go.  But I also rebuilt my toolchain from scratch and learned immensely from it...

> -----Original Message-----
> From: linux-mips-bounce@linux-mips.org
> [mailto:linux-mips-bounce@linux-mips.org]On Behalf Of Bruno Randolf
> Sent: Thursday, November 04, 2004 1:33 PM
> To: linux-mips@linux-mips.org
> Subject: Re: Compile Mips-Architecture on an i386?
> 
> 
> hi!
> 
> another option is to use the openembedded build system:
> 
> http://openembedded.org/oe_wiki/
> 
> it includes the cross-toolchain and has lots of packages 
> which you can 
> compile.
> 
> bruno
> 
> On Thursday 04 November 2004 14:19, Thomas Petazzoni wrote:
> > Hello,
> >
> > Hannes Bischof a écrit :
> > > What do I need to compile the software so that it runs 
> under the linux
> > > system of the router??
> >
> > You need a cross-compilation toolchain (that is a gcc, 
> binutils and libc
> > that runs on your i386, but that generates binaries for MIPS).
> >
> > Different tools are available to do that :
> >
> >   * Toolchain  : http://www.uclibc.org/toolchains.html
> >   * Crosstool  : http://kegel.com/crosstool/
> >   * Debian way : http://skaya.enix.org/wiki/ToolChain
> >
> > Thomas
> 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Compile Mips-Architecture on an i386?
@ 2004-11-05  7:08 Maruu
  2004-11-05  7:08 ` Maruu
  2004-11-05  8:02 ` Thomas Petazzoni
  0 siblings, 2 replies; 9+ messages in thread
From: Maruu @ 2004-11-05  7:08 UTC (permalink / raw)
  To: linux-mips

Hy!

Ok now I searched for some files and found (with your help)
http://www.uclibc.org/ I downloaded the toolchains and compiled
gcc3.3 with Mipsel architecture. My littel "Hello wolrd" programm
works fine. Now I have to taste the rest if it works.
What do you think of uClibc??

Greets 

Maruu

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Compile Mips-Architecture on an i386?
  2004-11-05  7:08 Compile Mips-Architecture on an i386? Maruu
@ 2004-11-05  7:08 ` Maruu
  2004-11-05  8:02 ` Thomas Petazzoni
  1 sibling, 0 replies; 9+ messages in thread
From: Maruu @ 2004-11-05  7:08 UTC (permalink / raw)
  To: linux-mips

Hy!

Ok now I searched for some files and found (with your help)
http://www.uclibc.org/ I downloaded the toolchains and compiled
gcc3.3 with Mipsel architecture. My littel "Hello wolrd" programm
works fine. Now I have to taste the rest if it works.
What do you think of uClibc??

Greets 

Maruu

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Compile Mips-Architecture on an i386?
  2004-11-05  7:08 Compile Mips-Architecture on an i386? Maruu
  2004-11-05  7:08 ` Maruu
@ 2004-11-05  8:02 ` Thomas Petazzoni
  1 sibling, 0 replies; 9+ messages in thread
From: Thomas Petazzoni @ 2004-11-05  8:02 UTC (permalink / raw)
  To: Maruu, linux-mips

[-- Attachment #1: Type: text/plain, Size: 375 bytes --]

Hello,

Maruu a écrit :

> What do you think of uClibc??

  - Works well on my MIPS platform (both C and C++)
  - Small
  - Fast to compile

Thomas
-- 
PETAZZONI Thomas - thomas.petazzoni@enix.org
http://thomas.enix.org - Jabber: kos_tom@sourcecode.de
KOS: http://kos.enix.org/ - Lolut: http://lolut.utbm.info
Fingerprint : 0BE1 4CF3 CEA4 AC9D CC6E  1624 F653 CB30 98D3 F7A7

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-11-05  8:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-05  7:08 Compile Mips-Architecture on an i386? Maruu
2004-11-05  7:08 ` Maruu
2004-11-05  8:02 ` Thomas Petazzoni
  -- strict thread matches above, loose matches on Subject: below --
2004-11-05  1:49 Joseph Chiu
2004-11-05  1:49 ` Joseph Chiu
2004-11-04 11:20 Hannes Bischof
2004-11-04 13:19 ` Thomas Petazzoni
2004-11-04 21:32   ` Bruno Randolf
2004-11-04 21:30 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox