too small flash to upload a new software

labnario - overview of huawei datacom technologyIn my previous post I wrote about upgrade of Huawei S5300 switch. The question is, what to do if flash memory is too small to fit more than one software. As it was mentioned last time, you can format flash from bootrom menu and download a new software using FTP, from bootrom menu. In this post I will show you how to deal with this problem more smoothly. You can come up against this problem in Huawei S3328TP-SI switch, where flash capacity is 15MB. Let’s take it as an example.

display version
Huawei Versatile Routing Platform Software
VRP (R) Software, Version 5.30 (S3328 V100R003C00SPC301)
Copyright (C) 2008-2009 Huawei Technologies Co., Ltd.
Quidway S3328TP-SI uptime is 0 day, 0 hour, 4 minutes

As you can see flash capacity is 15MB:

<S3328>dir
Directory of flash:/

   0   -rw-        61  Jan 01 2008 00:22:13   private-data.txt
   1   -rw-       660  Jan 01 2008 00:16:23   vrpcfg.zip
   2   -rw-       396  Jan 01 2008 00:12:06   hostkey
   3   -rw-   7068108  Jan 01 2008 00:20:12   s3328-v100r003c00spc301.cc
   4   -rw-       540  Jan 01 2008 00:12:11   serverkey
   5   -rw-    343712  Jan 01 2008 00:04:49   bootrom330.bin
   6  -rw-        60  Jan 01 2008 00:00:53   $_patchstate_a
   7  -rw-         4  Jan 01 2008 00:01:37   notilogindex.txt

14632 KB total (6268 KB free)

Now we want to upgrade the switch to S3328-V100R005C00SPC100 software version. Evidently the flash is too small to fit this software. So we are trying to delete the old software:

<S3328>delete /unreserved /s3328-v100r003c00spc301.cc
Error: Invalid operation, this is system startup file.

As we expected this is not possible to delete system startup file:

<S3328>display startup
[Unit 0]:
MainBoard:
  Configed startup system software:          flash:/s3328-v100r003c00spc301.cc
  Startup system software:                   flash:/s3328-v100r003c00spc301.cc
  Next startup system software:              flash:/s3328-v100r003c00spc301.cc
  Startup saved-configuration file:          flash:/vrpcfg.zip
  Next startup saved-configuration file:     flash:/vrpcfg.zip
  Startup license file:                      NULL
  Next startup license file:                 NULL
  Startup patch package:                     NULL
  Next startup patch package:                NULL

How can we manage with it? Go to hidden mode of S3300 and type the following command:

[S3328]_hide
Password:
Now you enter a hidden command view for developer's testing, some commands may
affect operation by wrong use, please carefully use it with engineer's
direction.
[S3328-hidecmd]undo startup system-software

This command causes that system software file is not set as startup file, what then makes it possible to delete it from flash:

<S3328>display startup
[Unit 0]:
MainBoard:
  Configed startup system software:          NULL
  Startup system software:
  Next startup system software:              NULL
  Startup saved-configuration file:          flash:/vrpcfg.zip
  Next startup saved-configuration file:     flash:/vrpcfg.zip
  Startup license file:                      NULL
  Next startup license file:                 NULL
  Startup patch package:                     NULL
  Next startup patch package:                NULL

<S3328>delete /unreserved s3328-v100r003c00spc301.cc
The contents cannot be recycled!!! Delete flash:/s3328-v100r003c00spc301.cc?[Y/N]:y
%Deleting file flash:/s3328-v100r003c00spc301.cc...
Jan  1 2008 00:28:14 Quidway %%01VFS/4/DEL_UNRSV(l): When deciding whether to permanently delete file flash:/s3328-v100r003c00spc301.cc, the user chose Y.
Deleting file permanently from flash will take a long time if needed...............................................Done!

Then follow upgrade procedure, described in my previous post to download the new software and upgrade the switch.

Download as PDF

Advertisements

15 thoughts on “too small flash to upload a new software

  1. johnny

    i have this error:

    flashEraseDevices(): addr 0xbc0a0000 erase failed
    flashEraseSector(): erase devices failed sector=5
    flashProgramBlock(): Address 0xbc0a0000 program failed
    320flashWrite(): Failed: Sector 5, address 0xbc0a0000
    flashEraseDevices(): addr 0xbc0a0000 erase failed
    flashEraseSector(): erase devices failed sector=5
    flashProgramBlock(): Address 0xbc0a0000 program failed
    320flashWrite(): Failed: Sector 5, address 0xbc0a0000
    flashEraseDevices(): addr 0xbc0a0000 erase failed
    flashEraseSector(): erase devices failed sector=5
    flashProgramBlock(): Address 0xbc0a0000 program failed
    320flashWrite(): Failed: Sector 5, address 0xbc0a0000

    Reply
  2. labnario Post author

    Proprietary rights for software belongs to Huawei and you should ask your Huawei local representative office or distributor for the new software or bootrom. Anyway it is enough to have a new software because if you set startup software file, the bootrom will be upgraded automatically, after you type the “startup system-software …” command.

    Reply
  3. labnario Post author

    I have not met such notification. Did you want to format flash, right? Why do you want to erase flash? If you do not have enough space on flash you can delete old software, even this used one.

    Reply
  4. johnny

    no, i don’t want format flash, i only follow your steps, but not runinng … the switch not responding for commands …

    Reply
  5. johnny

    when started, the last messages is :
    ——————
    Write Flash Failed !
    OK!
    Press ENTER to get started.
    ————————–

    Reply
  6. labnario Post author

    This notification appeared when you were doing this procedure? Did you record your operations. If yes, could you email them to me? My IT colleague did the same procedure today without any problem. There is nothing in this procedure which can cause such problem. It is a coincidence. It seems to be a hardware problem. If you do not have any operation’s logs you can describe step by step what you did. Are you able to go to bootrom menu and check what files you have on flash and what the startup file is?

    Reply
  7. johnny

    thanks for your help, start the switch for ftp server, with the old VRP, erases the new one and uploaded the old one at flash and evething works OK, it seems that I need to update the bootrom firts. I will try it tomorrow again.

    Reply
  8. M.Nadeem

    hi i have a question i am trying to apply cluster enable command but SW does not know this command SW version is (quidway S3328 switch version v100r006c0f)…please guide

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s