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

PeiFrb

Index Module Size Phase
0413 PeiFrb.efi 0xA80 (2688 bytes) PEI

Overview

This PEIM implements Fault Resilient Booting (FRB) for the AMI IPMI stack. It detects the system reset type by querying CMOS RTC Status Register A and FRB timeout status memory (MMIO at 0xFDAF0490), then configures the FRB watchdog timeout value in the ServerSetup NVRAM variable and installs an FRB notification PPI. The default FRB timeout is 360 seconds (6 minutes).

Key Functions

  • ModuleEntryPoint -- UEFI PEI entry point
  • DetectResetType -- Reads CMOS RTC register A and FRB timeout MMIO to classify reset
  • GetFrbSetupData -- Locates ServerSetup variable and extracts FRB enable/timeout configuration
  • GetDebugOutputInterface -- Locates EFI_PEI_DEBUG2_PPI for debug output
  • Memset / FillTable8 -- Memory utility functions

Dependencies

  • PeiFrb.h (module header)
  • CMOS RTC I/O ports (0x70/0x71)
  • gEfiFirmwareVolumeBlock2ProtocolGuid -- FVB for NVRAM access
  • gPlatformSetupPpiGuid -- AMI platform setup PPI
  • gServerSetupVariableGuid -- AMI ServerSetup NVRAM variable

Platform

  • Architecture: IA32 (32-bit)
  • Machine type: x86 (0x014C)
  • Subsystem: EFI Boot Service Driver (0x000B)
  • Format: PE32
  • Image base: 0xFFE5EFB0
  • Sections: .text, .rdata, .data, .reloc