none
Change Capsule Header Flags using INF RRS feed

  • Question

  • Hi, I am developing a device firmware update through UEFI Capsule Framework. In Microsoft's document mentions changing the Capsule Flags by INF file but not provide any example in it:

    https://docs.microsoft.com/en-us/windows-hardware/drivers/bringup/processing-updates

    Could someone point me a way or give me an example of doing such thing? I tried several ways but seems like not hit the keyword properly. My target is set the Capsule flags into CAPSULE_FLAGS_POPULATE_SYSTEM_TABLE. Here is my INF so far:

    [Version]

    Signature = "$WINDOWS NT$"

    Provider = %Provider%

    Class = Firmware

    ClassGuid = {xxxxxx-6468-4e36-b6f1-6488f42c1b52}

    DriverVer = 03/19/2018,99.9.9.9

    CatalogFile = xxCapsule.cat

    PnpLockdown = 1

    CapsuleFlags = 0x70000

    [Manufacturer]

    %MfgName% = Firmware,NTAMD64

    [Firmware.NTAMD64]

    %FirmwareDesc% = Firmware_Install,UEFI\RES_{xxxxxx-C3EB-44AA-B906-39CD03170770}

    [Firmware_Install.NT]

    CopyFiles = Firmware_CopyFiles

    [Firmware_CopyFiles]

    fmp.cap

    [Firmware_Install.NT.Hw]

    AddReg = Firmware_AddReg

    [Firmware_AddReg]

    HKR,,FirmwareId,,{xxxxxx-C3EB-44AA-B906-39CD03170770}

    HKR,,FirmwareVersion,%REG_DWORD%,0x99999999

    HKR,,FirmwareFilename,,{xxxxxx-C3EB-44AA-B906-39CD03170770}\fmp.cap

    HKR,,CapsuleFlags,%REG_DWORD%,0x70000

    [SourceDisksNames]

    1 = %DiskName%

    [SourceDisksFiles]

    fmp.cap = 1

    [DestinationDirs]

    DefaultDestDir = %DIRID_WINDOWS%,Firmware\{xxxxxx-C3EB-44AA-B906-39CD03170770}

    [Strings]

    ; localizable

    Provider = "xxx"

    MfgName = "xxx"

    FirmwareDesc = "xxFirmware"

    DiskName = "Firmware Update"

    ; non-localizable

    DIRID_WINDOWS = 10

    REG_DWORD = 0x00010001

    Thank a lot!

    Tuesday, March 27, 2018 9:35 AM