Montag, April 07, 2008

How to flash a FON to OpenMesh

http://k0k0.k1k2.de/ssh/open-ssh-access-to-fonera_en.htm

Download the following two files to a webserver on your net.
http://ipkg.k1k2.de/hack/openwrt-ar531x-2.4-vmlinux-CAMICIA.lzma
http://ipkg.k1k2.de/hack/out.hex

SSH into your box (169.254.255.1) with root/admin:

Now it get’s a bit tricky – change the ip of the eth0:1 interface to an IP on your net. You will lose the ssh connection. Reconnect.

root@OpenWRT:~# wget http://yourWebServerIP/openwrt-ar531x-2.4-vmlinux-CAMICIA.lzma
root@OpenWRT:~# mtd -e vmlinux.bin.l7 write openwrt-ar531x-2.4-vmlinux-CAMICIA.lzma vmlinux.bin.l7
root@OpenWRT:~# reboot

IP address will change – therefore Redo: Change the ip of the eth0:1 interface to an IP on your net. You will lose the ssh connection. Reconnect.

Now we need to patch the bootloader.

root@OpenWRT:~# wget http://yourWebServerIP/out.hex
root@OpenWRT:~# mtd -e "RedBoot config" write out.hex "RedBoot config"
root@OpenWRT:~# reboot

I did not try to aggregate those two steps into one!! Try at your own risk. I did not and now it works for me.

NEARLY DONE

Download the Open-Mesh modified OpenWrt firmware:
wget http://www.open-mesh.com/flashing/openwrt-atheros-2.6-vmlinux.gz
wget http://www.open-mesh.com/flashing/openwrt-atheros-2.6-root.jffs2-64k

Now you need to open the ap51 easyflash tool

Browse for Kernel and roofs – the correct file will be chosen by the .extension.
Select the correct interface
Do not touch anything else
Turn off the router
Press go
Turn on the router
It will use pcap to directly communicate with the router
It takes at least 10-15 minutes – DO NOT TURN IT OFF. The application will automatically close when it is finished.