Vous êtes sur la page 1sur 9

In AOS switches Flash can be corrupted by many means, sometimes flash

recovery using Newfs is the only means to recover the flash file system.
If the switch is not booting with errors on boot up like Malformed boot sector.
Offset 0, value 248.0xf9ffde8 (tRootTask): dosFsLib.c : Ensure this device is formatted
and partitions are properly handled then Newfs needs to be done at miniboot level.
Remember to take a backup of the boot.params file as it will be required.
Please follow detailed steps for Newfs recovery from Miniboot.
U-Boot 1.1.0(6.1.5.479.R01) (Jun 11 2007 - 18:34:09)
MPC8248 Reset Status: External Soft, External Hard
MPC8248 Clock Configuration
- Bus-to-Core Mult 4x, VCO Div 2, 60x Bus Freq 25-75 , Core Freq 100-300
- dfbrg 0, corecnf 0x1a, busdf 3, cpmdf 1, plldf 0, pllmf 3
- vco_out 400000000, scc_clk 100000000, brg_clk 100000000
- cpu_clk 400000000, cpm_clk 200000000, bus_clk 100000000
- pci_clk 66666666
CPU: MPC8248 (HiP7 Rev 14, Mask 1.0 1K50M) at 400 MHz
Board: Alcatel OS68xx (Kite II)
I2C: ready
DRAM: 256 MB
FLASH: 8 MB
In: serial
Out: serial
Err: serial
No ethernet found.
IDE: Bus 0: OK
Device 0: Model: SanDisk SDCFB-64 Firm: HDX 2.15 Ser#: 003516F3004O5535
Type: Removable Hard Disk
Capacity: 61.2 MB = 0.0 GB (125440 x 512)
USB: scanning bus for devices...
USB device not responding, giving up (status=80000000)
0 USB Devices found
Hit any key to stop autoboot: 0
=>
=>
=>
=>
=>
=> printenv
bootargs=
bootcmd=run miniboot
bootdelay=1
loads_echo=1
ipaddr=192.168.10.1
serverip=
rootpath=
gatewayip=

netmask=255.255.255.0
hostname=OS68xx
bootfile=
loadaddr=0x1000000
serialmode=modemControlOff
bootflags=0x0
baudrate=9600
stdin=serial
stdout=serial
stderr=serial
miniboot=bootm 0xff900000
osboot=run miniboot
Environment size: 316/8188 bytes
=>
=> =>
=> setenv baudrate 115200
## Switch baudrate to 115200 bps and press ENTER ...
=>
=> =>
=> setenv bootflags 0x100
=>
=> printenv
bootargs=
bootcmd=run miniboot
bootdelay=1
loads_echo=1
ipaddr=192.168.10.1
serverip=
rootpath=
gatewayip=
netmask=255.255.255.0
hostname=OS68xx
bootfile=
loadaddr=0x1000000
serialmode=modemControlOff
stdin=serial
stdout=serial
stderr=serial
miniboot=bootm 0xff900000
osboot=run miniboot
baudrate=115200
bootflags=0x100
Environment size: 320/8188 bytes
=> saveenv
Saving Environment to Flash...
Un-Protected 2 sectors

