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

Inserting a pre-compiled binary into the firmware image

Discussion in 'Tomato Firmware' started by gawd0wns, Oct 11, 2009.

  1. gawd0wns

    gawd0wns LI Guru Member

    I want to compile a firmware image with a binary I compiled, but it has to be copied into the /usr/sbin directory after the very last task is completed, and right before the firmware image is compressed. What should I do?

    Thanks
     
  2. mstombs

    mstombs Network Guru Member

    Hack the correct Makefile - but if you do not want to change anything else you can use the "Firmware mod kit" to expand the firmware, mod it, then put it back together. I recommend a serial console connection and be prepared for JTAG 'just in case'!
     
  3. gawd0wns

    gawd0wns LI Guru Member

    Which Makefile would I be looking at? I tried editing the one in /release/src, though I wasn't sure where or how to modify it...

    I'm guessing this is the site for the firmware mod kit? http://code.google.com/p/firmware-mod-kit/

    Which of the compiled images am I to use? I am assuming I can use the WRT54G version. Here is a list of the newly compiled images:

    -rw-r--r-- 1 root root 3653632 2009-10-11 20:23 custom_image-asus.trx
    lrwxrwxrwx 1 root root 16 2009-10-11 20:23 custom_image-generic.bin -> custom_image.trx
    -rw-r--r-- 1 root root 3653632 2009-10-11 20:23 custom_image.trx
    -rw-r--r-- 1 root root 3654656 2009-10-11 20:23 custom_image-WRT54G.bin
    -rw-r--r-- 1 root root 3654656 2009-10-11 20:23 custom_image-wrt54gs.bin
    -rw-r--r-- 1 root root 3654656 2009-10-11 20:23 custom_image-wrt54gsv4.bin
    -rw-r--r-- 1 root root 3654656 2009-10-11 20:23 custom_image-wrtsl54gs.bin
     
  4. mstombs

    mstombs Network Guru Member

    Re Makefile

    I suggest you take a look at the one in TomatoSource_1_25/tomato/release/src/router/, and use miniupnpd which was recently added as an example.

    Re mod kit

    I recognize the home as http://www.bitsum.com/firmware_mod_kit.htm, but looks like the google code entry is same.

    Re firmwares, I understand that when you have Tomato installed you can use any image through the web interface, the differences are just the headers which are necessary for upgrades from stock firmware and probably tftp.
     
  5. gawd0wns

    gawd0wns LI Guru Member

    Thanks, will give it a try.
     

Share This Page