MTD Calculator by Neo @ RouterTech.Org
======================================

(For Class II routers)

If you have trashed your router's environment or it has become corrupted somehow, then this utility could be very handy.

Basic usage:

1) Select a firmware file you want to 'upgrade' to (it must be a combined image).
2) Select the size of your router's Flash ROM size.
3) Select your router's bootloader type.
4) Click on the "Calculate MTD values" button.

You may then choose the format you want the output in, from the options available:

* Standard
* PC Tool output - for PC-Tool, in a format suitable to be loaded as a script
* FTP - to be used via the bootloader FTP
* Telnet script - for use with the Telnet Scripter

Restoring the environment partitions
------------------------------------

   1. Use the MTD calculator to get the MTD values for a firmware which you will 'upgrade' to.
   2. Set the values using PC-Tool (manually or via a script) / bootloader FTP / telnet (if using telnet, a reboot is required after setting the values).
   3. Flash the router with the firmware selected in step 1) using PC-Tool (as in a normal repair) or similar.

Adam2 routers - going between single and separate firmware images
-----------------------------------------------------------------

This tool will also help Adam2 router owners switch between single and separate firmware images. Bear in mind that you will need to use PC-Tool or similar to flash the firmware images when switching. The steps are very similar to the restoration process (above):

   1. Use the MTD calculator to work out the MTD values for the firmware you wish to upgrade to. If you wish to go from a single image to separate images (such a change is not recommended), you must choose the matching single firmware image file in the MTD calculator.
   2. Set the MTDs for either single or separate images (using PC-Tool, bootloader FTP, telnet etc).
   3. If using telnet in step 2), reboot the router.
   4. Flash the new firmware image/images on to the router using PC-Tool or similar.

Disclaimer
----------

No guarantees are made for this software - we take no responsibility for any loss or damage incurred whilst using it. Using this software itself won't damage your router but if you use the data generated by this utility and something goes wrong, then you probably will trash your environment / brick your router.