Autore Topic: Fonera con flash andata?  (Letto 3507 volte)

fabri0308

  • Novellino
  • *
  • Post: 3
    • Mostra profilo
Fonera con flash andata?
« il: Gennaio 27, 2012, 10:36:10 pm »
Da alcuni mesi utilizzavo questa fonera 2200 con openwrt perch? con ddwrt non mi memorizzava pi? i cambiamenti di configurazione, e ad ogni reboot ritornava alla configurazione di default (come quando si da un reset).
Adesso la fonera parte solo a freddo (cio? quando ? stata spenta da almeno un ora). In queste condizioni se la collego alla seriale e accedo a Redboot, ottengo questo:
+Ethernet eth0: MAC address 00:18:84:82:8c:18
IP: 192.168.1.254/255.255.255.0, Gateway: 0.0.0.0
Default server: 0.0.0.0

RedBoot(tm) bootstrap and debug environment [ROMRAM]
Non-certified release, version V1.00 - built 10:37:27, Dec 12 2006
Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.

Board: FON1
RAM: 0x80000000-0x81000000, [0x80040aa0-0x80fe1000] available
FLASH: 0xa8000000 - 0xa87f0000, 128 blocks of 0x00010000 bytes each.
== Executing boot script in 10.000 seconds - enter ^C to abort
^C
RedBoot>


e fino a qui tutto ok.

Col comando fis list  ottengo:
RedBoot> fis list
Name              FLASH addr  Mem addr    Length      Entry point
RedBoot           0xA8000000  0xA8000000  0x00030000  0x00000000
rootfs            0xA8030000  0xA8030000  0x006D0000  0x00000000
vmlinux.bin.l7    0xA8700000  0x80041000  0x000D0000  0x80041000
FIS directory     0xA87E0000  0xA87E0000  0x0000F000  0x00000000
RedBoot config    0xA87EF000  0xA87EF000  0x00001000  0x00000000
RedBoot>


Con fconfig  ottengo:
RedBoot> fconfig
Run script at boot: true
Boot script:
.. fis load -l vmlinux.bin.l7
.. exec
Enter script, terminate with empty line
>> fis load l vmlinux.bin.l7
>> exec
>>
Boot script timeout (1000ms resolution): 10
Use BOOTP for network configuration: false
Gateway IP address:
Local IP address: 192.168.1.254
Local IP address mask: 255.255.255.0
Default server IP address: 192.168.1.166
Console baud rate: 9600
GDB connection port: 9000
Force console for special debug messages: false
Network debug at boot time: false
Update RedBoot non-volatile configuration - continue (y/n)? y
... Erase from 0xa87e0000-0xa87f0000: .
... Program from 0x80ff0000-0x81000000 at 0xa87e0000: V
Error writing FIS directory at 0xa87e0000: Unknown error
RedBoot>


Se riavvio la fonera, cambia completamento lo scenario, e ovviamente non mi fa il boot:
+**Warning** FLASH configuration checksum error or invalid key
Use 'fconfig -i' to [re]initialize database
... waiting for BOOTP information
Ethernet eth0: MAC address 00:18:84:82:8c:18
Can't get BOOTP info for device!

RedBoot(tm) bootstrap and debug environment [ROMRAM]
Non-certified release, version V1.00 - built 10:37:27, Dec 12 2006

Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.

Board: FON1
RAM: 0x80000000-0x81000000, [0x80040aa0-0x80fe1000] available
FLASH: 0xa8000000 - 0xa87f0000, 128 blocks of 0x00010000 bytes each.
RedBoot>


Se eseguo il comando fconfig -i   ottengo:
RedBoot> fconfig -i
Initialize non-volatile configuration - continue (y/n)? y
Run script at boot: false
Use BOOTP for network configuration: true
Default server IP address:
Console baud rate: 9600
GDB connection port: 9000
Force console for special debug messages: false
Network debug at boot time: false
Update RedBoot non-volatile configuration - continue (y/n)?


In pratica la fonera boota solo dopo che viene staccata dall'alimentazione per un'ora circa.
Qualcuno ha idea se ? recuperabile o mi devo rassegnare a metterla da parte dopo anni di onorato servizio ??