{"id":256,"date":"2014-09-04T11:28:53","date_gmt":"2014-09-04T15:28:53","guid":{"rendered":"http:\/\/www.mufljuz.com\/?p=256"},"modified":"2014-09-23T10:44:53","modified_gmt":"2014-09-23T14:44:53","slug":"unbricking-wrt54g","status":"publish","type":"post","link":"https:\/\/www.mufljuz.com\/?p=256","title":{"rendered":"Unbricking WRT54G"},"content":{"rendered":"<p>A quick guide how to &#8216;fix&#8217; bricked WRT54G. I managed to brick it by installing OpenWRT firmware (attitude adjustment v12.09). Unfortunately this router doesn&#8217;t have enough memory to handle v12.09. My attempts to upload a new firmware trough ssh bricked the router.<\/p>\n<p>To unbrick it I first did 30 30 30 reset. <\/p>\n<ul>\n<li> Powered router hold reset button for 30 sec<\/li>\n<li> Still holding reset, unpower router and wait 30 sec<\/li>\n<li> Still holding reset power on the router and hold for another 30 sec<\/li>\n<\/ul>\n<p>Find a working firmware and upload it using tftp. I used <a href=\"http:\/\/www.polarcloud.com\/tomato\">tomato<\/a> WRT54G_WRT54GL.bin). Make sure tftp is installed on your system<br \/>\n<code><br \/>\nemerge -av net-ftp\/atftp<br \/>\nemerge -av net-ftp\/linksys-tftp<br \/>\n<\/code><\/p>\n<p>Connect your computer to the router and set a static IP. On my linux box this is done by the following steps<\/p>\n<p><code><br \/>\n\/etc\/init.d\/net.eth1 stop<br \/>\nnano -w \/etc\/conf.d\/net<\/p>\n<p>routes_eth1=\"default via 192.168.1.1\"<br \/>\nconfig_eth1=\"192.168.1.15 netmask 255.255.255.0 brd 192.168.1.255\"<\/p>\n<p>\/etc\/init.d\/net.eth1 start<br \/>\n<\/code><\/p>\n<p>Turn on the router and check if the router can be pinged. Do a router power cycle and let ping command working<br \/>\n<code>ping 192.168.1.1<\/code><br \/>\nIf the router can be pinged most likely you will be able to upload a new firmware using tftp.<\/p>\n<h2>TFTP flashing instructions<\/h1>\n<p>Turn off the router. Initialize ftp transfer:<br \/>\n<code><br \/>\natftp  192.168.1.1<br \/>\nverbose<br \/>\ntrace<br \/>\ntimeout 60<br \/>\nput WRT54G_WRT54GL.bin<br \/>\n<\/code><br \/>\nand turn on the router. The transfer should start by itself. If tfpt gets disconnected you can repeat the whole process.<br \/>\n<code><br \/>\natftp  192.168.1.1<br \/>\ntftp> timeout 60<br \/>\ntftp> trace<br \/>\nTrace mode on.<br \/>\ntftp> verbose<br \/>\nVerbose mode on.<br \/>\ntftp> put WRT54G_WRT54GL.bin<br \/>\nsent WRQ <file: WRT54G_WRT54GL.bin, mode: octet <>><br \/>\nsource port mismatch, check bypassedtimeout: retrying...<br \/>\nsent WRQ <file: WRT54G_WRT54GL.bin, mode: octet <>><br \/>\nreceived ACK <block: 0><br \/>\nsent DATA <block: 1, size: 512><br \/>\nreceived ACK <block: 1><br \/>\nsent DATA <block: 2, size: 512><br \/>\nreceived ACK <block: 2><br \/>\nsent DATA <block: 3, size: 512><br \/>\nreceived ACK <block: 3><br \/>\n<\/code><\/p>\n<p>Another useful package is linksys-tftp<br \/>\n<code><br \/>\nemerge -av net-ftp\/linksys-tftp<br \/>\n<\/code><\/p>\n<p>To use it, first connect and then set the transfer<\/p>\n<p><code><br \/>\nlinksys-tftp> connect [router]<br \/>\nlinksys-tftp> put [firmware image]<br \/>\n<\/code><\/p>\n<h2>Useful resources<\/h2>\n<p><a href=\"http:\/\/www.wi-fiplanet.com\/tutorials\/article.php\/10724_3618616_3\/Bricked-Or-How-to-Resurrect-a-Dead-Linksys-WRT54G.htm\">Bricked-Or-How-to-Resurrect-a-Dead-Linksys-WRT54G<\/a><br \/>\n<a href=\"http:\/\/wiki.openwrt.org\/toh\/linksys\/wrt54g\">openwrt wrt54g page<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A quick guide how to &#8216;fix&#8217; bricked WRT54G. I managed to brick it by installing OpenWRT firmware (attitude adjustment v12.09). Unfortunately this router doesn&#8217;t have enough memory to handle v12.09. My attempts to upload a new firmware trough ssh bricked the router. To unbrick it I first did 30 30 30 reset. Powered router hold [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.mufljuz.com\/index.php?rest_route=\/wp\/v2\/posts\/256"}],"collection":[{"href":"https:\/\/www.mufljuz.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mufljuz.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mufljuz.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mufljuz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=256"}],"version-history":[{"count":4,"href":"https:\/\/www.mufljuz.com\/index.php?rest_route=\/wp\/v2\/posts\/256\/revisions"}],"predecessor-version":[{"id":260,"href":"https:\/\/www.mufljuz.com\/index.php?rest_route=\/wp\/v2\/posts\/256\/revisions\/260"}],"wp:attachment":[{"href":"https:\/\/www.mufljuz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=256"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mufljuz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=256"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mufljuz.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}