Skip to content
This repository has been archived by the owner on Dec 14, 2020. It is now read-only.

Compile custom programs from source

Alexander Ryzhov edited this page Aug 26, 2015 · 5 revisions

I had need for an upgraded Arpwatch that supported VLAN tags to fix the

arpwatch: 0:50:4:fe:7e:3c sent bad hardware format 0x800

errors that appeared in my logs, its fairly easy to compile once you have the toolchain properly installed and this is how to do it:

First follow one of these links to setup your toolchain, ignore the very last step which compiles the firmware.

Instead of running make DEVICEMODEL, run:

 make clean 2>&1 | grep -oE '(mipsel|arm).*gcc' | uniq

Then change into the directory of the program you want to compile and run:

./configure CC=OUTPUTFROMGREP --prefix=/opt --host=arm-linux
make

Then you can simply copy the executable over to your jffs or usb drive.

Clone this wiki locally