The invention relates to a
recovery method for
BIOS firmware, and belongs to the field of computer systems. According to the method,
backup operation is carried out on the content of the FVMAINCOMPACT, an original FVMAINCOMPACTMAIN on a PcdBackFvBase address is normally started and executed, when the original is damaged, a
backup FVMAINCOMPACTBACKUP on the PcdFvBase Address address is executed, the content is transmitted to the DXE from the PEI stage in the form of establishing Hob, and updating of the original by the
backup is completed in the DXE; during compiling, an SHA256 hash value of an original is calculated and stored in Flash, and when
firmware is started and runs, whether a starting file changes or not is judged by comparing the hash value. According to the method, the problems that the mainboard has no
external storage equipment condition, and the
firmware startup fault needs to be recovered by
Recovery are solved; the SHA256 hash value is calculated through a tool during compiling, and the Sha256 hash value is dynamically calculated through an OpenslLib standard
library during starting, so that the basis for judging the damage of the firmware file is enhanced.