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 BE89FEB64D7 for ; Fri, 23 Jun 2023 12:22:55 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D151A865B6; Fri, 23 Jun 2023 14:22:48 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="Gfy3MEpD"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E1F4B8640D; Fri, 23 Jun 2023 14:22:41 +0200 (CEST) Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 9FB3786167 for ; Fri, 23 Jun 2023 14:22:35 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-3f8fe9dc27aso6449255e9.3 for ; Fri, 23 Jun 2023 05:22:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1687522955; x=1690114955; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=/L86VxfH9Cnv7bEp9BDy9YG+ZHl+KZRWUwv0NhSgDt0=; b=Gfy3MEpDybyzZ821mnA4FYm4zbz0/WQGneNnzEDatWDsld4WUs8v/aP/yLTfira4W4 J6VdZ0Qk2rgPo3ZxfPit4AfmywJKloVFTa8/AeJFuJ0XDNj3MCsMPOHZkyGiuQFpbV2m PnFlIGcd+3cLgzrouCXbzjbd20X5sOXdw8alw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687522955; x=1690114955; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/L86VxfH9Cnv7bEp9BDy9YG+ZHl+KZRWUwv0NhSgDt0=; b=g1E2aeJjwG6n673yafsScnnGKkPvKn3TWCpeKxpH97LJlcV3wlS8kVDUQnqHnRNySx e+k7ZA8mMdI0SZeBqWlq4bkuoT4kYXUCmPYLyImYddcO6gDJ9BzRYzwV33XiGrrf/gyp sHz44af5RHhOPfBIJWOAxYK8MxkXubtq6tEiwgzlDLpK/bHhcjicvK97YlvhI5lvHBYt TmucWToYN6oM5/iMJgsk9ufc2kTwwMLL6j0zz/qMzFWoqcYujVA8DQ9F61s/SKe20cPW O0FpNlEwHiMAUZJxLweNa7mAUDHbh54r2fAMmF9KztY27LmFCQhkgPnMtGKVT+9kZ2+E 7YWQ== X-Gm-Message-State: AC+VfDwuNr6nDX96fQvV6OgWAq0M0qRVEVzygP0QpfKfpGvNOLjuEHWp z1KBUYOwAECHjluYZoswT7OSajq/CpW94C+2bBJXCw== X-Google-Smtp-Source: ACHHUZ5O5hSOKMOyBuUWQ2DxljC+mg7D+htCh6PxWtpo+11V0ru/qpX8hf1ex/1pZXJGC8qlY3fQUQ== X-Received: by 2002:a05:600c:d7:b0:3f9:b1e7:8a47 with SMTP id u23-20020a05600c00d700b003f9b1e78a47mr10018337wmm.1.1687522954797; Fri, 23 Jun 2023 05:22:34 -0700 (PDT) Received: from sjg1.roam.corp.google.com (ip-185-104-136-50.ptr.icomera.net. [185.104.136.50]) by smtp.gmail.com with ESMTPSA id c11-20020a056000104b00b003063a92bbf5sm9499866wrx.70.2023.06.23.05.22.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Jun 2023 05:22:34 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Heinrich Schuchardt , Tom Rini , Simon Glass Subject: [PATCH v2 02/14] doc: Convert FIT source-file format to rST Date: Fri, 23 Jun 2023 13:22:02 +0100 Message-ID: <20230623122222.2267003-2-sjg@chromium.org> X-Mailer: git-send-email 2.41.0.162.gfafddb0af9-goog In-Reply-To: <20230623122222.2267003-1-sjg@chromium.org> References: <20230623122222.2267003-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Move this document and convert it to rST. Make minimal changes, enough for it to build successfully. Future patches will tidy this up. Signed-off-by: Simon Glass --- Changes in v2: - Update commit message - Tidy up the diagram alignment in two cases doc/usage/fit/index.rst | 2 + .../fit/source_file_format.rst} | 126 +++++++++--------- 2 files changed, 65 insertions(+), 63 deletions(-) rename doc/{uImage.FIT/source_file_format.txt => usage/fit/source_file_format.rst} (84%) diff --git a/doc/usage/fit/index.rst b/doc/usage/fit/index.rst index 40f0d1193626..93a962319035 100644 --- a/doc/usage/fit/index.rst +++ b/doc/usage/fit/index.rst @@ -9,3 +9,5 @@ doc/uImage.FIT .. toctree:: :maxdepth: 1 + + source_file_format diff --git a/doc/uImage.FIT/source_file_format.txt b/doc/usage/fit/source_file_format.rst similarity index 84% rename from doc/uImage.FIT/source_file_format.txt rename to doc/usage/fit/source_file_format.rst index 269e1fa0b580..bfe8f36c4a0c 100644 --- a/doc/uImage.FIT/source_file_format.txt +++ b/doc/usage/fit/source_file_format.rst @@ -64,16 +64,15 @@ The following picture shows how the new uImage is prepared. Input consists of image source file (.its) and a set of data files. Image is created with the help of standard U-Boot mkimage tool which in turn uses dtc (device tree compiler) to produce image tree blob (.itb). Resulting .itb file is the -actual binary of a new uImage. +actual binary of a new uImage:: - -tqm5200.its -+ -vmlinux.bin.gz mkimage + dtc xfer to target -eldk-4.2-ramdisk --------------> tqm5200.itb --------------> bootm -tqm5200.dtb /|\ -... | - 'new uImage' + tqm5200.its + + + vmlinux.bin.gz mkimage + dtc xfer to target + eldk-4.2-ramdisk --------------> tqm5200.itb --------------> bootm + tqm5200.dtb /|\ + | + 'new uImage' - create .its file, automatically filled-in properties are omitted - call mkimage tool on a .its file @@ -93,26 +92,25 @@ checking required. 3) Root node properties ----------------------- -Root node of the uImage Tree should have the following layout: - -/ o image-tree - |- description = "image description" - |- timestamp = <12399321> - |- #address-cells = <1> - | - o images - | | - | o image-1 {...} - | o image-2 {...} - | ... - | - o configurations - |- default = "conf-1" - | - o conf-1 {...} - o conf-2 {...} - ... - +Root node of the uImage Tree should have the following layout:: + + / o image-tree + |- description = "image description" + |- timestamp = <12399321> + |- #address-cells = <1> + | + o images + | | + | o image-1 {...} + | o image-2 {...} + | ... + | + o configurations + |- default = "conf-1" + | + o conf-1 {...} + o conf-2 {...} + ... Optional property: - description : Textual description of the uImage @@ -138,21 +136,21 @@ Root node of the uImage Tree should have the following layout: ----------------- This node is a container node for component sub-image nodes. Each sub-node of -the '/images' node should have the following layout: - - o image-1 - |- description = "component sub-image description" - |- data = /incbin/("path/to/data/file.bin") - |- type = "sub-image type name" - |- arch = "ARCH name" - |- os = "OS name" - |- compression = "compression name" - |- load = <00000000> - |- entry = <00000000> - | - o hash-1 {...} - o hash-2 {...} - ... +the '/images' node should have the following layout:: + + o image-1 + |- description = "component sub-image description" + |- data = /incbin/("path/to/data/file.bin") + |- type = "sub-image type name" + |- arch = "ARCH name" + |- os = "OS name" + |- compression = "compression name" + |- load = <00000000> + |- entry = <00000000> + | + o hash-1 {...} + o hash-2 {...} + ... Mandatory properties: - description : Textual description of the component sub-image @@ -202,9 +200,11 @@ the '/images' node should have the following layout: 5) Hash nodes ------------- -o hash-1 - |- algo = "hash or checksum algorithm name" - |- value = [hash or checksum value] +:: + + o hash-1 + |- algo = "hash or checksum algorithm name" + |- value = [hash or checksum value] Mandatory properties: - algo : Algorithm name, supported are "crc32", "md5" and "sha1". @@ -218,14 +218,14 @@ o hash-1 The 'configurations' node creates convenient, labeled boot configurations, which combine together kernel images with their ramdisks and fdt blobs. -The 'configurations' node has has the following structure: +The 'configurations' node has the following structure:: -o configurations - |- default = "default configuration sub-node unit name" - | - o config-1 {...} - o config-2 {...} - ... + o configurations + |- default = "default configuration sub-node unit name" + | + o config-1 {...} + o config-2 {...} + ... Optional property: @@ -240,15 +240,15 @@ o configurations 7) Configuration nodes ---------------------- -Each configuration has the following structure: +Each configuration has the following structure:: -o config-1 - |- description = "configuration description" - |- kernel = "kernel sub-node unit name" - |- fdt = "fdt sub-node unit-name" [, "fdt overlay sub-node unit-name", ...] - |- loadables = "loadables sub-node unit-name" - |- script = " - |- compatible = "vendor,board-style device tree compatible string" + o config-1 + |- description = "configuration description" + |- kernel = "kernel sub-node unit name" + |- fdt = "fdt sub-node unit-name" [, "fdt overlay sub-node unit-name", ...] + |- loadables = "loadables sub-node unit-name" + |- script = " + |- compatible = "vendor,board-style device tree compatible string" Mandatory properties: @@ -319,4 +319,4 @@ structure and data to 512 byte, other values available for other align size. 9) Examples ----------- -Please see doc/uImage.FIT/*.its for actual image source files. +Please see `doc/uImage.FIT/*.its` for actual image source files. -- 2.41.0.162.gfafddb0af9-goog