My primary and secondary flash was erased during an attempt to update the image. My CLI is showing: ICX64XX-boot>>.

  • 1
  • Question
  • Updated 4 months ago
My primary and secondary flash was erased during an attempt to update the image. My CLI is showing: ICX64XX-boot>>. I can ping to and from my PC which I am using as ymy TFTP server. I loaded the latest firmware files on to my PC. I have them sitting in C:\image I set the env image_name to image/ICX64S08030r.bin. this is the image i am trying to load. I just get %Ts and then the session errors out. what am I missing?
Photo of Tim Yancey

Tim Yancey

  • 14 Posts
  • 0 Reply Likes

Posted 4 months ago

  • 1
Photo of NETWizz

NETWizz

  • 56 Posts
  • 18 Reply Likes
Not sure why both got erased.  Usually, you upgrade one or the other and validate that flash slot before proceeding to the next.


http://docs.ruckuswireless.com/fastiron/08.0.70/fastiron-08070-upgradeguide/GUID-DA75FD7E-A8D4-4B12-...

Regardless, you should be able to recover.

You need to ensure that your switch can reach the TFTP server.  If it is on the same subnet, you shouldn't even need to configure the gateway.

Just
setenv ipaddr x.x.x.x
setenv netmask x.x.x.x

if it is on a different network:
setenv gatewayip x.x.x.x

then set your TFTP server
setenv uboot y.y.y.y 

saveenv


verify you can reach your TFTP server
ping y.y.y.y


Provide the name and path

setenv image_name ICX64S08030s.bin


update_primary


....


boot_primary

Photo of Tim Yancey

Tim Yancey

  • 14 Posts
  • 0 Reply Likes

Thank you NETWizz,  I am a greenhorn in the brocade world.  I was following instructions for doing an upgrade on the primary.  the instructions said to erase the primary flash and then erase the secondary flash. which I did and then the instructions said to enter update_primary  and this is where everything failed.  I know for the future only erase one LOL.  oh well.  I and ping from the switch  to my PC (which I am using as the TFTP Server) and to the switch from the pc. 

I have the image file loaded on to my C; drive in C:\image.  I entered setenv image_name image/ICX64S08030r.bin.  and then entered update_primary.  my reply is: loading %T %T %T... Retry count exceeded, try again.
Photo of NETWizz

NETWizz

  • 56 Posts
  • 18 Reply Likes
I have been dealing with Brocade for years way back before the ICX... They used to have FastIron FWS such as the 648G.

At any rate, it is pretty good stuff all around.  I am not certain which document you read, but for upgrading you do not need to erase the flash.  This automatically happens when the upgrade process goes to write the image.  I found a random ICX6450-C12-PD lying not far from my desk, so I will do one to make an example...


You should also validate the image, too.  This is how I do it:

show flash

verify md5 primary
verify md5 secondary

^  There is a file with the MD5 checksums for the images packaged with your firmware to compare against.


************************

ICX6450-C12PD Router#sh flash
Stack unit 1:
  Compressed Pri Code size = 9806840, Version:08.0.30hT313 (ICX64R08030h.bin)
  Compressed Sec Code size = 9806840, Version:08.0.30hT313 (ICX64R08030h.bin)
  Compressed Boot-Monitor Image size = 786944, Version:10.1.05T310
  Code Flash Free Space = 32563200



ICX6450-C12PD Router#copy tftp flash 10.1.2.3 ICX64S08030s.bin primary
ICX6450-C12PD Router#Load to buffer (8192 bytes per dot)
.........................................................................................................................................................................................................................................................................................................................................................................................
SYNCING IMAGE TO FLASH. DO NOT SWITCH OVER OR POWER DOWN THE UNIT(8192 bytes per dot)...
....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
TFTP to Flash Done.
ICX6450-C12PD Router#sh fl
Stack unit 1:
  Compressed Pri Code size = 8558924, Version:08.0.30sT311 (ICX64S08030s.bin)
  Compressed Sec Code size = 9806840, Version:08.0.30hT313 (ICX64R08030h.bin)
  Compressed Boot-Monitor Image size = 786944, Version:10.1.05T310
  Code Flash Free Space = 32559104

ICX6450-C12PD Router#verify md5 pri


ICX6450-C12PD Router#..................................................................................................................................Done
Size = 8558924, MD5 bf544836ea83c4e6539f86a9fb497a4e 


