Dead Fonera 2200?

Report problems and success stories with Gargoyle on various hardware platforms.

Moderator: Moderators

registar
Posts: 1
Joined: Sat Jan 29, 2011 4:01 pm

Dead Fonera 2200?

Post by registar »

I just tried to flash my fonera! :? I downloaded the last FonFlash utility, gargoyle_1.3.9-atheros-vmlinux and gargoyle_1.3.9-atheros-root.squashfs and everything went OK. At the end appeared a message saying my device was flashed.

I reboot the fonera and tryed to login at 192.168.1.1 without success.
O noticed there is no green WLAN led!

What can I do? What went wrong?
help please

User avatar
DoesItMatter
Moderator
Posts: 1373
Joined: Thu May 21, 2009 3:56 pm

Re: Dead Fonera 2200?

Post by DoesItMatter »

Did you connect to the wired port?

I don't remember if the WLAN is enabled by default.

Try to connect wired and see if you can access it.

You can always try and re-flash to see if it works.

Try a flash of 1.2.5 and see if that works also.
:twisted: Soylent Green Is People! :twisted:
2x Asus RT-N16 = Asus 3.0.0.4.374.43 Merlin
2x Buffalo WZR-HP-G300NH V1 A0D0 = Gargoyle 1.9.x / LEDE 17.01.x
2x Engenius - ESR900 Stock 1.4.0 / OpenWRT Trunk 49400

gargfon
Posts: 6
Joined: Mon Mar 28, 2011 9:25 am

Re: Dead Fonera 2200?

Post by gargfon »

