upgrade of huawei’s S5300 switch

huawei S5300 switch on labnarioAny time you want to upgrade huawei’s device you have 2 methods to do this. The first of them is to use CLI (command line interface), the second is to use bootrom menu. Using CLI is the most popular method. You can configure FTP server on the device and use your PC as FTP client or install FTP server on your PC and treat the device as FTP client. Anyway, you can use TFTP or serial (slow connection) instead of FTP. Sometimes it is not possible to get CLI because there is a problem with software file. It is damaged or does not exist. In this case we can use bootrom menu to download a new software and upgrade the device. Let’s take S5300 as an example.

upgrade of huawei S5300 switch from CLI

huawei S5300 as FTP server:

FTP server enable
local-user labnario password simple labnario
local-user labnario privilege level 15
local-user labnario ftp-directory flash:
local-user labnario service-type ftp
interface MEth0/0/1
 ip address 192.168.0.20 255.255.255.0

FTP client to upload files to S5300S5300 as FTP client:

<Quidway>ftp 192.168.0.22
Trying 192.168.0.22 ...
Press CTRL+K to abort
Connected to 192.168.0.22.
220 3Com FTP Server Version 1.1
User(192.168.0.22:(none)):huawei
331 User name ok, need password
Enter password:
230 User logged in

[ftp]dir
200 PORT command successful.
150 File status OK ; about to open data connection
---------- 1 owner group    327968 Sep 21 10:40 bootrom104.bin
---------- 1 owner group  11050836 Sep 21 10:40 S5300EI-V100R005C00SPC100.cc
226 Closing data connection
FTP: 1000 byte(s) received in 1.280 second(s) 781.25byte(s)/sec.

[ftp]binary
200 Type set to I.

[ftp]get S5300EI-V100R005C00SPC100.cc

display all files stored in S5300 flash:

<Quidway>dir
Directory of flash:/

  Idx  Attr     Size(Byte)  Date        Time       FileName
    0  -rw-        106,936  Oct 01 2008 00:08:11   matnlog.dat
    1  -rw-      5,169,809  Oct 01 2008 00:05:18   log.log
    2  -rw-            102  Oct 09 2008 16:27:17   $_patchstate_a
    3  -rw-      7,369,844  Oct 01 2008 00:01:06   SV100R002C02B093_for_5300.cc
    4  -rw-     11,050,836  Oct 01 2008 00:02:26   S5300EI-V100R005C00SPC100.cc
    5  -rw-        327,968  Oct 01 2008 00:50:21   bootrom104.bin
    6  -rw-          4,086  Oct 01 2008 00:51:42   vrpcfg.cfg
    7  -rw-             28  Oct 01 2008 00:07:04   private-data.txt

30,008 KB total (6,504 KB free)

set the new software as startup software:

<Quidway>startup system-software S5300EI-V100R005C00SPC100.cc
Info: Succeeded in setting the software for booting system.
display startup
MainBoard:
  Configured startup system software:        flash:/SV100R002C02B093_for_5300.cc
  Startup system software:                   flash:/SV100R002C02B093_for_5300.cc
  Next startup system software:              flash:/s5300ei-v100r005c00spc100.cc
  Startup saved-configuration file:          flash:/vrpcfg.cfg
  Next startup saved-configuration file:     flash:/vrpcfg.cfg
  Startup paf file:                          NULL
  Next startup paf file:                     NULL
  Startup license file:                      NULL
  Next startup license file:                 NULL
  Startup patch package:                     NULL
  Next startup patch package:                NULL

the last task is to restart the switch:

<Quidway>reboot

upgrade of S5300 from bootrom menu

Sometimes it is necessary to upgrade bootrom, before of software upgrade. You can do this directly from bootrom menu.

1. To enter bootrom menu power on or reboot the switch

2. Enter the bootrom menu by Ctrl+B, default bootrom password for S5300 is huawei.

BIOS LOADING ...
Copyright (c) 2008-2010 HUAWEI TECH CO., LTD.
(Ver104, Aug 17 2010, 16:50:12)

Press Ctrl+B to enter BOOTROM menu... 1
password:
          BOOTROM  MENU

    1. Boot with default mode
    2. Enter serial submenu
    3. Enter startup submenu
    4. Enter ethernet submenu
    5. Enter filesystem submenu
    6. Modify BOOTROM password
    7. Reboot

Enter your choice(1-7): 2

          SERIAL  SUBMENU

    1. Update BOOTROM system
    2. Download file to Flash through serial interface
    3. Modify serial interface parameter
    4. Return to main menu

