Dobrica Pavlinušić's random unstructured stuff
OpenWRT: Revision 3

My notes about compilation and usage



Checkout source

svn co https://svn.openwrt.org/openwrt/trunk openwrt
cd openwrt


Random notes about router unbricking

TP-Link TL-WR741ND

http://wiki.openwrt.org/toh/tp-link/tl-wr741nd

tpl on "Autobooting in 1 seconds" prompt to get console.

ar7240> setenv ipaddr 10.0.0.100
ar7240> setenv serverip 10.0.0.1

ar7240> tftpboot 0x80000000 openwrt-ar71xx-generic-tl-wr741nd-v2-squashfs-sysupgrade.bin
dup 1 speed 1000
Using eth1 device
FTP from server 10.0.0.1; our IP address is 10.0.0.100
Filename 'openwrt-ar71xx-generic-tl-wr741nd-v2-squashfs-sysupgrade.bin'.
Load address: 0x80000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################
done
Bytes transferred = 3080196 (2f0004 hex)

ar7240> erase 0x9f020000 +2f0004

First 0x2 last 0x31 sector size 0x10000
  49
Erased 48 sectors

ar7240> cp.b 0x80000000 0x9f020000 0x2f0004
Copy to Flash... write addr: 9f020000
done

ar7240> bootm 0x9f020000