Disclosed are a method and system for booting and boot code update, which
store a boot strapper that causes a boot loader or a backup boot loader
to be selectively executed during booting and the boot loader that is a
boot code for executing boot. The boot strapper is stored in a boot
update state area allocated in a non-volatile memory, it checks the boot
update state information to determine whether the update is stopped, the
boot update state information can be checked whether update for the boot
loader has stopped. If the update for the boot loader has not stopped,
the boot strapper executes the boot loader in a boot area, and if not,
the boot strapper executes a backup boot loader created by copying the
boot loader to a boot backup area allocated to the non-volatile memory.