Patent ID: 8627098

Claim:
An electronic device, comprising: a baseboard management controller (BMC) storing BMC firmware; a basic input-output system (BIOS) storing BIOS firmware; a storage device, and at least one processor; and one or more modules that are stored in the storage device and executed by the at least one processor, the one or more modules comprising: a first writing module that writes a first verification code into the BMC firmware, and writes a second verification code into the BIOS firmware; a second writing module that writes the BMC firmware into the BMC, and writes the BIOS firmware into the BIOS; a first verification module verifies whether the first verification code of the BMC firmware is identical to the second verification code of the BIOS firmware when the electronic device starts a power-on self-test; a triggering module that triggers the electronic device to power off if the first verification code of the BMC firmware is not identical to the second verification code of the BIOS firmware, and boots an operating system of the electronic device if the first verification code of the BMC firmware is identical to the second BIOS code of the BIOS firmware; wherein a second verification module that verifies whether the first verification code of the BMC firmware is identical to the second verification code of the BIOS firmware when the SMI of the electronic device is triggered; and wherein a halt module that halts all input and output ports of the electronic device to protect data of the electronic device and triggers an alarm generator of the electronic device to generate an alarm message, if the first verification code of the BMC firmware is not identical to the second verification code of the BIOS firmware.