Enter your choice(1-4): 1

Please select file.
XMODEM downloading ...CC

3. After bootrom upgrade we can start upgrading software. The first task is to download necessary software from FTP server. The whole procedure below:

     BOOTROM  MENU

    1. Boot with default mode
    2. Enter serial submenu
    3. Enter startup submenu
    4. Enter ethernet submenu
    5. Enter filesystem submenu
    6. Modify BOOTROM password
    7. Reboot

Enter your choice(1-7): 4

          ETHERNET  SUBMENU

    1. Download file to SDRAM through ethernet interface and reboot the system
    2. Download file to Flash through ethernet interface
    3. Modify ethernet interface boot parameter
    4. Return to main menu

Be sure to select 3 to modify boot parameter before downloading!
Enter your choice(1-4): 3

          BOOTLINE  SUBMENU

    1. Set TFTP protocol parameters
    2. Set FTP protocol parameters
    3. Return to ethernet menu

Enter your choice(1-3): 2

'.' = clear field;  '-' = go to previous field;  ^D = quit
Load File name      : S5300EI-V100R005C00SPC100.cc S5300EI-V100R005C00SPC100.cc
Switch IP address   : 192.168.0.20
Server IP address   : 192.168.0.22
FTP User Name       : huawei
FTP User Password   : huawei

Starting to write BOOTLINE into flash ... done

          BOOTLINE  SUBMENU

    1. Set TFTP protocol parameters
    2. Set FTP protocol parameters
    3. Return to ethernet menu

Enter your choice(1-3): 3

          ETHERNET  SUBMENU

    1. Download file to SDRAM through ethernet interface and reboot the system
    2. Download file to Flash through ethernet interface
    3. Modify ethernet interface boot parameter
    4. Return to main menu

Enter your choice(1-4): 2

boot device          : mottsec
unit number          : 0
processor number     : 0
host name            : host
file name            : S5300EI-V100R005C00SPC100.cc
inet on ethernet (e) : 192.168.0.20
host inet (h)        : 192.168.0.22
user (u)             : huawei
ftp password (pw)    : huawei
flags (f)            : 0x0
target name (tn)     : V1R5SPC100.cc

Attached TCP/IP interface to mottsec0.
Warning: no netmask specified.
Attaching network interface lo0... done.
Loading...
Read file to sdram .............Done

4. After the new software is downloaded we can set the new software as startup software:

      BOOTROM  MENU

    1. Boot with default mode
    2. Enter serial submenu
    3. Enter startup submenu
    4. Enter ethernet submenu
    5. Enter filesystem submenu
    6. Modify BOOTROM password
    7. Reboot

Enter your choice(1-7):
Enter your choice(1-7):
Enter your choice(1-7):
Enter your choice(1-7):
Enter your choice(1-7):
Enter your choice(1-7):
Enter your choice(1-7):
Enter your choice(1-7): 3

       Startup Configuration Submenu

    1. Display startup configuration
    2. Modify startup configuration
    3. Return to main menu

Enter your choice(1-3): 1
Current startup configuration
  startup type      : Flash
  startup file      : s5300ei-v100r005c00spc100.cc
  configuration file: vrpcfg.cfg
  license file      :
  patch package     :

Last time startup state : Success
Latest successful startup configuration
  startup file      : S5300EI-V100R005C00SPC100.cc
  configuration file: vrpcfg.cfg
  license file      :
  patch package     :

       Startup Configuration Submenu

    1. Display startup configuration
    2. Modify startup configuration
    3. Return to main menu

Enter your choice(1-3): 2

Note: startup file field can not be cleared
'.'=clear field; '^D'=quit; Enter=use current configuration

startup type(1: Flash  2: Server)
  current: 1
  new    : 1

Flash startup file (can not be cleared)
  current: SV100R002C02B093_for_5300.cc
  new    : s5300ei-v100r005c00spc100.cc

saved-configuration file
  current: vrpcfg.cfg
  new    : vrpcfg.cfg

license file
  current:
  new    :

patch package
  current:
  new    :

       Startup Configuration Submenu

    1. Display startup configuration
    2. Modify startup configuration
    3. Return to main menu

Enter your choice(1-3): 3

          BOOTROM  MENU

    1. Boot with default mode
    2. Enter serial submenu
    3. Enter startup submenu
    4. Enter ethernet submenu
    5. Enter filesystem submenu
    6. Modify BOOTROM password
    7. Reboot

