US 11,755,315 B2
Boot ROM update method and boot-up method of embedded system
Hyun Sook Hong, Hwaseong-si (KR); Ji Soo Kim, Seongnam-si (KR); Seung Jae Lee, Hwaseong-si (KR); and Seok Gi Hong, Suwon-si (KR)
Assigned to Samsung Electronics Co., Ltd.
Filed by SAMSUNG ELECTRONICS CO., LTD., Suwon-si (KR)
Filed on Aug. 17, 2019, as Appl. No. 16/543,533.
Claims priority of application No. 10-2018-0155212 (KR), filed on Dec. 5, 2018.
Prior Publication US 2020/0183677 A1, Jun. 11, 2020
Int. Cl. G06F 8/65 (2018.01); G06F 9/4401 (2018.01); H04L 9/30 (2006.01); H04L 9/32 (2006.01); G06F 21/57 (2013.01)
CPC G06F 8/66 (2013.01) [G06F 9/4401 (2013.01); G06F 21/575 (2013.01); H04L 9/30 (2013.01); H04L 9/3242 (2013.01); H04L 9/3247 (2013.01); G06F 2221/034 (2013.01)] 18 Claims
OG exemplary drawing
 
1. A boot Read-Only Memory (ROM) update method of an embedded system including a non-volatile memory, which includes a user data area and a boot ROM area that includes a first area and a second area, and a ROM, which is separate from the boot ROM area and which copies a first boot code from the boot ROM area during boot-up, the boot ROM update method comprising:
writing, from firmware of a memory controller that controls the non-volatile memory, a second boot code to the second area of the boot ROM area in response to a first ROM update command, the second boot code including a second boot ROM image and a second signature for the second boot ROM image;
verifying validity of the second signature written to the second area of the boot ROM area;
if the second signature written to the second area of the boot ROM area is valid, swapping the first area and the second area of the boot ROM area, and
before the swapping the first area and the second area of the boot ROM area, if a sudden power-off (SPO) occurs, detecting that power has been applied to initiate boot-up, performing boot-up using the first boot code, and writing the second boot code to the user data area in the non-volatile memory,
wherein the first boot code is disposed in the first area and includes a first boot ROM image and a first signature for the first boot ROM image.