MTD Calculator - for Class II routers

Utilities and tools for networking, routers, setup etc
Post Reply
User avatar
RouterTech Team
RouterTech Team
Posts: 3583
Joined: Thu Jan 26, 2006 1:09 pm

MTD Calculator - for Class II routers

Post by Neo » Thu May 22, 2008 6:25 pm

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

This is a simple tool so it should be fairly easy to use: if you need instructions on basic usage, see the readme file.

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.

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.

Thanks to the rest of the RouterTech staff for suggestions, testing etc ;)

Download v1.0.0

Download v1.0.1 - includes optional MTD5 for PSPBoot routers
RouterTech Team
No support via PM, please ask your questions on the forum!
Posts: 72
Joined: Sat Feb 27, 2010 3:23 pm
Location: Egypt

Re: MTD Calculator - for Class II routers

Post by geekgirl » Wed Jan 09, 2013 8:57 am

v1.0.1 tested working with wine-1.4.1 on LMDE (Debian Testing/Wheezy based).
Only need to install winetricks:

Code: Select all

$ sudo apt-get install winetricks
then install vb6 runtime environment:

Code: Select all

$ winetricks vb6run
It will give you a message like this:

Code: Select all

Please download VB6.0-KB290887-X86.exe from;summaryRatings, place it in /home/your_username/.cache/winetricks/vb6run, then re-run this script.
Do what it tells you, and finally you can run mtd-calc.exe with wine.
Post Reply