1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Compiling programs for Tomato

Discussion in 'Tomato Firmware' started by ElmValley, May 20, 2008.

  1. ElmValley

    ElmValley Addicted to LI Member

    Suppose I would like to compile a small program for a Tomato box... How would I go about it?

    I guess this method is possible. Right?:
    1. Download the Tomato source to a Linux box, compile it to create libraries, add my source to the tree, compile again and make a new, custom firmware package. Install teh new firmware on the router.

    However, one of my boxes is in a far location, and I would like to install the program remotely, without upgrading the firmware. Could I do the following?

    2. Download the Tomato source to a Linux box, making sure the source and my router are of the same version. Compile everything to create the libraries. (Now I would have a copy of the software on my router.) Add my source, and compile it. Take my program (statically or dynamically linked) copy it to my box, installing on the jff2 file system, and run it. Will this work?

    regards,
    //Per
     
  2. mstombs

    mstombs Network Guru Member

    Yes, and Yes. Once you have verified you can build Tomato, you don't have to compile everything with the main firmware, just use the same toolchain. I've posted a shell script at some time to do this - I currently have a mail sending program msmpt on /jffs for example.
     

Share This Page