Jump to content

Cross compile c code to mips


Recommended Posts

Hello Guys,

Got a LAN turtle at defcon and love it so far :D

Now i was curious if you might post a tutorial on how to cross compile c code (originally running on 32-bit systems), so one could port some

self coded projects to the LAN turtle.

Should be possible, right?

Keep up the good work and looking forward to future developments.



Link to comment
Share on other sites

MrGadget -

If it's a simple C file you can use the OpenWRT Toolchain to cross compile for the MIPS architecture. Download the Toolchain from https://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/generic/

In the toolchain bin dir you'll find various compilers. For example mips-openwrt-linux-uclibc-gcc.bin ~/helloworld.c -o helloworld would result in a helloworld file compiled for the LAN Turtle's Atheros architecture.

For more complex builds using make files grab the OpenWRT SDK and reference the WiFi Pineapple build guide at http://wiki.wifipineapple.com/#!build_guide.md

Additional further reading:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...