Method and system for booting and automatically updating software, and recovering from update error, and computer readable recording medium storing method
AssigneeSamsung Electronics Co., Ltd.
InventorJong-suk Lee
Life of this patent
Estimating the term…
Abstract
Provided are a booting method of updating software components installed in a system and recovering from an error that occurs in an update, a method and system for automatically updating the software and recovering from the error, and a computer readable recording medium storing the method. The master boot record and the backup boot record are used to stably update a kernel and effectively recover from an update error. The component configuration database is used to update a plurality of software components including a kernel in a transaction, and perfectly recover from an update error.
Claims8
A method for automatically updating software and recovering from an update error, the method comprising:
- executing a boot loader stored in a non-volatile memory, the non-volatile memory storing a current kernel, a master boot record including address information on the current kernel and a validity flag indicating whether the current kernel is valid, the boot loader that loads the current kernel to a random access memory (RAM) and executes the current kernel using the master boot record to boot a system, a previous kernel, and a backup boot record that includes address information on the previous kernel;
- determining whether the master boot record is valid based on the validity flag;
- if it is determined that the master boot record is valid, loading by the boot loader, the current kernel using the information on master boot record;
- and
- if it is determined that the master boot record is not valid, loading the previous kernel using the information on the backup boot record.
A non-transitory computer readable medium having embodied thereon a computer program for executing a method for automatically updating software and recovering from an update error, the method comprising:
- executing a boot loader stored in a non-volatile memory, the non-volatile memory storing a current kernel, a master boot record including address information on the current kernel and a validity flag indicating whether the current kernel is valid, the boot loader loads the current kernel to a random access memory (RAM) and executes the current kernel using the master boot record to boot a system, a previous kernel, and a backup boot record that includes address information on the previous kernel;
- determining whether the master boot record is valid based on the validity flag;
- if it is determined that the master boot record is valid, loading by the boot loader, the current kernel using the information on the master boot record;
- and
- if it is determined that the master boot record is not valid, loading the previous kernel using the information on the backup boot record.
A system for automatically updating software and recovering from an update error, the system comprising:
- a non-volatile memory storing a current kernel, a master boot record including address information on the current kernel, and a boot loader that loads the current kernel to a random access memory (RAM) and executes the current kernel using the master boot record to boot the system;
- and
- a processor executing the boot loader stored in the non-volatile memory,
- wherein the master boot record further comprises a validity flag indicating whether the current kernel is valid,
- the non-volatile memory further comprises a previous kernel and a backup boot record that includes address information on the previous kernel, and
- if it is determined that the master boot record is valid, the boot loader loads the current kernel using the information on the master boot record, and if it is determined that the master boot record is not valid, loading the previous kernel using the information on the backup boot record.
Dependencies are inferred from the claim text.