摘要 |
A FLASH system includes two system image partitions each storing an updating program, a first boot variable partition storing a first boot variable, a second boot variable partition storing a second boot variable, and a bootloader partition storing a bootloader program. The updating program checks whether the first boot variable is valid or not, and selects which system image partition to be updated according to the first boot variable. The updating program further checks whether the FLASH system is successfully updated or not so as to report back a failure or modify the value of the first boot variable and then copy all data of the first boot variable partition to replace those of the second boot variable partition. The bootloader program checks whether the first boot variable is valid or not, and selects which system image partition to be booted according to the first boot variable. |