Patent ID: 8060794

Claim:
An electronic device comprising: a NAND flash memory comprising two storage areas, each of the storage areas comprising two blocks, each of the two blocks having a header and storing firmware image data, each header comprising a status flag of the firmware image data, a header number, and a checksum; at least one processor; and one or more programs stored in the NAND flash memory, executable by the at least one processor, the one or more programs comprising: a read module operable to read a lower header number from each of the storage areas if the checksum of each of the two headers in the storage area is correct, or read a header comprising a correct checksum from each of the storage areas if only one checksum of the two headers in the storage area is correct; an identification module operable to identify a storage area according to a status flag of the firmware image data in the read header, and determine if the NAND flash memory comprises a primary storage area or a secondary storage area according to identification of the storage area; a start module operable to initiate an operating system in the NAND flash memory according to data in the primary storage area if the NAND flash memory comprises the primary storage area, or initiate the operating system in the NAND flash memory according to data in the secondary storage area if the NAND flash memory comprises the secondary storage area and comprises no primary storage area; a notification module operable to provide notification that the operating system in the NAND flash memory has failed to initiate if the NAND flash memory does not comprise the primary storage area and the secondary storage area.