LaFonera Software Upgrade-Flashing

From DD-WRT Wiki

Jump to: navigation, search

You are here: DD-WRT wiki mainpage / LaFonera / Software / Upgrade-Flashing

NOTE: It is recommended that all firmware flashing is done VIA CABLE and not wireless to avoid connection problems and potential bad flashing / bricking of routers.

Contents

[edit] Web Gui Method

This is only for version 2007 - 0117 and newer.

Connect the Fonera by cable to your router or PC, access the Fonera's web config and follow the below guide.

[edit] Preparation

First you will need a fonera-firmware.bin file from your required firmware release. Check here for all releases, click a release date and then click the fonera-firmware.bin file to download it. Known good firmware releases are listed on the main La Fonera index page.

[edit] Reset Defaults

Browse to Administration > Factory Defaults

Restore Factory Defaults: Yes

Click Save.

Once connection is restablished, check to make sure all settings are at default. If not, change them to defaults manually if you can, and hold the reset button for around 75 seconds until the WLAN light flashes.

[edit] Upgrade Firmware

Browse to Administration > Firmware Upgrade

Click the Browse button to select the required fonera-firmware.bin file.

After flashing, reset to: Don't reset.

Click Upgrade and wait around 8 minutes before doing anything else. Fonera will show "Upgrade successful. Unit is rebooting now. Please wait a moment..." once firmware has finished uploading. Wait until a Continue button appears and click it.

[edit] Command Line Method

This is for versions earlier than 2007 - 0117.

DO NOT USE THIS METHOD FOR FLASHING FROM THE DEFAULT LaFonera FIRMWARE: Instead, use the method found here.

Issue these commands through telnet, ssh, or serial console to the LaFonera: (this might also work if you do it under the Commands section on the webinterface).

cd /tmp
wget <newest version of root.fs>
wget <newest version of vmlinux.bin.l7>
mtd write vmlinux.bin.l7 vmlinux.bin.l7
mtd write root.fs rootfs
reboot

[edit] RedBoot Console Method

This method is an adaptation of this manual

[edit] Reset Defaults

Browse to Administration > Factory Defaults

Restore Factory Defaults: Yes

Click Save.

Once connection is restablished, check to make sure all settings are at default. If not, change them to defaults manually if you can, and hold the reset button for around 75 seconds until the WLAN light flashes.


[edit] Prepare your ethernet card

Connect the Fonera by cable to your PC.

Set your PC ethernet card to use IP 192.168.1.166 and netmask 255.255.255.0.


[edit] Download the required file

You will need a linux.bin file from your required firmware release. Get the stable v2.4 release from here.


[edit] Set up a TFTP server

You will need a TFTP server to transfer the file from your PC to the Fonera. In Windows you can use TFTD32 and in GNU/Linux you can use tftpd-hpa. Set the server up and make linux.bin available to tftp clients.

You can find a detailed explanation here


[edit] Connecting to the Fonera RedBoot

Disconnect your Fonera from power ac.

I don't know why, but standard linux telnet client didn't work for me, so I used Putty for Linux.

Prepare a Putty telnet session with IP 192.168.1.254 and port 9000, but don't open it by now.

Connect the Fonera to the AC power, wait for about 5 seconds, and open the Putty telnet session, and then press Control+C.

If everything goes ok, you will read this:

== Executing boot script in 8.530 seconds - enter ^C to abort
^C
RedBoot>


[edit] Upgrade Firmware

Enter command:

RedBoot> ip_address -l 192.168.1.254/24 -h 192.168.1.166

You will then get:

RedBoot> ip_address -l 192.168.1.254/24 -h 192.168.1.166
IP: 192.168.1.254/255.255.255.0, Gateway: 0.0.0.0
Default server: 192.168.1.166
RedBoot>


Enter command:

RedBoot> fis init

You will then get:

RedBoot> fis init
About to initialize [format] FLASH image system - continue (y/n)? y
*** Initialize FLASH Image System
… Erase from 0xa87e0000-0xa87f0000: .
… Program from 0×80ff0000-0×81000000 at 0xa87e0000: .
RedBoot>


Enter commands:

RedBoot> load -r -b 0x80041000 linux.bin 
RedBoot> fis create linux

This will be very long. It took about 15 minutes in my Fonera. During this time there will not be any output on the screen.


Enter command:

RedBoot> fconfig

Now you will configure the Fonera boot script. Follow the next session:

RedBoot> fconfig    //Press enter//
Run script at boot: true    //Press enter//
Boot script:
.. fis load -l vmlinux.bin.l7
.. exec
Enter script, terminate with empty line
>> fis load -l linux    //Enter command and press enter//
>> exec    //Enter command and press enter//
>>    //Press enter//
Boot script timeout (1000ms resolution): 10    //Press enter//
Use BOOTP for network configuration: false    //Press enter//
Gateway IP address:    //Press enter//
Local IP address: 192.168.1.254    //Press enter//
Local IP address mask: 255.255.255.0    //Press enter//
Default server IP address:    //Press enter//
Console baud rate: 9600    //Press enter//
GDB connection port: 9000    //Press enter//
Force console for special debug messages: false    //Press enter//
Network debug at boot time: false    //Press enter//
Update RedBoot non-volatile configuration - continue (y/n)? y    //Enter 'y' and press enter//
… Erase from 0xa87e0000-0xa87f0000: .
… Program from 0×80ff0000-0×81000000 at 0xa87e0000: .

After this, the Fonera is upgraded to the v2.4 stable dd-wrt version, so you only need to reboot it.

RedBoot> reset

[edit] External Links