# US 2003/0226006 A1 · Method and system of locating a firmware image in non-volatile memory

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

- Number: US 2003/0226006 A1
- Document ID: US20030226006A1
- Status: Published application
- Kind: A1
- Application number: 10/161,984
- Filed: 2002-06-04
- Published: 2003-12-04
- Earliest claimed: 2002-06-04
- Assignees: Hewlett-Packard Development Company, L.P.
- Inventors: Curtis C. Ballard
- Web page: https://patentgrep.com/patent/US20030226006A1

## CPC

- G06F 9/4401: Bootstrapping (security arrangements therefor G06F21/57)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method of locating a starting point of a firmware image in a non-volatile memory unit may include checking each of a number of possible starting points within the non-volatile memory unit until a code space signature is located that indicates the starting point of the firmware image. A system for implementing this method in a host device may include a non-volatile memory unit of the host device, and a boot module stored in the host device for execution by a processor, where the boot module is configured, when executed, to check each of a number of possible starting points for the firmware image within the non-volatile memory unit until a code space signature is located that indicates the starting point of the firmware image. A method of locating where in a non-volatile memory unit an incoming firmware image can be stored may include, on receipt of a the incoming firmware image, attempting to erase at least one block of the non-volatile memory unit and storing the incoming firmware image in the non-volatile memory unit where the attempt to erase succeeds. A system for implementing this method in a host device may include a processor of the host device for running an existing firmware image and a non-volatile memory unit of the host device, where the existing firmware image is configured, on receipt of a the incoming firmware image, to attempt erasure of at least one block of the non-volatile memory unit, and store the incoming firmware image in the non-volatile memory unit where the attempted erasure succeeds.

## Claims

### Claim 1

A method of locating a starting point of a firmware image in a non-volatile memory unit, said method comprising checking each of a number of possible starting points within said non-volatile memory unit until a code space signature is located that indicates said starting point of said firmware image.

### Claim 2 (depends on 1)

The method of claim 1, further comprising reading said firmware image from said non-volatile memory unit after identifying said starting point of said firmware image.

### Claim 3 (depends on 1)

The method of claim 1, wherein said checking each of a number of possible starting points further comprises checking a beginning of each of a number of memory blocks into which said non-volatile memory unit is divided.

### Claim 4

A method of locating a starting point of a firmware image in a non-volatile memory unit, comprising checking each of a number of possible starting points within said non-volatile memory unit until a code space signature is located that indicates said starting point of said firmware image.

### Claim 5 (depends on 4)

The method of claim 4, further comprising writing said code space signature in said non-volatile memory unit at a starting point of said firmware image when said firmware image is stored in said non-volatile memory unit, wherein said writing a code space signature further comprising writing an alphanumeric string as said code space signature.

### Claim 6 (depends on 4)

The method of claim 4, further comprising writing said code space signature in said non-volatile memory unit at a starting point of said firmware image when said firmware image is stored in said non-volatile memory unit, wherein said writing a code space signature further comprises selecting, as said code space signature, a data string that does not occur elsewhere in said non-volatile memory.

### Claim 7 (depends on 4)

The method of claim 4, further comprising overwriting an existing firmware image already in said non-volatile memory unit.

### Claim 8 (depends on 4)

The method of claim 4, wherein said checking each of a number of possible starting points further comprising skipping an initial portion of said non-volatile memory unit prior to checking possible starting points.

### Claim 9 (depends on 8)

The method of claim 8, wherein said skipping an initial portion of said non-volatile memory unit comprises skipping an initial eight kilobytes of said non-volatile memory unit.

### Claim 10

A system for locating a starting point of a firmware image in a non-volatile memory unit of a host device comprising:
said non-volatile memory unit of said host device; and
a boot module stored in said host device for execution by a processor;
wherein said boot module is configured, when executed, to check each of a number of possible starting points for said firmware image within said non-volatile memory unit until a code space signature is located that indicates said starting point of said firmware image.

### Claim 11 (depends on 10)

The system of claim 10, further comprising a random access memory unit connected to said non-volatile memory unit.

### Claim 12 (depends on 10)

The system of claim 10, wherein said boot code is further configured to read said firmware image from said non-volatile memory into a random access memory unit for execution after said starting point has been located.

### Claim 13

A system for locating a starting point of a firmware image in a non-volatile memory unit comprising:
means for writing a code space signature in said non-volatile memory unit at a starting point of said firmware image; and
means for checking each of a number of possible starting points within said non-volatile memory unit until said code space signature is located that indicates said starting point of said firmware image.

### Claim 14 (depends on 13)

The system of claim 13, wherein said means for writing writes said code space signature when said firmware image is originally loaded into said non-volatile memory unit.

### Claim 15

A method of locating where in a non-volatile memory unit an incoming firmware image can be stored, said method comprising, on receipt of a said incoming firmware image,
attempting to erase at least one block of said non-volatile memory unit; and
storing said incoming firmware image in said non-volatile memory unit where said attempt to erase succeeds.

### Claim 16 (depends on 15)

The method of claim 15, further comprising querying said non-volatile memory unit to identify a boot code location within said non-volatile memory before attempting to erase said at least one block of said non-volatile memory unit.

### Claim 17 (depends on 15)

The method of claim 15, further comprising overwriting an existing firmware image already in said non-volatile memory unit.

### Claim 18 (depends on 15)

