# US 2021/0279049 A1 · Firmware upgrade method and apparatus

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

- Number: US 2021/0279049 A1
- Document ID: US20210279049A1
- Status: Published application
- Kind: A1
- Application number: 17/119,657
- Filed: 2020-12-11
- Published: 2021-09-09
- Earliest claimed: 2017-12-28
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Michael Nolan; Keith Nolan; Pat Cheevers; Jurijs Kacs; Wael Guibene; Charlie Sheridan; Cliodhna Ni Scanaill; Mark Kelly
- Web page: https://patentgrep.com/patent/US20210279049A1

## CPC

- G06F 8/65: Updates (security arrangements therefor G06F21/57)
- G06F 8/64: {Retargetable}
- G06F 8/654: using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories
- G06F 8/71: Version control (security arrangements therefor G06F21/57); Configuration management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method and apparatus are disclosed for performing authenticated firmware updates of a fog or IoT device, which happens concurrent with a field update of a component coupled to the device, such as a battery.

## Claims

### Claim 1

(canceled)

### Claim 2

A replaceable hardware apparatus adapted to be coupled to a target device, the replaceable hardware apparatus comprising:
a hardware resource configured to be physically coupled to the target device, wherein the target device includes a memory device to store instructions that provide firmware instructions or software instructions for operation of the target device;
a storage device configured to store update data for deployment to the target device;
circuitry configured to host a trusted execution environment; and
a microcontroller comprising embedded memory to execute microcontroller instructions, wherein execution of the microcontroller instructions cause the microcontroller to:
detect coupling of the hardware resource to the target device;
control interaction between the replaceable hardware apparatus and the target device;
perform attestation of attributes of the replaceable hardware apparatus to the target device, using the trusted execution environment; and
cause an update of at least one of: data, software instructions, or firmware instructions of the target device, using the update data obtained from the storage device, based on the attestation of the attributes of the replaceable hardware apparatus.

### Claim 3 (depends on 2)

The apparatus of claim 2, wherein the update of the software instructions or the firmware instructions of the target device causes one or more of:
upgrading of a current version of the firmware instructions of the target device;
upgrading of a current version of the firmware instructions of a hardware component of the target device;
downgrading of the current version of the firmware instructions of the target device;
downgrading of the current version of the firmware instructions of the hardware component of the target device;
initializing an execution environment of the target device with configuration settings and software;
initializing a hardware component of the target device with configuration settings and software;
upgrading the software instructions on the target device to fix bugs or provide new functionality;
upgrading the software instructions on the hardware component of the target device to fix bugs or provide new functionality;
re-installing software instructions or firmware instructions on the target device;
re-installing software instructions or firmware instructions on a hardware component of the target device;
upgrading software instructions or firmware instructions of the target device to support a new hardware component; and
upgrading software instructions or firmware instructions of the hardware component of the target device to support the new hardware component.

### Claim 4 (depends on 2)

The apparatus of claim 2, wherein the trusted execution environment is configured to isolate execution of the microcontroller instructions.

### Claim 5 (depends on 2)

The apparatus of claim 2, wherein the execution of the microcontroller instructions further cause the microcontroller to:
save a current version of the data, the software instructions, or the firmware instructions of the target device; and
revert to the current version of the data, the software instructions, or the firmware instructions in response to a failure to replace the current version with the update data.

### Claim 6 (depends on 2)

The apparatus of claim 2, wherein the storage device is further configured to store data providing a registry of version information of the target device, and wherein the execution of the microcontroller instructions further cause the microcontroller to compare the version information with version information associated with the update data.

### Claim 7 (depends on 6)

The apparatus of claim 6, wherein the execution of the microcontroller instructions further cause the microcontroller to verify permission to replace the data, the software instructions, or the firmware instructions with the update data.

### Claim 8 (depends on 7)

The apparatus of claim 7, wherein the execution of the microcontroller instructions further cause the microcontroller to provide an alert in response to a failure to replace the data, the software instructions, or the firmware instructions with the update data.

### Claim 9 (depends on 2)

