8554 OS6250 Flash Recoevry Uboot Based File Transfer PDF
8554 OS6250 Flash Recoevry Uboot Based File Transfer PDF
8554 OS6250 Flash Recoevry Uboot Based File Transfer PDF
INTRODUCTION
This document explains the steps involved in U-boot based AOS image
transfer that must be performed during recovery of a switch in any event
such as system flash corruption.
BACKGROUND
This can be considered very efficient compared to the Zmodem based image
transfer method (Ref: TT 6238) due to its capability to maintain higher data
transfer rates.
However, with this procedure only *os.img, *base.img and *eni.img can be
transferred thus an additional step is required to upload the remaining AOS
images (*secu.img and *diag.img). i.e. those images must be transferred
using a typical software loading procedure after the initial recovery process.
The sections to follow shall demonstrate the steps involved that must be
strictly followed for successful recovery.
Alcatel-Lucent Enterprise
Document rev. 1.0 1/14
OS6250:Uboot/TFTP Based Image Transfer During
Flash/File System Recovery
PROCEDURE
1. Power on the switch and Press “S” to stop the switch at Miniboot.
{Output suppressed}
WARNING: Stopping in miniboot as directed by boot flags...
[Miniboot]->
2. Format the existing file system using sysNewfs "/flash" command and
reboot the switch
[Miniboot]->sysNewfs "/flash"
Destroy all data in /flash file system
Reinitializing flash file system. Please wait...
Reliance File System Formatter
value = 0 = 0x0
[Miniboot]->reboot
mgi0 Interface Down
mgi0 Interface Stopped
WARNING: "sysResetHardwareFlag" flag is SET, forcing CMM board reset.
3. During the bootup press U and hit any key to stop the switch from
autoboot
Alcatel-Lucent Enterprise
Document rev. 1.0 2/14
OS6250:Uboot/TFTP Based Image Transfer During
Flash/File System Recovery
_ _ ____ _
| | | | | __ ) ___ ___ | |_
| | | |___| _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
\___/ |____/ \___/ \___/ \__|
** MARVELL BOARD: DB-98DX4122-48G BE (configured)
** Linux - BE support
** vxWorks - BE support
U-Boot (6.6.1.613.R01::absinha1) (for OS6250 platform) (Oct 2
2009 - 15:01:08)
Marvell version: 3.1.10.6_010_A1
U-Boot code: 01200000 -> 0128FFF0 BSS: -> 012A0CAC
Soc: MV88F6281 Rev 2 (DDR2)
CPU running @ 800Mhz L2 running @ 400Mhz
SysClock = 320Mhz , TClock = 200Mhz
DRAM CAS Latency = 5 tRP = 5 tRAS = 15 tRCD=5
DRAM CS[0] base 0x00000000 size 256MB
DRAM Total size 256MB 16bit width
Flash: 0 kB
Addresses 27M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (27M - 19M): Done
NAND:128 MB
env_relocate[210] offset = 0x0
env_relocate[228] malloced ENV at 01301960
Always using default environment
CPU : ARM926 (Rev 1)
Setting MAC address
Streaming disabled
Write allocate disabled
4. Enable CPLD to activate the ports for TFTP transfer using “imw 0 7f 18 0”
command
6250-Uboot>>imw 0 7f 18 0
Alcatel-Lucent Enterprise
Document rev. 1.0 3/14
OS6250:Uboot/TFTP Based Image Transfer During
Flash/File System Recovery
6. Note down the number of bytes transferred at the end of each of these
commands
done
Bytes transferred = 2146388 (20c054 hex)
Alcatel-Lucent Enterprise
Document rev. 1.0 4/14
OS6250:Uboot/TFTP Based Image Transfer During
Flash/File System Recovery
7. Now load the miniboot from uboot using the following command:
go 0xa10000
6250-Uboot>>go 0xa10000
## Using bootline (@ 0x1100): flash(0,0)cmm:default
e=10.4.50.165:ffffff00 cb=9600 cp=none cs=1 cw=8
## Starting Miniboot at 0x00A10000 ...
Detected board DB-98DX4122-48G
Ctrl env init... Done.
CPU if init..... Done.
Done. Actual freq = 96153Hz
Memory on board initialized .
Init Phy port 0 .. Done
Warning Giga 1 is Powered Off
Power up GMII port0 .. Done.
Detected DRAM size 256MB
Detect SysClk 320MHz
Detect Tclk 200MHz
Marvell Controller initialization Done.
Eth int Ctrl.... Done
GPIO int Ctrl... Done
PEX int Ctrl.... Done
PEX0 init....... Done. DEVICE type selected
XOR int Ctrl.... Done
XOR init........ Done
mvCtrlInit2..... done
PCI auto config. done
sysHwInit2...... Done
CS EEPROM Module ID: 420122a1 , System type: SMB 24 copper ports
with stacking - Kingfisher
System Configuration
BSP Ver: 1.2/1.1.01 Creation date: Oct 2 2009, 15:01:31
CHIP : MV88F6281 Rev 2
CPU : ARM926 (Rev 1)
BOARD : DB-98DX4122-48G (0x7)
CLOCKs : tClk = 200 MHz, sysClk = 320 MHz
pClk = 800 MHz
NAT_SUPPORT = Disabled
VFP_SUPPORT = Disabled
FlashFX initialization required 766ms
Reliance File System Driver
File System initialization required 0ms
FlashFX initialization required 133ms
File System initialization required 0ms
Target Name: vxTarget
User: target
Ethernet port #0 initialized
mgi0 Interface Loaded
mgi0 Interface Started
mgi0 Interface - Link Up, 1000 Full
Attaching network interface lo0... done.
mgi0 Interface - Link Up, 1000 Full
Adding 7211 symbols for standalone.
Can't open file (/flash/boot.params)
Alcatel-Lucent Enterprise
Document rev. 1.0 5/14
OS6250:Uboot/TFTP Based Image Transfer During
Flash/File System Recovery
{Output suppressed}
8. Transfer the images stored in RAM to the file system using the following
command : writeImages (<number of bytes transferred for KFos, KFbase,
KFeni)
[Miniboot]->writeImages (2146388,13465166,4339945)
value = 0 = 0x0
[Miniboot]->ls
.
..
KFos.img
KFbase.img
KFeni.img
value = 0 = 0x0
Alcatel-Lucent Enterprise
Document rev. 1.0 6/14
OS6250:Uboot/TFTP Based Image Transfer During
Flash/File System Recovery
[Miniboot]->pwd
/flash/certified
value = 17 = 0x11
[Miniboot]->cd ".."
value = 0 = 0x0
[Miniboot]->ls
boot.params
certified
working
value = 0 = 0x0
[Miniboot]->rm "boot.params"
value = 0 = 0x0
[Miniboot]->reboot
mgi0 Interface Down
mgi0 Interface Stopped
WARNING: "sysResetHardwareFlag" flag is SET, forcing CMM board
reset.
10. During the bootup process press U and hit any key to stop the switch
boot from autoboot
Alcatel-Lucent Enterprise
Document rev. 1.0 7/14
OS6250:Uboot/TFTP Based Image Transfer During
Flash/File System Recovery
11. Enable CPLD to activate the ports for TFTP transfer using “imw 0 7f 18
0” command.
6250-Uboot>>imw 0 7f 18 0
12. Start TFTP of KFos image (for the 2nd time) from the PC using the
following command.
13. Do not forget to note down the number of bytes transferred at the end
of each of these commands.
Alcatel-Lucent Enterprise
Document rev. 1.0 8/14
OS6250:Uboot/TFTP Based Image Transfer During
Flash/File System Recovery
14. Now load the miniboot from uboot using the following command : go
0xa10000
6250-Uboot>>go 0xa10000
## Using bootline (@ 0x1100): flash(0,0)cmm:default
e=10.4.50.165:ffffff00 cb=9600 cp=none cs=1 cw=8
## Starting Miniboot at 0x00A10000 ...
Detected board DB-98DX4122-48G
Ctrl env init... Done.
CPU if init..... Done.
Done. Actual freq = 96153Hz
Memory on board initialized .
Init Phy port 0 .. Done
Warning Giga 1 is Powered Off
Power up GMII port0 .. Done.
Detected DRAM size 256MB
Detect SysClk 320MHz
Detect Tclk 200MHz
Marvell Controller initialization Done.
Eth int Ctrl.... Done
GPIO int Ctrl... Done
PEX int Ctrl.... Done
PEX0 init....... Done. DEVICE type selected
XOR int Ctrl.... Done
XOR init........ Done
mvCtrlInit2..... done
PCI auto config. done
sysHwInit2...... Done
CS EEPROM Module ID: 420122a1 , System type: SMB 24 copper ports
with stacking - Kingfisher
System Configuration
BSP Ver: 1.2/1.1.01 Creation date: Oct 2 2009, 15:01:31
CHIP : MV88F6281 Rev 2
CPU : ARM926 (Rev 1)
BOARD : DB-98DX4122-48G (0x7)
CLOCKs : tClk = 200 MHz, sysClk = 320 MHz
pClk = 800 MHz
NAT_SUPPORT = Disabled
VFP_SUPPORT = Disabled
FlashFX initialization required 766ms
Reliance File System Driver
File System initialization required 16ms
FlashFX initialization required 116ms
File System initialization required 0ms
Target Name: vxTarget
User: target
Ethernet port #0 initialized
mgi0 Interface Loaded
mgi0 Interface Started
mgi0 Interface - Link Up, 1000 Full
Attaching network interface lo0... done.
mgi0 Interface - Link Up, 1000 Full
Adding 7211 symbols for standalone.
Alcatel-Lucent Enterprise
Document rev. 1.0 9/14
OS6250:Uboot/TFTP Based Image Transfer During
Flash/File System Recovery
15. Transfer the KFos image stored in RAM to the file system using the
following command : writeImages (<number of bytes transferred for
KFos>,0,0) and execute “reboot” command.
[Miniboot]->writeImages (2146388,0,0)
value = 0 = 0x0
[Miniboot]->reboot
mgi0 Interface Down
mgi0 Interface Stopped
WARNING: "sysResetHardwareFlag" flag is SET, forcing CMM board
reset.
16. The switch then boots up properly with the KFos, KFbase and KFeni
images TFTPed to the certified directory.
Alcatel-Lucent Enterprise
Document rev. 1.0 10/14
OS6250:Uboot/TFTP Based Image Transfer During
Flash/File System Recovery
Alcatel-Lucent Enterprise
Document rev. 1.0 11/14
OS6250:Uboot/TFTP Based Image Transfer During
Flash/File System Recovery
Alcatel-Lucent Enterprise
Document rev. 1.0 12/14
OS6250:Uboot/TFTP Based Image Transfer During
Flash/File System Recovery
{Output suppressed}
Starting dynamic software load from '/flash/certified/'...
SUN JUN 27 05:45:42 : SYSTEM (75) info message:
+++ Switch Logging device '/dev/console' enabled for output
SUN JUN 27 05:45:42 : CSM-CHASSIS (103) info message:
+++ == CSM == === Chassis Supervision Starting Up ===
sysStartWatchdog() Starting watchdog timer to INTERRUPT after 240
secs.
SUN JUN 27 05:45:50 : STACK-MANAGER (27) info message:
+++ == SM == Assigning slot number
SUN JUN 27 05:46:05 : STACK-MANAGER (27) info message:
+++ == SM == Slot number has changed to 1
SUN JUN 27 05:46:05 : CSM-CHASSIS (103) info message:
+++ == CSM == APP MONITORING ON
+++ == CSM == ===== THIS STACK(1) IS PRIMARY =====
SUN JUN 27 05:46:12 : HSM-CHASSIS (101) info message:
+++ T1:Ni Insertion detected on slot 1
Alcatel-Lucent Enterprise
Document rev. 1.0 13/14
OS6250:Uboot/TFTP Based Image Transfer During
Flash/File System Recovery
17. Perform “copy certified working” in CLI once the switch boots up
properly in certified. Now the switch is operational having KFos, KFbase &
KFeni images in both working & certified directories.
18. Finally, a typical CLI based image upgrade procedure (for e.g. FTP or
TFTP) must be followed in order to load rest of the AOS images onto the
switch (i.e. KFsecu.img and KFdiag.img). You may even run the TFTP service
already running on the PC to complete this task.
(AOS switch Management Guide has the relevant methods explained)
Alcatel-Lucent Enterprise
Document rev. 1.0 14/14