The method of claim 15, wherein said attempting to erase at least one block of said non-volatile memory unit further comprising skipping an initial portion of said non-volatile memory unit prior to attempting to erase said at least one block receiving said incoming firmware image through a connector of a host device.

### Claim 19 (depends on 15)

The method of claim 15, wherein said skipping an initial portion of said non-volatile memory unit comprises skipping an initial eight kilobytes of said non-volatile memory unit.

### Claim 20 (depends on 15)

The method of claim 15, further comprising writing a code space signature at a starting point of said incoming firmware image stored in non-volatile memory.

### Claim 21

A system for locating where in a non-volatile memory unit an incoming firmware image can be stored, said system comprising:
a processor of said host device for running an existing firmware image;
wherein said existing firmware image is configured, on receipt of a said incoming firmware image, to attempt erasure of at least one block of a non-volatile memory unit, and store said incoming firmware image in said non-volatile memory unit where said attempted erasure succeeds.

### Claim 22 (depends on 21)

The system of claim 21, further comprising a boot module stored in said non-volatile memory, said boot module being stored in a locked block of said non-volatile memory unit where said attempted erasure fails.

### Claim 23 (depends on 21)

The system of claim 21, wherein said boot code is further configured, when executing, to check each of a number of possible starting points within said non-volatile memory unit until a code space signature is located indicating a starting point of said existing firmware image.

### Claim 24 (depends on 21)

The system of claim 21, further comprising random access memory in which said existing firmware image is stored for execution.

### Claim 25

A system for locating where in a non-volatile memory unit an incoming firmware image can be stored, said method comprising, on receipt of a said incoming firmware image,
means for attempting to erase at least one block of said non-volatile memory unit; and
means for storing said incoming firmware image in said non-volatile memory unit where said erasure succeeds.

### Claim 26 (depends on 25)

The system of claim 25, further comprising means for querying said non-volatile memory unit to identify a boot code location within said non-volatile memory.

### Claim 27 (depends on 25)

The system of claim 25, further comprising means for writing a code space signature at a starting point of said incoming firmware image stored in non-volatile memory.

### Claim 28

A method of locating a position in memory at which to store an incoming firmware image, said method storing a firmware image in memory with a header that comprises information about a location within memory of said firmware image.

### Claim 29 (depends on 28)

The method of claim 28, further comprising:
searching memory for a header associated with a firmware image;
locating said header;
determining if there is enough space in memory associated with said header to accommodate said incoming firmware image; and
if so, storing said incoming firmware image associated with said header.

### Claim 30 (depends on 29)

The method of claim 29, further comprising:
obtaining information about a location of a current firmware image in memory;
determining if there is sufficient space between a location of said located header and said location of a current firmware image to accommodate said incoming firmware image; and
if so, storing said incoming firmware image between said location of said located header and said location of a current firmware image.

### Claim 31 (depends on 30)

The method of claim 30, further comprising:
determining if there is sufficient space after said current firmware image to accommodate said incoming firmware image; and
if so, storing said incoming firmware image after said current firmware image.

### Claim 32 (depends on 28)

The method of claim 28, further comprising overwriting said current firmware image to accommodate said incoming firmware image.

### Claim 33

Computer-readable instructions for locating a starting point of a firmware image in a non-volatile memory unit, said instructions, when executed, causing a processor to check each of a number of possible starting points within said non-volatile memory unit until a code space signature is located that indicates said starting point of said firmware image.

### Claim 34 (depends on 33)

The computer-readable instructions of claim 33, said instructions further causing said processor to read said firmware image from said non-volatile memory unit after identifying said starting point of said firmware image.

### Claim 35 (depends on 33)

The computer-readable instructions of claim 33, said instructions further causing said processor to write a code space signature at a starting point of a firmware image stored in non-volatile memory.

### Claim 36

Computer-readable instructions for locating where in a non-volatile memory unit an incoming firmware image can be stored, said instructions, when executed, causing a processor to, on receipt of a said incoming firmware image,
attempt to erase at least one block of said non-volatile memory unit; and
store said incoming firmware image in said non-volatile memory unit where said attempt to erase succeeds.

### Claim 37 (depends on 36)

The computer-readable instructions of claim 36, said instructions further causing said processor to query said non-volatile memory unit to identify a boot code location within said non-volatile memory before attempting to erase said at least one block of said non-volatile memory unit.

### Claim 38

Computer-readable instructions for locating where in a non-volatile memory unit an incoming firmware image can be stored, said instructions, when executed, causing a processor to store a firmware image in memory with a header that comprises information about a location within memory of said firmware image.

### Claim 39 (depends on 38)

The computer-readable instructions of claim 38, said instructions further causing said processor to:
search memory for a header associated with a firmware image;
locate said header;
determine if there is enough space in memory associated with said header to accommodate said incoming firmware image; and
if so, store said incoming firmware image associated with said header.

### Claim 40 (depends on 39)

The computer-readable instructions of claim 39, said instructions further causing said processor to:
obtain information about a location of a current firmware image in memory;
determine if there is sufficient space between a location of said located header and said location of a current firmware image to accommodate said incoming firmware image; and
if so, store said incoming firmware image between said location of said located header and said location of a current firmware image.

### Claim 41 (depends on 39)

The computer-readable instructions of claim 39, said instructions further causing said processor to:
determine if there is sufficient space after said current firmware image to accommodate said incoming firmware image; and
if so, store said incoming firmware image after said current firmware image.
