AMI-Aptio-BIOS-Reversed / AmiModulePkg / OFBD / Ofbd /
@Ajax Dong Ajax Dong authored 2 days ago
..
Ofbd.c Recovering names 2 days ago
Ofbd.h Recovering names 2 days ago
Ofbd.md Recovering names 2 days ago
README.md Recovering names 2 days ago
README.md

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 InitializeOfbdGlobals init, then RegisterOfbdFlashHandlers for OFBD setup
  • InitializeOfbdGlobals -- UEFI driver init: caches ImageHandle, SystemTable, BootServices, RuntimeServices
  • RegisterOfbdFlashHandlers -- Core OFBD flash management: registers SMI handlers for flash backup/recovery
  • OfbdCleanupOnFailure -- 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