How to install firmware on a Lenovo switch running ENOS using recovery mode
How to install firmware on a Lenovo switch running ENOS using recovery mode
How to install firmware on a Lenovo switch running ENOS using recovery mode
Description
This article introduces the procedure used to upgrade a Lenovo switch running ENOS using recovery mode. This method should be used if the normal CLI methods are not working, or if corrupted files need to be replaced.
Requirements
- Console access to the switch
- The management port needs network access to a TFTP server
Procedure
- While the switch is powered off, connect to the switch using the console option on your terminal emulator.
- Power the switch on, and then hold shift and press R to enter recovery mode.
Note: You will only have a couple seconds to hit the key combination before the switch continues to boot.U-Boot 2014.01 (Sep 06 2019 - 00:19:36)
CPU: 8548, Version: 2.1, (0x80310021)
Core: e500, Version: 2.2, (0x80210022)
Clock Configuration:
CPU0:1400 MHz,
CCB:400 MHz,
DDR:200 MHz (400 MT/s data rate), LBC:25 MHz
L1: D-cache 32 KiB enabled
I-cache 32 KiB enabled
I2C: ready
DRAM: 1 GiB (DDR2, 64-bit, CL=3, ECC off)
Press shift-B for boot menu or shift-R for recovery mode: ...
Booting recovery mode - Enter T to select Configure networking and tftp download an image.
Platform: Rack Switch G8124-E (version 0.0.0.26)
Flash: 64 MiB
L2: 512 KiB enabled
Net: eTSEC1, eTSEC3
Booting OS
Thu Nov 19 21:43:20 UTC 2020
Creating system key....
Creating system development key....
Entering Rescue Mode.
Please select one of the following options:
T) Configure networking and tftp download an image
X) Use xmodem 1K to serial download an image
P) Physical presence test (low security mode)
I) Select which image to boot
C) Select configuration block to use
R) Reboot
E) Exit
Option? : T - You will be prompted to enter the Host IP (Management port IP), Host Subnet Mask, Gateway IP, Server IP (TFTP Server IP), and Filename (Boot.img file).
Note: For this example, 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 G8124-8.4.22.0_Boot.imgs.Performing TFTP rescue. Please answer the following questions (enter 'q' to quit):
IP addr :10.10.10.2
Netmask :255.255.255.0
Gateway :10.10.10.1
Server addr:10.10.10.1
Image Filename: G8124-8.4.22.0_Boot.imgs
Netmask : 255.255.255.0
Gateway : 10.10.10.1
Configuring management port.................................
Installing image G8124-8.4.22.0_Boot.imgs from TFTP server 10.10.10.1
Extracting images ... Do *NOT* power cycle the switch.
Installing Kernel: Image signature verified. 100%
Installing Root Filesystem: Image signature verified. 100%
Installing Boot Loader: 100%
Updating install log. File G8124-8.4.22.0_Boot.imgs installed from 10.10.10.1 at 22:20:26 on 19-11-2020 - Enter T and repeat Step 4 using the same information. Change the filename to the OS.imgs file.
Note: The filename is G8124-8.4.22.0_OS.imgs.Please select one of the following options:
T) Configure networking and tftp download an image
X) Use xmodem 1K to serial download an image
P) Physical presence test (low security mode)
I) Select which image to boot
C) Select configuration block to use
R) Reboot
E) Exit
Option? : T
Performing TFTP rescue. Please answer the following questions (enter 'q' to quit):
IP addr :10.10.10.2
Netmask :255.255.255.0
Gateway :10.10.10.1
Server addr:10.10.10.1
Image Filename: G8124-8.4.22.0_OS.imgs
Netmask : 255.255.255.0
Gateway : 10.10.10.1
Configuring management port.................................
Installing image G8124-8.4.22.0_OS.imgs from TFTP server 10.10.10.1
Extracting images ... Do *NOT* power cycle the switch.
Installing Application: Image signature verified. Install image as image 1 or 2 (hit return to just boot image): 2
Installing image as image2: 100%
Image2 updated succeeded
Updating install log. File G8124-8.4.22.0_OS.imgs installed from 10.10.10.1 at 22:22:17 on 19-11-2020 - Enter R to Reboot.
Please select one of the following options:
T) Configure networking and tftp download an image
X) Use xmodem 1K to serial download an image
P) Physical presence test (low security mode)
I) Select which image to boot
C) Select configuration block to use
R) Reboot
E) Exit
Option? : R