### Upgrading the OS (Firmware)

Use this topic to upgrade the Digi One RealPort and PortServer TS 2/4/8/16 operating systems (OS).

#### PortServer TS 8/16 Procedure

##### Starting Point

This procedure assumes that

- You have logged in as root
- Set up a host to run TFTP
- Copied the PortServer TS 8/16 OS to the server.

##### Procedure

1. Obtain a copy of the latest PortServer TS 8/16 OS from the Digi International web site, digi.com, and copy it to a host running TFTP.
2. Enter the boot command as shown below to load a new OS into flash ROM from a TFTP host:

   `boot load=host_ipaddr:file`

   where host_ipaddr is the IP address of a TFTP host and file is the name of the file (and full path) that holds the new operating system.

##### Example

`boot load=192.150.150.10:/bootfile1`

#### Digi One RealPort and PortServer TS 2/4 Procedure

##### Starting Point

This procedure assumes that

- You have logged in as root
- Set up a host to run TFTP

##### Procedure

1. Obtain a copy of the Digi One RealPort or PortServer TS 2/4 OS from the Digi International web site, digi.com, and copy it to a host running TFTP.
2. Configure the Digi One RealPort or PortServer TS 2/4 to boot from the TFTP host by supplying a set config command that specifies the following:

- The IP address of the TFTP host on the boothost field
- The name of the file that holds the new OS on the bootfile field. This name may require the full path to the file. See the host's documentation for information.
- tftpboot=smart, which means that if the Digi device cannot boot from the TFTP host, it will boot from the OS stored in flash ROM

3. Reboot the Digi One RealPort or PortServer TS 2/4 by supplying a boot command that specifies action=reset.

When the boot is complete, the Digi device operates from the new OS.

4. Ensure that you are running the new OS by issuing a set config command and checking the version.
5. Ensure that the Digi device operates correctly with your configuration.
6. If it operates correctly, load the new OS into flash ROM by supplying a boot command that specifies the following on the load field:

- The IP address of the TFTP host
- The name of the file that holds the new OS

The following message should appear:

`The image in flash now appears valid.`

7. If this message does not appear, do not reboot the Digi device. The unit may become inoperative if you do; call technical support for instruction on what to do next.
8. If this message appears, configure the Digi One RealPort or PortServer TS 2/4 to boot off the OS in flash ROM by specifying `set config tftp=no`.
9. If you want to confirm this operation, reboot from the OS in flash ROM by specifying `boot action=reset.`

##### Example

The following is an example of the commands you supply to complete the OS upgrade procedure. The example does not include steps that do not use Digi One RealPort or PortServer TS 2/4 commands, such as obtaining a copy of the new OS or checking that the new OS runs properly.

`set config boothost=199.247.89.12 bootfile=/bootfle1 tftpboot=smart
boot action=reset
set config
boot load=199.247.89.12:/bootfle1
set config tftpboot=no
boot action=reset`