Erasing Flash...
....flash erase done
Erased 2 sectors
Writing to Flash...
256 KB
done
Protected 2 sectors
=>
=>
=>
=>
=> run miniboot
## Booting image at ff900000 ...
Image Name: miniboot-6.1.5.479.R01
Image Type: PowerPC VxWorks Kernel Image (gzip compressed)
Data Size: 796366 Bytes = 777.7 kB
Load Address: 00005000
Entry Point: 00005000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
## Ethernet MAC address not copied to NV RAM
Loading .text @ 0x01000000 (1225304 bytes)
Loading .rodata @ 0x0112b258 (249927 bytes)
Loading .data @ 0x011682a0 (111532 bytes)
Clearing .sbss @ 0x01183650 (1620 bytes)
Clearing .bss @ 0x01184000 (1832252 bytes)
## Using bootline (@ 0x4200): flash(1,0)cmm:default h=192.168.10.1
e=192.168.10.1:ffffff00 cb=115200 cp=none cs=1 cw=8 cm=modemControlOff
f=0x1000
## Starting vxWorks at 0x01000000 ...
ataDrv call. 0 1 24 24 621 0 0
CS EEPROM Module ID: 42012212 , System type: 48 port POE 1000Base-T, with 2
XFP, stacking - kite2
Adding 4876 symbols for standalone.
Boot parameters are:
'flash(1,0)cmm:default e=10.255.24.81:ff000000 h=192.168.10.1 g=10.255.24.181
f=0x1000 cb=9600 cp=none cs=1 cw=8 cm=modemControlOff'
AOS miniboot version: 6.1.5.479.R01
VxWorks (for Alcatel CMM MPC8248) version VxWorks5.5.1
KERNEL: WIND version 2.6
Made on Jun 11 2007, 20:23:45.
Copyright Wind River Systems, Inc., 1984-2006
CPU: Alcatel CMM MPC8248. Processor #0.
Memory Size: 0xfa00000 (250 MB). BSP version 1.2/1.
WARNING: Stopping in miniboot as directed by boot flags...
[Miniboot]->

