title: Cross compiling for MIPS router from x86
body: <p>My end goal is to compile wireless tools for my old Actiontec modem/router so I can configure it as a wireless to ethernet bridge. Currently it's wireless features are (seemingly) controlled by the same binary that manages most of the web interface, but it appears that they used the library wireless tools uses internally for at least some of the functionality.</p>
  
  <p>I've never cross compiled for a different CPU architecture before and not sure how to fully identity what I need to do. I'm trying to use uClibc since it appears to be used in the rest of the system, but I'm not sure how to configure buildroot for the modems environment. I made a <a href="http://pastebin.com/Y7ex7z4x" rel="nofollow noreferrer">best guess</a> at what the configuration should be based on the information from proc below, but somethings wrong since a simple C application that only returns 0 compiled with it fails to run properly.</p>
  
  <pre><code># cat /proc/version 
  Linux version 2.4.17_mvl21-malta-mips_fp_le (root@localhost.localdomain) (gcc version 2.95.3 20010315 (release/MontaVista)) #1 Thu Apr 21 18:04:37 PDT 2005
  # cat /proc/cpuinfo 
  processor               : 0
  cpu model               : MIPS 4KEc V4.8
  BogoMIPS                : 149.91
  wait instruction        : no
  microsecond timers      : yes
  extra interrupt vector  : yes
  hardware watchpoint     : yes
  VCED exceptions         : not available
  VCEI exceptions         : not available
  </code></pre>