Carlsbad Cubes Wolf Paulus

embedded

La Fonera 2.0 Preview
By Wolf Paulus <wolf@wolfpaulus.com>

Posted Sunday, April 26th, 2009

The Fonera 2.0 just became available in Europe (on April 21st) and is expected to arrive here in the US in May, making this the perfect time for taking a first look at the new 2.0 software.

I had gotten my hands on the La Fonera 2.0 beta hardware back in December 2008 and had deployed an OpenWrt 8.09 RC release soon there after, which was still on there. This meant that I needed to somehow reflash the router with the new loader and firmware before I could see what the new Software was all about.

Putting the original (or newer) firmware back on a Fonera FON 2.0

During booting, the FON 2200, waits at IP address 192.168.1.1 on port 9000, for a brief moment, to receive an interrupting Control-C. The process of how to get to the bootloader prompt is described in some detail over here: La Fonera 2.0 (FON 2202) Hacking, Cleaning House Fonera and Fonera 2.0

Files

The following 3 files are required during re-flashing and need to be made available to the router via TFTP. Also, check here for a more current Fonera 2 image: http://download.fonosfera.org

RedBoot Prompt

Here are steps required to put the three files back on the fonera router. Writing to flash takes some time, especially the last step, in which a 4.4 MBytes are written, requires some patience.


#========================================================
# Reset the current flash and the partition table
#========================================================
RedBoot> fis init
About to initialize [format] FLASH image system - continue (y/n)? y
*** Initialize FLASH Image System
... Erase from 0xa87e0000-0xa87f0000: .
... Program from 0x80ff0000-0x81000000 at 0xa87e0000: .


#========================================================
# Tell RedBoot about the TFTP-Server's IP
#========================================================
RedBoot> ip_address -l 192.168.1.1/24 -h 192.168.1.2
IP: 192.168.1.1/255.255.255.0, Gateway: 0.0.0.0
Default server: 192.168.1.2


#========================================================
# write the 2nd stage bootloader into flash
#========================================================
RedBoot> load -r -b %{FREEMEMLO} loader.bin
Using default protocol (TFTP)
Raw file loaded 0x80040400-0x800503ff, assumed entry at 0x80040400


RedBoot> fis create -e 0x80100000 -r 0x80100000 loader
... Erase from 0xa8030000-0xa8040000: .
... Program from 0x80040400-0x80050400 at 0xa8030000: .
... Erase from 0xa87e0000-0xa87f0000: .
... Program from 0x80ff0000-0x81000000 at 0xa87e0000: .


#========================================================
# load into RAM and write the failsafe image into flash
#========================================================
RedBoot> load -r -b %{FREEMEMLO} failsafe.image
Using default protocol (TFTP)
Raw file loaded 0x80040400-0x801803ff, assumed entry at 0x80040400


RedBoot> fis create -f 0xA8660000 image2
... Erase from 0xa8660000-0xa87a0000: ....................
... Program from 0x80040400-0x80180400 at 0xa8660000: ....................
... Erase from 0xa87e0000-0xa87f0000: .
... Program from 0x80ff0000-0x81000000 at 0xa87e0000: .


#========================================================
# load into RAM and write the image (4+ MB) into flash
#========================================================
RedBoot> load -r -b %{FREEMEMLO} flipper.image
Using default protocol (TFTP)
Raw file loaded 0x80040400-0x804b0403, assumed entry at 0x80040400


RedBoot> fis create image
... Erase from 0xa8040000-0xa84b0004: ........................................................................
... Program from 0x80040400-0x804b0404 at 0xa8040000: ........................................................................
... Erase from 0xa87e0000-0xa87f0000: .
... Program from 0x80ff0000-0x81000000 at 0xa87e0000: .
RedBoot>

When the re-flashing is finally done, all what's left to do to is to reboot the router.

Fonera 2.0 UI

Fonera 2.0 GUI
Fonera 2.0 GUI
Fonera 2.0 GUI



QR code, to put this blog on your mobileDisclosure:
This blog is written and edited by me, it contains my words and my opinions only, and does not contain any content which might present a conflict of interest.
I am not compensated to provide opinion on products, services, websites and various other topics. This blog does not accept any form of cash advertising, sponsorship, or paid topic insertions. However, I will and do accept and keep free products, services, and other forms of compensation from companies and organizations. All advertising is in the form of advertisements generated by a third party ad network and identified as such.
I will only endorse products or services that I believe, based on my expertise, are worthy of such endorsement. Any product claim, statistic, quote or other representation about a product or service should be verified with the manufacturer or provider.

Published on: Sunday, April 26th, 2009  •  Category: [embedded]

Article URL : http://wolfpaulus.com/journal/embedded/fonera6.html