[Miniboot]->
[Miniboot]->
[Miniboot]->
[Miniboot]->diskInit "/flash"
Disk with 125152 sectors of 512 bytes will be formatted with:
Volume Parameters: FAT type: FAT32, sectors per cluster 8
2 FAT copies, 15605 clusters, 123 sectors per FAT
Sectors reserved 34, hidden 32, FAT sectors 246
Root dir entries 0, sysId VX5DOS32, serial number aace70ef
Label:"NO NAME " ...
"/flash" initialized.
value = 0 = 0x0
[Miniboot]->
[Miniboot]->
[Miniboot]->ls
value = 0 = 0x0
[Miniboot]->pwd
/flash
value = 7 = 0x7
[Miniboot]->mkdir "working"
value = 0 = 0x0
[Miniboot]->mkdir "certified"
value = 0 = 0x0
[Miniboot]->
[Miniboot]->
[Miniboot]->
[Miniboot]->ls
working
certified
value = 0 = 0x0
[Miniboot]->pwd
/flash
value = 7 = 0x7
[Miniboot]->cd "working"
value = 0 = 0x0
[Miniboot]->
[Miniboot]->
[Miniboot]->ls
.
..
value = 0 = 0x0
[Miniboot]->
[Miniboot]->
[Miniboot]->sysStartZmodem
Upload directory: /flash/working
rz ready to receive file, please start upload (or send 5 CTRL-X's to abort).

Starting zmodem transfer. Press Ctrl+C to cancel.


Transferring boot.cfg...
100%
2 KB 2 KB/s 00:00:01
0 Errors
Transferring K2diag.img...
100% 1562 KB 10 KB/s 00:02:25
0 Errors
Transferring K2os.img...
100% 1698 KB 10 KB/s 00:02:37
2 Errors
Transferring Kadvrout.img...
100% 2626 KB 10 KB/s 00:04:03
5 Errors
Transferring Kbase.img...
100% 14467 KB 10 KB/s 00:22:17
13 Errors
Transferring Keni.img...
100% 4796 KB 10 KB/s 00:07:23
14 Errors
Transferring Krelease.img...
100%
4 KB 4 KB/s 00:00:01
14 Errors
Transferring Ksecu.img...
100% 466 KB 10 KB/s 00:00:43
16 Errors
**B0800000000022d
ZMODEM file transfer successful,
Hit to exit...
value = 0 = 0x0
[Miniboot]->
[Miniboot]->
[Miniboot]->
[Miniboot]-> cd ".."
value = 0 = 0x0
[Miniboot]->pwd
/flash/
value = 8 = 0x8
[Miniboot]->sysStartZmodem
Upload directory: /flash/
rz ready to receive file, please start upload (or send 5 CTRL-X's to abort).
Starting zmodem transfer. Press Ctrl+C to cancel.
Transferring boot.params...
100% 315 bytes 315 bytes/s 00:00:01
0 Errors
**B0800000000022d
ZMODEM file transfer successful,
Hit to exit...
value = 0 = 0x0
[Miniboot]->
[Miniboot]->
[Miniboot]->
[Miniboot]->
[Miniboot]->setNextRunningVersion 2
value = 1 = 0x1
[Miniboot]->

[Miniboot]->
[Miniboot]->
[Miniboot]->reboot
WARNING: "sysResetHardwareFlag" flag is SET, forcing CMM board reset.
U-Boot 1.1.0(6.1.5.479.R01) (Jun 11 2007 - 18:34:09)
MPC8248 Reset Status: External Soft, External Hard
MPC8248 Clock Configuration
- Bus-to-Core Mult 4x, VCO Div 2, 60x Bus Freq 25-75 , Core Freq 100-300
- dfbrg 0, corecnf 0x1a, busdf 3, cpmdf 1, plldf 0, pllmf 3
- vco_out 400000000, scc_clk 100000000, brg_clk 100000000
- cpu_clk 400000000, cpm_clk 200000000, bus_clk 100000000
- pci_clk 66666666
CPU: MPC8248 (HiP7 Rev 14, Mask 1.0 1K50M) at 400 MHz
Board: Alcatel OS68xx (Kite II)
I2C: ready
DRAM: 256 MB
FLASH: 8 MB
In: serial
Out: serial
Err: serial
No ethernet found.
IDE: Bus 0: OK
Device 0: Model: SanDisk SDCFB-64 Firm: HDX 2.15 Ser#: 003516F3004O5535
Type: Removable Hard Disk
Capacity: 61.2 MB = 0.0 GB (125440 x 512)
USB: scanning bus for devices...
USB device not responding, giving up (status=80000000)
0 USB Devices found
Hit any key to stop autoboot: 0
=>
=>
=> setenv bootflags 0x0
=> setenv baudrate 9600
## Switch baudrate to 9600 bps and press ENTER ...
=>
=>
=> printenv
bootargs=
bootcmd=run miniboot
bootdelay=1
loads_echo=1
ipaddr=192.168.10.1
serverip=
rootpath= gatewayip=
netmask=255.255.255.0
hostname=OS68xx

bootfile=
loadaddr=0x1000000
serialmode=modemControlOff
stdin=serial
stdout=serial
stderr=serial
miniboot=bootm 0xff900000
osboot=run miniboot
bootflags=0x0
baudrate=9600
Environment size: 316/8188 bytes
=> saveenv
Saving Environment to Flash...
Un-Protected 2 sectors
Erasing Flash...
....flash erase done
Erased 2 sectors
Writing to Flash...
256 KB
done
Protected 2 sectors
=>
=>
=>
=> boot
login :
login :
login :
login :
login :
login : admin
password :
Welcome to the Alcatel-Lucent OmniSwitch 6000
Software Version 6.3.1.999.R01 Service Release, August 18, 2008.
Copyright(c), 1994-2007 Alcatel-Lucent. All Rights reserved.
OmniSwitch(TM) is a trademark of Alcatel-Lucent registered
in the United States Patent and Trademark Office.
-> show running-directory
CONFIGURATION STATUS
Running CMM
: PRIMARY,
CMM Mode
: MONO CMM,
Current CMM Slot
: 1,
Running configuration : WORKING,
Certify/Restore Status : CERTIFY NEEDED
SYNCHRONIZATION STATUS
Running Configuration : SYNCHRONIZED,

-> show microcode working


Package
Release
Size Description
-----------------+---------------+--------+----------------------------------Kbase.img
6.3.1.999.R01 14814376 Alcatel-Lucent Base Software
Kadvrout.img
6.3.1.999.R01 2689416 Alcatel-Lucent Advanced Routing
K2os.img
6.3.1.999.R01 1739187 Alcatel-Lucent OS
Keni.img
6.3.1.999.R01 4911986 Alcatel-Lucent NI software
Ksecu.img
6.3.1.999.R01 477920 Alcatel-Lucent Security Management
K2diag.img
6.3.1.999.R01 1599866 Alcatel-Lucent Diagnostic Software
-> show microcode certified
Package
Release
Size Description
-----------------+---------------+--------+-----------------------------------> copy working certified
THU SEP 04 18:41:38 : CSM-CHASSIS (103) info message:
+++ == CSM == CERTIFYing software process started
+++ == CSM == Setting CERTIFY Timeout for 800 seconds
from /flash/working to /flash/certified
Copying boot.cfg
....................
completed
from /flash/working to /flash/certified
Copying K2diag.img
....................
completed
from /flash/working to /flash/certified
Copying K2os.img
....................
completed
from /flash/working to /flash/certified
Copying Kadvrout.img
....................
completed
from /flash/working to /flash/certified
Copying Kbase.img
....................
completed
from /flash/working to /flash/certified
Copying Keni.img
....................
completed
from /flash/working to /flash/certified
Copying Krelease.img
....................
completed
from /flash/working to /flash/certified
Copying Ksecu.img
....................
completed
-> +++ == CSM == Stack 1 Certify process Completed
THU SEP 04 18:42:32 : CSM-CHASSIS (103) info message:
+++ == CSM == CERTIFY process completed successfully
THU SEP 04 18:42:33 : CSM-CHASSIS (103) info message:
+++ WARNING 12: Synchronization commands will not be accepted due to low flash ++
+ space systemwide. Remove unwanted files from Primary before contining
->
->
-> show microcode certified
Package
Release
Size Description
-----------------+---------------+--------+----------------------------------Kbase.img
6.3.1.999.R01 14814376 Alcatel-Lucent Base Software
Kadvrout.img
6.3.1.999.R01 2689416 Alcatel-Lucent Advanced Routing
K2os.img
6.3.1.999.R01 1739187 Alcatel-Lucent OS

Keni.img
6.3.1.999.R01 4911986 Alcatel-Lucent NI software
Ksecu.img
6.3.1.999.R01 477920 Alcatel-Lucent Security Management
K2diag.img
6.3.1.999.R01 1599866 Alcatel-Lucent Diagnostic Software
->
->
->
-> ls
Listing Directory /flash:
drw
4096 Sep 4 18:41 working/
drw
4096 Sep 4 18:42 certified/
-rw
315 Sep 4 18:42 boot.params
-rw 64000 Sep 4 18:42 swlog1.log
-rw 64000 Sep 4 18:18 swlog2.log
drw
4096 Sep 4 18:19 switch/
-rw
20 Sep 4 18:18 installed
-rw
11 Sep 4 18:19 boot.slot.cfg
drw
4096 Sep 4 18:20 network/
10878976 bytes free
-> cd working
-> ls
Listing Directory /flash/working:
drw
4096 Sep 4 18:41 ./
drw
4096 Sep 4 18:42 ../
-rw
2737 Sep 4 17:31 boot.cfg
-rw 1599866 Sep 4 17:34 K2diag.img
-rw 1739187 Sep 4 17:36 K2os.img
-rw 2689416 Sep 4 17:40 Kadvrout.img
-rw 14814376 Sep 4 18:03 Kbase.img
-rw 4911986 Sep 4 18:10 Keni.img
-rw
4256 Sep 4 18:10 Krelease.img
-rw 477920 Sep 4 18:11 Ksecu.img
10878976 bytes free
Newfs successfully done from miniboot!!
************************* END OF THE DOCUMENT **********************
360 www.360docs.net ,,,,,
,,,PPT ,
:http://www.360docs.net/doc/info-9a560b3283c4bb4cf7ecd1ff.html

Vous aimerez peut-être aussi