PirateBox is great, but what if you want to return your router back to its original TP-Link configuration? I have a TL-MR3040, a Windows 8.1 laptop, and here is what I did.
You will need three free utilities (dd, Mongoose web server, and Putty) but they are all click-to-run, no installation necessary, portable apps. You will use them, then delete them (or save them for future use). No need to install or uninstall anything in Windows, no extra DLLs, no registry changes, etc.
1. Download the latest TL-MR3040 firmware from TP-Link:
[www.tp-link.com]
2. Download dd from [www.chrysocome.net] and clip the firmware .bin file, which in my case (June 2014) was called mr3040v2_en_3_17_1_up_boot(131121).bin, down to size so the flashing will work. Full instructions/explanation here: [wiki.openwrt.org]. Look for the line:
dd if=original_filename.bin of=modified_filename.bin skip=257 bs=512
To make typing easier, I renamed mr3040v2_en_3_17_1_up_boot(131121).bin as aaa.bin, and ran dd as:
dd if=aaa.bin of=bbb.bin skip=257 bs=512
...so that the modified file was called bbb.bin
3. Download and run the Mongoose web server free edition from: [cesanta.com], and configure it to point to a folder where you will move bbb.bin to.
4. Download and run Putty from: [www.chiark.greenend.org.uk], which will allow you to telnet into your router. At this point, connect the router to your computer with a network cable, and run ipconfig in a command prompt to get your local IP address.
5. Using Putty, telnet into your router (try the standard IP addresses 192.168.1.1, 192.168.0.1, etc. I don't remember which one worked for me) and login to OpenWrt as user root and whatever password you chose when you installed PirateBox.
6. Once you are logged in enter:
cd /tmp
wget [your computer's IP address] bbb.bin
The Mongoose web server should be running, and if you open a browser window in your computer and enter your local IP address you should be able to see bbb.bin
7. Once the file is done copying, flash the image by entering the following command:
mtd write bbb.bin firmware
8. After that process finishes, initiate a hard reboot:
reboot -f
9. Once the system reboots and the lights are done flashing, open a browser on your computer and go to 192.168.0.254, login with admin for both username and password.
10. Done! Your router is now back to factory spec. You can shut down the Mongoose server.
These instructions are based on:
[wiki.openwrt.org]
[forum.piratebox.cc] (See Matthias post from June 20, 2013 03:27AM)
edit: ~matthias , made sticky
You will need three free utilities (dd, Mongoose web server, and Putty) but they are all click-to-run, no installation necessary, portable apps. You will use them, then delete them (or save them for future use). No need to install or uninstall anything in Windows, no extra DLLs, no registry changes, etc.
1. Download the latest TL-MR3040 firmware from TP-Link:
[www.tp-link.com]
2. Download dd from [www.chrysocome.net] and clip the firmware .bin file, which in my case (June 2014) was called mr3040v2_en_3_17_1_up_boot(131121).bin, down to size so the flashing will work. Full instructions/explanation here: [wiki.openwrt.org]. Look for the line:
dd if=original_filename.bin of=modified_filename.bin skip=257 bs=512
To make typing easier, I renamed mr3040v2_en_3_17_1_up_boot(131121).bin as aaa.bin, and ran dd as:
dd if=aaa.bin of=bbb.bin skip=257 bs=512
...so that the modified file was called bbb.bin
3. Download and run the Mongoose web server free edition from: [cesanta.com], and configure it to point to a folder where you will move bbb.bin to.
4. Download and run Putty from: [www.chiark.greenend.org.uk], which will allow you to telnet into your router. At this point, connect the router to your computer with a network cable, and run ipconfig in a command prompt to get your local IP address.
5. Using Putty, telnet into your router (try the standard IP addresses 192.168.1.1, 192.168.0.1, etc. I don't remember which one worked for me) and login to OpenWrt as user root and whatever password you chose when you installed PirateBox.
6. Once you are logged in enter:
cd /tmp
wget [your computer's IP address] bbb.bin
The Mongoose web server should be running, and if you open a browser window in your computer and enter your local IP address you should be able to see bbb.bin
7. Once the file is done copying, flash the image by entering the following command:
mtd write bbb.bin firmware
8. After that process finishes, initiate a hard reboot:
reboot -f
9. Once the system reboots and the lights are done flashing, open a browser on your computer and go to 192.168.0.254, login with admin for both username and password.
10. Done! Your router is now back to factory spec. You can shut down the Mongoose server.
These instructions are based on:
[wiki.openwrt.org]
[forum.piratebox.cc] (See Matthias post from June 20, 2013 03:27AM)
edit: ~matthias , made sticky