Monthly Archives: January 2012

Flash AG241 to openwrt

Set laptop ip to


tftp> verbose
tftp> trace
tftp> rexmt 1
tftp> timeout 5
tftp> binary
tftp> connect

Power on router on powerlight hit enter to send following command:

tftp> put openwrt-AG241v2-jffs2-64k-code.bin

Leave the router it will then eventually reset it self.

Once you've got it, telnet to, set a root password, then login with ssh.

Now fiddle with its networking setup so that it matches your LAN

ifconfig br-lan:1 aaa.bbb.ccc.ddd netmask (the :1 stops you losing the connectivity in the current session)
route add default gateway aaa.bbb.ccc.ddd
vi /etc/resolv.conf to add 'nameserver aaa.bbb.ccc.ddd'

try and ping When you get a reply:

opkg update
opkg install kmod-pppoa ppp-mod-pppoa kmod-sangam-atm-annex-a

It's now ready to connect to your ISP

vi /etc/config/network

- set the lan address, uncomment the 'wan' interface, and change 'option encaps' from llc to vc. set vpi/vci to 0/38.

Finally, as mine didn't start the 'wan' interface automatically at start, I stuck a dirty "ifup wan" into /etc/init.d/sysctl


Add sub int to wlan0

ifconfig wlan0:0 netmask up

Cert pk12 –> pem

Convert client cert to pem format:

openssl pkcs12 -in username.p12 -out certkey.pem -nodes -clcerts

rsync over SSH

rsync over SSH allows you to resume your file transfers and copy folders recursivly.

rsync -avz -e ssh blah@home:/remote/dir /this/dir/ --progress