Skip to content

Remove "img/final.fwid" in favor of tooling in hubtools #2026

@lzrd

Description

@lzrd

The "img/final.fwid" files are a second source of truth and should be eliminated in favor of better tooling. They are present in Hubris archives but not in Bootleby archives.

The hubtools crate should include firmware ID (fwid) calculations from an archive or raw binary file. See rot-fwid and the fwid calculations in hubris build/xtask/src/dist.rs:package().

SoC quirks come into play so that data exfiltration can be detected:

  • STM32H753: the full flash bank is padded with 0xff to the end
  • LPC55S69: the last SoC-sized flash page of the image is padded with 0xff and the unprogrammed pages to the end of the flash area are not readable and not part of the hash.

Metadata

Metadata

Assignees

Labels

buildAffects or requires changes in the build systemsecurityFixing this would improve system security

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions