Sagem F@ST1201S Bootloader CFE (III)

Conectar el adaptador RS232 a TTL y abrir la aplicación minicom en una consola.
Nada más encender el router, aparece la información del bootloader CFE (Common Firmware Environment) de Broadcom.


La versión de bootloader es la 3.9Sla y la dirección de arranque es 0xbfc00000.


Sagem CFE version: 3.9Sla                                                  

Broadcom version 1.0.37-6.4 for BCM96338 (32bit,SP,BE)

Build Date: Mon Sep 25 18:39:15 CST 2006 (yangj@svr1.sagemharbournetworks.com)

Copyright (C) 2005-2006 Sagem communication.

Boot Address 0xbfc00000


Presionar cualquier tecla para interrumpir el arranque y entrar en el menú bootloader.


*** Press any key to stop auto run (1 seconds) ***

web info: Waiting for connection on socket 0.

1

Sagem CLI> 


Para listar los comandos disponible, escribir "help"


Sagem CLI> help
Available commands:

d                   Display the content of PSI or Backup, CFE version
w                   Write the whole image start from beginning of the flash
e                   Erase [t]backup [n]vram or [a]ll flash except bootrom
r                   Run program from flash image or from host depend on [f/h] flag
p                   Print boot line and board parameter info
c                   Change booline parameters
f                   Write image to the flash 
i                   Erase persistent storage data
b                   Change board parameters
reset               Reset the board
flashimage          Flashes a compressed image after the bootloader.
help                Obtain help for CFE commands

For more information about a command, enter 'help command-name'
*** command status = 0
Sagem CLI> 

Opción "d", visualiza información de contenidos.


Sagem CLI> d
d[isplay] the content of [p]SI or [b]ackup or the [v]ersion of cfe.  
*** command status = 0
Sagem CLI> 

Opción "d p", visualiza información de los contenidos PSI en formato XML.
A destacar el nombre de usuario "admin" y contraseña codificada que es la utilizada en la configuración por HTML y que se accede mediante 192.168.0.1.


Sagem CLI> d p
getShareBlks: i=34, sect_size=65536, end_blk=35
PSI content:

<psitree>
<SystemInfo>
<protocol autoScan="enable" igmpSnp ="disable" igmpMode ="disable" macFilterPolicy="forward" encodePassword="enable" enblUsbM2u="disable" >
<sysLog state="enable" displayLevel="ERR" logLevel="DEBUG" option="local" serverIP="0.0.0.0" serverPort="514"/>
<sysUserName value="admin"/>
<sysPassword value="YWRtaW4="/>
<sptPassword value="c3VwcG9ydA=="/>
<usrPassword value="dXNlcg=="/>
<GUIId value="1"/>
<CountryId value="0"/>
<ConfigId value="F@ST1201S_UNI2_1"/>
</SystemInfo>
<AtmCfg>
<initCfg structureId="2" threadPriority="25" freeCellQSize="10" freePktQSize="200" freePktQBufSize="1600" freePktQBufOffset="32" rxCellQSi>
</AtmCfg>
<AtmCfgTd>
<td1 cat="UBR" PCR="0" SCR="0" MBS="0"/>
</AtmCfgTd>
<AtmCfgVcc>
<vccId9999 vpi="0" vci="65534" tdId="0" aalType="AAL2" adminStatus="down" encap="unknown" qos="disable" instanceId="1509949441"/>
<vccId1 vpi="8" vci="35" tdId="1" aalType="AAL5" adminStatus="up" encap="vcMuxRouted" qos="disable" instanceId="1509949441"/>
</AtmCfgVcc>
<SecCfg>
<srvCtrlList ftp="lan" http="lan" icmp="lan" ssh="lan" telnet="lan" tftp="disable"/>
</SecCfg>
<Lan>
<entry9999 address="1.1.1.1" mask="255.255.255.0" dhcpServer="disable" leasedTime="0" startAddr="0.0.0.0" endAddr="0.0.0.0" instanceId="15>
<entry1 address="192.168.0.1" mask="255.255.255.0" dhcpServer="enable" leasedTime="24" startAddr="192.168.0.128" endAddr="192.168.0.254" i>
</Lan>
<pppsrv_8_35>
<ppp_conId1 userName="" password="" serviceName="" idleTimeout="0" ipExt="disable" auth="auto" useStaticIpAddr="0" localIpAddr="0.0.0.0" p>
</pppsrv_8_35>
<wan_8_35>
<entry1 vccId="1" conId="1" name="pppoe_8_35_1" protocol="PPPOE" encap="LLC" firewall="enable" nat="enable" igmp="disable" vlanId="-1" ser>
</wan_8_35>
<ADSL/>
<RouteCfg>
</RouteCfg>
<EngDbgCfg/>
</psitree>

