A P P E N D I X  C

Updating the Firmware

From time to time, the firmware for the Sun IB switch might need to be updated.

This appendix provides instructions for setting up a TFTP server and using the flashupdate command to update the firmware. It contains the following sections:


Setting Up a TFTP Server

The instructions in this section assume that you are setting up a TFTP server on a Solaris system.


procedure icon  To Set Up a TFTP Server

1. On the system that you intend to set up as the TFTP server, log in as superuser.

2. Use a text editor to uncomment or add the following line, if it is missing, to the /etc/inetd.conf file:


tftp dgram udp6 wait root /usr/sbin/in.tftpd in.tftpd -s /tftpboot

3. On the same system create a TFTP home directory by typing the following at the Solaris prompt:


# mkdir /tftpboot 
# chown root /tftpboot 
# chmod 755 /tftpboot 
# cd /tftpboot 
# ln -s . tftpboot

4. Restart inetd by typing:


# pkill -HUP inetd

5. Verify that TFTP is working.

To do this, use TFTP to get a file from the /tftpboot directory:

a. On the system that you are using as the TFTP server, copy any file (for example, the Solaris /etc/release file) to the /tftpboot directory.

Type the following command at the Solaris superuser prompt:


# cp /etc/release /tftpboot/filename

Where filename is the file you intend to make available on the TFTP server.

b. Make the file you have just copied read-only:


# chmod 444 /tftpboot/filename

Where filename is the file you intend to make available on the TFTP server.

c. Change directory to a temporary directory:


# cd /tmp

d. Use TFTP to get the file from the tftpboot directory:


# tftp localhost 
tftp> get filename 
Received xxx bytes in x.x seconds 
tftp> 



Note - Note that TFTP is not the same as FTP. It does not display the same error messages as FTP, and you cannot use the cd or ls commands (or indeed most other commands) that FTP allows you to use.




Installing Firmware Images From the TFTP Server

The procedures for upgrading firmware on the switch involve using TFTP.

When you have downloaded the firmware, you need to install it into the correct directory on the TFTP server. This makes the firmware available to the system controller's flashupdate command.

single-step bulletTo install the firmware onto the TFTP server, type the following at the root prompt:


# cd /tftp-root-dir 
# cp ibswitch-sc.flash /tftp-root-dir
# chmod 444 /tftp-root-dir/ibswitch-sc.flash

Where tftp-root-dir is the TFTP root directory on the TFTP server. On Solaris systems this directory is typically called /tftpboot. On Linux systems it is called /tftp.



Note - The filename ibswitch-sc.flash is an example only.




procedure icon  To Upgrade the Switch Firmware

1. Check the current version of the firmware:


sc> showsc
Sun Advanced Lights Out Manager for Sun IB Switch 9P
Copyright 2003-2005 Sun Microsystems, Inc. All Rights Reserved.
ALOM-B 1.2
 
Release: 0.3.19, Created: 2005.02.24.09.27 (astec_debug) for Astec PSU
 
Parameter                              Running Value      Stored Value
------------------------------------------------------------------------------
Bootable Image :                       0.3.19 (Feb 24 05)
Current Running Image :                0.3.19 (Feb 24 05)
SC IP address:                         10.4.124.79        10.4.124.79
SC IP netmask address:                 255.255.255.0      255.255.255.0
SC IP gateway address:                 10.4.124.1         10.4.124.1
SC Network interface is:               Enabled            Enabled
SC Telnet interface is:                Enabled            Enabled
The CLI prompt generation is set as:   none               none
The CLI prompt is set as:              P1_L_79a>          P1_L_79a>
Event Reporting via telnet interface:  Enabled            Enabled
The CLI event level is set as:         MINOR              MINOR
The CLI timeout (seconds) is set at:   0                  0
Mask password with *'s:                Enabled            Enabled
sc>

The current version of the firmware appears in the line labeled "Current Running Image".

2. Update the firmware:


sc> flashupdate -s ipaddress -f /tftpboot/ibswitch-sc.flash
Warning: Are you sure you want to flashupdate the SSC0/SC flash image (y/n)? y
SSC0/SC: Preparing to flashupdate.
flashupdate: verifying image, please wait 
flashupdate: erasing segment 0 programming address ffb80000
flashupdate: erasing segment 1 programming address ffb8fff0
flashupdate: erasing segment 2 programming address ffb9fff5
flashupdate: erasing segment 3 programming address ffbafffa
flashupdate: erasing segment 4 programming address ffbbffff
flashupdate: erasing segment 5 programming address ffbcffef
flashupdate: erasing segment 6 programming address ffbdfff4
flashupdate: erasing segment 7 programming address ffbefff9
flashupdate: erasing segment 8 programming address ffbffffe
flashupdate: erasing segment 9 programming address ffc0ffee
...
flashupdate: erasing segment 16 programming address ffcdfff0                  
SSC0/SC: flashupdate complete.

Where ipaddress specifies the IP address of the computer on which the new firmware is stored (in other words, of the TFTP server).

3. Reset the system to load the new image:


sc> resetsc