To reinstall PirateBox I do this:
* Put the install folder and the openwrt firmware on USB as usual, and put in device.
* Start the device and connect directly via cable to a PC.
* Connect using for instance "telnet 192.168.1.1"
cd /mnt/usb
mv install/auto_package_done install/auto_package
mtd -r write openwrt-ar71xx-generic-tl-mr3040-v2-squashfs-factory.bin firmware
You can now remove the cable and connect your PC to your normal network, but leave the 3040 blinking.
After a while it will be done and the SSID will appear on wifi.
You can now continue with post installation tasks or start using your PirateBox.
The background.
I am new to this stuff, but like it. Testing everything to see what is possible,
It was really easy to install PirateBox the first time on the 3040, and it worked great.
But then I wanted to try LibraryBox and see how that was. And things didn't work so great.
The procedure:
I turned the 3040 off and removed the USB-stick.
Wiped the contents and put in the install-folder for LibraryBox and the OpenWrt firmware.bin.
Put the USB-stick back in, and started the 3040.
The problem:
No way to reflash the firmware.
Attempt to solution:
Direct connect via cable and telnet in.
Do the reflash using the mtd-command as described elsewhere.
New problem:
When the 3040 reboots it seems to attempt an install and fail, because there already are stuff installed. But in the process it renames the file /install/auto_package to /install/auto_package_done. Normally this rename is used to avoid having the install running every time the device reboots. Fine, but this also means that attempts to reinstall will fail.
The "correct" procedure:
This works fine if you want to install LibraryBox after you have tested PirateBox or if you want to install PirateBox after you have tested LibraryBox.
Just rename the file /mnt/usb/install/auto_package_done to /mnt/usb/install/auto_package and reflash the firmware.
Details: See the start of this post...
* Put the install folder and the openwrt firmware on USB as usual, and put in device.
* Start the device and connect directly via cable to a PC.
* Connect using for instance "telnet 192.168.1.1"
cd /mnt/usb
mv install/auto_package_done install/auto_package
mtd -r write openwrt-ar71xx-generic-tl-mr3040-v2-squashfs-factory.bin firmware
You can now remove the cable and connect your PC to your normal network, but leave the 3040 blinking.
After a while it will be done and the SSID will appear on wifi.
You can now continue with post installation tasks or start using your PirateBox.
The background.
I am new to this stuff, but like it. Testing everything to see what is possible,
It was really easy to install PirateBox the first time on the 3040, and it worked great.
But then I wanted to try LibraryBox and see how that was. And things didn't work so great.
The procedure:
I turned the 3040 off and removed the USB-stick.
Wiped the contents and put in the install-folder for LibraryBox and the OpenWrt firmware.bin.
Put the USB-stick back in, and started the 3040.
The problem:
No way to reflash the firmware.
Attempt to solution:
Direct connect via cable and telnet in.
Do the reflash using the mtd-command as described elsewhere.
New problem:
When the 3040 reboots it seems to attempt an install and fail, because there already are stuff installed. But in the process it renames the file /install/auto_package to /install/auto_package_done. Normally this rename is used to avoid having the install running every time the device reboots. Fine, but this also means that attempts to reinstall will fail.
The "correct" procedure:
This works fine if you want to install LibraryBox after you have tested PirateBox or if you want to install PirateBox after you have tested LibraryBox.
Just rename the file /mnt/usb/install/auto_package_done to /mnt/usb/install/auto_package and reflash the firmware.
Details: See the start of this post...