*** command status = 0
Sagem CLI>

Opción "d b", visualiza información de los contenidos de la copia de seguridad en formato XML.


Sagem CLI> d b
getShareBlks: i=34, sect_size=65536, end_blk=35
Backup content:

<psitree>
<ADSL/>
<AtmCfg>
<initCfg structureId="2" threadPriority="25" freeCellQSize="10" freePktQSize="200" freePktQBufSize="1600" freePktQBufOffset="32" rxCellQSi>
</AtmCfg>
<AtmCfgTd>
<td1 cat="UBR" PCR="0" SCR="0" MBS="0"/>
</AtmCfgTd>
<AtmCfgVcc>
<vccId9999 vpi="0" vci="65534" tdId="0" aalType="AAL2" adminStatus="down" encap="unknown" qos="disable" instanceId="1509949441"/>
<vccId1 vpi="8" vci="35" tdId="1" aalType="AAL5" adminStatus="up" encap="vcMuxRouted" qos="disable" instanceId="1509949441"/>
</AtmCfgVcc>
<SecCfg>
<srvCtrlList ftp="lan" http="lan" icmp="lan" ssh="lan" telnet="lan" tftp="disable"/>
</SecCfg>
<Lan>
<entry9999 address="1.1.1.1" mask="255.255.255.0" dhcpServer="disable" leasedTime="0" startAddr="0.0.0.0" endAddr="0.0.0.0" instanceId="15>
<entry1 address="192.168.0.1" mask="255.255.255.0" dhcpServer="enable" leasedTime="24" startAddr="192.168.0.128" endAddr="192.168.0.254" i>
</Lan>
<SystemInfo>
<sysLog state="enable" displayLevel="ERR" logLevel="DEBUG" option="local" serverIP="0.0.0.0" serverPort="514"/>
<protocol autoScan="enable" igmpSnp ="disable" igmpMode ="disable" macFilterPolicy="forward" encodePassword="enable" enblUsbM2u="disable" >
<sysUserName value="admin"/>
<sysPassword value=""/>
<sptPassword value="c3VwcG9ydA=="/>
<usrPassword value="dXNlcg=="/>
<GUIId value="1"/>
<CountryId value="0"/>
<ConfigId value="F@ST1201S_UNI2_1"/>
</SystemInfo>
<RouteCfg>
</RouteCfg>
<EngDbgCfg/>
<pppsrv_8_35>
<ppp_conId1 userName="" password="" serviceName="" idleTimeout="0" ipExt="disable" auth="auto" useStaticIpAddr="0" localIpAddr="0.0.0.0" p>
</pppsrv_8_35>
<wan_8_35>
<entry1 vccId="1" conId="1" name="pppoe_8_35_1" protocol="PPPOE" encap="LLC" firewall="enable" nat="enable" igmp="disable" vlanId="-1" ser>
</wan_8_35>
</psitree>

*** command status = 0
Sagem CLI> 

Opciones "d v", muestra información acerca de las versiones de bootloader de Sagem y Broadcom.


Sagem CLI> d v
Sagem CFE version: 3.9Sla
Broadcom CFE version: 1.0.37
*** command status = 0
Sagem CLI>

