Stupid mistake, how to reflash?

Discussion in 'Tomato Firmware' started by jyavenard, Jan 29, 2010.

  1. jyavenard

    jyavenard Network Guru Member


    working on the firmware, I modified the tomato.js file and forgot to close a square-bracket (in the list of menu on the left)

    So now, the web page shows nothing. In the upgrade page , the upgrade button doesn't do anything ..

    Is there a way to reflash the image easily ?
    everything else is working okay

  2. jyavenard

    jyavenard Network Guru Member


    Turned out to be rather easy using a simple HTML submit form ; using the /upgrade.cgi page..

    All fixed
  3. SgtPepperKSU

    SgtPepperKSU Network Guru Member

    I know there's a way to do it from the command line directly, but I don't know it off the top of my head. Instead, you could copy the admin-upgrade.asp and tomato.js files to the /var/wwwext folder and make the necessary changes to them to make them functional. Then just use ext/admin-upgrade.asp instead of admin-upgrade.asp
  4. jyavenard

    jyavenard Network Guru Member

    It's the first thing I tried ; not so simple...
    in the end, this code did it:
    <form name='form_upgrade' method='post' action='' encType='multipart/form-data'>
    <input type='file' name='file'> <input type="submit" name="mysubmit" value="Upgrade">

    The http_id value can be retrieved by looking at the source of any page...

    While it was flashing, I checked on the console what was happening.
    This exe is being run:
    mtd-write -w -i /tmp/flashsTkJqk -d linux
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice