Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 65CCBCD4F24 for ; Wed, 13 May 2026 12:13:34 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EA30684099; Wed, 13 May 2026 14:13:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=makrotopia.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 735BA845E3; Wed, 13 May 2026 14:13:30 +0200 (CEST) Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [IPv6:2a07:2ec0:3002::65]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3C5AB836AC for ; Wed, 13 May 2026 14:13:28 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=makrotopia.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=daniel@makrotopia.org Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.99) (envelope-from ) id 1wN8SZ-000000005Fg-1oQK; Wed, 13 May 2026 12:13:07 +0000 Date: Wed, 13 May 2026 13:13:01 +0100 From: Daniel Golle To: Heinrich Schuchardt Cc: Tom Rini , Simon Glass , Mario Six , Quentin Schulz , Kory Maincent , Mattijs Korpershoek , Anshul Dalal , Martin Schwan , Sughosh Ganu , Ilias Apalodimas , Benjamin ROBIN , Ludwig Nussel , Marek Vasut , James Hilliard , Wolfgang Wallner , Rasmus Villemoes , Peng Fan , Neil Armstrong , Sam Protsenko , Svyatoslav Ryhel , Michal Simek , Pieter Van Trappen , Dinesh Maniyam , Mayuresh Chitale , Shiji Yang , Aristo Chen , Francois Berder , u-boot@lists.denx.de Subject: Re: [PATCH v4 5/8] doc: fit: add dm-verity boot parameter documentation Message-ID: References: <731b6abb01956fa028697aad167e6f705b187ecd.1778637233.git.daniel@makrotopia.org> <489A2B5F-17AB-4220-AEEF-705C544F973D@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <489A2B5F-17AB-4220-AEEF-705C544F973D@gmx.de> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean On Wed, May 13, 2026 at 06:13:14AM +0200, Heinrich Schuchardt wrote: > Am 13. Mai 2026 04:09:29 MESZ schrieb Daniel Golle : > >Add documentation for CONFIG_FIT_VERITY which allows U-Boot to > >construct dm-mod.create= and dm-mod.waitfor= kernel command-line > >parameters from dm-verity metadata embedded in FIT filesystem > >sub-images. > > > > [...] > > > >+Prerequisites > >+------------- > >+ > >+* **Linux uImage.FIT block driver** – the kernel must include the FIT block > >+ driver that exposes loadable sub-images as ``/dev/fit0``, ``/dev/fit1``, > > > The dtb file format of FIT images only guarantees 4 byte alignment. Does that match with the requirement of file-system drivers including dma access if the FIT is for example on eMMC? Or do we need a mechanism to enforce higher alignment in FIT images? The fitblk driver requires the 'filesystem' image to start and end on block boundaries of the underlying block device. As the 'filesystem' image is outside of the FIT structure itself (external data) this can be achieved by having `mkimage -E -B 0x1000`. This is a restriction of the current implementation of the fitblk driver to avoid the complexity (and computation overhead) which comes with unaligned access (a lot of memcpy, basically...). Future implementations may no longer have that restriction, while of course performance will always slightly suffer from the image not being aligned with the block size of the lower device. Hence I consider this current resitriction something to be documented along with the fitblk driver, and outside of the scope of what U-Boot itself is involved with.