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 8F9E5EB64DA for ; Thu, 22 Jun 2023 20:23:28 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AB78E8629B; Thu, 22 Jun 2023 22:23:26 +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="etQ3KqOg"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 249F4862B9; Thu, 22 Jun 2023 22:23:25 +0200 (CEST) Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) (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 7B95684724 for ; Thu, 22 Jun 2023 22:23:22 +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-lf1-x12f.google.com with SMTP id 2adb3069b0e04-4f957a45b10so3637394e87.0 for ; Thu, 22 Jun 2023 13:23:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1687465401; x=1690057401; 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=62Go70B+trJmLR4YECe227ZId7pJSYJ5qQY4eEiLAsg=; b=etQ3KqOgYs87yx5vO0Nj5VomfykouR47x0lIJBS+6ifSBAWNU8qRKrZvmJ71SX5Zvz /7KwztW82uS5XKcfis4PlTN/p18k4Nb3pfDT8eS0VZAkm0YZHzBL+YyM4tRM30Vgbi1R lrG3fXM4nbY6brv1tHtzwpgTRv2XCLbYGp06w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687465401; x=1690057401; 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=62Go70B+trJmLR4YECe227ZId7pJSYJ5qQY4eEiLAsg=; b=ION82gtkqiY1A57UQv9EHqpNYBk1sMiuBCVz/M4FtRYqYgU2IaVksgySMcsNn3jFYu uyqVK1IxqIlHxmGPrmJ4lre/UrrTW7HYymSeDODv/cqppG7oBXS+wZXaS8zW6q84soK3 Gv4t6nPm5tbdaxuHAYPGr80/x49L9aMWX5l/z0TfJkahTJyvfbZxX7hNBA75jkZRcWT5 jK5pTKeNn2/QHkIOdLKxu0trIhosiVGJP413J0Qau9o+f5Rdw+HZvaJ1JbbcHPacGAZe 5nBk0umI0M+TRQTFyxBVepuBZ1n/eD7EXaKmn4sWqSs8ve/wyd02zVF49b6E71U0GODl mKRg== X-Gm-Message-State: AC+VfDxbNisNrElmH/ZVo6FfNXXPd6w9TqdMKIJd4KfzZDzLdFTFwJwi 1u5/g4afDt+uUSAalAERLuNrOdehIOVygFTEBYH6YA== X-Google-Smtp-Source: ACHHUZ7aqEl5XLC2Ys1Cf48UT8N9EMhje7Xo9pgs6SOo3lq9KpH43GAdslCRuWV+nP14GoNLEJVi7g== X-Received: by 2002:a05:6512:3b83:b0:4f9:6110:d0ab with SMTP id g3-20020a0565123b8300b004f96110d0abmr3430940lfv.45.1687465400803; Thu, 22 Jun 2023 13:23:20 -0700 (PDT) Received: from sjg1.roam.corp.google.com (82-132-213-210.dab.02.net. [82.132.213.210]) by smtp.gmail.com with ESMTPSA id x24-20020a05600c21d800b003f8e4b22bc2sm352770wmj.44.2023.06.22.13.21.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jun 2023 13:23:20 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Heinrich Schuchardt , Tom Rini , Simon Glass , Adrian Fiergolski , Michal Simek , Oleksandr Suvorov , Sean Anderson Subject: [PATCH 2/9] doc: Convert FIT source-file format to rST Date: Thu, 22 Jun 2023 21:21:09 +0100 Message-ID: <20230622202120.2182848-2-sjg@chromium.org> X-Mailer: git-send-email 2.41.0.162.gfafddb0af9-goog In-Reply-To: <20230622202120.2182848-1-sjg@chromium.org> References: <20230622202120.2182848-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. Signed-off-by: Simon Glass --- doc/usage/fit/index.rst | 1 + .../fit/source_file_format.rst} | 125 +++++++++--------- 2 files changed, 64 insertions(+), 62 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 68641a6704ff..93a962319035 100644 --- a/doc/usage/fit/index.rst +++ b/doc/usage/fit/index.rst @@ -10,3 +10,4 @@ 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..9f4688db2a15 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,25 +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: @@ -138,21 +137,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 +201,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 +219,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 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 +241,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 +320,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