How to install firmware on a Lenovo switch running Campus NOS using the Utility Menu
How to install firmware on a Lenovo switch running Campus NOS using the Utility Menu
How to install firmware on a Lenovo switch running Campus NOS using the Utility Menu
Description
This article introduces the procedure used to upgrade a Lenovo CE switch running Campus NOS using the Utility Menu. This method should be used if the normal Web GUI or CLI methods are not working, or if corrupted files need to be replaced.
Requirements
- Console access to the switch.
- Management port needs network access to a TFTP server, or the console cable can be used if using XMODEM, YMODEM, or ZMODEM.
Procedure
- While the switch is powered off, connect to the switch using the console option on your terminal emulator.
- Power the switch on and carefully watch the displayed text. You will only have three seconds to make a selection from the menu.
- Select 2 when given the option to choose from the Lenovo Campus NOS Startup – Main Menu.
U-Boot 2012.10-00016-gb1e727b20f (Feb 19 2019 - 15:24:56)
Hit any key to stop autoboot: 3 2 1 0
SF: Detected MX66L1G45G with page size 4 KiB, total 128 MiB
Validating image
STK file size 22635240
STK validation Success
## Booting kernel from Legacy Image at a2000074 ...
Image Name: System for iproc_seg5002
Image Type: ARM Linux Multi-File Image (gzip compressed)
Data Size: 22635060 Bytes = 21.6 MiB
Load Address: a1008000
Entry Point: a1008000
Contents:
Image 0: 2817368 Bytes = 2.7 MiB
Image 1: 2088270 Bytes = 2 MiB
Image 2: 5870 Bytes = 5.7 KiB
Image 3: 191 Bytes = 191 Bytes
Image 4: 17723332 Bytes = 16.9 MiB
Verifying Checksum ... OK
## Loading init Ramdisk from multi component Legacy Image at a2000074 ...
## Flattened Device Tree from multi component Image at A2000074
Booting using the fdt at 0xa24adb74
Uncompressing Multi-File Image ... OK
boot_prep_linux commandline: console=ttyS1,115200n8 maxcpus=1 mem=1008M mtdparts=spi1.0:768K(boot),192K(env),128K(shmoo),50M(image1),50M(image2),-(jffs2) quiet
Loading Ramdisk to afe02000, end affffd4e ... OK
Using Device Tree in place at a24adb74, end a24b2261
Starting kernel ...
Disabling outer cache
starting pid 1075, tty '': '/etc/init.d/rcS'
starting pid 1256, tty '/dev/ttyS1': '/etc/rc.d/rc.fastpath'
Mounting /dev/mtdblock5 at /mnt/fastpath.
Mounting tmpfs at /mnt/application...done.
Lenovo Campus NOS Startup Rev: 8.4.3
Select startup mode. If no selection is made within 3 seconds,
the Lenovo Campus NOS Application will start automatically...
Lenovo Campus NOS Startup -- Main Menu
1 - Start Lenovo Campus NOS Application
2 - Display Utility Menu
Select (1, 2): 2 - From the Lenovo Campus NOS Startup -- Utility Menu, select 2 – Load Code Update Package.
Lenovo Campus NOS Startup Rev: 8.4.3
Lenovo Campus NOS Startup -- Utility Menu
1 - Start Lenovo Campus NOS Application
2 - Load Code Update Package
3 - Load Configuration
4 - Select Serial Speed
5 - Retrieve Error Log
6 - Erase Current Configuration
7 - Erase Permanent Storage
8 - Select Boot Method
9 - Activate Backup Image
10 - Start Diagnostic Application
11 - Reboot
12 - Erase All Configuration Files
13 - Start Password Recovery
Q - Quit from Lenovo Campus NOS Startup
Select any of above (options or Q): 2 - You will be prompted to enter the Mode of Transfer, Mode of IP address configuration, Host IP (Management port IP), Host Subnet Mask, Gateway IP, Server IP (TFTP Server IP), and Filename (.img file).
Note: For this example, the Mode of Transfer is TFTP, the Mode of IP address configuration is S, the Host IP is 10.10.10.2, the Host Subnet Mask is 255.255.255.0, the Gateway IP is 10.10.10.1, the Server IP is 10.10.10.1, and the Filename is CE0128XB_CE0152XB-CampusNOS-r8v4m3b13.imgs.Creating tmpfs filesystem on tmpfs for download...done.
Select Mode of Transfer (Press T/X/Y/Z for TFTP/XMODEM/YMODEM/ZMODEM) []:T
Downloading code file...
Select Mode of IP address configuration (Press D for DHCP or S for Static) []:S
Enter Host IP []:10.10.10.2
Enter Host Subnet Mask [255.255.255.0]:255.255.255.0
Enter Gateway IP []:10.10.10.1
Enter Server IP []:10.10.10.1
Enter Filename []:CE0128XB_CE0152XB-CampusNOS-r8v4m3b13.imgs - Enter Y to continue with the installation.
Note: This will take some time.Do you want to continue? Press(Y/N): Y
Bringing up eth0 interface...done.
Adding default gateway 10.10.10.1 to the Routing Table...done.
Bringing down eth0 interface...done.
Erasing /dev/mtd4...
Erasing 64 Kibyte @ 31f0000 -- 99 % complete.
Updating code file... done.
Code update instructions found!
Critical components modified -- system reboot recommended! - Enter Y to reboot the switch.
Reboot? (Y/N): Y
Rebooting...