Reflashing la fonera with dd-wrt
After several requests on how to flash the la fonera with dd-wrt i decieded to write this quick guide on how to do it.
Be sure to read Accessing Serial console and Dissassembling the la fonera first.
Â
- Think twice before attemting this. It could brick your router. Â I take no responsiblility for any harm done.
- Install a TFTP client. I use pumpkin in this tutorial.
- Download the latest root.fs and vmlinux.bin.l7 from dd-wrt fon builds.
- Copy the two files above to the tftp root directory.
- Set up your Ip adress (on the PC running your TFTP) to something like 192.168.1.155 by clicking:
Start->Settings->Network Connections->Local area connection->Properties->Internet connection(TCP/IP)
Change the setting to Use the following IP address and enter the IP:
    - Â
- Â
- Â Â
- Start pumpkin ( or your prefferred tftp server)
- Hook up your serial connection and start your terminal . Turn on the la fonera and look at the bootup process. It should look something like this:Â
- Now this is where you have to be quick. Press CTRL+C as soon as you see the line above stating Executing boot script in 1.000 seconds - enter ^C to abort . You should now have entered Red boot command line:
- Now enter : ip_address -l 192.168.1.254/24 -h 192.168.1.155
- Enter: fis init
- Enter: load -r -v -b 0×80041000 root.fs
- Enter:
- Enter:
- Enter:Â
- Enter:
- Now just restart the router by entering reset .
root@OpenWrt:/# +PHY ID is 00XX:XXXX Ethernet eth0: MAC address 00:00:00:00:00:00
IP: 0.0.0.0/255.255.255.255, Gateway: 0.0.0.0
Default server: 0.0.0.0
RedBoot(tm) bootstrap and debug environment [ROMRAM]
Non-certified release, version v1.3.0 - built 16:57:58, Aug 7 2006Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
Board: ap51
RAM: 0×80000000-0×81000000, [0x80040450-0x80fe1000] available
FLASH: 0xa8000000 - 0xa87f0000, 128 blocks of 0×00010000 bytes each.
== Executing boot script in 1.000 seconds - enter ^C to abortÂÂ
RedBoot>Â
Wich will output:IP: 192.168.1.254/255.255.255.0, Gateway: 0.0.0.0
Default server: 192.168.1.155Output:
About to initialize [format] FLASH imag
*** Initialize FLASH Image System
… Erase from 0xa87e0000-0xa87f0000: .
… Program from 0×80ff0000-0×81000000 at 0xa87e0000: .Now the PC running pumpkin should react (with a sound) and start transferring root.fs.

The fon serial console will output:
Using default protocol (TFTP)
/
Raw file loaded 0×80041000-0×802c1fff, assumed entry at 0×80041000fis create -b 0×80041000 -f 0xA8030000 -l 0×002C0000 -e 0×00000000 rootfs
This command takes time to complete, have a cup of coffee while it finishes.
Â
Â
load -r -v -b 0×80041000 vmlinux.bin.l7
Output:
Using default protocol (TFTP)
-
Raw file loaded 0×80041000-0×80100fff, assumed entry at 0×80041000fis create -r 0×80041000 -e 0×80041000 -l 0×000E0000 vmlinux.bin.l7
Output:
… Erase from 0xa82f0000-0xa83d0000: …………..
… Program from 0×80041000-0×80101000 at 0xa82f0000: …………
… Erase from 0xa87e0000-0xa87f0000: .
… Program from 0×80ff0000-0×81000000 at 0xa87e0000: .fis create -f 0xA83D0000 -l 0×00010000 -n nvram
Output:
… Erase from 0xa87e0000-0xa87f0000: .
… Program from 0×80ff0000-0×81000000 at 0xa87e0000: . - Â











Friday, March 30th 2007 at 3:13 am
If anyone is having trouble, check out the tutorial:
http://www.digg.com/gadgets/Hack_FON_Router_over_Ethernet_Easiest_La_Fonera_Tutorial_Yet
Tuesday, May 1st 2007 at 6:23 pm
How do you set it to client mode from the serial conection??
ITs defaulted to AP, i want to change it to client.. with out conecting over the wireless.
Sunday, November 18th 2007 at 4:53 pm
[...] read more | digg story [...]
Thursday, April 29th 2010 at 3:36 pm
I´ve skipped some of the steps you write about, because of other tutorial and fonera works fine, BUT only when using SERIAL connection:/
I cannot access fonera via SSH, nor SCP. I cannot upload files to fonera, so I can´t do anything about installing any other package. What should I do? Should I re-flash it or can I do the step, I have skipped? I just need to know, how to install other packages or how to gain access using the WINSCP to copy necessary packages.