Difference between revisions of "De Brick or Un Bricking a WRT Series Router"

m
no edit summary
m
Line 67: Line 67:
</syntaxhighlight>
</syntaxhighlight>


*You'll get the above Venom>> command prompt after pressing enter when the MMC: mv_sdh: 0 line is displayed (or a second or two afterwards)
*Get the proper firmware file;
*Get the proper firmware file;
**Start Here: https://downloads.openwrt.org/releases/
**Start Here: https://downloads.openwrt.org/releases/
Line 74: Line 75:
*Set the IP Address of the Router: setenv ipaddr 192.168.1.1 (the IP Address is just an example, and is also the default)
*Set the IP Address of the Router: setenv ipaddr 192.168.1.1 (the IP Address is just an example, and is also the default)
*Set the IP Address of the TFTP Server: setenv serveip 192.168.1.254 (the IP Address is just an example, and is also the default)
*Set the IP Address of the TFTP Server: setenv serveip 192.168.1.254 (the IP Address is just an example, and is also the default)
*Set the name of the firmware image file: setenv venom.img (it can be any name, including the default one from OpenWRT)
*Set the name of the firmware image file: setenv venom.img (it can be any name, including the default one from OpenWRT, but it's easier to rename the original file)
*Run the "installation script": run update_both_images (The update_both_images "script" is actually an environmental variable set by LinkSys in the U-Boot partition stored on the router's "disk drive" (AKA NAND memory))
*Run the "installation script": run update_both_images (The update_both_images "script" is actually an environmental variable set by LinkSys in the U-Boot partition stored on the router's "disk drive" (AKA NAND memory), with all of the $ items being other variables that are set elsewhere, type: printenv for a full list of the environment variables)
<syntaxhighlight lang="text">
update_both_images=tftpboot $defaultLoadAddr $firmwareName && nand erase $priKernAddr $priFwSize && nand erase $altKernAddr $altFwSize && nand write $defaultLoadAddr $priKernAddr $filesize && nand write $defaultLoadAddr $altKernAddr $filesize


If everything was typed correctly, then some messages begin to display loading of image, ...erase, ...write, etc.
</syntaxhighlight>If everything was typed correctly, then messages are displayed: loading of image, ...erase, ...write, etc.


* When the "script" is done and the Venom>> command prompt is available, type: reset (equivalent to "reboot")
*When the "script" is done and the Venom>> command prompt is available, type: reset (equivalent to "reboot")


At this point, it should reboot and start the OpenWRT firmware (which will be available on both partitions)
At this point, it should reboot and start the OpenWRT firmware (which will be available on both partitions)