Enter your choice(1-7): 7

If you choose 5 you will enter filesystem submenu. From this level you can display files stored in flash and execute some operation on these files. Sometimes it is very usefull if you do not have enough space in flash to download a new software. In this case you can format flash and then follow procedure of software downloading from bootrom menu. I had such case for example on S3300 switch where flash memory has not enough space to store 2 software versions.

    BOOTROM  MENU

    1. Boot with default mode
    2. Enter serial submenu
    3. Enter startup submenu
    4. Enter ethernet submenu
    5. Enter filesystem submenu
    6. Modify BOOTROM password
    7. Reboot

Enter your choice(1-7): 5

         FILESYSTEM SUBMENU

    1. Erase Flash
    2. Format flash
    3. Delete file from Flash
    4. Rename file from Flash
    5. Display Flash files
    6. Update EPLD file
    7. Update FPGA file
    8. Update FansCard File
    9. Return to main menu

Enter your choice(1-9):

It is also possible to enter boot-up diag submenu by using Ctrl+E shortcut ;)

   BOOTROM  MENU

    1. Boot with default mode
    2. Enter serial submenu
    3. Enter startup submenu
    4. Enter ethernet submenu
    5. Enter filesystem submenu
    6. Modify BOOTROM password
    7. Reboot

Enter your choice(1-7):

                     BOOT-UP DIAG MENU

   1. Sdram Test                 2. Flash Test
   3. Epld Test                  4. Temperature Test
   5. RTC Test                   6. Show system information
   7. Aging Test                 8. E-Label Barcode and MAC Test
   9. Reserved                  10. Reserved
  11. Reserved                  12. Return MainMenu
Enter your choice(1-12):

Please remember that in older bootrom versions it is necessary to use Ctrl+Z shortcut to make some additional functions visible in bootrom menu. The bootrom menu can be different on different devices but after reading this post you will deal with them.

Any questions, anything is not clear for you, do not hesitate to ask me. Please be invite to write your comments.

Download as PDF

Advertisements

