| CPC G06F 1/266 (2013.01) [G06F 1/263 (2013.01); G06F 13/4282 (2013.01); G06F 2213/0042 (2013.01)] | 10 Claims |

|
1. A mainboard device, comprising:
a flash memory, configured to store a code of a basic input-output system;
a USB port, configured to be connected to an external USB device, wherein the external USB device comprises a supply power and stores an update code of the basic input-output system; and
a microprocessor, comprising a power-switching device coupled to system power and the USB port, wherein when the power-switching device detects that the system power does not provide power and the USB port is provided with the supply power, the microprocessor provides power to the flash memory based on the supply power, and the microprocessor accesses the update code of the external USB device to perform an update operation on the code in the flash memory.
|