Sunday, February 11, 2018

Extreme Switch - How to install EXOS image on the BootROM

 

Here is the upgrade procedure on the BootRom mode when you are unable to boot normally with the EXOS image.


Step 1. Getting into the BootROM mode


Before rebooting the switch, connect via the serial console port. Enter BootROM by holding <space bar> during boot. You may need to reboot the switch by unplugging the power and plugging it back in.

Note: If you are at the "BOOTLOADER>" prompt type "boot" + return, then hold the <space bar> to get into the BootRom.

Command 'h' displays a brief description of the available command. 

BootRom >  h
?           - alias for 'help'
boot        - boot primary or secondary OS image
clearcmd    - clear cmdline in sram
config      - Specifies using no configuration
configip    - configure Mgmt Ethernet network parameters
download    - download OS image to recover flash drive
help        - print command description/usage
mtest       - simple RAM read/write test
ping        - send ICMP ECHO_REQUEST to network host
printenv    - print environment variables
reboot      - Reset system
setdiag     - set sram diag type tag and value
update      - update bootloader images from network
version     - display build date, alternate and default bootloader image version

Step 1-1 (Optional). Try out to boot with the alternate image.


Select the image that is currently not used by typing the command "boot 1" or "boot 2"
Verify that you are able to boot to the alternate image
Reinstall or upgrade the EXOS image on the partition that the image is corrupted on


Step 2. Configure an IP address on the Mgmt.


Assign an temporary IP address, subnet mask, and gateway to the switches management port. This is a temporary address and will be cleared on boot. 

Usage:
configip [ipaddress | ip] <ipaddr> [gateway | gw] <gatewayip> [netmask | nm] <netmask>

Example:
BootRom > configip ipaddress 192.168.1.2 gateway 192.168.1.1 netmask 255.255.255.0
setting ip address to 192.168.1.2
setting gateway ip address to 198.168.1.1
setting netmask to 255.255.255.0


Note: IP, netmask, and gateway can be verified by issuing the command 'configip'.


Step 3. Verify connectivity to the TFTP server by pinging the IP address of the TFTP server.


BootRom > ping 192.168.1.100
Using eth0 device
MGMT port eth0 rx error: 4294967295
host 192.168.1.100 is alive


Step 4. Download and install the image to the switch.


download image 192.168.1.100 
summitX-30.7.1.1-patch1-23.xos

BootRom > download image 192.168.1.100 summitX-30.7.1.1-patch1-23.xos
Using eth0 device
TFTP from server 192.168.1.100; our IP address is 192.168.1.2; sending through gateway 192.168.1.1
Filename 'summitX-15.6.1.4.xos'.
Load address: 0x20000000
Loading: |
done
Bytes transferred = 57820330 (37244aa hex)
Uncompressing ...

TFTP Rescue


* Note: Rescue mode will ERASE ALL DATA, download a new EXOS image and install it. No data of any kind will be preserved.


Rescue mode will always download and install a new image.
Rescue options:
1) format disk before install (ERASE ALL DATA)...."true"
2) clear NVRAM after install......................"false"
3) pre-load other NOS images to /scratch/nos......"false"

c) continue
r) reboot
~> c
Ok to continue? (Y/N) y
**** Initializing management port ipaddress 192.168.1.2 netmask 255.255.255.0 
**** Gateway 192.168.1.1
**** Downloading rescue image to ramdisk
**** Partitioning Disk Device
**** Creating Static Logical Partitions
Disk /dev/mmcblk0: 3664 MB, 3841982464 bytes, 7503872 sectors
117248 cylinders, 4 heads, 16 sectors/track
Units: sectors of 1 * 512 = 512 bytes

Device       Boot StartCHS    EndCHS        StartLBA     EndLBA    Sectors  Size Id Type
/dev/mmcblk0p1    512,0,1     512,0,1          32768     163840     131073 64.0M 83 Linux
Partition 1 does not end on cylinder boundary
/dev/mmcblk0p2    512,0,2     512,0,2         163841     294913     131073 64.0M 83 Linux
Partition 2 does not end on cylinder boundary
/dev/mmcblk0p3    1023,3,16   1023,3,16       294914    7500000    7205087 3518M  5 Extended
/dev/mmcblk0p5    1023,3,16   1023,3,16       294930    1630868    1335939  652M 83 Linux
/dev/mmcblk0p6    1023,3,16   1023,3,16      1630885    2966823    1335939  652M 83 Linux
/dev/mmcblk0p7    1023,3,16   1023,3,16      2966840    3341840     375001  183M 83 Linux
/dev/mmcblk0p8    1023,3,16   1023,3,16      3341857    4216857     875001  427M 83 Linux
/dev/mmcblk0p9    1023,3,16   1023,3,16      4216874    5837968    1621095  791M 83 Linux
/dev/mmcblk0p10   1023,3,16   1023,3,16      5837985    7459079    1621095  791M 83 Linux
/dev/mmcblk0p11   1023,3,16   1023,3,16      7459096    7498159      39064 19.0M 83 Linux
**** Creating ext3 FS on /dev/mmcblk0p1
**** Creating ext3 FS on /dev/mmcblk0p2
**** Creating ext3 FS on /dev/mmcblk0p5
**** Creating ext3 FS on /dev/mmcblk0p6
**** Creating ext3 FS on /dev/mmcblk0p7
**** Creating ext3 FS on /dev/mmcblk0p8
**** Creating ext3 FS on /dev/mmcblk0p9
**** Creating ext3 FS on /dev/mmcblk0p10
**** Creating ext3 FS on /dev/mmcblk0p11
**** Mounting Partitions
**** Checking Image Wrapper
**** Extract Upgrade Script
**** Execute Upgrade Script
Installing 30.7.1.1
**** Set default boot partition to primary
***** press ENTER to reboot: 

reboot: Restarting system

After pressing <enter>, the switch will boot with the new image.


▶ Related article: 
Extreme Switch - How to upgrade the EXOS
Extreme Switch - How to backup/restore configuration


No comments:

Post a Comment