Redigera

Dela via


Device I/O from the UEFI environment

When the Windows OS loader calls the UpdateCapsule function, each capsule contained in the CapsuleHeaderArray is executed. The order of capsule execution is dependent on the UEFI firmware implementation, and a capsule cannot make any assumption as to the order of its execution relative to other capsules or take any dependencies on other capsules. Each capsule is a self-contained payload, comprising both the executable UEFI code to manage the update and the firmware image.

When the capsule is called, the executable code contained in the capsule is responsible for opening a communication channel with the target device. The appropriate channel will depend on the system's device topology, the capabilities of the target device, and the UEFI boot services and drivers provided by the particular UEFI implementation. Capsule implementers may need to consult with the UEFI BIOS vendor regarding the options available in the targeted UEFI environment. Typically, communication is established by utilizing a UEFI device driver for the given device. This driver enables the capsule update code to bind to the device via a well-known device path using the appropriate protocol.

After communication is established, the update management code writes the firmware image to the targeted device. After completing the update, an appropriate return status code is written to the device's Firmware Resource Entry in the ESRT. The update management code then returns control to the UpdateCapsule function.

For details on the UpdateCapsule function, the structure of a capsule, and UEFI boot services drivers and protocols, refer to the UEFI specification.

ESRT table definition

Plug and play device

Authoring an update driver package

Processing updates

Seamless crisis prevention and recovery

Firmware update status