Skip to content

Verified boot tooling

Ben Whitten buildroot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2fs/ubi: decouple ubi & ubifsfs/Config.in fs/ubi/Config.in fs/ubi/ubi.mk +2 more+50 -71 reply
1/2fs/ubi: decouple ubi & ubifs+0 -01 reply
2/2fs/squashfs: enable squashfs to generate a verity hashtablefs/squashfs/Config.in fs/squashfs/squashfs.mk+16 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Buildroot] [PATCH RESEND 0/2] Verified boot tooling

Hi,
As my previous patches were eaten by the mailman because I hadn't subscribed to the mailing list, this is a resend so that all can see.
From the comments currently this is probbably not the way to approach what I am trying to do, but is interesting nevertheless.

My goal is to have a UBI containing a squashfs volume, dm-verity hash table, and kernel FIT.
Currently the way to do that would be get buildroot to generate the individual artifacts, rootfs.squashfs, zImage, some.dtb, then assemble the UBI per board. Using post_image processingi, hash the rootfs.squashfs with veritysetup, assemble the FIT, then assemble with ubinize directly (or genimage now that I see there is FIT support ~4 days ago).

As there are already KConfigs around the various ubinize options for ubi+ubifs I split these apart and added depends so that the UBI step came last. This meant that my ubinize.cfg could point at the squashfs and verity artifacts.

I'm happy either way, if post processing is the way to go so be it but it seems there may be a lot of duplicated code of people attempting the same sort of things, quite a lot just point at or wrap genimage.

Thanks,
Ben Whitten (2):
fs/ubi: decouple ubi & ubifs
fs/squashfs: enable squashfs to generate a verity hashtable

 fs/Config.in            |  3 ++-
 fs/squashfs/Config.in   |  6 ++++++
 fs/squashfs/squashfs.mk | 10 ++++++++++
 fs/ubi/Config.in        | 34 +++++++++++++++++++++++++++++++---
 fs/ubi/ubi.mk           | 14 +++++++++++++-
 fs/ubi/ubinize.cfg      |  4 ++--
 fs/ubifs/Config.in      |  2 ++
 7 files changed, 66 insertions(+), 7 deletions(-)
Signature · 1 line
2.7.4