The apparatus of claim 2, wherein the update of the data, the software instructions, or the firmware instructions is initiated by the target device, in response to the target device detecting the coupling of the replaceable hardware apparatus to the target device.

### Claim 10 (depends on 2)

The apparatus of claim 2, wherein the replaceable hardware apparatus is a battery device, a capacitor device, an automotive component, or a drone component.

### Claim 11

A non-transitory machine-readable medium having instructions stored therein that, when executed by circuitry of a replaceable hardware apparatus, cause the replaceable hardware apparatus to:
detect coupling of a hardware resource of the replaceable hardware apparatus to a target device;
obtain update data for deployment to the target device,
perform attestation of attributes of the replaceable hardware apparatus to the target device, using a trusted execution environment of the replaceable hardware apparatus; and
control an update of at least one of: data, software instructions, or firmware instructions of the target device, using the update data, the update data configured for deployment on the target device based on the attestation of the attributes of the replaceable hardware apparatus.

### Claim 12 (depends on 11)

The machine-readable medium of claim 11, wherein the update of the software instructions or firmware instructions of the target device causes one or more of:
upgrading of a current version of the firmware instructions of the target device;
upgrading of a current version of the firmware instructions of a hardware component of the target device;
downgrading of the current version of the firmware instructions of the target device;
downgrading of the current version of the firmware instructions of the hardware component of the target device;
initializing an execution environment of the target device with configuration settings and software;
initializing a hardware component of the target device with configuration settings and software;
upgrading the software instructions on the target device to fix bugs or provide new functionality;
upgrading the software instructions on the hardware component of the target device to fix bugs or provide new functionality;
re-installing software instructions or firmware instructions on the target device;
re-installing software instructions or firmware instructions on a hardware component of the target device;
upgrading software instructions or firmware instructions of the target device to support a new hardware component; and
upgrading software instructions or firmware instructions of the hardware component of the target device to support the new hardware component.

### Claim 13 (depends on 11)

The machine--readable medium of claim 11, wherein the trusted execution environment is configured to isolate execution of the instructions.

### Claim 14 (depends on 11)

The machine-readable medium of claim 11, wherein the instructions further the circuitry to:
save a current version of the data, the software instructions, or the firmware instructions of the target device; and
revert to the current version of the data, the software instructions, or the firmware instructions in response to a failure to replace the current version with the update data.

### Claim 15 (depends on 11)

The machine-readable medium of claim 11, wherein the replaceable hardware apparatus is further configured to store data providing a registry of version information of the target device, and wherein the instructions further cause the circuitry to compare the version information with version information associated with the update data.

### Claim 16 (depends on 15)

The machine-readable medium of claim 15, wherein the instructions further cause the circuitry to verify permission to replace the data, the software instructions, or the firmware instructions with the update data.

### Claim 17 (depends on 16)

The machine-readable medium of claim 16, wherein the instructions further cause the circuitry to provide an alert in response to a failure to replace the data, the software instructions, or the firmware instructions with the update data.

### Claim 18 (depends on 11)

The machine-readable medium of claim 11, wherein the update of the data, the software instructions, or the firmware instructions is initiated by the target device, in response to the target device detecting the coupling of the replaceable hardware apparatus to the target device.

### Claim 19 (depends on 11)

The machine-readable medium of claim 11, wherein the replaceable hardware apparatus is a battery device, a capacitor device, an automotive component, or a drone component.

### Claim 20

A replaceable hardware resource apparatus, comprising:
means for detecting a coupling of the hardware resource apparatus to a target device;
communication means for controlling communications between the hardware resource apparatus and the target device;
attestation means for performing attestation of attributes of the hardware resource apparatus to the target device, using a trusted execution environment; and
update means for causing installation of at least one of: data, software instructions, or firmware instructions onto the target device, based on deployment of the installation on the target device and the attestation of the attributes of the hardware resource apparatus.

### Claim 21 (depends on 20)

The replaceable hardware resource apparatus of claim 20, wherein the hardware resource apparatus is a battery device, a capacitor device, an automotive component, or a drone component.
