From patchwork Fri Oct 22 22:19:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 1545117 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Hbf0x0MRyz9sRN for ; Sat, 23 Oct 2021 09:19:59 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 43F34834D6; Sat, 23 Oct 2021 00:19:50 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=ziswiler.com 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 1DDBD834C1; Sat, 23 Oct 2021 00:19:48 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,SPF_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mout.perfora.net (mout.perfora.net [74.208.4.196]) (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 5BBAC831D3 for ; Sat, 23 Oct 2021 00:19:44 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=ziswiler.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=marcel@ziswiler.com Received: from toolbox.cardiotech.int ([194.191.235.54]) by mrelay.perfora.net (mreueus004 [74.208.5.2]) with ESMTPSA (Nemesis) id 1MpE2t-1n2bSC0mzv-00qikn; Sat, 23 Oct 2021 00:19:35 +0200 From: Marcel Ziswiler To: u-boot@lists.denx.de Cc: Michael Walle , Marcel Ziswiler , Frieder Schrempf , Priyanka Jain Subject: [PATCH v4 2/5] board: sl28: generate FIT update image Date: Sat, 23 Oct 2021 00:19:21 +0200 Message-Id: <20211022221924.1226010-3-marcel@ziswiler.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20211022221924.1226010-1-marcel@ziswiler.com> References: <20211022221924.1226010-1-marcel@ziswiler.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:1leRK3Vu6eskyLS6Pf3XKWD10Ip32yeAA4sAySvOzNo347HJ7VD buu1bGHX0Cm1YP3x9o+RESXYsOMhz/My6A5E8XTULxMPGaGEAxYlBGIa/zytTAjdNAG0P2+ ZTZzSk8EcqKxpZ51jOkR1V//zyQG4/saIcajgb97MV1wC+dHpDY/jqMWPxBObjceiwjLqBu gspxU9nca/BPyedWrzzJA== X-UI-Out-Filterresults: notjunk:1;V03:K0:yZ4LUNtuT2k=:/bg1nwiI8gF+4dHkxfk06j sgfCLgxS26wHdgibFZL1UO8OAbdfVOhVqkmB2Y4yE9iQ5cQmweqdqqrMMqwR0DkE9HuFIZU7W 1HRfrllMW6iMtYNZNWOy3vx6tlFS6/bpq50SDlSvXzefw9rC7T8cRN0wr6L6nbC/M/tqRsPGq FpEQhOhjmJ8l/vbxbk9SMYTpbcELzYtTxmU+Z6AH5OUXjV+dK8ZG8LINE4wGHf8NTJE5mzeEg UkU5zZ8u2pCzHE4PMBlWb3Y+kcpxZpixJg2NHXB+FlWQa1/EIjS1LNu2JKZXVs/c4BQ1LhVo7 TTV681wx7PLe9iFYUnunfJL6xquDMd2jr31nnfVh7huHJwHDvqmeh1omPSoAmlaLckmO/7Y5p x49xrrQb2ErADvLdNLLRkqDaZN6uFOx0P3zAST4VJmlvG28d9Vw9SKLLVabuOGO6IawpUZO9j 0pU3DT47nSF7OZXnWJdTCic+i5l+JbXCM+DgmQQBtXarosNCL1XLOxYKvFymqUg3kUUWyVEbd MAir0F1OJzAcEcIpp0h3E0W19I1ErHmYxW79dTsvo5KeooiubC/qX7egQkly1vVVfJK/1TuId YHLQz4q+Y33yqcjmz/tOy+ArbxaG972yypGGro1fNK05Z/ypjupHZ6Cw791IBXrrHS3sdSOGb BcN/21FdCc+M5nLnlViFD25ELXyrBXSDEa2qH5NvKg4YkP1rfTfxxGe+R+6+O4zViAPs= X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean From: Michael Walle Generate a FIT update image during build. The image will be called "u-boot.update" and can be used to build an EFI UpdateCapsule or during DFU mode. Although, the latter isn't supported because there is no USB OTG driver yet. Signed-off-by: Michael Walle Signed-off-by: Marcel Ziswiler --- Changes in v4: - Re-based on top of imx/master. Changes in v3: - none Changes in v2: - new patch .../dts/fsl-ls1028a-kontron-sl28-u-boot.dtsi | 35 +++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/fsl-ls1028a-kontron-sl28-u-boot.dtsi b/arch/arm/dts/fsl-ls1028a-kontron-sl28-u-boot.dtsi index b3861ed98cf..a501cece698 100644 --- a/arch/arm/dts/fsl-ls1028a-kontron-sl28-u-boot.dtsi +++ b/arch/arm/dts/fsl-ls1028a-kontron-sl28-u-boot.dtsi @@ -15,6 +15,12 @@ }; binman: binman { + multiple-images; + }; +}; + +&binman { + u_boot_rom: u-boot-rom { filename = "u-boot.rom"; pad-byte = <0xff>; @@ -133,6 +139,31 @@ }; }; +&binman { + u-boot-update { + filename = "u-boot.update"; + + fit { + description = "FIT update image"; + + images { + u-boot-bin { + description = "U-Boot"; + type = "firmware"; + os = "u-boot"; + arch = "arm"; + compression = "none"; + load = <0>; /* unused */ + + blob { + filename = "u-boot.rom"; + }; + }; + }; + }; + }; +}; + #ifdef CONFIG_SL28_ENABLE_SER0_CONSOLE / { chosen { @@ -142,7 +173,7 @@ #endif #ifdef CONFIG_SL28_SPL_LOADS_ATF_BL31 -&binman { +&u_boot_rom { fit { images { bl31 { @@ -191,7 +222,7 @@ #endif #ifdef CONFIG_SL28_SPL_LOADS_OPTEE_BL32 -&binman { +&u_boot_rom { fit { images { bl32 {