ICX6450-C12PD Router#reload
Are you sure? (enter 'y' or 'n'): y
Could not verify if the Running Config data has been changed.
Do you want to continue the reload anyway? (enter 'y' or 'n'):
The system is g
Sent SIGTERM to all processes
Sent SIGKILL to all processes
Requesting system reboot
Restarting system.



Bootloader Version: 10.1.05T310 (Mar 19 2015 - 16:39:59)

Model ID: 1.0.0.0.1.1
Enter 'b' to stop at boot monitor:  1 0
bootdelay: ===
Booting image from Primary
## Booting image at 00007fc0 ...
   Created:      2018-05-30  14:30:33 UTC
   Data Size:    8558348 Bytes =  8.2 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
Starting kernel in BE mode ...
Uncompressing Image...................................................................................................................................................................................................................................................................................................................................................................... done, booting the kernel.
IP-Config: Gateway not on directly connected network.
Config partition mounted.
Creating TUN device
Starting the FastIron.
FIPS Disabled:PORT NOT DISABLED
platform type 49
OS>Unable to set the kernel wall time
Starting Main Task .INFO: startup config data is not available, try to read from backup
INFO: startup config data in the backup area is not available
CPSS DxCh Version: cpss3.4p1 release
Pre Parsing Config Data ...
INFO: empty config data in the primary area, try to read from backup
INFO: empty config data in the backup area also
Parsing Config Data ...
INFO: empty config data in the primary area, try to read from backup
INFO: empty config data in the backup area also
System initialization completed...console going online.


  Copyright (c) 1996-2016 Brocade Communications Systems, Inc. All rights reserved.
    UNIT 1: compiled on May 30 2018 at 07:29:29 labeled as ICX64S08030s
  (8558924 bytes) from Primary ICX64S08030s.bin
        SW: Version 08.0.30sT311
  Boot-Monitor Image size = 786944, Version:10.1.05T310 (kxz10105)
  HW: Stackable ICX6450-C12-PD
==========================================================================
UNIT 1: SL 1: ICX6450C 12-port-PD Management Module
   Serial  #: XXX1234A01X
   License: BASE_SOFT_PACKAGE   (LID: eviHKKFmFMi)
   P-ENGINE  0: type DEF0, rev 01
==========================================================================
UNIT 1: SL 2: ICX6450C-Copper 2port 2G Module
==========================================================================
UNIT 1: SL 3: ICX6450C-Fiber 2port 2G Module
==========================================================================
  800 MHz ARM processor ARMv5TE, 400 MHz bus
65536 KB flash memory
  512 MB DRAM
STACKID 1  system uptime is 6 second(s)
The system : started=warm start  reloaded=by "reload"
ICX6450-C12PD Switch>
Stack unit 1 PS 1, Internal Power supply detected and up.
Stack unit 1 PS 1, Internal Power supply detected and up.
PoE: Stack unit 1 PS 1, Internal Power supply  with 68000 mwatts capacity is up
PoE Info: Adding new 54V capacity of 68000 mW, total capacity is 68000, total free capacity is 68000
Stack unit 1 PS 2, One AT Mode detected and up.
Stack unit 1 PS 2, One AT Mode detected and up.
PoE: Stack unit 1 PS 2, One AT Mode  with 0 mwatts capacity is up
PoE Info: Adding new 54V capacity of 0 mW, total capacity is 68000, total free capacity is 68000
PoE Info: PoE module 1 of Unit 1 on ports 1/1/1 to 1/1/4 detected. Initializing....
PoE Event Trace Log Buffer for 2000 log entries allocated
PoE Event Trace Logging enabled...
PoE Info: PoE module 1 of Unit 1 initialization is done.

ICX6450-C12PD Switch>




Photo of Tim Yancey

Tim Yancey

  • 14 Posts
  • 0 Reply Likes

I would like to be able to do this, however I can not get past the boot. This is where I need assistance...  This is everything I get at switch power on.

Boot Loader version: 10.1.01T310 (Apr   9,  2014   -   18:01:02)
Model ID:1.0.0.0.0.0


Enter 'b' to stop at boot monitor: 0

bootdelay:  ===

