14

I have a DVB receiver (set-top box) similar like Dreambox and it has MIPS cpu

It has embedded Linux and I can connect to it with telnet

Question is how to compile simple "Hello World" application in C? Where to get toolchain, SDK?

davispuh
  • 1,419
  • 3
  • 18
  • 30
  • hmmm [google](http://www.google.com/search?q=how+to+cross-compile+for+MIPS) to the rescue -- [1st hit on my computer](http://www.linuxselfhelp.com/HOWTO/MIPS-HOWTO-9.html) – pmg Mar 13 '11 at 17:59
  • @pmg that didn't help... there was only text without links and I couldn't get those tools... – davispuh Mar 13 '11 at 18:57
  • possible duplicate of [Is there a way to use gcc to convert C to MIPS?](http://stackoverflow.com/questions/4175450/is-there-a-way-to-use-gcc-to-convert-c-to-mips) – user2284570 Jul 06 '14 at 23:38
  • 2
    Actually you might not need a full toolchain to do cross compile... Try `sudo apt-get install --install-recommends gcc-mips-linux-gnu cpp-mips-linux-gnu`. – Mygod Jan 16 '19 at 05:25

2 Answers2

14

You should use Codescape SDK.

GramThanos
  • 3,572
  • 1
  • 22
  • 34
MannyNS
  • 4,703
  • 2
  • 22
  • 16
5

http://www.linux-mips.org/wiki/Toolchains

There you have some prebuilt cross compilers, or the instruction to build GCC as a cross compiler.

Dr. Snoopy
  • 55,122
  • 7
  • 121
  • 140