21 thoughts on “upgrade of huawei’s S5300 switch

  1. emil

    nice one.
    can you guide what should i do with a 230 series who entered in boot loop?
    it says :Seeking a VRP software in flash file-system…
    Decompressing VRP software…done

    Now, Current startup file is flash:/SV100R002C02B091_for_2300.cc
    BIOS LOADING …

    again and again.
    i have in flash:

    No. File Size(bytes) Created Date File Name
    =================================================================
    1: 7236992 bytes Jan 01 2008 01:06:40 SV100R002C02B091_for_2300.cc
    2: 105736 bytes Jan 01 2008 00:07:10 matnlog.dat
    3: 102 bytes Jan 01 2008 00:21:00 $_patchstate_a
    4: 836 bytes Jan 01 2008 00:06:43 rr.dat
    5: 836 bytes Jan 01 2008 00:06:48 rr.bak
    6: 0 bytes Jan 01 2008 00:03:33 bootrom209.bin
    7: 768 bytes Jan 01 2008 04:59:46 test.patch
    8: 0 bytes Jan 01 2008 00:02:25 bootrom2009.bin
    Total: 13640KB(Free: 6424KB)

    and tried to delete the /vrpcfg.cfg file but with no result.

    any ideea?

    10x

    Reply
  2. labnario Post author

    I am not sure, based on this screen, what is the reason of this loop. Probably there is a problem with bootrom or software. This is an old software and I recommend you to use V1R3 or V1R5. It can be also problem with configuration file but I cannot see if the switch is seeking configuration file. If this is problem with configuration file please look at https://labnario.wordpress.com/2012/04/02/console-password-recovery-huawei-s5300/. It is different software but maybe it will be useful to you. If this is software problem please download the new software and bootrom by FTP (from bootrom menu). To download the new software you have to erase flash because it is too small, then download software and new configuration file and modify startup configuration.
    If you have time, please connect to console port, turn on the switch and record information that are being displayed and send it to me. Go to bootrom menu and show me what we can do in bootrom menu, try to click CTRL_Z to check if there is a hidden bootrom menu.

    Reply
    1. emil

      i can access the hidden bootrom menu, i`ve also seen your other post regarding password recovery for the s5300. they are pretty much the same. One more thing, where i can find updated bootrom of software like v1r3 or v1r5 and to find more info info about each one? the configuration file was deleted, i tried to reset to factory settings.
      thanks!

      Reply
      1. labnario Post author

        The only way to get a new software is to ask your local huawei representative office or local distributor, I cannot help you with it, but if you have any tech questions do not hesitate to ask me

  3. derli pereira junior

    Hello labnario

    I’m from Brazil, sorry my english, I’m using google translator.

    I have 2 switches s5352, s3328 1s5348 and 1 and I can not with huawei update files prara Bootroom neither. Cc, you would not get? or I giving you remote access, you upgrade them to me by a financial settlement. Thankful,

    Reply
    1. labnario Post author

      Hi,
      It is not possible now. Each upgrade requires restart of switch or router. Only patch installation does not require restart of device. Maybe in the future it will be possible but for sure not now. As I know some vendors have such possibility but only if there are 2 MPU (SRU) boards. First, slave board is being upgraded, then the master (after MPU switchover). I have never heard about upgrade without reboot of device, without doubled MPU boards.

      Reply
  4. Diego

    Please help with the below.. Cant upgrade the S3352 Huawei quidway it uploads all the way upto 80% via TFTP and than fails.. See below capture.
    ETHERNET SUBMENU

    1. Download file to SDRAM through ethernet interface and reboot the system
    2. Download file to Flash through ethernet interface
    3. Modify ethernet interface boot parameter
    4. Return to main menu

    Enter your choice(1-4): 2

    boot string : 0
    boot device : netdrv
    unit number : 0
    processor number : 0
    host name : switch
    file name : S2352_S3352-V100R005C01.cc
    inet on ethernet (e) : 192.168.1.1:ffffff00
    host inet (h) : 192.168.1.2
    user (u) : cx
    ftp password (pw) : cx
    flags (f) : 0x80

    Attached TCP/IP interface to netdrv0.
    Attaching network interface lo0… done.

    Read file to sdram…….
    Error!
    System Will Reboot.

    BIOS LOADING …
    Copyright (c) 2008-2010 HUAWEI TECH CO., LTD.
    (Ver229, Aug 24 2010, 21:59:42)

    Press Ctrl+B to enter BOOTROM menu … 0
    Auto-booting…
    Can not open Flash file: flash:/S2352_S3352-V100R005C01.cc

    Auto-booting with last time startup file…
    Last time startup file is the same as current startup file!

    Seeking a VRP software in flash file-system…
    Can not find any file in flash file-system!
    Can not find a valid package.

    Auto-booting failed!
    Reboot…

    BIOS LOADING …
    Copyright (c) 2008-2010 HUAWEI TECH CO., LTD.
    (Ver229, Aug 24 2010, 21:59:42)

    Press Ctrl+B to enter BOOTROM menu … 2
    password:
    password:
    BOOTROM MENU

    1. Boot with default mode
    2. Enter serial submenu
    3. Enter startup submenu
    4. Enter ethernet submenu
    5. Enter filesystem submenu
    6. Modify BOOTROM password
    7. Reboot

    Enter your choice(1-7): 4

    ETHERNET SUBMENU

    1. Download file to SDRAM through ethernet interface and reboot the system
    2. Download file to Flash through ethernet interface
    3. Modify ethernet interface boot parameter
    4. Return to main menu

    Be sure to select 3 to modify boot parameter before downloading!
    Enter your choice(1-4): 3

    BOOTLINE SUBMENU

    1. Set TFTP protocol parameters
    2. Set FTP protocol parameters
    3. Return to ethernet menu

    Enter your choice(1-3): 1

    ‘.’ = clear field; ‘-‘ = go to previous field; ^D = quit
    Load File name : S2352_S3352-V100R005C01.cc
    Switch IP address : 192.168.1.1:ffffff00
    Server IP address : 192.168.1.2

    Starting to write BOOTLINE into flash … done

    BOOTLINE SUBMENU

    1. Set TFTP protocol parameters
    2. Set FTP protocol parameters
    3. Return to ethernet menu

    Enter your choice(1-3): 3

    ETHERNET SUBMENU

    1. Download file to SDRAM through ethernet interface and reboot the system
    2. Download file to Flash through ethernet interface
    3. Modify ethernet interface boot parameter
    4. Return to main menu

    Enter your choice(1-4): 1

    boot string : 0
    boot device : netdrv
    unit number : 0
    processor number : 0
    host name : switch
    file name : S2352_S3352-V100R005C01.cc
    inet on ethernet (e) : 192.168.1.1:ffffff00
    host inet (h) : 192.168.1.2
    user (u) : cx
    ftp password (pw) : cx
    flags (f) : 0x80

    Attached TCP/IP interface to netdrv0.
    Attaching network interface lo0… done.

    Read file to sdram…….
    Error!
    System Will Reboot.

    BIOS LOADING …
    Copyright (c) 2008-2010 HUAWEI TECH CO., LTD.
    (Ver229, Aug 24 2010, 21:59:42)

    Press Ctrl+B to enter BOOTROM menu … 0
    Auto-booting…
    Can not open Flash file: flash:/S2352_S3352-V100R005C01.cc

    Auto-booting with last time startup file…
    Last time startup file is the same as current startup file!

    Seeking a VRP software in flash file-system…
    Can not find any file in flash file-system!
    Can not find a valid package.

    Auto-booting failed!
    Reboot…

    Reply
    1. labnario Post author

      Hi,

      the first, check how much space you have on flash. It looks like flash is too small to fit the new software. Delete the old software. Then try to upload the new software through FTP. You can also format flash. I wrote how to do this long time ago. Use the correct flag: flags (f) : 0×80, I do not remember which is for FTP and which for tftp. Do not use this option:
      1. Download file to SDRAM through ethernet interface and reboot the system

      Just 3. Modify ethernet interface boot parameter, 2. Set FTP protocol parameters and then 2. Download file to Flash through ethernet interface.

      Reply
  5. Chris Hoo

    Hi host ,

    I loaded in configration file into the S5300 through tftp mode , laptop as tftp server and 5300 as client , but unfortunately i detect there are few missing lines config once i loaded into the switch , any idea how was that happen? I am thinking the .cfg file sequences might cause this ?

    Reply
    1. labnario Post author

      Sorry for my late answer. I don’t see your config so it is difficult to say anything. It can happen like this if some commands are set by default. Even you prepare script with this commands, then they are not visible in configuration file. The second case is that you took script’s template from different software version and loaded it to the switch. Some commands can be unsupported in the new software or set by default (default commands are not displayed). It’s hard to say more.

      Reply
  6. RayJeong JW

    Hi Host!
    im from Korea so my Eng is so terrible.

    I have 3 switch (5300S) and i’ve used 2 switch and then i have some problem in the another switch.
    actually, i made a mistake it is ‘format flash:’
    so i dont have nothing in the flash memory on the switch.

    im trying to fix it. so i got a OS file and then putting it to flash by TFTP.
    but i cant starting switch due to no xxx.cfg and no licence file.
    here i have a question.
    Do i need another file to start system like xxx.cfg or licence and so on.

    i just have a OS file.
    how can i do to start system?
    if i need files, where can i get the files?

    Please leave solutions as soon as possible.
    im waiting for your kindness.

    Thank you so much.

    Reply
    1. labnario Post author

      You don’t need any config or license files. It is enough to upload software to flash (in bootrom menu). Then set this software as startup file also from bootrom menu. The switch will load with a default configuration (empty configuration).

      Reply
      1. RayJeong JW

        Thank you for your answer

        yeah, i tried to set bootfile in bootrom menu.
        but i didn’t finish T.T because i dont have cfg file. so i couldn’t going to next.

        actually, i think that i didn’t understand what you mean.
        you mean.. if i have nothing in flash memory and i just had a os(V200R001C00SPC300.cc)
        could i start system? i don’t need to start any files?

        sorry to bother you.
        thanks

  7. RayJeong JW

    Hi, labnario

    A few days ago, I left my problem. but you didn’t returning. T_T
    so i’m gonna leave my problem again.

    i will explain my situation.
    i used switch (5300S). and i made a mistake that ‘flash format :’
    As a result, there is nothing in the flash memory.
    i just want to starting sys.
    and i found out the V200R001C00SPC300.cc file.
    so i used tftp into flash mem.
    now there is only V200R001C00SPC300.cc.
    and im trying to starting sys. but i couln’t.
    this is question. Do i have to need cfg or license files to starting system?
    i dont have any files. only os file.

    could you please answer as soon as possible.

    Thanks.

    Reply
    1. labnario Post author

      Hi,
      as I wrote last time, if you uploaded new system file V200R001C00SPC300.cc by FTP or TFTP, it is enough to set this file as startup file from bootrom menu and reboot the switch. You don’t need any configuration or license files. Please go to bootrom menu, display files on flash, set .cc file as startup file and reboot the switch. Please make screen shots (or movie) and send to me at mariusz.stola@labnario.com.

      Reply
      1. RayJeong JW

        Hi.

        Thank you very much.
        I would like to say ‘appreciate!!’
        mission complete!!!!!

        Good luck to everything you do.

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