Hi, I have the same problem , I flashed my fonera2200 with last versions of gargoyle ,ddwrt and opewrt (flashfon-gui said successfully but i can't access the web or ssh interfaces).
It's reachable just on telnet at 192.168.1.1 and port 9000 (redboot). Can suggest me next step please to make it works ?
Thanks on advance .

User avatar
DoesItMatter
Moderator
Posts: 1373
Joined: Thu May 21, 2009 3:56 pm

Re: Dead Fonera 2200?

Post by DoesItMatter »

gargfon wrote:Hi, I have the same problem , I flashed my fonera2200 with last versions of gargoyle ,ddwrt and opewrt (flashfon-gui said successfully but i can't access the web or ssh interfaces).
It's reachable just on telnet at 192.168.1.1 and port 9000 (redboot). Can suggest me next step please to make it works ?
Thanks on advance .
What version of Gargoyle are you trying to flash?

I would suggest flashing 1.2.5 on the Fon 2200

That version should work well on the Fonera 2100/2200/2201's

I don't know if Wireless is enabled by default or not.

You might have to connect via the Ethernet port for initial setup.
:twisted: Soylent Green Is People! :twisted:
2x Asus RT-N16 = Asus 3.0.0.4.374.43 Merlin
2x Buffalo WZR-HP-G300NH V1 A0D0 = Gargoyle 1.9.x / LEDE 17.01.x
2x Engenius - ESR900 Stock 1.4.0 / OpenWRT Trunk 49400

gargfon
Posts: 6
Joined: Mon Mar 28, 2011 9:25 am

Re: Dead Fonera 2200?

Post by gargfon »

Hi DoesItMatter, thanks for your reply. I flashed successfull it once and worked fine for almost 6months with gargoyle v1.3.5.
A day I turn it on and doesnt work then i flashed with 1.3.12 , 1.3.15 ,again with 1.3.5 but still the same : the flashing process ends with success (fonflash) but the web interface is not available and it stops on redboot, on port 9000.

I do all the process with ethernet cable and tried other wrt-based firmware but still same result :( .
Any clue to make it works again ?

Thanks.

User avatar
DoesItMatter
Moderator
Posts: 1373
Joined: Thu May 21, 2009 3:56 pm

Re: Dead Fonera 2200?

Post by DoesItMatter »

Telnet into Redboot

Run this command

fis init -f

That should completely initialize and wipe the flash chip

WATCH the output. I had a Fon 2201 die because the flash chip
started to have errors reported on it. I guess it was going bad.
If you see errors reported on the fis command, your flash chip
may be dying and might have to look for another router.
:twisted: Soylent Green Is People! :twisted:
2x Asus RT-N16 = Asus 3.0.0.4.374.43 Merlin
2x Buffalo WZR-HP-G300NH V1 A0D0 = Gargoyle 1.9.x / LEDE 17.01.x
2x Engenius - ESR900 Stock 1.4.0 / OpenWRT Trunk 49400

juzis28
Posts: 12
Joined: Fri Apr 01, 2011 12:23 pm

Re: Dead Fonera 2200?

Post by juzis28 »

I successfully flashed v 1.3.13 to my fonera 2200 over serial console. And seem this is most stable build i ever tried.

There was only one thing to edit: calculate lengh of the rootfs.

Here are steps i performed
  1. Connect ttl serial cable (info here). (Also you can order cheap usb to ttl converter dongle on ebay...)
  2. Start putty (or hyper terminal) and open console. Terminal connection as described 1 step (link), 9600-8-N-1 and no flow control. Power up fonera and press ctrl+c (^C) when offered, go to the RedBoot.
  3. Fire up tftp32 server and upload kernel image to fonera

    Code: Select all

    load -r -b %{FREEMEMLO} gargoyle_1.3.13-atheros-vmlinux.lzma
  4. Delete old images:

    Code: Select all

    fis init
  5. create new kernel:

    Code: Select all

    fis create -e 0x80041000 -r 0x80041000 vmlinux.bin.l7 
    This will take long (around 20 min)
  6. Check the free space available

    Code: Select all

    fis free 
    and get offset:

    Code: Select all

    fis free
      0xA8100000 .. 0xA87E0000
    
  7. Substract the first from second and you get lengh offset you will use to create rootfs:

    Code: Select all

    6E0000
    (you will use it as 0x006E0000 in step 9)
  8. Now load the root filesystem to the box:

    Code: Select all

    load -r -b %{FREEMEMLO} gargoyle_1.3.13-atheros-root.squashfs
  9. Create the partition for it (use offset you got in step 7):

    Code: Select all

    fis create -l 0x006E0000 rootfs 
  10. Check if config does not contain errors:

    Code: Select all

    fconfig -l 
  11. Boot fonera with new firmware:

    Code: Select all

    fis load -l vmlinux.bin.l7
    exec 
    OR
  12. Reboot fonera...

    Code: Select all

    reset
With this howto i flashed 2 foneras without any problems many times.
Gargoyle works well, thank you for great job!
Last edited by juzis28 on Wed Feb 11, 2015 12:41 pm, edited 4 times in total.

gargfon
Posts: 6
Joined: Mon Mar 28, 2011 9:25 am

Re: Dead Fonera 2200?

Post by gargfon »

Thanks both of you !
@juzi28 Thanks for you procedure , i save it for last since i don't have a serial cable so need to look for one or build one on my own. It's not clear for me , sorry i'm a newbie :oops: , the memory addresses you wrote are valid just for gargoyle v.13 or also for other versions ?

@DoesItMatter Thanks for the command, it went well at least hope so :) here the log :

Code: Select all

RedBoot> fis init -f
About to initialize [format] FLASH image system - continue (y/n)? y
*** Initialize FLASH Image System
... Erase from 0xa8030000-0xa87e0000: ...........................................................................................................................
... Erase from 0xa87e0000-0xa87f0000: .
... Program from 0x80ff0000-0x81000000 at 0xa87e0000: .
Can you please list me whole procedure step by step ? I found many guides in the net but i don't know which one is good for my situation.

My fonera is still on and ready for your commands , Master :p

Thanks.

juzis28
Posts: 12
Joined: Fri Apr 01, 2011 12:23 pm

Re: Dead Fonera 2200?

Post by juzis28 »

memory adresses are valid for my fonera, it is not gargoyle related. You could flash openwrt as well according my short how to.

I saw in the internet few different manuals for fonera re-flashing and here are different addresses. but addresses for kernel are always the same, differs only rootfs address.

I connected the cable to serial port, but you`ve RedBot enabled telnet. It is the same (almost).

gargfon
Posts: 6
Joined: Mon Mar 28, 2011 9:25 am

Re: Dead Fonera 2200?

Post by gargfon »

Thanks juzis28 !!!

I got it working again now , born again fon with gargoyle_1.3.13 :) If necessary I would suggest to upgrade the wiki section.

For ethernet redboot procedure you just need to set a static ip.
I noticed fon telnet address changed since last time I tried from 192.168.1.254 to 192.168.1.1

I got a few errors , wishing It's not serious problem on the device :

Code: Select all

RedBoot> fis init -f
/home/alfa/Atheros_Beta5.0/linuxsrc/src/redboot_fon1/ecos/packages/devs/eth/mips/ar531x/current/src/ae531xecos.c#390:ae531x_send AHB ERROR: AR531X_DEBUG_ERROR = 00000001
/home/alfa/Atheros_Beta5.0/linuxsrc/src/redboot_fon1/ecos/packages/devs/eth/mips/ar531x/current/src/ae531xecos.c#393:ae531x_send AHB ERROR status_4 = 00000555


I came ahead and successfully completed the flash process.

Thanks to juzis28, DoesItMatter for helping and gargoyle guys :p and openwrt team for these great systems.


PS: I add the full log of my operation:) :

Code: Select all

telnet 192.168.1.1 9000
Trying 192.168.1.1...
Connected to 192.168.1.1.
Escape character is '^]'.
== Executing boot script in 1.990 seconds - enter ^C to abort
RedBoot> No image 'vmlinux.bin.l7' found
RedBoot> Can't execute Linux - invalid entry address
RedBoot> ip_address -l 192.168.1.1/24 -h 192.168.1.3
IP: 192.168.1.1/255.255.255.0, Gateway: 0.0.0.0
Default server: 192.168.1.3
RedBoot> load -r -b %{FREEMEMLO} gargoyle_1.3.13-atheros-vmlinux.lzma
Using default protocol (TFTP)
Raw file loaded 0x80040c00-0x80110bff, assumed entry at 0x80040c00
RedBoot> fis init -f
/home/alfa/Atheros_Beta5.0/linuxsrc/src/redboot_fon1/ecos/packages/devs/eth/mips/ar531x/current/src/ae531xecos.c#390:ae531x_send AHB ERROR: AR531X_DEBUG_ERROR = 00000001
/home/alfa/Atheros_Beta5.0/linuxsrc/src/redboot_fon1/ecos/packages/devs/eth/mips/ar531x/current/src/ae531xecos.c#393:ae531x_send AHB ERROR status_4 = 00000555
About to initialize [format] FLASH image system - continue (y/n)? y
*** Initialize FLASH Image System
... Erase from 0xa8030000-0xa87e0000: ...........................................................................................................................
... Erase from 0xa87e0000-0xa87f0000: .
... Program from 0x80ff0000-0x81000000 at 0xa87e0000: .
RedBoot> fis create -e 0x80041000 -r 0x80041000 vmlinux.bin.l7
Erase from 0xa8030000-0xa8100000: .............
... Program from 0x80040c00-0x80110c00 at 0xa8030000: .............
... Erase from 0xa87e0000-0xa87f0000: .
... Program from 0x80ff0000-0x81000000 at 0xa87e0000: .
RedBoot>fis free
/home/alfa/Atheros_Beta5.0/linuxsrc/src/redboot_fon1/ecos/packages/devs/eth/mips/ar531x/current/src/ae531xecos.c#390:ae531x_send AHB ERROR: AR531X_DEBUG_ERROR = 00000001
/home/alfa/Atheros_Beta5.0/linuxsrc/src/redboot_fon1/ecos/packages/devs/eth/mips/ar531x/current/src/ae531xecos.c#393:ae531x_send AHB ERROR status_4 = 00000145
  0xA8100000 .. 0xA87E0000
RedBoot> load -r -b %{FREEMEMLO} gargoyle_1.3.13-atheros-root.squashfs
/home/alfa/Atheros_Beta5.0/linuxsrc/src/redboot_fon1/ecos/packages/devs/eth/mips/ar531x/current/src/ae531xecos.c#390:ae531x_send AHB ERROR: AR531X_DEBUG_ERROR = 00000145
/home/alfa/Atheros_Beta5.0/linuxsrc/src/redboot_fon1/ecos/packages/devs/eth/mips/ar531x/current/src/ae531xecos.c#393:ae531x_send AHB ERROR status_4 = 00000145
Using default protocol (TFTP)
Raw file loaded 0x80040c00-0x80300bff, assumed entry at 0x80040c00
RedBoot> fis create -l 0x006E0000 rootfs
/home/alfa/Atheros_Beta5.0/linuxsrc/src/redboot_fon1/ecos/packages/devs/eth/mips/ar531x/current/src/ae531xecos.c#390:ae531x_send AHB ERROR: AR531X_DEBUG_ERROR = 00000145
/home/alfa/Atheros_Beta5.0/linuxsrc/src/redboot_fon1/ecos/packages/devs/eth/mips/ar531x/current/src/ae531xecos.c#393:ae531x_send AHB ERROR status_4 = 00000145
... Erase from 0xa8100000-0xa87e0000: ..............................................................................................................
... Program from 0x80040c00-0x80300c00 at 0xa8100000: ............................................
... Erase from 0xa87e0000-0xa87f0000: .
... Program from 0x80ff0000-0x81000000 at 0xa87e0000: .
RedBoot> fconfig -l
/home/alfa/Atheros_Beta5.0/linuxsrc/src/redboot_fon1/ecos/packages/devs/eth/mips/ar531x/current/src/ae531xecos.c#390:ae531x_send AHB ERROR: AR531X_DEBUG_ERROR = 00000001
/home/alfa/Atheros_Beta5.0/linuxsrc/src/redboot_fon1/ecos/packages/devs/eth/mips/ar531x/current/src/ae531xecos.c#393:ae531x_send AHB ERROR status_4 = 00000145
Run script at boot: true
Boot script: 
.. fis load -l vmlinux.bin.l7
.. exec

Boot script timeout (1000ms resolution): 2
Use BOOTP for network configuration: false
Gateway IP address: 0.0.0.0
Local IP address: 192.168.1.1
Local IP address mask: 0.0.0.0
Default server IP address: 192.168.1.254
Console baud rate: 9600
GDB connection port: 9000
Force console for special debug messages: false
Network debug at boot time: false

Post Reply