Opción "w", graba al inicio de la flash, una imagen desde un host.


Sagem CLI> w

     eg. w [hostip:]whole_image_file_name

*** command status = -2
Sagem CLI>

Opción "e", borra el contenido de nvram, memoria persistente o toda las flash excepto la zona de arranque.


Sagem CLI> e
Erase [n]vram, [p]ersistent storage or [a]ll flash except bootrom
usage: e [n/p/a]
*** command status = 0
Sagem CLI>

Opción "r", carga el contenido de la flash o bien una imagen desde el host.


Sagem CLI> r
Code Address: 0x80010000, Entry Address: 0x8017d018
Decompression OK!
Entry at 0x8017d018
Closing network.
Starting program at 0x8017d018
.............. loading .....

Opción "p", visualiza contenidos de arranque e información del circuito.


Sagem CLI> p
Enter readNvramData(CFE)
Enter kerSysNvRamGet(CFE)
getShareBlks: i=0, sect_size=16384, end_blk=1
kerSysNvRamGet(CFE) Mac address:00:19:4b:20:00:55, BoardId=F@ST1201S 
Enter readNvramData(CFE)
Enter kerSysNvRamGet(CFE)
getShareBlks: i=0, sect_size=16384, end_blk=1
kerSysNvRamGet(CFE) Mac address:00:19:4b:20:00:55, BoardId=F@ST1201S 
Board IP address                  : 192.168.1.1  
Host IP address                   : 192.168.1.100  
Gateway IP address                :   
Run from flash/host (f/h)         : f  
Default host run file name        : vmlinux  
Default host flash file name      : bcm963xx_fs_kernel  
Boot delay (0-9 seconds)          : 1  
Board Id Name                     : F@ST1201S  
Psi size in KB                    : 24
Number of MAC Addresses (1-32)    : 6  
Base MAC Address                  : 00:19:4b:20:00:55  
Ethernet PHY Type                 : Internal
Memory size in MB                 : 8
CMT Thread Number                 : 0

*** command status = 0
Sagem CLI>

Opción "c", cambiar parámetros de configuración.


Sagem CLI> c
Enter readNvramData(CFE)
Enter kerSysNvRamGet(CFE)
getShareBlks: i=0, sect_size=16384, end_blk=1
kerSysNvRamGet(CFE) Mac address:00:19:4b:20:00:55, BoardId=F@ST1201S 
Press:   to use current value
        '-' to go previous parameter
        '.' to clear the current value
        'x' to exit this command
Board IP address                  :  192.168.1.1  x
Enter readNvramData(CFE)
Enter kerSysNvRamGet(CFE)
getShareBlks: i=0, sect_size=16384, end_blk=1
kerSysNvRamGet(CFE) Mac address:00:19:4b:20:00:55, BoardId=F@ST1201S 
*** command status = 0
Sagem CLI>

Opción "f", grabar en flash una imagen.


Sagem CLI> f
Loading 192.168.1.100:bcm963xx_fs_kernel ...
Loading failed.: CFE error -21
*** command status = -21
Sagem CLI>

Opción "i", borrar datos almacenados.


Sagem CLI> i
Erase persisten storage data? (y/n):n
*** command status = -1
Sagem CLI>

Opción "b", cambiar identificador de router.


Sagem CLI> b
Press:   to use current value
        '-' to go previous parameter
        '.' to clear the current value
        'x' to exit this command
Board Id Name (0-7)  
96338SV          -------  0
96338L-2M-8M     -------  1
96338W           -------  2
96338E4          -------  3
F@ST1201         -------  4
F@ST1241         -------  5
F@ST1201S        -------  6
F@ST1241S        -------  7       :  6  x
*** command status = 0
Sagem CLI>

Opción "flashimage", grabar imagen comprimida después del bootloader.


Sagem CLI> flashimage

     eg. flashimage [hostip:]compressed_image_file_name

*** command status = -2
Sagem CLI>


0 comentarios:

Publicar un comentario