Skip to content

Add support for signing u-boot FIT images #48

@lnussel

Description

@lnussel

u-boot's native format to load images that consist of several components is FIT (https://fitspec.osfw.foundation/). It's also possible to sign them to allow for verified boot. That is documented here: https://docs.u-boot.org/en/stable/usage/fit/index.html. Esp https://docs.u-boot.org/en/stable/usage/fit/signature.html

The mkimage tool can be used to add signatures to fit images. Either on build time or afterwards. The slightly weird part is that mkimage produces a dtb file with the key parameters used for signing. This file is then supposed to be compiled into u-boot (or baked into the hardware). So in context of OBS a feature would be needed similar to needssslcertforbuild to provide the key information as dtb. For the actual signing I guess a mechanism similar to pesign-obs-integration would be needed.

Here's an example image build that uses mkimage (without signing) to produce fit images:
https://build.opensuse.org/package/show/home:lnussel:debbuild/image-qemu

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions