# Intel® Ethernet FLASH Firmware Utility

## Introduction

The Intel® Ethernet Flash Firmware Utility (BootUtil) is a utility that can be used to program the PCI option ROM on the flash memory of supported Intel PCI and PCI-Express-based network adapters, and to update configurations. BootUtil replaces existing utilities and provides the functionality of the older IBAUTIL, ISCSIUTL, LANUTIL, and FLAUTIL. BootUtil supports all the adapters supported by the previous utilities.

| NOTE: Updating the adapter's flash memory using BootUtil will erase any existing firmware image from the flash memory.

Intel provides the following flash firmware in FLB file format for programming to the flash memory:

> Intel® Boot Agent as PXE Option ROM for legacy BIOS
> http://www.intel.com/support/network/adapter/pro100/bootagent/
> Intel® iSCSI Remote Boot as iSCSI Option ROM for legacy BIOS
> http://www.intel.com/support/network/iscsi/remoteboot/
> Network Connectivity, UEFI network driver
> http://www.intel.com/support/network/sb/cs-006120.htm

OEMs may provide custom flash firmware images for OEM network adapters. Please refer to the instructions given by OEMs.

BootUtil allows the user to flash supported firmware to the adapter from the included master FLB file. This option ROM includes PXE, iSCSI, FCoE and UEFI drivers, and the image is programmed to the flash memory at once. BootUtil will also build the required combo images for supported adapters and program those images to the flash, as well. Since both discrete and combo images are supported, the -BOOTENABLE command ONLY works on combo images.

The Master FLB file (BOOTIMG.FLB) is the new container for all the Intel® Boot Option ROMs. This file replaces the existing FLB files for FCoE iSCSI, PXE, and EFI.

| NOTE: BootUtil supports older flb files to maintain backwards compatibility with the previous utilities.

BootUtil without command line options will display a list of all supported Intel network ports in the system. BootUtil will also allow the user to enable or disable the flash memory on specific ports by using -FLASHENABLE or -FLASHDISABLE options in order to control access to the firmware from the system.
BootUtil allows the user to individually set iSCSI and PXE boot configurations by -NIC=xx -[OPTION]=[VALUE] options. The -I option is iSCSI specific and will not work for PXE configurations.

| NOTES: No configuration settings are supported for FCoE and the UEFI driver. Functionality from the previous utility, IBAutil, are preserved in BootUtil.

