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 277DEEB64DD for ; Fri, 23 Jun 2023 12:24:38 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 95F83865C6; Fri, 23 Jun 2023 14:23:56 +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="fscaZ1em"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E62D186398; Fri, 23 Jun 2023 14:23:11 +0200 (CEST) Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) (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 E9782865AC for ; Fri, 23 Jun 2023 14:22:51 +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-wr1-x429.google.com with SMTP id ffacd0b85a97d-311099fac92so697486f8f.0 for ; Fri, 23 Jun 2023 05:22:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1687522971; x=1690114971; 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=imIy7CMi2lOOwsdmQT3WMGlAKsFL/cj+T1hp5LpnQN0=; b=fscaZ1emlrXCYZD3OkpaZtR26SaoE5CJgFs/oaiYQtz/STLFfc127fAzGJR0VkRQIp uEXK0YSwr3CkffO8eaV+e1YV6NEzaMJrfr4IAhi2oU09ZfhgY9+CbEsODA/NFCDahmXG e+FxRtdP03vXR6O+2ngWi8HQShZurN1uqK/Wg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687522971; x=1690114971; 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=imIy7CMi2lOOwsdmQT3WMGlAKsFL/cj+T1hp5LpnQN0=; b=LG1/r3rVyE8Fv+R/nBpTP7liGaXcUDV58Fev2UkLDrUKanC6QknvrNQdwDdgeOz57J rBTQ91f5ogvaqeiXFYz5PNZ/PF86ZJ2JSDEVtQHyPbzQlncSm/L3O2hKcEZTieFI35om gS6aQO80EBCyfPaMe66PbC7bvPjwrjZu25HmxEkM4KI8SWWa2MlD648URLaus48h7Ezu uIZwmx7mGofbf+ME2/SL5ZnZyLkfAHWh/i6qlcJaiJGugQSDRaIcpt3noYRhBQzZJ0IN Hj6nCNaQuCDgeRQw5lLK4VOJEFiEhxszKk92hZ622HuYrknx10jgiwXE+440x0mBWGWm nquQ== X-Gm-Message-State: AC+VfDzWA3WPpxeU5qFlqQH+jropMOkXTWjYuDkrFAcUcQthAMfgAB2j 0WfzEUW9OSsVH9cRuGCBYt0FpsjrWvJqMR4HPkL/aQ== X-Google-Smtp-Source: ACHHUZ4BByoDjpjYPSMky28Qe0jfBGFO91yfTvr3S6BMBodnGc9tW2+8mINHWLNlM0JLgf8LgvMa+g== X-Received: by 2002:adf:f18f:0:b0:30f:b9de:ab21 with SMTP id h15-20020adff18f000000b0030fb9deab21mr18051929wro.14.1687522971069; Fri, 23 Jun 2023 05:22:51 -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.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Jun 2023 05:22:50 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Heinrich Schuchardt , Tom Rini , Simon Glass Subject: [PATCH v2 10/14] doc: Expand FIT tables to include all values Date: Fri, 23 Jun 2023 13:22:10 +0100 Message-ID: <20230623122222.2267003-10-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 Add tables which include all values for type, algo, arch, algo and compression. Signed-off-by: Simon Glass --- (no changes since v1) doc/usage/fit/source_file_format.rst | 184 ++++++++++++++++++++++----- 1 file changed, 155 insertions(+), 29 deletions(-) diff --git a/doc/usage/fit/source_file_format.rst b/doc/usage/fit/source_file_format.rst index 986ccdfe3256..1c72230c0604 100644 --- a/doc/usage/fit/source_file_format.rst +++ b/doc/usage/fit/source_file_format.rst @@ -165,36 +165,150 @@ description Textual description of the component sub-image type - Name of component sub-image type, supported types are: - - "standalone", "kernel", "kernel_noload", "ramdisk", "firmware", "script", - "filesystem", "flat_dt" and others (see uimage_type in common/image.c). + Name of component sub-image type. Supported types are: + + ==================== ================== + Sub-image type Meaning + ==================== ================== + invalid Invalid Image + aisimage Davinci AIS image + atmelimage ATMEL ROM-Boot Image + copro Coprocessor Image} + fdt_legacy legacy Image with Flat Device Tree + filesystem Filesystem Image + firmware Firmware + firmware_ivt Firmware with HABv4 IVT } + flat_dt Flat Device Tree + fpga FPGA Image } + gpimage TI Keystone SPL Image + imx8image NXP i.MX8 Boot Image + imx8mimage NXP i.MX8M Boot Image + imximage Freescale i.MX Boot Image + kernel Kernel Image + kernel_noload Kernel Image (no loading done) + kwbimage Kirkwood Boot Image + lpc32xximage LPC32XX Boot Image + mtk_image MediaTek BootROM loadable Image } + multi Multi-File Image + mxsimage Freescale MXS Boot Image + omapimage TI OMAP SPL With GP CH + pblimage Freescale PBL Boot Image + pmmc TI Power Management Micro-Controller Firmware + ramdisk RAMDisk Image + rkimage Rockchip Boot Image } + rksd Rockchip SD Boot Image } + rkspi Rockchip SPI Boot Image } + script Script + socfpgaimage Altera SoCFPGA CV/AV preloader + socfpgaimage_v1 Altera SoCFPGA A10 preloader + spkgimage Renesas SPKG Image } + standalone Standalone Program + stm32image STMicroelectronics STM32 Image } + sunxi_egon Allwinner eGON Boot Image } + sunxi_toc0 Allwinner TOC0 Boot Image } + tee Trusted Execution Environment Image + ublimage Davinci UBL image + vybridimage Vybrid Boot Image + x86_setup x86 setup.bin + zynqimage Xilinx Zynq Boot Image } + zynqmpbif Xilinx ZynqMP Boot Image (bif) } + zynqmpimage Xilinx ZynqMP Boot Image } + ==================== ================== data Path to the external file which contains this node's binary data. compression - Compression used by included data. Supported compressions - are "gzip" and "bzip2". If no compression is used compression property - should be set to "none". If the data is compressed but it should not be - uncompressed by U-Boot (e.g. compressed ramdisk), this should also be set - to "none". + Compression used by included data. If no compression is used, the + compression property should be set to "none". If the data is compressed but + it should not be uncompressed by the loader (e.g. compressed ramdisk), this + should also be set to "none". + + Supported compression types are: + + ==================== ================== + Compression type Meaning + ==================== ================== + none uncompressed + bzip2 bzip2 compressed + gzip gzip compressed + lz4 lz4 compressed + lzma lzma compressed + lzo lzo compressed + zstd zstd compressed + ==================== ================== Conditionally mandatory property ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ os OS name, mandatory for types "kernel". Valid OS names are: - "openbsd", "netbsd", "freebsd", "4_4bsd", "linux", "svr4", "esix", - "solaris", "irix", "sco", "dell", "ncr", "lynxos", "vxworks", "psos", "qnx", - "u-boot", "rtems", "unity", "integrity". + + ==================== ================== + OS name Meaning + ==================== ================== + invalid Invalid OS + 4_4bsd 4_4BSD + arm-trusted-firmware ARM Trusted Firmware + dell Dell + efi EFI Firmware + esix Esix + freebsd FreeBSD + integrity INTEGRITY + irix Irix + linux Linux + ncr NCR + netbsd NetBSD + openbsd OpenBSD + openrtos OpenRTOS + opensbi RISC-V OpenSBI + ose Enea OSE + plan9 Plan 9 + psos pSOS + qnx QNX + rtems RTEMS + sco SCO + solaris Solaris + svr4 SVR4 + tee Trusted Execution Environment + u-boot U-Boot + vxworks VxWorks + ==================== ================== arch Architecture name, mandatory for types: "standalone", "kernel", - "firmware", "ramdisk" and "fdt". Valid architecture names are: "alpha", - "arm", "i386", "ia64", "mips", "mips64", "ppc", "s390", "sh", "sparc", - "sparc64", "m68k", "microblaze", "nios2", "blackfin", "avr32", "st200", - "sandbox". + "firmware", "ramdisk" and "fdt". Valid architecture names are: + + ==================== ================== + Architecture type Meaning + ==================== ================== + invalid Invalid ARCH + alpha Alpha + arc ARC + arm64 AArch64 + arm ARM + avr32 AVR32 + blackfin Blackfin + ia64 IA64 + m68k M68K + microblaze MicroBlaze + mips64 MIPS 64 Bit + mips MIPS + nds32 NDS32 + nios2 NIOS II + or1k OpenRISC 1000 + powerpc PowerPC + ppc PowerPC + riscv RISC-V + s390 IBM S390 + sandbox Sandbox + sh SuperH + sparc64 SPARC 64 Bit + sparc SPARC + x86_64 AMD x86_64 + x86 Intel x86 + xtensa Xtensa + ==================== ================== entry entry point address, address size is determined by @@ -211,17 +325,15 @@ compatible Mandatory for types: "fpga", and images that do not specify a load address. Supported compatible methods: - "u-boot,fpga-legacy" - the generic fpga loading routine. - - "u-boot,zynqmp-fpga-ddrauth" - signed non-encrypted FPGA bitstream for - Xilinx Zynq UltraScale+ (ZymqMP) device. - - "u-boot,zynqmp-fpga-enc" - encrypted FPGA bitstream for Xilinx Zynq - - UltraScale+ (ZynqMP) device. + ========================== ========================================= + Compatible string Meaning + ========================== ========================================= + u-boot,fpga-legacy Generic fpga loading routine. + u-boot,zynqmp-fpga-ddrauth Signed non-encrypted FPGA bitstream for + Xilinx Zynq UltraScale+ (ZymqMP) device. + u-boot,zynqmp-fpga-enc Encrypted FPGA bitstream for Xilinx Zynq + UltraScale+ (ZynqMP) device. + ========================== ========================================= phase U-Boot phase for which the image is intended. @@ -252,10 +364,24 @@ Mandatory properties ~~~~~~~~~~~~~~~~~~~~ algo - Algorithm name, supported are "crc32", "md5" and "sha1". + Algorithm name. Supported algoriths and their value sizes are: + + ==================== ============ ========================================= + Sub-image type Size (bytes) Meaning + ==================== ============ ========================================= + crc16-ccitt 2 Cyclic Redundancy Check 16-bit + (Consultative Committee for International + Telegraphy and Telephony) + crc32 4 Cyclic Redundancy Check 32-bit + md5 16 Message Digest 5 (MD5) + sha1 20 Secure Hash Algorithm 1 (SHA1) + sha256 32 Secure Hash Algorithm 2 (SHA256) + sha384 48 Secure Hash Algorithm 2 (SHA384) + sha512 64 Secure Hash Algorithm 2 (SHA512) + ==================== ============ ========================================= value - Actual checksum or hash value, correspondingly 4, 16 or 20 bytes long. + Actual checksum or hash value. '/configurations' node -- 2.41.0.162.gfafddb0af9-goog