Booting Image from Primary
Bad Magic Number
Could not boot from primary, no valid image, trying to boot from secondary
Booting Image from Secondary
Bad Magic Number
##Booting Image at 01ffffc0...
Bad Magic Number
##Booting Image at 01ffffc0...
ICX64XX-boot>>

Photo of NETWizz

NETWizz

  • 56 Posts
  • 18 Reply Likes
Right when it prompts you and starts counting down...

Enter 'b' to stop at boot monitor...


From there do your recovery like mentioned above.
Photo of Tim Yancey

Tim Yancey

  • 14 Posts
  • 0 Reply Likes

When I press b it just brings the following:


ICX64XX-boot>>
Photo of Tim Yancey

Tim Yancey

  • 14 Posts
  • 0 Reply Likes

and then stops
Photo of NETWizz

NETWizz

  • 56 Posts
  • 18 Reply Likes
Right... you need to recover as described above.  This is where you enter those recovery commands...  All those options mentioned in my first post should be available - specifically:

ICX64XX-boot>> ?
?       - alias for 'help'
boot    - boot default, i.e., run 'bootcmd'
boot_primary   - primary boot; boot from primary partition
boot_secondary   - secondary boot; boot from secondary partition
cp      - memory copy
eeprom - EEPROM dump or program command
help    - print online help
i2cprobe - Get special i2c device id
md      - memory display
memtest - To perform DDR memory test
pci     - list and access PCI Configuration Space
ping - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
reset   - Perform RESET of the CPU
saveenv - save environment variables to persistent storage
setenv  - set environment variables
sflash - read, write or erase the external SPI Flash.
tftpboot- boot image via network using TFTP protocol
update_primary   - primary update; update primary partition
update_secondary   - secondary update; update secondary partition
update_uboot - get the uboot image over tftp.
version - print monitor version


Looks like everything you need is at your firngertips



Photo of Tim Yancey

Tim Yancey

  • 14 Posts
  • 0 Reply Likes
from here I entered

setenv ipaddr 10.20.1.3
setenv netmask 255.255.255.0
setenv gatewayip 10.20.1.1
setenv uboot  10.20.1.2 

saveenv

ping 10.20.1.2

Provide the name and path

setenv image_name image/ICX64S08030s.bin


update_primary



 I just get %Ts and then the session errors
Photo of Tim Yancey

Tim Yancey

  • 14 Posts
  • 0 Reply Likes
I am missing something...  The ping passes in both directions.  but I still get   the %Ts and then the session errors.  I have even placed the bin file in the root of C:\ and tried with out the "image/" just in case it doesn't like the sub directory.

Photo of Tim Yancey

Tim Yancey

  • 14 Posts
  • 0 Reply Likes

I am sorry that this is so difficult. 
Photo of Tim Yancey

Tim Yancey

  • 14 Posts
  • 0 Reply Likes
All of those options are indeed there. 
Photo of NETWizz

NETWizz

  • 56 Posts
  • 18 Reply Likes
Does the TFTP server work for other switches?

Is the TFTP path correct?

You NEED to ensure you do the saveenv AFTER setting the image path, too.

Did you verify everything with printenv???


If you are pointed directly into the directory with ICX64S08030s.bin, you might need to change that to

setenv image_name ICXS08030s.bin

printenv ............to verify

saveenv  ...... again


Ultimately, you should be able to recover this way.


***************

To erase the switch...

[email protected]#erase ?
  flash            Code flash   <== NO
  startup-config   Startup config   <==  YES




Photo of NETWizz

NETWizz

  • 56 Posts
  • 18 Reply Likes
What TFTP server are you running???


Photo of Tim Yancey

Tim Yancey

  • 14 Posts
  • 0 Reply Likes

I did the saveenv. I verified with the printenv and it still errors.  I will continue to work with this.  It seems to not be able to get the bin file. even though I can ping back and forth.
Photo of NETWizz

NETWizz

  • 56 Posts
  • 18 Reply Likes
Which TFTP server are you running?  How is it setup?
Photo of Tim Yancey

Tim Yancey

  • 14 Posts
  • 0 Reply Likes

I have a Server connected directly via serial port on the server to the console port on the switch.
Photo of Tim Yancey

Tim Yancey

  • 14 Posts
  • 0 Reply Likes
The server is running Win 10.
Photo of NETWizz

NETWizz

  • 56 Posts
  • 18 Reply Likes
Right, I got that you are consoled into the switch - there is no other way without the FastIron IOS running.

