Skip to contentSkip to conversation

Compile Mips-Architecture on an i386?

DISCUSSION Hannes Bischof 4 participants 4 messages Nov 4, 2004 MIPS

lore
Share & tools
lore
#0 lore raw

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

Signature · 2 lines
NEU +++ DSL Komplett von GMX +++ http://www.gmx.net/de/go/dsl
GMX DSL-Netzanschluss + Tarif zum supergünstigen Komplett-Preis!
#1 lore raw

Hello,

Quoted 2 lines · Hannes Bischof

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

Signature · 4 lines
PETAZZONI Thomas - [email protected]
http://thomas.enix.org - Jabber: [email protected]
KOS: http://kos.enix.org/ - Lolut: http://lolut.utbm.info
Fingerprint : 0BE1 4CF3 CEA4 AC9D CC6E  1624 F653 CB30 98D3 F7A7
#3 lore raw
In reply to Hannes Bischof
Quoted 3 lines · In message <[email protected]> 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.

Quoted 2 lines

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

Signature · 4 lines
See us @ Embedded/Electronica Munich, Nov 09 - 12, Hall A.6 Booth 513
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected]
The biggest difference between time and space is that you can't reuse
time.                                                 - Merrick Furst
#2 lore raw
In reply to Thomas Petazzoni

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

Quoted 16 lines · Thomas Petazzoni

Hello,

Quoted 2 lines · Hannes Bischof

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