Ruijie Community

Title: 【Typical Case】How to Troubleshoot Version Upgrade Failures of RG-CS83-24GT4XS-P? [Print this page]

Author: zhangqiao@ruiji    Time: 2024-8-22 18:17
Title: 【Typical Case】How to Troubleshoot Version Upgrade Failures of RG-CS83-24GT4XS-P?
Keywords:

Version upgrade failure, Ctrl+C-based upgrade, boot-based upgrade, version recovery
Fault Description

The following notification is displayed after a boot-based version upgrade fails on the RG-CS83-24GT4XS-P:

1. Device Model and Firmware

  Device Type
  
  Device Model
  
  Firmware Version
  
  Ruijie  switch
  
  RG-CS83-24GT4XS-P
  
     
2. Cause Analysis
1. From the operation logs, the upgrade mode is incorrectly selected. ‘2. Upgrade main program’ should be selected for a system upgrade. However, ‘1. Upgrade rboot program’ is selected instead.

2. After 2.Upgrade main program is selected, the upgrade still fails. Check if the version file is complete.
(1).Check the MD5 checksum after the version file is uploaded.

(2) Compare it with the value in the release notes.

The two values are inconsistent, indicating that version file may have been damagedduring the upload.
3. Solution
Download the version file again and perform the upgrade operation again. The upgrade issuccessful.
4. Appendix: Ctrl+C-based Upgrade for RG-CS83 Series Switches

Note:
1. The Ctrl+C-based should only be performed if an upgrade fails or the main program is lost.
2. If send download request is displayed at startup and the device fails to enter user mode, the device software version is likely lost. In this case, the device needs to be upgraded using Ctrl+C.
Ⅰ. Application Scenario
The main program of the device is lost. The main program can only be recovered using Ctrl+C.

Ⅱ. Topology




II. Configuration Notes

1. Use adedicated console cable to log in to the switch, with the baud rate set to 9600.
2.Connect the Ethernet cable to the MGMT port of the switch. (Note: When the switch is connected to the PC via an Ethernet cable, the port status LED on the switch will not light up, and you will not be able to test the connectivity between the PC and the switch. The port status LED will only light up when there is data transmission.)
If the switch has a MGMT port, connect the PC tothe MGMT port. If the switch does not have a MGMT port, connect the PC to the first port on the switch.

IV. Configuration Procedure

1.Connect the PC to the console port of the switch using a console cable.
2. Use a terminal software (SecureCRT) to log in to the switch.
(1) Set the IP address of the PC to 192.168.1.2, put the TFTP software and upgrade file into the same English directory, and open the TFTP software.
Note:
Disable the built-in firewall on the PC and uninstall any other antivirus software,such as 360 Total Security or Kaspersky, to avoid potential upgrade failures.
(2) If the main program is lost, the switch directly enters the Ctrl mode after startup. Alternatively, you can press Ctrl+C to enter the CRTL mode when the switch is powering up.
a. During the restart, press Ctrl+C when the following prompt line is displayed to enter the Rboot interface.

PressCtrl+B to enter Boot Menu, Press Ctrl+C to enter Rboot  0
Rboot                            Version: 1.1.15
Mount rootfs1 ...
    Mount rootfs2 ...
    Mount data ...
    Mount upgrade ...
    Mount upgrade_bak ...
======Rboot Menu (Ctrl+Z to upper level) ======
    TOP menu items.


-----------------------------------------------------------------------------------------------------------------------------

0. Tftp utilities.
    1. X/Y/ZModem utilities.
    2. Run main.
    3. SetMac utilities.
    4. Scattered utilities.


----------------------------------------------------------------------------------------------------------------------------


Press a key to run the command:
b. In the Rboot interface, press the following keys marked in red to access the IP address configuration menu.
======Rboot Menu(Ctrl+Z to upper level) ======
    TOP menu items.



------------------------------------------------------------------------------------------------------------------------------


0. Tftp utilities.

    1. XModem utilities.
    2. Run main.
    3. SetMac utilities.
    4. Scattered utilities.




---------------------------------------------------------------------------------------------------------------------------



Press a key to run the command: 0

======Rboot Menu(Ctrl+Z to upper level) ======
   Tftp utilities.




-------------------------------------------------------------------------------------------------------------------------

1. Upgrade uboot program.
2. Upgrade rboot program.
3. Upgrade main program.
4. Burn the total Flash ROM by this downloaded file.

----------------------------------------------------------------------------------------------------------------------



Press a key to run the command: 2

enter the Local IP:[]:



-----------------------------------------------------------------------------------------------------------------------
c. In the IP address configuration menu, enter the switch IP address, PC IP address, and upgrade file name as prompted.
Press a key to run the command:

