[Solved] Update of an ASUS AMI BIOS Module w/o Flash Problem

From: pbatard/efifs in GitHub . com (site):
FFS, which stands for: ‘For F@%k’s Sake, IT’S CALLED A MODULE!!’ is a convenient repackaging of the EDK2’s GenSec and GenFfs utilities, with the aim of easing up the generation of what intel/EDK calls FFS’s (whatever that abbreviation means) which are MODULES, that can be integrated into a regular UEFI firmware.

This can be useful if, for instance, you have UEFI driver executables, which you want to make available in your UEFI “BIOS”.

… …
Address Size Designation


EFI_FFS_FILE_HEADER:
0x0000 16 Name (EFI_GUID)
0x0010 1 IntegrityCheck.Header (Header Checksum)
0x0011 1 IntegrityCheck.File → set to 0xAA (FFS_FIXED_CHECKSUM) and clear bit 0x40 of Attributes
0x0012 1 FileType → 0x07 = EFI_FV_FILETYPE_DRIVER
0x0013 1 Attributes → 0x00
0x0014 3 Size, including header and all other sections
0x0017 1 State (unused) → 0X00

EFI_COMMON_SECTION_HEADER:
0x0000 3 Size, including this header
0x0003 1 Type → 0x10 (EFI_SECTION_PE32)
0x0004 ####

EFI_COMMON_SECTION_HEADER:
0x0000 3 Size, including this header
0x0003 1 Type → 0x15 (EFI_SECTION_USER_INTERFACE)
0x0004 #### NUL terminated UTF-16 string (eg “FAT\0”)

EFI_COMMON_SECTION_HEADER:
0x0000 3 Size, including this header
0x0003 1 Type → 0x14 (EFI_SECTION_VERSION)
0x0004 #### NUL terminated UTF-16 string (eg “1.0\0”)
… … …
GenSec -o pe32.sec ntfs_x64.efi -S EFI_SECTION_PE32
GenSec -o name.sec -S EFI_SECTION_USER_INTERFACE -n “NTFS”
GenSec -o ver.sec -S EFI_SECTION_VERSION -n “1.0”

GenFfs -d 1 -g “12341234-1234-1234-1234-123412341234” -o ntfs.ffs -i pe32.sec -i name.sec -i ver.sec -t EFI_FV_FILETYPE_DRIVER
… … …
From: pbatard/efifs in GitHub . com (site):
… … …


Best Regards.
Dioskouridis.