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

Ofbd

Index: 0212
Size: 35,428 bytes (8A64h)
Phase: SMM (DXE_SMM_DRIVER)
Source Package: AmiModulePkg (On-board Flash Backup/Diagnostic)

Overview

SMM-based on-board flash backup and diagnostic driver. Provides firmware backup, recovery, and diagnostic services from within SMM context. Handles SPI flash region protection and backup operations during system runtime, enabling secure firmware update and recovery. Has a .reloc section for runtime relocation. At 35.4KB, it is one of the larger SMM modules in this batch, with substantial .text (23.4KB) and .data (3.5KB) segments.

Key Functions

  • ModuleEntryPoint -- Main entry: calls sub_53C init, then sub_A30 for OFBD setup
  • sub_53C -- UEFI driver init: caches ImageHandle, SystemTable, BootServices, RuntimeServices
  • sub_A30 -- Core OFBD flash management: registers SMI handlers for flash backup/recovery
  • sub_3520 -- Error cleanup handler called when initialization fails

Protocols

  • EFI_SMM_SYSTEM_TABLE2 for SMM services
  • SPI (Serial Peripheral Interface) protocol for flash access
  • Firmware Volume Block protocol
  • SMM SPI protocol for protected flash region access

Platform

HR650X (Purley), built from AmiModulePkg, DEBUG VS2015 X64