BootUtil is located on the software installation CD in the \APPS\BootUtil\ directory. Check the Intel Customer Support (http://support.intel.com) website for the latest information and component updates.

## Running BootUtil

The syntax for issuing BootUtil command line options is:

> `BOOTUTIL -[OPTION] or -[OPTION]=[VALUE]`

## Command Line Options

BootUtil accepts one executable option and its associated non-executable options in an execution. If conflicting executable options (such as -FLASHENABLE and -UPDATE used together) are supplied, BOOTUTIL exits with an error.

The options, where applicable, are listed in logical groups.

| NOTE: If you run BootUtil without any command line options, the utility displays a list of all supported Intel network ports found in the system.

General Options |
--- | ---
Parameter | Description
`-HELP or -?` | Displays a list of Command line options.
`-EXITCODES` | Displays exit codes returned to the OS by BootUtil.
`-IMAGEVERSION or -IV` | Displays firmware types and version numbers from a resource image. If used with the -FILE option, the resource image is in the FLB file. If used with the -NIC option, the resource image is in the adapter flash. If used with the -ALL option, each resource image is continuously displayed for all adapters.
`-E` | Enumerates all supported network ports in the system.
`-O=[FILENAME]` | Redirects all text output to [FILENAME] file for the -E option.
`-I=[FILENAME]` | Reads iSCSI boot configuration options from [FILENAME] script file and program settings on the selected port.
-FILE=[FILENAME] | Specifies the file name for -SAVEIMAGE, -RESTOREIMAGE, -SAVECONFIG or -RESTORECONFIG option.
Flash Programming Options |
--- | ---
Parameter | Description
`-UP or -UPDATE=[ROMType]` `[-FILE=Filename]` | Updates the flash memory of the adapter specified by the -NIC option with the given FLB flash firmware image file. If -QUIET is not specified, the user is prompted to confirm overwriting the existing firmware image before upgrading. If a Filename is not provided, the utility looks for the default bootimg.FLB file which contains all imagetypes. The following examples use pxe, but could also be efi, efi64, FCoE or iSCSI. eg: Bootutil -Nic=x -up=pxe or Bootutil -Nic=x -up=pxe -file=pxeimg.flb If your adapter supports a combo option rom, the following command option automatically detects the supported combo image and programs the adapter with that image. -up=combo
`-SAVEIMAGE` | Saves the existing flash firmware image in the flash memory of the adapter specified by the -NIC option to a disk file. The destination file is specified by the -FILE option.
`-RESTOREIMAGE` | Restores a previously-saved flash firmware image to the same network adapter using the -NIC option. The source file is specified by the -FILE option.
`-QUIET` | Runs BootUtil without confirmation prompts. This option is used with -IMAGEVERSION, -UP, -UPDATE, -RESTOREIMAGE, or -HELP option.
Power Management Options |
--- | ---
Parameter | Description
`-WOLENABLE or -WOLE` | Enables Wake On Lan (WOL) functionality on the selected port.
`-WOLDISABLE or -WOLD` | Disables Wake On Lan (WOL) functionality on the selected port.
Adapter Selection Options |
--- | ---
Parameter | Description
`-ALL` | Selects all supported network ports found in the system.
`-NIC=XX` | Selects a specific network port in the system. If used without any executable option, it prints the iSCSI boot configuration of the selected port, or saves it in the file when the -O option is used.
`-BLINK` | Blinks the LED on the selected port for ten seconds.
Adapter Flash Enable/Disable Options |
--- | ---
Parameter | Description
`-FLASHENABLE or -FE` | Enables the capability to run the flash firmware on the selected adapter.
`-FLASHDISABLE or -FD` | Disables the capability to run the flash firmware on the selected adapter.
`-BOOTENABLE=[PXE, ISCSI, FCOE, or DISABLED]` | Selects flash firmware type to enable or disable on the selected port. The combo option ROM could have all capabilities. The monolithic option ROM has either PXE, FCoE, or iSCSI capability but not all. This command will NOT WORK on monolithic Option ROMs.
| NOTES: This manual command is not applicable to the UEFI network driver. The UEFI network driver is enabled by default and loaded automatically unless network ports are already used by other flash firmware.
BOOTENABLE=DISABLED Disables FCoE, iSCSI and PXE functionalities for legacy BIOS. BOOTENABLE=ISCSI Enables iSCSI boot and disables PXE/FCoE for legacy BIOS. BOOTENABLE=PXE Enables PXE and disables iSCSI/FCoE boot for legacy BIOS. BOOTENABLE=FCOE Enables FCoE and disables iSCSI/PXE boot for legacy BIOS.

PXE Boot Configuration options (can be used with -NIC or -ALL) |
--- | ---
Parameter | Description
-DEFAULTCONFIG or -DEFCFG | Sets the PXE configuration of the selected NIC back to default settings.
-SETUPENABLE or -STE | Enables Setup Menu.
-SETUPDISABLE OR -STD | Disables Setup Menu.
-TITLEENABLE OR -TLE | Enables Initial Title Message.
-TITLEDISABLE OR -TLD | Disables Initial Title Message.
-MESSAGEENABLE or -MSE | Enables display of the Control-S Setup message when PXE initializes.
-MESSAGEDISABLE or -MSD | Disables display of the Control-S Setup message when PXE initializes.
-SETWAITTIME=X or -SWT=X | Set the setup delay time for the NIC to X seconds. Valid delay times are 0, 2, 3, and 5.\n"
-MODE | Writes the given MODE setting to EEPROM of the given NIC(s).
iSCSI Boot Configuration Options |
Parameter | Description
-SAVECONFIG | Saves a snapshot of iSCSI boot configurations on the selected port to a binary file. Need to specify the file name by the -FILE option. WARNING: For security reasons it is recommended that CHAP settings are disabled when using this option.
`-`RESTORECONFIG | Restores previously-saved iSCSI boot configuration snapshot on the selected port. Need the -FILE option to specify the saved data. WARNING: This feature may create multiple primary or secondary ports if the same command is issued to multiple ports. Review the boot priority setting in the iSCSI setup menu for the next system boot.

Port Configuration Options for iSCSI Initiator | These options can either be used individually with the -NIC=XX option, or in a script file with the -I option. The value is specified in -[OPTION]=[VALUE] format.
-[OPTION]=[VALUE] | Description
`-INITIATORNAME` | Specifies the iSCSI Qualified Name (IQN) for the initiator.
`-INITIATORIP` | Specifies the initiator IPv4 address in dotted decimal notation.
`-INITIATORDHCP` | Enables or disables DHCP client in the initiator.
`-NETMASK` | Specifies the initiator subnet mask in dotted decimal notation.
`-GATEWAY` | Specifies the gateway IPv4 address in dotted decimal notation.
`-BOOTPRIORITY` | Specifies iSCSI boot priority as PRIMARY, SECONDARY or DISABLE.

iSCSI Target Configuration Options | These options can either be used individually with the -NIC=XX option, or in a script file with the -I option. The value is specified in -[OPTION]=[VALUE] format.
-[OPTION]=[VALUE] | Description
`-TARGETNAME` | Specifies the iSCSI Qualified Name (IQN) for the target.
`-TARGETIP` | Specifies the target IPv4 address in dotted decimal notation.
`-TARGETDHCP` | ENABLE or DISABLE to get the target information from DHCP Root Path.
`-TARGETPORT` | Specifies the TCP port number on the target to connect to.
`-BOOTLUN` | Specifies the LUN number to boot from.

Authentication Configuration Options | These options can either be used individually with the -NIC=XX option, or in a script file with the -I option. The value is specified in -[OPTION]=[VALUE] format.
-[OPTION]=[VALUE] | Description
`-AUTHENTICATIONMETHOD` | Specifies either NONE, CHAP or MutualCHAP
`-CHAPUSERNAME` | Specifies CHAP user name.
`-CHAPSECRET` | Specifies a secret text string to go with the CHAP user name.
`-MUTUALCHAPSECRET` | Specifies the reverse (target) CHAP secret text string.

The CHAP Authentication feature of this product requires the following acknowledgements:
This product includes cryptographic software written by Eric Young (eay@cryptsoft.com). This product includes software written by Tim Hudson (tjh@cryptsoft.com)
This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit. (http://www.openssl.org/)

### Examples

The following examples show how to enter some typical BootUtil command lines:

#### Example 1:

To enable the flash firmware on the first network adapter for the system to be capable of executing the flash firmware.

> BootUtil -NIC=1 -FLASHENABLE

#### Example 2:

To disable the flash firmware on all the network adapters.

> BootUtil -ALL -FD

#### Example 3:

To display BootUtil FLB flash firmware types and versions.

> BootUtil -IMAGEVERSION

#### Example 4:

To update all ports of a supported NIC with PXE.

> 1. BootUtil -UP=PXE -ALL (Assumes input file is bootimg.flb)
> 2. Bootutil -UP=PXE -ALL -FILE=BOOTIMG.FLB (explicit user specified file)

#### Example 5:

To update a combo image on supported adapter (eg, pxe+iscsi).

> Bootutil -UP=Combo -NIC=2 -FILE=BOOTIMG.FLB

The above command will succeed if the PXE+ISCSI combination is supported on NIC #2. If not an error is displayed to the user.

| NOTE: THE -UP and -UPDATE commands are equivalent and interchangeable.

#### Example 6:

To enable PXE firmware on the third network port in the system.

> BootUtil -BOOTENABLE=PXE -NIC=3

| NOTE: This command will work only if PXE is part of a combo Option ROM and not a discrete Option ROM.

#### Example 7:

To disable the firmware on the second network port in the system.

> BootUtil -NIC=2 -BOOTENABLE=DISABLED

#### Example 8:

To get help descriptions.

> BootUtil -?

#### Example 9:

To enable DHCP for the iSCSI initiator on all the network ports in the system.

> BootUtil -INITIATORDHCP=ENABLE -ALL

#### Example 10:

To load the iSCSI boot configurations from a text script file to the first network port.

> BootUtil -I=CONFIG.TXT -NIC=1

## Exit Codes

BootUtil returns exit codes to the DOS environment. Possible exit codes are listed below:

Code Name | Value
--- | ---
All BootUtil operations completed successfully | 0
Bad command line parameter | 1
No supported network port detected | 2
Invalid network port selected | 3
FLASH operation failed | 4
EEPROM read operation failed | 5
EEPROM write operation failed | 6
File content is missing or corrupt | 7
Operator termination | 8
LOM not supported for selected operation | 9
Network port is not bootable | 10
FLASH memory is disabled for flash firmware | 11
FLASH memory too small for selected firmware | 12
Programming iSCSI boot configurations failed | 13
System memory allocation failed | 14
File operation failed | 15

`Last modified on 6/07/10 11:21a Revision 17`