What TFTP server are you running?

For example I use "Tftpd64 by Ph. Jounin" though there are others.

If you do an Internet search for it, you will find it at tftpd32 dot jounin dot net



Photo of Tim Yancey

Tim Yancey

  • 14 Posts
  • 0 Reply Likes

Ok, I do not have a tftp sever software installed. 
Photo of NETWizz

NETWizz

  • 56 Posts
  • 18 Reply Likes
I just tried it and had to set the serverip, too...


ICX64XX-boot>> setenv serverip 10.1.2.3
ICX64XX-boot>> saveenv



ICX64XX-boot>> update_secondary
Using egiga0 device
TFTP from server 10.1.2.3; our IP address is 10.1.2.5
Download Filename 'ICX64S08030s.bin'.
Load address: 0x3000000
Download to address: 0x3000000
Loading: %#################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ################################################################
done
Bytes transferred = 8558924 (82994c hex)
prot off f9080000 f9ffffff
........................................................................................................................................................................................................................................................
Un-Protected 248 sectors
erase f9080000 f9ffffff
.............................................................
.................................................................
.................................................................
.........................................................
Erased 248 sectors
copying image to flash, it will take sometime...
sflash write 3000000 1080000 f80000
TFTP to Flash Done.


ICX64XX-boot>> boot_secondary
Booting image from Secondary
## Booting image at 00007fc0 ...
   Created:      2018-05-30  14:30:33 UTC
   Data Size:    8558348 Bytes =  8.2 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
Starting kernel in BE mode ...
Uncompressing Image...................................................................................................................................................................................................................................................................................................................................................................... done, booting the kernel.
Config partition mounted.
Creating TUN device
Starting the FastIron.
FIPS Disabled:PORT NOT DISABLED
platform type 49
OS>Unable to set the kernel wall time
                                      Starting Main Task .INFO: startup config data is not available, try to read from backup
INFO: startup config data in the backup area is not available
CPSS DxCh Version: cpss3.4p1 release
Pre Parsing Config Data ...
INFO: empty config data in the primary area, try to read from backup
INFO: empty config data in the backup area also
Parsing Config Data ...
INFO: empty config data in the primary area, try to read from backup
INFO: empty config data in the backup area also
System initialization completed...console going online.
  Copyright (c) 1996-2016 Brocade Communications Systems, Inc. All rights reserved.
    UNIT 1: compiled on May 30 2018 at 07:29:29 labeled as ICX64S08030s
                (8558924 bytes) from Secondary ICX64S08030s.bin
        SW: Version 08.0.30sT311
  Boot-Monitor Image size = 786944, Version:10.1.05T310 (10)
  HW: Stackable ICX6450-C12-PD
==========================================================================
UNIT 1: SL 1: ICX6450C 12-port-PD Management Module
         Serial  #: XXXXXXXXXX
         License: BASE_SOFT_PACKAGE   (LID: jaldjfaljdadf)
         P-ENGINE  0: type DEF0, rev 01
==========================================================================
UNIT 1: SL 2: ICX6450C-Copper 2port 2G Module
==========================================================================
UNIT 1: SL 3: ICX6450C-Fiber 2port 2G Module
==========================================================================
  800 MHz ARM processor ARMv5TE, 400 MHz bus
65536 KB flash memory
  512 MB DRAM
STACKID 1  system uptime is 6 second(s)
The system : started=warm start  reloaded=by "reload"
ICX6450-C12PD Switch>
Stack unit 1 PS 1, Internal Power supply detected and up.
Stack unit 1 PS 1, Internal Power supply detected and up.
PoE: Stack unit 1 PS 1, Internal Power supply  with 68000 mwatts capacity is up
PoE Info: Adding new 54V capacity of 68000 mW, total capacity is 68000, total free capacity is 68000
PoE Info: PoE module 1 of Unit 1 on ports 1/1/1 to 1/1/4 detected. Initializing....
PoE Event Trace Log Buffer for 2000 log entries allocated
PoE Event Trace Logging enabled...
PoE Info: PoE module 1 of Unit 1 initialization is done.
^C
ICX6450-C12PD Switch>




(Edited)
Photo of Tim Yancey

Tim Yancey

  • 14 Posts
  • 0 Reply Likes
Once I installed the TFTP you use I was able to start the update.  Thank you! NETWizz