{"id":160,"date":"2019-01-08T09:39:35","date_gmt":"2019-01-08T09:39:35","guid":{"rendered":"https:\/\/www.laptoparena.net\/blog\/?p=160"},"modified":"2023-04-15T10:31:42","modified_gmt":"2023-04-15T10:31:42","slug":"tp-link-wr740n-bricked","status":"publish","type":"post","link":"https:\/\/www.laptoparena.net\/blog\/tp-link-wr740n-bricked\/","title":{"rendered":"TP-LINK WR740n bricked"},"content":{"rendered":"\n<p>After I attempted to flash the router with open-wrt I managed to brick the device after trying to copy the image it said not enough memory.<\/p>\n\n\n\n<p>When it&#8217;s bricked all it does is flash all the lights.<\/p>\n\n\n\n<p>If you connect to the serial interface that it spits out is this :<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><em>AP121 (ar9330) U-boot<br><br>DRAM:&nbsp; 32 MB<br>led turning on for 1s&#8230;<br>id read 0x100000ff<br>flash size 4194304, sector count = 64<br>Flash:&nbsp; 4 MB<br>Using default environment<br><br>In:&nbsp;&nbsp;&nbsp; serial<br>Out:&nbsp;&nbsp; serial<br>Err:&nbsp;&nbsp; serial<br>Net:&nbsp;&nbsp; ag7240_enet_initialize&#8230;<br>No valid address in Flash. Using fixed address<br>No valid address in Flash. Using fixed address<br>: cfg1 0x5 cfg2 0x7114<br>eth0: 00:03:7f:09:0b:ad<br>ag7240_phy_setup&nbsp;<br>eth0 up<br>: cfg1 0xf cfg2 0x7214<br>eth1: 00:03:7f:09:0b:ad<br>athrs26_reg_init_lan<br>ATHRS26: resetting s26<br>ATHRS26: s26 reset done<br>ag7240_phy_setup&nbsp;<br>eth1 up<br>eth0, eth1<br>auto update firmware: is_auto_upload_firmware = 0!<br>Autobooting in 1 seconds<br>## Booting image at 9f020000 &#8230;<br>&nbsp;&nbsp; Uncompressing Kernel Image &#8230; Too big uncompressed streamLZMA ERROR 1 &#8211; must RESET<\/em><\/p>\n<\/blockquote>\n\n\n\n<p>This is the official open-wrt page on the&nbsp; TP-LINK WR740n :<\/p>\n\n\n\n<p><a href=\"http:\/\/wiki.openwrt.org\/toh\/tp-link\/tl-wr740n\">http:\/\/wiki.openwrt.org\/toh\/tp-link\/tl-wr740n<\/a><\/p>\n\n\n\n<p>You have to solder a 3 pin connector (rx, tx, gnd) and then use a usb-serial convertor to gain access directly to the processor and a wire as in the picture between TP28 and the TP19 &#8211; the one in the middle.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"428\" src=\"https:\/\/www.laptoparena.net\/blog\/wp-content\/uploads\/2023\/04\/tp_motherboard.jpg\" alt=\"\" class=\"wp-image-242\" srcset=\"https:\/\/www.laptoparena.net\/blog\/wp-content\/uploads\/2023\/04\/tp_motherboard.jpg 1000w, https:\/\/www.laptoparena.net\/blog\/wp-content\/uploads\/2023\/04\/tp_motherboard-300x128.jpg 300w, https:\/\/www.laptoparena.net\/blog\/wp-content\/uploads\/2023\/04\/tp_motherboard-768x329.jpg 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/figure>\n\n\n\n<p>Download putty, select serial select com port set Baudrate to : 115200 &#8211; and you should see something similar to the above code.<\/p>\n\n\n\n<p>Type &#8220;tpl&#8221; in U-Boot to get a shell!<\/p>\n\n\n\n<p>We need to set router and server IP addresses :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">setenv ipaddr ROUTER_IP (eg. 192.1681.1)<br>setenv ipaddr 192.168.1.1<br>setenv serverip YOUR_PC_IP (eg. 192.168.1.2)<br>setenv serverip 192.168.1.2<br>&nbsp;<br>printenv (to check the settings)<br>&nbsp;<br>tftpboot 0x81000000 openwrt-ar71xx-generic-tl-wr740n-v4-squashfs-factory.bin <br>erase 0x9f020000 +0x3c0000 <br>cp.b 0x81000000 0x9f020000 0x3c0000 <br>bootm 9f020000 <\/pre>\n\n\n\n<p>Additional info :<\/p>\n\n\n\n<p>3932160 bytes openwrt-ar71xx-generic-tl-wr740n-v4-squashfs-factory.bin <br>3932160(dec)-&gt;3c0000(hex)<br>3932160 bytes = 3.75MB = 3c0000(hex) bytes<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Repair bricked TP-LINK wr740n router using putty and tftpd\" width=\"1200\" height=\"675\" src=\"https:\/\/www.youtube.com\/embed\/zB3ftpNZSlo?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>Additional resources :<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li> TFPD Server:  tftpd <\/li>\n\n\n\n<li> OpenWRT Image :&nbsp;<a href=\"http:\/\/downloads.openwrt.org\/attitude_adjustment\/12.09-beta\/ar71xx\/generic\/openwrt-ar71xx-generic-tl-wr740n-v4-squashfs-factory.bin\">http:\/\/downloads.openwrt.org\/attitude_adjustment\/12.09-beta\/ar71xx\/generic\/openwrt-ar71xx-generic-tl-wr740n-v4-squashfs-factory.bin&nbsp;<\/a> <\/li>\n<\/ul>\n\n\n\n<p>To restore to original firmware :<br>&nbsp;Download WinScp&nbsp;<a href=\"http:\/\/winscp.net\/download\/files\/2014022215228bab04bc5bffbb6e9046e9d2395987b5\/winscp551.zip\">http:\/\/winscp.net\/download\/files\/2014022215228bab04bc5bffbb6e9046e9d2395987b5\/winscp551.zip<\/a> <\/p>\n\n\n\n<p>Transfer image to \/tmp using the WinScp<br><a href=\"http:\/\/www.tp-link.com\/en\/support\/download\/?model=TL-WR740N&amp;version=V4#tbl_j\">http:\/\/www.tp-link.com\/en\/support\/download\/?model=TL-WR740N&amp;version=V4#tbl_j<\/a> <\/p>\n\n\n\n<p>Connect with&nbsp; putty on ip adress via ssh and type :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cd \/tmp<br>mv wr741nv1_en_3_11_1_up(100312).bin orig.bin<br>dd if=orig.bin of=tplink.bin skip=257 bs=512<br>mtd -r write \/tmp\/tplink.bin firmware&nbsp; <\/pre>\n","protected":false},"excerpt":{"rendered":"<p>After I attempted to flash the router with open-wrt I managed to brick the device after trying to copy the image it said not enough memory. When it&#8217;s bricked all it does is flash all the lights. If you connect to the serial interface that it spits out is this : AP121 (ar9330) U-boot DRAM:&nbsp; &#8230; <a title=\"TP-LINK WR740n bricked\" class=\"read-more\" href=\"https:\/\/www.laptoparena.net\/blog\/tp-link-wr740n-bricked\/\" aria-label=\"Read more about TP-LINK WR740n bricked\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":240,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-160","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.laptoparena.net\/blog\/wp-json\/wp\/v2\/posts\/160","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.laptoparena.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.laptoparena.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.laptoparena.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.laptoparena.net\/blog\/wp-json\/wp\/v2\/comments?post=160"}],"version-history":[{"count":9,"href":"https:\/\/www.laptoparena.net\/blog\/wp-json\/wp\/v2\/posts\/160\/revisions"}],"predecessor-version":[{"id":247,"href":"https:\/\/www.laptoparena.net\/blog\/wp-json\/wp\/v2\/posts\/160\/revisions\/247"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.laptoparena.net\/blog\/wp-json\/wp\/v2\/media\/240"}],"wp:attachment":[{"href":"https:\/\/www.laptoparena.net\/blog\/wp-json\/wp\/v2\/media?parent=160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.laptoparena.net\/blog\/wp-json\/wp\/v2\/categories?post=160"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.laptoparena.net\/blog\/wp-json\/wp\/v2\/tags?post=160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}