# US 2024/0005004 A1 · Method and system for patching a boot process

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2024/0005004 A1
- Document ID: US20240005004A1
- Status: Published application
- Kind: A1
- Application number: 17/809,889
- Filed: 2022-06-29
- Published: 2024-01-04
- Earliest claimed: 2022-06-29
- Assignees: Ampere Computing LLC
- Applicants: Ampere Computing LLC
- Inventors: Harb ABDULHAMID; Scott WALTON; Kha NGUYEN
- Web page: https://patentgrep.com/patent/US20240005004A1

## CPC

- G06F 21/572: {Secure firmware programming, e.g. of basic input output system [BIOS]}
- G06F 8/65: Updates (security arrangements therefor G06F21/57)
- G06F 8/66: {of program code stored in read-only memory [ROM]}
- G06F 9/4401: Bootstrapping (security arrangements therefor G06F21/57)
- G06F 21/575: {Secure boot}
- G06F 2221/033: Test or assess software
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system and method are provided that enable a processor to have the immutable code and data that it uses for its boot process to be securely patched. A system may include a read only memory (ROM) storing one or more certificates and instructions, an array of one-time programmable (OTP) indicators, a bootstrap controller connected to the ROM and the array of OTP indicators, and a random access memory (RAM) connected to the bootstrap controller. The bootstrap controller is configured to verify integrity of firmware for boot based on certificates stored in ROM, check for a patch in the array of OTP indicators, and write the one or more certificates and the instructions in ROM and the patch into the RAM. The patch may be loaded into RAM by the bootstrap controller and overwrite ROM instructions or certificates in RAM.

## Claims

### Claim 1

A method of securely booting with patched firmware, the method comprising:
verifying integrity of firmware for boot based on certificates and instructions stored in read only memory (ROM);
checking for a patch in an array of one-time programmable (OTP) indicators;
writing the certificates and the instructions stored in the ROM into random access memory (RAM); and
writing the patch stored in the array of OTP indicators into RAM.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
overwriting at least a portion of the certificates or the instructions in the RAM with the patch from the array of OTP indicators.

### Claim 3 (depends on 1)

The method of claim 1, wherein the patch includes information to replace one or more ROM instructions or one or more ROM certificates.

### Claim 4 (depends on 1)

The method of claim 1, wherein the patch includes one or more instructions and one or more keys.

### Claim 5 (depends on 1)

The method of claim 1, wherein the patch is defined in the array of OTP indicators, the patch indicating a starting point in the RAM and a length of the patch in a header,
wherein the patch includes a signed-bit length field that indicates whether the patch is valid or not valid,
wherein if the patch is valid, the patch is read into the RAM, and
wherein, if the patch is not valid, a length indicated in the signed-bit length field is skipped in the array of OTP indicators.

### Claim 6 (depends on 1)

The method of claim 1, wherein the array of OTP indicators are efuses, EEPROM, or Flash memory.

### Claim 7 (depends on 1)

The method of claim 1, wherein the patch in the RAM includes a change-of-flow instruction to a point in the RAM where one or more instructions of the patch are stored.

### Claim 8 (depends on 1)

The method of claim 1, wherein the patch in the RAM includes one or more NO-OP instructions that replace or overwrite one or more instructions of the instructions originally stored in ROM.

### Claim 9

A apparatus for secure boot, the apparatus comprising:
a read only memory (ROM) storing one or more certificates and instructions;
an array of one-time programmable (OTP) indicators;
a bootstrap controller connected to the ROM and the array of OTP indicators; and
random access memory (RAM) connected to the bootstrap controller,
wherein the bootstrap controller is configured to:
verify integrity of firmware for boot based on certificates stored in ROM,
check for a patch in the array of OTP indicators,
write the one or more certificates and instructions in ROM into RAM, and
write the patch into the RAM.

### Claim 10 (depends on 9)

The apparatus of claim 9, wherein the bootstrap controller is configured to:
overwrite at least a portion of the certificates or the instructions in the RAM with the patch from the array of OTP indicators.

### Claim 11 (depends on 9)

The apparatus of claim 9, wherein the patch includes information to replace one or more ROM instructions or one or more ROM certificates.

### Claim 12 (depends on 9)

The apparatus of claim 9, wherein the patch includes one or more instructions and one or more keys.

### Claim 13 (depends on 9)

The apparatus of claim 9, wherein the patch is defined in the array of OTP indicators, the patch indicating a starting point in the RAM and a length of the patch in a header,
wherein the patch includes a signed-bit length field that indicates whether the patch is valid or not,
wherein if the patch is valid, the patch is read into the RAM, and
wherein, if the patch is not valid, a length indicated in the signed-bit length field is skipped in the array of OTP indicators.

### Claim 14 (depends on 9)

The apparatus of claim 9, wherein the array of OTP indicators are efuses, EEPROM, or Flash memory.

### Claim 15 (depends on 9)

The apparatus of claim 9, wherein the patch in the RAM includes a change-of-flow instruction to a point in the RAM where one or more instructions of the patch are stored.

### Claim 16 (depends on 9)

The apparatus of claim 9, wherein the patch in the RAM includes one or more NO-OP instructions that replace or overwrite one or more instructions of the instructions originally stored in ROM.

### Claim 17

A method for ensuring secure boot with patched firmware, the method comprising:
asserting at least one pin on a processor which permits programming a patch for firmware during booting the processor;
loading a patch certificate via an input of the processor, the patch certificate including a payload; and
programming one or more one-time programmable (OTP) indicators with the patch from the payload.

### Claim 18 (depends on 17)

The method of claim 17, wherein, after programming, the patch includes a signed-bit length field that indicates whether the patch is valid or not valid, and
wherein a length indicated in the signed-bit length field provides a number of the one or more OTP indicators to be skipped if the patch is not valid.

### Claim 19 (depends on 18)

The method of claim 18, further comprising:
loading another patch certificate; and
programming a signed bit of the signed-bit length field to invalidate the patch in the one or more OTP indicators based on the other patch certificate.

### Claim 20 (depends on 17)

The method of claim 17, wherein the patch is defined in the one or more OTP indicators, the patch indicating a starting point in RAM and a length of the patch in a header.
