Академический Документы
Профессиональный Документы
Культура Документы
___________________________________________________________________________________
March 2009
XW5173r100
Table of contents
Table of contents........................................................................................................... 3
Objectives .................................................................................................................. 6
Unified Extensible Firmware Interface (UEFI) technology ......................................... 7
Overview .................................................................................................................... 7
What is UEFI? ...................................................................................................... 7
Why UEFI? ........................................................................................................... 8
UEFI and the industry ........................................................................................... 9
Look and feel ........................................................................................................ 9
User advantages of UEFI ......................................................................................... 10
Richer configurations .......................................................................................... 10
Improved setup configuration and update .......................................................... 10
Improved consistency and feature penetration across the portfolio .................... 11
Simplified error handling ..................................................................................... 11
Improved code quality and faster development .................................................. 12
Update and configuration on today's BIOS systems ................................................ 13
Update and configuration on UEFI based systems .................................................. 14
UEFI compatibility with BIOS ................................................................................... 15
Impact of UEFI on the market place ................................................................... 15
User interface........................................................................................................... 16
F1 setup goals and architecture ......................................................................... 16
Splash screen ..................................................................................................... 16
Setup screen ...................................................................................................... 17
System settings .................................................................................................. 18
Network device ................................................................................................... 19
Processor details ................................................................................................ 20
Architecture .............................................................................................................. 21
UEFI architecture and components .................................................................... 21
Components ....................................................................................................... 22
Firmware execution flow ..................................................................................... 23
Firmware events - Logs ........................................................................................... 25
Logging ............................................................................................................... 25
System event log ................................................................................................ 25
Firmware event ................................................................................................... 26
POST event viewer............................................................................................. 27
What are firmware diagnostic codes? ................................................................. 28
Firmware path..................................................................................................... 30
Beep codes......................................................................................................... 31
Early light path support ....................................................................................... 32
Summary ............................................................................................................ 34
Memory RAS features.............................................................................................. 35
March 2009
XW5173r100
XW5173r100
March 2009
XW5173r100
Objectives
After completing this course, you will be able to:
1. Explain what UEFI is and why it is now IBM's standard firmware interface.
2. Explain how to navigate within the UEFI interface.
3. Define the components that make up the UEFI components.
4. Define the firmware events and logging capabilities with a UEFI system.
5. Define how to interpret diagnostic codes.
6. Define the memory RAS features of UEFI.
7. Define other RAS features of UEFI.
8. Explain Legacy mode operations and CSM.
9. Define the boot operations and how to add a boot device.
10. Define how iFlash works.
11. Describe the principles of ASU.
March 2009
XW5173r100
What is UEFI?
EFI was developed in the mid 90s by Intel as a replacement for BIOS (Basic
Input/Output System).
Intel required the use of EFI on Itanium platforms, but the industry did not accept EFI
given its proprietary nature.
Intel opened the EFI 1.1 specification to the UEFI Forum and UEFI 2.1 Spec was born.
UEFI was designed to enable OSs to take full advantage of the hardware by:
March 2009
XW5173r100
Modular
Extensible
Why UEFI?
UEFI was developed as the next generation for BIOS.
BIOS was first released in 1981, with the IBM PC, and is still in use today on most x86
platforms. BIOS is very stable, but carries many of the limitations imposed by 1980s
hardware designs.
BIOS started as an 8K piece of code that initialized the chipset and provide simple
services. BIOS has grown to now include:
iSCSI
March 2009
XW5173r100
March 2009
XW5173r100
Adapter Vendors must squeeze all option code into a shared 128K.
Vendors are limited in the function they can provide in the option ROM.
UEFI
UEFI
UEFI defines a human interface that is being extended to adapter vendors. Adapter
configuration can move into F1 setup.
Advanced Settings Utility (ASU) will now have 100% coverage of settings.
March 2009
10
XW5173r100
UEFI settings can be accessed out of band by ASU through the iMM Web interface.
UEFI code updates can be performed in band through the customer operating
system, and out of band through the iMM Web interface.
UEFI
New features will be widely available. such as CRTM, AEM, and iSCSI
UEFI
March 2009
11
XW5173r100
Patchwork of standards.
Proprietary code.
UEFI
Code is written in C.
Self-certification test.
March 2009
12
XW5173r100
On the systems currently employing BIOS updates and configuration, changes are only
available from the OS or in a preboot state using DOS utilities.
March 2009
13
XW5173r100
Firmware updates and configuration changes, ASU (Advanced Settings Utility), are now
available from the OS (inband) and remotely (out of band) by the IMM. In either case, all
updates and configurations are always processed by the IMM interface.
March 2009
14
XW5173r100
The CSM provides all the required resources to boot a Legacy OS:
o
To ensure the highest level of compatibility, IBMs CSM is based off of the IBM
BIOS we have been shipping for years.
The CSM is integrated into the UEFI code and does not require any interaction by
the user to invoke.
Long term goal being to remove the CSM when the market bears.
Only UEFI aware OSs can take advantage of Legacy free features.
DOS is not supported. DOS utilities used today for setup and configuration will no
longer be supported. There is a Whitepaper available from the IBM support site and
also linked to from this course that describes in detail what is supported, what is not
supported, and what new utilities are available.
March 2009
15
XW5173r100
User interface
F1 setup goals and architecture
The UEFI screens or F1 Setup uses a hybrid graphics/text mode where the graphics
border is drawn and designed to blend with the text mode window in the middle to give
the impression that the forms are graphically rendered.
Industry standard form browsers are UEFI HII compliant which ensures that add-in
devices and adapters from OEMs can present their configuration seamlessly along with
built in features.
Each screen in F1 setup is based on a HTML-like VFR form. Third party adapters can
contribute forms through HII access protocol.
Splash screen
This bold new look now has four (4) message areas on the screen.
Backup bank indicator - This will only be seen if the original firmware page or bank
is found to be corrupt, then the system will load from the backup image.
Navigation bar with one new option F6 to view the POST event log.
March 2009
16
XW5173r100
Event /MSG status bar with both event ID and explanation of ID.
Setup screen
The setup screen layout looks almost exactly like the BIOS setup screens from the
previous systems.
One new area is the firmware event status bar. Firmware events uses the UEFI-IMM
interface. Events map to:
March 2009
17
XW5173r100
System settings
Simple hook for launching their code (similar to option ROM banners,
within setup utility)
The third area is for adapters that are UEFI level of 2.1 or higher.
March 2009
18
XW5173r100
Network device
This is a sample of an option device configuration page. The page that is being
displayed is from the option ROM of the device and not that of UEFI.
March 2009
19
XW5173r100
Processor details
The processor details screen shows information for each socketed/installed physical
package.
F1 setup > system information > system summary > processor details
March 2009
20
XW5173r100
Architecture
UEFI architecture and components
UEFI is made up of many components. At the center is the core which is open source
code which IBM is using from Tiano.
Low level hardware drivers based on 64-bit code are included in the framework.
Above the low level drivers is the IBM value add components such as the setup utility,
IMM, BOFM, and CSM. The following topics goes into more detail on the value add
components.
March 2009
21
XW5173r100
Components
Post
Preboot
Runtime
The bottom light green area represents the hardware components of the IMM chipset.
Refer to the course on IMM (XW5180) for more detail on the chipset.
March 2009
22
XW5173r100
Figure 13 shows another graphical view of the firmware execution phase. Video is first
seen after the DXE or driver execution environment is loaded.
Use the Data Capture function which is included with pDSA (preboot DSA) for
detailed failure investigation.
o
IPMI SEL aux log contains UEFI events along with failure data such as
PCI advanced error reporting registers, Memory SBE counters.
F6 system log viewer parses the IPMI SEL aux log. This log entry supplements IPMI
platform events with the UEFI diagnostic code and in PCI or memory failures and
contains extensive additional data.
Port 80 checkpoints can change between firmware build levels. They are basically
used as a measure of progress (they generally increase in value as the boot
progresses).
Video is only initialized after POST is complete on current system IMM or UEFI
platforms.
March 2009
XW5173r100
March 2009
24
XW5173r100
25
XW5173r100
F1 setup > system event logs > IMM system event log
The Standard events are BMC or IPMI events. The firmware event is from the firmware
diagnostic code.
IPMI SEL viewer system event log
Standard SEL entries that are generated by firmware events have UEFI auxiliary log
entries associated with them that contain the originating firmware diagnostic code +
service data
Firmware event
Viewed by:
F1 setup > system event logs > system event log > firmware event
March 2009
26
XW5173r100
This is a viewer, not a log. Only events from this boot are viewable here as a
convenience rather than having to dig through a long System Event Log for Firmware
Diag code events.
F1 setup > system event logs > POST event viewer (*not a log):
Standard event attributes only (Severity, Diag Code, MRI String, affected FRU)
methods of viewing firmware event logs:
<F1> setup -> system event logs -> system event log
o
All entries with -> E.DIAG_CODE are events that can be further
examined.
DSA
IBM director
March 2009
27
XW5173r100
UEFI shell firmware event log dump (not available at first release)
Hierarchical
March 2009
28
XW5173r100
Energy management
iSCSI
CRTM
IMM
Scalability
SubClass = 5 (memory)
E.[DiagCode]
o
March 2009
29
XW5173r100
Firmware path
Firmware events are stored as auxiliary data associated with standard IPMI events.
Recommended to use the firmware event diagnostic code for problem determination
and action steps that are defined in the PDSG.
Also generates a firmware event record that can be associated with the
standard IPMI event.
March 2009
30
XW5173r100
Port80 checkpoints
Beep codes
Beep codes are not used by System x Firmware. Beep codes have been replaced
with new logged events and early light path support.
o
Replaced by early and enhanced light path and early initial IPMI events.
March 2009
31
XW5173r100
Early communication with IMM allows UEFI to assert early initialization errors:
o
No memory
Chipset and CPU faults are monitored by IMM (ABR and watchdog being
outcomes)
March 2009
32
XW5173r100
March 2009
33
XW5173r100
Summary
The diagnostic codes, checkpoint codes, and IPMI events logs are all viewable from
many places:
In-band IMM
pDSA
DSA
F1
Resources available are the IMM Users Guide and the PDSG for the system.
March 2009
34
XW5173r100
First use the system PDSG for supported populations (optimal thermal,
performance and test-matrix/warranty).
March 2009
35
XW5173r100
POST memory test will flag and disable any DIMMs with correctable or
uncorrectable errors.
Runtime faults:
Correctable errors:
o
Uncorrectable errors:
o
March 2009
36
XW5173r100
PFA thresholds
SMIs are disabled for that CPU to prevent SMIs from taking all cycles
from OS, making the system appear slow or halted.
March 2009
37
XW5173r100
Ensure memory DIMMs are the same type and speed and FRU
Reseat DIMMs
March 2009
XW5173r100
Reseat DIMMs
Note: Your server offers single DIMM failure isolation, no need to replace DIMM
pairs unless both have fault led on
Note: These action steps can be followed at the next maintenance interval and
the server will remain operational. The customer should be advised that the
likelihood of fatal memory event is increased when any DIMM has hit its
Correctable PFA limit.
March 2009
XW5173r100
March 2009
40
XW5173r100
March 2009
41
XW5173r100
March 2009
42
XW5173r100
Summary
Memory SBE PFA events will result in a Fault LED on affected DIMM (along with
SEL and aux Log entry).
Memory configuration errors are called out on a per-DIMM basis. Use this to determine
which DIMM is incorrectly populated.
March 2009
43
XW5173r100
RAS features
PCI event data
IPMI platform events for PCI are extremely limited. It is recommended to use:
F1 setup > system event logs > system event log > firmware event to view the
decoded firmware event extended service data.
March 2009
44
XW5173r100
ABR scenarios
o
ABR timer
UEFI does not fetch sufficient number of instructions to disable the ABR timer prior
to it expiring
Watchdog timer
Recovery methods
March 2009
45
XW5173r100
Clear Real Time Clock (RTC) and Complimentary Metal Oxide Semiconductor
(CMOS)
Clearing RTC or battery through the appropriate jumper, switch or by removing the
battery, results in the loss of configuration for first-generation IBM-UEFI servers just
as it does on Legacy systems.
IBM-UEFI restores the server configuration to default values if the RTC battery
status indicates loss of battery.
March 2009
46
XW5173r100
Provides UEFI support for devices that do not have a UEFI driver, but do
have a Legacy option ROM (PCI option ROM support):
The CSM mirrors support provided on previous (BIOS) systems, with several
changes:
o
Supports both native and compatibility mode IDE (no Advanced Host
Controller Interface (AHCI) support provided by the CSM).
March 2009
47
XW5173r100
To view
F1 setup > system settings > Legacy support
Note: The settings shown in the following screens cannot be default. Currently
Microsoft Windows 2008 Server needs to have the Legacy video on boot.
This setting controls the type of video support when the system starts.
This option should almost always be set to enable. Disabling this breaks
Microsoft Windows Server 2008 (UEFI mode).
This setting determines if we enable a Legacy option ROM to take over
the boot process (to run a configuration utility for example).
March 2009
48
XW5173r100
Configure SATA:
o
The CSM only supports IDE. No other setting will be supported in Legacy
mode (not all systems will have this entry).
Allows for the individual selection of Legacy option ROMs to disable. This
is useful in the case where you are running out of ROM space, or want to
speed up post time by not running unnecessary ROMs.
March 2009
Enables you to specify what order option ROMs will run. This is useful for
both space and Legacy boot device priority.
49
XW5173r100
This determines what serial port will be used for Legacy redirection.
Note: The CSM only supports output to a single remote console at a time. It is not
possible to have both a SOL and SP redirection session running concurrently under
the CSM.
March 2009
50
XW5173r100
OS support
Today the CSM is required for all supported operating systems.
UEFI*:
o
Legacy:
o
*Linux distributions are rapidly catching up and will support UEFI (x86_64) in the very
near future. It is expected that they will not have the Legacy video / CSM requirement.
This allows a Legacy device to speak UEFI so the system can use
it.
We provide thunk drivers to support both Video through Int 10h and
PCI mass storage devices through Int 13.
There are some drawbacks to using Legacy option ROM devices under UEFI:
March 2009
51
XW5173r100
March 2009
After the system determines that we are trying to start into a Legacy
environment the following steps take place:
UEFI then runs any Legacy Option ROMs that are found in the
order defined by setup.
UEFI tells the CSM to update tables and start. This is the point of
no return, the CSM now owns the machine, and UEFI is essentially
gone.
At this point, the CSM ensures that everything is setup to look like
and behaves as a BIOS boot environment.
The CSM issues a Int 19h and attempts to boot from the device(s)
specified by UEFI.
52
XW5173r100
There are cases where we cannot be able to map UEFI devices to Legacy
drive numbers on a 1:1 basis. Depending upon the boot order, disk
arrangement, option ROM execution order, this can prevent booting.
If you know you are starting a Legacy OS, then it is suggested to move the
Legacy only boot option to the top of the boot order. PXE booting can
have a similar situation, under the CSM environment.
March 2009
Legacy operating system does not know how to handle GPT disks and
this will cause install failures. The failures will not be obvious in most
cases. The install can appear to finish as normal, with the result being an
unbootable disk.
53
XW5173r100
Legacy tables cannot be present in low memory when starting to a UEFI OS.
o
When starting to a UEFI OS, as a general rule, Legacy tables that did
reside in the 0xE0000 -> 0xFFFFF memory region cannot be present.
Under UEFI, scanning low memory for tables is not the supported method.
Please see the UEFI specification / OS specific documentation for how to
obtain the required data.
Summary
The CSM provides support for Legacy devices used under UEFI through Thunk drivers.
The CSM provides install and boot support for Legacy operating systems which are
ACPI / MPS compliant. Today, all operating systems require the CSM.
March 2009
54
XW5173r100
Boot operations
Boot manager
F1 Setup > boot manager
From this screen you can add items to the boot menu or change the boot order.
March 2009
55
XW5173r100
CD/DVD ROM
iSCSI critical
Floppy disk
Legacy only
Embedded hypervisor
PXE network
USB storage
Diagnostics
iSCSI
March 2009
56
XW5173r100
Start options
CD/DVD ROM
March 2009
57
XW5173r100
Floppy disk
The default boot code on a diskette displays the message Non-system disk or disk
error when not a system disk.
Microsoft Windows XP zeros an extra two bytes. UEFI recognizes this and makes
Microsoft Windows XP formatted diskette appear as not bootable.
Can be either MBR (master boot record) or GPT (GUID (global unique identifier)
partition table):
o
Disk is inspected for eligibility to boot, and if bootable, the proper mode is
attempted.
Support for \EFI\BOOT\BOOTX64.EFI requires UEFI boot order entry lower in the
list to work. If the UEFI boot order entry is lost, load the defaults. UEFI OS must be
manually started to recreate the UEFI boot entry.
PXE network
USB storage
March 2009
58
XW5173r100
If not UEFI, or UEFI image returns failed, and USB Key has MBR formatted for x86
start, the USB key is started in Legacy mode.
Diagnostics
To get parameters for accessing iSCSI initiator and setting iSCSI target
Legacy only
Processes the next four (4) generic options as potential Legacy boot
options
Also can be used to attempt booting a device not known to the UEFI
environment (adapter without UEFI driver)
Embedded hypervisor
March 2009
XW5173r100
Summary
Legacy mode
o
F12
o
Cannot try Legacy mode then boot to UEFI. For example, a Legacy
bootable CD that displays Press Any Key to install cannot return to
the boot order to boot an UEFI OS.
March 2009
PXE Default
60
XW5173r100
iFlash
What is iFlash
Integrated-Flash (iFlash) is an on-line platform independent system firmware update
utility. iFlash is shipped packaged together with each firmware update package (UXSP
Update Xpress system package). iFlash can be run from a command line interface or a
graphical user interface.
Benefits of iFlash
Single tool for all firmware updates for all new system platforms
o
IMM
UEFI
pDSA
CLI from either Microsoft Windows and Linux (most used option)
<up_options>
-x : extract content
<flash_options>
Example ibm_fw_imm_yuoo19a_windows_32-64.exe x
March 2009
61
XW5173r100
Perform update
March 2009
62
XW5173r100
Syntax:
o
iFlash does have platform checks to avoid incorrect cross machine UEFI flashing
Options:
o
March 2009
--force:
unattended:
63
XW5173r100
package:
--no-reboot:
The result shows the automatic in-band connection to the IMM and current IMM VPD.
March 2009
64
XW5173r100
March 2009
65
XW5173r100
Summary
The update express support packages available on the IBM support site will have a
Microsoft Windows version and a Linux version.
Support Update Packages are available for:
IMM
pDSA
UEFI
March 2009
66
XW5173r100
The packages can be installed out of band using the IMM interface or in-band directly
from the operating system. In either method, in-band or out of band, the data is staged
into the firmware. While the system is in a start state there are sections of firmware
memory space that are locked (write protected). Only on the next system restart, during
the initialization phase, can these memory locations can be updated.
March 2009
67
XW5173r100
ASU
What is ASU?
ASU is the Advanced Settings Utility an on-line platform independent system firmware
configuration utility. It has a command line interface that integrates and consolidates
other configuration applications. Also available for unattended mode is a scripting
capability that can be used in batch mode setting.
Uses Legacy configuration files (DEF) that define system and subsystem specific
settings
IMM settings support does not require a configuration file. The configuration file is
embedded in the IMM.
www.ibm.com/systems/support/supportsite.wss/docdisplay?brandind=500
000 8&lndocid=MIGR-55021
Single command
o
Command line:
Output:
March 2009
68
XW5173r100
Syntax:
Command line:
batch_filename content:
Syntax:
o
Command set:
o
March 2009
69
XW5173r100
Save or restore
o
Replicate
o
Example:
asu save save.txt
save.txt content:
MM.HostName1=IMM-001A64E60694
IMM.HostIPAddress1=192.168.70.125
IMM.HostIPSubnet1=255.255.255.0
IMM.GatewayIPAddress1=0.0.0.0
ASU showvalues
Powerful command
Displays:
o
Example
March 2009
70
XW5173r100
asu showvalues
Sample output:
IMM.SNMPv3_AuthenticationProtocol.1=<HMAC-MD5>=HMAC-SHA
IMM.NTPFrequency= numeric min=0 max=3600 default=80
IMM.AuthorityLevel.1=<Supervisor>=ReadOnly=Custom
IMM.RemoteAlertRecipient_Status.1=<Enabled>=Disabled
IMM.SerialBaudRate=2400=4800=9600=19200=38400=57600=<115200>=230400
BootOrder.BootOrder==CD/DVD Rom=Floppy Disk=Hard Disk 0=Network=Hard
Disk 1=Hard Disk 2=Hard Disk 3=Hard Disk 4=USB
Storage=Diagnostics=iSCSI=iSCSI Critical=Legacy Only=Embedded Hypervisor
Local access
o
March 2009
71
XW5173r100
March 2009
72
XW5173r100
IMM
UEFI
SYSTEM_PROD_DATA
BootOrder
Settings Syntax
<group_id>.<setting_name>
March 2009
73
XW5173r100
Example:
o
IMM.HostIPAddress1=192.168.70.125
<group_id>.<setting_name>.<instance>
Example:
o
IMM.LoginId.1=USERID
asu showgroups
IMM
March 2009
SP (RSA replacement)
XW5173r100
Subset of F1 set up
UEFI
iSCSI
Syntax:
o
<group_id>.<setting_name>.<instance>
example: asu show imm.loginid.1 where the one is the decimal number
FRU configuration
March 2009
75
XW5173r100
Settings include:
SYSTEM_PROD_DATA.SysInfoProdName
SYSTEM_PROD_DATA.SysInfoSerialNum
SYSTEM_PROD_DATA.SysInfoUUID
SYSTEM_PROD_DATA.SysEncloseAssetTa
ASU
Syntax:
Connectivity Parameters:
o
March 2009
--host <ip_address>
76
XW5173r100
--user <user_id>
--password <password>
LAN/USB Access
o
Authentication is required
Host IP is optional
Example:
March 2009
XW5173r100
KCS
o
Fallback process to in-band LAN failures when LAN access when host is
not specified
Example:
Example:
o
asu set IMM.HostIPAddress1 192.168.70.125 --host <ip> [--user <user> -password <pwd>]
BootOrder.BootOrder=item1=item2=item-n
March 2009
78
XW5173r100
Savestat
iSCSI
ASU troubleshooting
March 2009
XW5173r100
March 2009
80
XW5173r100
Summary
This course enabled you to:
1. Explain what UEFI is and why it is now IBM's standard firmware interface.
2. Explain how to navigate within the UEFI interface.
3. Define the components that make up the UEFI components.
4. Define the firmware events and logging capabilities with a UEFI system.
5. Define how to interpret diagnostic codes.
6. Define the memory RAS features of UEFI.
7. Define other RAS features of UEFI.
8. Explain Legacy mode operations and CSM.
9. Define the boot operations and how to add a boot device.
10. Define how iFlash works.
11. Describe the principles of ASU.
UEFI is part of the next generation of servers moving away from the old BIOS systems
of yesterday. UEFI leaves in the past many of the legacy issues that have plagued the
servers such as 1801 errors. DOS tools and utilities are no longer supported allowing
the community to move ahead to more powerful tools in the support of this new platform
of systems.
This new generation of systems gives the service and support community more
powerful tools and logging capabilities. It provides a common/uniform tool platform and
methodology across the IBM System x and BladeCenter server environment.
March 2009
81
XW5173r100