Newer
Older
AMI-Aptio-BIOS-Reversed / Bds / README.md
@Ajax Dong Ajax Dong 2 days ago 1 KB Init

Bds

Index: 0222 | Size: 43,136 bytes (172,544 body) | Phase: DXE

Overview

The Boot Device Selection (BDS) phase UEFI DXE driver from American Megatrends (AMI). Implements the UEFI BDS phase -- the bridge between firmware initialization and OS boot. Handles boot manager, boot option enumeration, device connection, driver loading, SysPrep processing, console initialization, and ultimately boot device selection and OS handoff. Includes Lenovo-specific IPMI boot management and Fixed Boot Order (FBO) extensions. Overrides firmware vendor to "American Megatrends" (revision 5.00.14).

Key Functions

  • ModuleEntryPoint -- Two-phase entry: library init then BDS protocol installation
  • sub_988 -- Main BDS entry: installs BDS architecture protocol, boot option support, CSM policy
  • sub_2C5C -- Boot option loader: reads BootOrder, "Boot%04X" variables, dispatches device path or file path boots
  • sub_13B8 -- Driver loader: reads DriverOrder and loads UEFI driver images
  • sub_1E78/sub_1F78 -- Console init: connects ConOut/ConIn/ErrOut devices
  • sub_7D14 -- Boot Manager Protocol: SetNextBootOption, GetBootOptionList, StartBootOption

Protocols/Dependencies

  • UEFI BDS Architecture Protocol (installed), BootOptionSupport Protocol
  • Block I/O, Simple File System, Device Path, SNP network protocols
  • Lenovo IPMI Protocol, ME Storage Protocol, Capsule Update support

Platform

Intel Purley (Xeon Scalable), HR650X -- AMI AmiModulePkg/Bds/