EFI FLash Tool - HowTo
EFI FLash Tool - HowTo
EFIFlash Tool
“HowTo”-Document
Content
1 General Description 3
2 General Notes and Warnings 3
3 Technical Background 4
4 Preparing the DOS bootable USB stick 5
5 Upgrading/Downgrading the BIOS 6
6 Command line options 7
Command line options (continued) 8
7 Transferring BIOS Setup settings, defaults and other BIOS customizations (Archive) 9
Transferring BIOS Setup settings, defaults and other BIOS customizations (continued) 10
8 BIOS Recovery flash 11
9 Overview: Flash File types 12
10 DOS Errorlevels (Return Codes) 13
11 Troubleshooting 14
Revision History:
EFIFlash is a DOS-based BIOS flash tool. It is included with the BIOS AdminPack and offers the following functions:
- Never use third-party (Intel, AMI, …) tools to update or modify your Fujitsu mainboard’s BIOS, it’s settings or DMI data! Use only Fujitsu provided tools!
Even though some third-party tools might look like they work, they will destroy Fujitsu customized features and functionalities.
- On Legacy BIOS systems, BIOS Setup settings used to be saved in a battery buffered memory region of the main chipset commonly referred to as “CMOS”.
With UEFI, these Setup settings are saved in the same flash memory chip as the main BIOS, in an area called NVRAM. Thus, on UEFI systems, clearing
the CMOS, for example by removing the CMOS Battery for a while, will not reset the Setup settings (exception: D3003). Please refer to the BIOS Recovery
procedure description for how to reset the Setup settings on UEFI systems.
- During a BIOS upgrade or downgrade, all BIOS Setup settings, as well as all customizations (like custom boot logo, MS licensing data, …) are kept. It is
not necessary to load setup defaults afterwards.
- You can update the BIOS versions in any sequence. So when going for example from 1.1.0 to 1.3.0, you do not need to flash 1.2.0. before flashing 1.3.0.
- In very rare cases a new BIOS version might require a certain minimum BIOS version to be present. Occasionally the changes in new BIOS versions are
so huge that downgrading to very old BIOS versions is not possible any more. The BIOS Update’s description text file will explain such requirements and
limitations. EFIFlash will give a warning and will not flash the BIOS in such cases.
- After upgrading/downgrading the BIOS, the mainboard MUST be restarted before additional BIOS changes or settings can be applied. EFIFlash will
automatically issue a reset or power cycle at the end of the flash procedure. If you want to minimize the number of resets in the production cycle, first
apply all changes that are necessary to the current BIOS version, and then finally update the BIOS itself. This way no reset is necessary in between.
Note: DOS memory managers like HIMEM or EMM386 might interfere with EFIFlash. Please use plain DOS without such programs.
1) The easiest way to create a DOS bootable USB stick is using this Windows based Tool:
ftp://ftp.ts.fujitsu.com/pub/Mainboard-OEM-Sales/Services/Software&Tools/Common-Mainboard-Tools/USB-FreeDOS-Bootstick/
Caution: All data on the USB stick will be deleted!
2) Copy the files from the BIOS admin pack’s DOS directory to any directory on the USB stick. You may omit the *.UPC file.
3) In case you want to use the USB stick for BIOS recovery, please copy all *,ROM and *.<Number> files into the USB stick root directory.
Here are explanations for the most commonly used EFIFlash command line options:
1) / AUTO
This option automatically choses a file name based on the mainboard it detects. Don’t give a file name in the command line.
For example on a D3313-S23 GS1 mainboard it would look for a file called D3313-S2.UPD and flash it.
2) /NOMCU
Tells EFIFlash not to search for CPU Microcode Patch Updates from additional files on the flash USB stick. CPU Microcode Patch Updates included in the
BIOS update UPD files themselves (see BIOS release notes) are not affected by this switch.
Note: This option is used by the batch file included in the BIOS AdminPack, because so far the CPU Microcode Patch Updates were always small enough
to be included in the flash update files themselves. Thus, so far no additional files were used.
3) /Y
This makes EFIFlash not ask for confirmation, but automatically assume an answer “Yes” for all user prompts.
4) /U
Update only if file contains a newer BIOS version than the one that is currently active
5) /D
Update only if file contains a different BIOS version than the one that is currently active
7) /ARCHIVE
This creates a BIOS archive file. Please see the chapter “Transferring BIOS Setup settings, defaults and other BIOS customizations (Archive)” for details.
Caution: The BIOS version on the source and destination mainboard must be the same! If necessary, update the BIOS and reboot before applying an Archive!
The following Items are transferred if they are different from the target mainboard:
1) The whole NVRAM (this contains the BIOS Setup Defaults customizable by EditCMOS, current BIOS Setup settings, Boot order, BIOS passwords)
2) The BIOS Boot Logo (created with UEFIModL and applied with EFIFlash )
3) Customized fan control and temperature limits data (created with SilentFanConfig and applied with SMCO)
4) Customized EDID data for LVDS attached flat panel displays (created with Phoenix and applied with LVDS)
5) Customized DMI data „System Manufacturer“ = DMI Type 1 Offset 4 and Type 3 Offset 4 (Set by OEMIDENT)
6) Some parts of the main system BIOS
1) If necessary: Upgrade/Downgrade the BIOS to the version you intend to use in mass production, reboot to activate this BIOS version
2) Apply all customizations that you wish to use (Defaults, settings, logo, …).
3) Use a bootable USB stick with EFIFLASH .EXE to boot DOS
4) Create a BIOS archive file with the command: EFIFlash /archive
The created file will be named automatically according to the mainboard version (D3236-S1.ARC), but you may change the name and extension.
1) If necessary: Upgrade/downgrade the BIOS to the same version as was used to create the archive, reboot to activate this BIOS version
2) Use a bootable USB stick with EFIFLASH .EXE and the archive file you wish to apply to boot DOS
3) Apply the BIOS Archive file with the command: EFIFlash filename, for example EFIFlash D3236-S1.ARC
4) If desired, apply other customizations that are specific to each piece of system, like SLP/OA activation data, system serial number, etc.
Note: When later Upgrading/downgrading the BIOS to any other version, all customizations and settings will be preserved
Caution: Do NOT apply an archive file to a mainboard with a different BIOS version than was used to create the archive! As described above, some parts of the
BIOS are not updated during applying an archive, only during normal BIOS update. This could result in the BIOS version shown as the one used to create the BIOS
archive, but not all parts of the BIOS would actually match this version.
1) If no USB stick with all necessary files for BIOS recovery (see Chapter 4) is present, and the mainboard’s BIOS is intact: the defaults are loaded for all
BIOS Setup settings.
2) If a USB stick with all necessary files for BIOS recovery (see Chapter 4) is present, the BIOS boot loader will load the main BIOS and all settings from the
appropriate BIOS recovery *.ROM or *.<Number> file in the root directory of the USB stick. Then, depending on the Mainboard model and BIOS version:
a) DOS is booted from the BIOS update USB stick. Once DOS is booted, you need to flash the BIOS using the normal AdminPack BIOS flash procedure
(dosflash.bat). EFIFlash will then detect being in recovery mode and completely restore the BIOS from the *.UPD file.
b) The BIOS starts an immediate recovery and restore its contents from the ROM file. There will be no video output, but repeating short beeps every few
seconds will indicate that the recovery is running. Then a repeating sequence of short and long beeps will signal success of the recovery procedure.
Remove the power and set the recovery jumper back to its normal position.
Note: Depending on the mainboard and BIOS version, video output or keyboard input may not be available during the BIOS recovery procedure. If this is the
case, you need to prepare the BIOS update USB stick to automatically flash the BIOS without user interaction. You can do so by putting EFIFlash .exe and the
BIOS update UPD file in the BIOS update USB stick’s root directory. Then create an AUTOEXEC.BAT file with the following content: EFIFLASH /AUTO
/NOMCU /Y
Admin Pack
*.UPC Compressed UPD file For use with BIOS update over LAN
DOS subdirectory
Errorlevel Meaning
0 Terminated normally, everything went OK
1 EFIFlash .exe generated error
2 BIOS generated error
3 Hardware error detected
4 Service not supported
5 File read/write error
6 Error parsing User Options
55 Bios Interface not found (not an Fujitsu mainboard with UEFI firmware)
- If a certain minimum BIOS version is required for a BIOS update, the release notes will list the details. Trying to flash a BIOS
version that does not meet the requirements will result in an error message.
- If a certain BIOS version cannot be downgraded below a certain version, the release notes will list the details. Trying to flash an
older BIOS version will result in an error message.
- With older versions of UEFIModL it was possible to create BIOS Boot Logos with > 16kB packed size. If a new BIOS version needs
more space than a previous one, then with a large BIOS logo the space might not be enough – flashing will fail with an error
message. In such a case, try replacing the boot logo with the default Fujitsu one, which is included with UEFIModL.
- If „Secure Boot Mode“ is set to “Custom“, it is possible to delete the „Authorized Signature / DB“. If you do so, Secure Flash is not
possible any more – updating the BIOS will fail with an error message. To fix this, under „Key Management“ select „Authorized
Signatures“ and then „Set new DB”.