{"id":245,"date":"2014-11-30T12:38:30","date_gmt":"2014-11-30T03:38:30","guid":{"rendered":"http:\/\/manatails.net\/blog\/?p=245"},"modified":"2022-04-03T13:48:55","modified_gmt":"2022-04-03T04:48:55","slug":"trying-to-unbrick-my-router","status":"publish","type":"post","link":"https:\/\/manatails.net\/blog\/2014\/11\/trying-to-unbrick-my-router\/","title":{"rendered":"Trying to unbrick my router"},"content":{"rendered":"<p>One of my Buffalo brand routers has been behaving strangely these days. I suspected a bug in the DD-WRT firmware so I decided to update it.<\/p>\n<p>But somehow it did not accept any of the firmware update files I gave. I tried all the recent revisions of DD-WRT, even tried a level of downgrading but still no luck.<\/p>\n<p>Then I decided to flash the router manually with mtd.<\/p>\n<p>I downloaded OpenWRT squashfs release and flashed it. But since then the router didn&#8217;t boot up.<\/p>\n<p>I had to disassemble it in order to repair it.<\/p>\n<p>The exact model name is WZR-HP-G450H. It had hexagonial screws but it didn&#8217;t matter to me as I do carry the screwdrivers for it.<\/p>\n<p><a href=\"http:\/\/manatails.net\/blog\/wp-content\/uploads\/2014\/11\/DSC_0550.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/manatails.net\/blog\/wp-content\/uploads\/2014\/11\/DSC_0550-1024x575.jpg\" alt=\"DSC_0550\" width=\"474\" height=\"266\" class=\"alignnone size-large wp-image-247\" \/><\/a><\/p>\n<p>Anyway I opened it up.<\/p>\n<p>According to the OpenWRT wiki there are serial ports located at the top<\/p>\n<p><a href=\"http:\/\/manatails.net\/blog\/wp-content\/uploads\/2014\/11\/DSC_0561.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/manatails.net\/blog\/wp-content\/uploads\/2014\/11\/DSC_0561-1024x575.jpg\" alt=\"DSC_0561\" width=\"474\" height=\"266\" class=\"alignnone size-large wp-image-248\" \/><\/a><\/p>\n<p>I soldered it.<\/p>\n<p>Then started minicom and tftpd. After numerous tries I found that my router only accepts firmware during initial boot, after printing the offeset message.<\/p>\n<p>I tried:<\/p>\n<p>1. OpenWRT image from the wiki<br \/>\n2. Unencrypted original firmware<br \/>\n3. taking a full mtd dump from another router and writing it to this router<\/p>\n<p>But none of them worked so far, I also tried changing the region by altering environment variables but it didnt have any effect.<\/p>\n<p>Everything fails with &#8220;Bad magic number&#8221; message.<\/p>\n<p>I guess something is seriously wrong with my u-boot&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of my Buffalo brand routers has been behaving strangely these days. I suspected a bug in the DD-WRT firmware so I decided to update it. But somehow it did not accept any of the firmware update files I gave. I tried all the recent revisions of DD-WRT, even tried a level of downgrading but &hellip; <a href=\"https:\/\/manatails.net\/blog\/2014\/11\/trying-to-unbrick-my-router\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Trying to unbrick my router<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[68,66,67,69,70],"class_list":["post-245","post","type-post","status-publish","format-standard","hentry","category-computer","tag-buffalo","tag-dd-wrt","tag-openwrt","tag-router","tag-serial"],"_links":{"self":[{"href":"https:\/\/manatails.net\/blog\/wp-json\/wp\/v2\/posts\/245","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/manatails.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/manatails.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/manatails.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/manatails.net\/blog\/wp-json\/wp\/v2\/comments?post=245"}],"version-history":[{"count":2,"href":"https:\/\/manatails.net\/blog\/wp-json\/wp\/v2\/posts\/245\/revisions"}],"predecessor-version":[{"id":251,"href":"https:\/\/manatails.net\/blog\/wp-json\/wp\/v2\/posts\/245\/revisions\/251"}],"wp:attachment":[{"href":"https:\/\/manatails.net\/blog\/wp-json\/wp\/v2\/media?parent=245"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/manatails.net\/blog\/wp-json\/wp\/v2\/categories?post=245"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/manatails.net\/blog\/wp-json\/wp\/v2\/tags?post=245"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}