# US 2010/0169750 A1 · Firmware verification using system memory error check logic

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

- Number: US 2010/0169750 A1
- Document ID: US20100169750A1
- Status: Published application
- Kind: A1
- Application number: 12/345,868
- Filed: 2008-12-30
- Published: 2010-07-01
- Earliest claimed: 2008-12-30
- Assignees: Intel Corporation
- Inventors: Yen Hsiang Chew; Bok Eng Cheah; Kooi Chi Ooi; Shanggar Periaman
- Web page: https://patentgrep.com/patent/US20100169750A1

## CPC

- G06F 21/572: {Secure firmware programming, e.g. of basic input output system [BIOS]}
- H03M 13/19: Single error correction without using particular properties of the cyclic codes, e.g. Hamming codes, extended or generalised Hamming codes
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H03M: CODING; DECODING; CODE CONVERSION IN GENERAL (using fluidic means F15C4/00; optical analogue/digital converters G02F7/00; coding, decoding or code conversion, specially adapted for particular applications, see the relevant subclasses, e.g. G01D, G01R, G06F, G06T, G09G, G10L, G11B, G11C, H04B, H04L, H04M, H04N; ciphering or deciphering for cryptography or other purposes involving the need for secrecy G09C)

## Abstract

Embodiments of an invention for verifying firmware using system memory error check logic are disclosed. In one embodiment, an apparatus includes an execution core, firmware, error check logic, non-volatile memory, comparison logic, and security logic. The error check logic is to generate, for each line of firmware, an error check value. The comparison logic is to compare stored error check values from the non-volatile memory with generated error check values from the error check logic. The security logic is to prevent the execution core from executing the firmware if the comparison logic detects a mismatch between the stored error code values and the generated error code values.

## Claims

### Claim 1

An apparatus comprising:
an execution core;
firmware;
error check logic to generate, for each line of firmware, an error check value;
a first non-volatile memory;
comparison logic to compare stored error check values from the non-volatile memory with generated error check values from the error check logic; and
security logic to prevent the execution core from executing the firmware if the comparison logic detects a mismatch between the stored error code values and the generated error code values.

### Claim 2 (depends on 1)

The apparatus of claim 1, further comprising a second non-volatile memory, wherein the error check logic is to generate the error check value in connection with reading the line of firmware from the second non-volatile memory.

### Claim 3 (depends on 1)

The apparatus of claim 1, further comprising system memory, wherein the error check logic is to generate the error check value in connection with writing the line of firmware to the system memory.

### Claim 4 (depends on 1)

The apparatus of claim 1, wherein the firmware includes a bootstrap loader.

### Claim 5 (depends on 1)

The apparatus of claim 1, wherein the error check logic includes error correction code logic.

### Claim 6

A method comprising:
generating an error check value for a line of firmware;
comparing the generated error check value with a stored error check value;
executing the line of firmware only if the generated error check value matches the stored error check value.

### Claim 7 (depends on 6)

The method of claim 6, further comprising repeating the generating, comparing, and executing for each line of the firmware.

### Claim 8 (depends on 6)

The method of claim 6, further comprising reading the line of firmware from a non-volatile memory in connection with generating the error code value.

### Claim 9 (depends on 6)

The method of claim 6, further comprising writing the line of firmware to a system memory in connection with generating the error code value.

### Claim 10 (depends on 6)

The method of claim 6, further comprising executing the firmware from the system memory.

### Claim 11 (depends on 6)

The method of claim 6, further comprising reading the stored error check value from a non-volatile memory prior to comparing.

### Claim 12 (depends on 11)

The method of claim 11, further comprising writing the stored error check value to the non-volatile memory prior to reading.

### Claim 13 (depends on 11)

The method of claim 11, further comprising generating the stored error check value from a firmware update prior to writing.

### Claim 14 (depends on 12)

The method of claim 12, further comprising establishing a secure system environment prior to writing.

### Claim 15 (depends on 13)

The method of claim 13, further comprising authenticating the firmware update prior to writing.

### Claim 16

An apparatus comprising:
error check logic to generate an error check value for a line of firmware;
comparison logic to compare the generated error check value with a stored error check value; and
security logic to prevent an execution core from executing the line firmware if the comparison logic detects a mismatch between the generated error code value and the stored error check value.

### Claim 17 (depends on 16)

The apparatus of claim 16, further comprising read logic to read the line of firmware from a non-volatile memory in connection with the error check logic generating the error check value.

### Claim 18 (depends on 16)

The apparatus of claim 16, further comprising write logic to write the line of firmware to a system memory in connection with the error check logic generating the error check value.

### Claim 19 (depends on 16)

The apparatus of claim 16, wherein the stored error check value is stored in a non-volatile memory.

### Claim 20 (depends on 19)

The apparatus of claim 19, wherein the security logic is to prevent writes to the non-volatile memory except for an authenticated firmware update.