enter the Local IP:[]:192.12.1.1    // Enter the IP address of the switch, ensuring it is on the same subnet as the PC’s IP address.
enter the Remote IP:[]:192.12.1.2     //Enter the IP address of the PC.
enter the Filename:[]: S5760X_RGOS12.3(1)B0701_install.bin //Enter the name of the upgrade file. Thefile name provided here is just an example.
d. After the IP addresses and file name are configured, the upgrade process starts.
%Total    % Received % Xferd  Average Speed   Time   Time     Time  Current
Dload  Upload  Total   Spent    Left Speed
147M  100 147M    0     0 1902k      0  0:01:19 0:01:19 --:--:-- 1968k
100  147M 100  147M    0    0  1902k      0 0:01:19  0:01:19 --:--:-- 1902k
Upgrading, keep power on and wait please ...


e. Select Y when prompted to continue until the upgrade is successful, that is, the upgrade file is copied successfully.



Determined to upgrade? [Y/N]: Y

Mount File System ...
Copy file to Flash ...
Upgrade Rootfs Success.
Upgrade Success




d. Once theupgrade file has been successfully copied, the system will automatically return to the Rboot interface. Press Ctrl+Z to exit and reboot the device, or alternatively, you can power the device off and then back on to reboot it.


======Rboot Menu(Ctrl+Zto upper level) ======
Tftp utilities.


----------------------------------------------------------------------------------------------------------
0. Upgrade uboot program.
1. Upgrade rboot program.
2. Upgrade main program.
3. Burn the total FlashROM by this downloaded file.

-------------------------------------------------------------------------------------------------------------

Press a key to run the command:
======Rboot Menu(Ctrl+Z to upper level) ======
TOP menuitems.


--------------------------------------------------------------------------------------------------------------

0. Tftp utilities.
1. XModem utilities.
2.Run main. //The device automatically reboots when Run main is selected.
3. Set Mac utilities.
4. Scattered utilities.


--------------------------------------------------------------------------------------------------------
g. Wait for the device to reboot.

*May 1412:51:02: %DP-3-MACHINE_RESTART: MACHINE_RESTART.
[504172.116141]%SYS-0-REBOOT: Rebooting by job: dp_mom_thread/4265
[504172.126545]reboot: Restartin
U-Boot1.4.14-gc4283be (Mar 21 2020 - 21:56:04 +0800)
Clock Configuration:
       CPU0(A53): 1200 MHz  CPU1(A53): 1200 MHz
       Bus:     500  MHz  DDR:     1600 Mbps
DRAM:  1 GiB (DDR4, 16-bit, CS=2, ECC on)
Flash:SF: Detected mx25l25635f with page size 256 Bytes, erase size 64 KiB, total 32MiB
SF: Detected mx25l25635f with page size 256 Bytes, erase size 64 KiB, total 32 MiB
32MiBMMC:   Only Support 3.3 voltage
sdhci@30400000:0
Loading Environment from SPI Flash... OK
Boot:   Active
Net:   eth0: ethernet@33410000
Press Ctrl+B to enter Boot Menu, Press Ctrl+C to enter Rboot  0
14 bytes read in 2 ms (6.8 KiB/s)
33 bytes read in 2 ms (15.6 KiB/s)
6814976 bytes read in 150 ms (43.3 MiB/s)
8422045 bytes read in 184 ms (43.7 MiB/s)
36561 bytes read in 3 ms (11.6 MiB/s)
starting pid 1179, tty '': '-/etc/sysinit'
starting initrd
Switching rootfs
[    4.258085] TIPC: Activated (version 2.0.0)
[    4.258546] TIPC: Started in single node mode
log:connected to ubus
Press RETURN to get started


V. View the configuration

(1) Run the show version command on the CLI to check the version number and confirm that the upgrade is successful.

Ruijie#show version
System description      : Ruijie 10G Ethernet Switch(S5760C-48GT4XS-X) By Ruijie Networks
System start time       : 2020-07-02 11:38:49
System uptime           : 0:01:54:25
System hardware version : 1.00
System software version : S5760X_RGOS 12.3(1)B0701
System patch number     : NA
System serial number    : G1NW80900015B
System boot version     : 1.4.14(Master)1.4.14(Slave)
System rboot version    : 1.1.15
Module information:
  Slot 0 : S5760C-48GT4XS-X
    System uptime       : 0:01:54:25   Cpu 0:
    Hardware version    : 1.00
    Boot version        : 1.4.14(Master) 1.4.14(Slave)
    Rboot version       : 1.1.15
    Software version    : S5760X_RGOS 12.3(1)B0701
    Serial number       : G1NW80900015B
  Slot 0 : S5760C-48GT4XS-X
    System uptime       : 0:01:54:25  Cpu 0:
    Hardware version    : 1.00
    Boot version        : 1.4.14(Master) 1.4.14(Slave)
    Rboot version       : 1.1.15
    Software version    : S5760X_RGOS 12.3(1)B0701
    Serial number       : G1NW80900015B







Welcome to Ruijie Community (https://community.ruijienetworks.com/) Powered by Discuz! X3.2