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 83FD9C77B62 for ; Tue, 4 Apr 2023 17:21:17 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DEF3A85C6D; Tue, 4 Apr 2023 19:21:14 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com 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=ti.com header.i=@ti.com header.b="nOdIYts6"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 414C485C6D; Tue, 4 Apr 2023 19:21:13 +0200 (CEST) Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2AAA585AEC for ; Tue, 4 Apr 2023 19:21:10 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=afd@ti.com Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 334HKxc4087057; Tue, 4 Apr 2023 12:20:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1680628859; bh=+HIZW2y56iCLf65IIoi1fPncXD2orO8vLkw4ZEg+rlg=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=nOdIYts6fA171ouOJwiu6417gmqGsBj3yA3GO6qJa3GwR6lHo3XsAhI63/SI+EQ3I wRtPXtrTwzEw6A4HSZpyeoGBZSf/13byYnt4cO6zvm9khVsl3r5ddH9ODj1Birp709 Iz1mhWdtno0kg1NWkds5nDkIN0wTASZd0etR34GE= Received: from DLEE106.ent.ti.com (dlee106.ent.ti.com [157.170.170.36]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 334HKxWS101069 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 4 Apr 2023 12:20:59 -0500 Received: from DLEE111.ent.ti.com (157.170.170.22) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Tue, 4 Apr 2023 12:20:58 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Tue, 4 Apr 2023 12:20:58 -0500 Received: from [10.250.32.15] (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 334HKvKS128389; Tue, 4 Apr 2023 12:20:57 -0500 Message-ID: <8cdbf69b-5471-6f0e-becd-ae3b09112647@ti.com> Date: Tue, 4 Apr 2023 12:20:57 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH v2 05/18] j721e: dts: binman: Package tiboot3.bin, sysfw.itb, tispl.bin, u-boot.img Content-Language: en-US To: Neha Malcom Francis , , , , , CC: , , , References: <20230404121342.446935-1-n-francis@ti.com> <20230404121342.446935-6-n-francis@ti.com> From: Andrew Davis In-Reply-To: <20230404121342.446935-6-n-francis@ti.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 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 4/4/23 7:13 AM, Neha Malcom Francis wrote: > By providing entries in the binman node of the device tree, binman will > be able to find and package board config artifacts generated by > TIBoardConfig with sysfw.bin and generate the final image sysfw.itb. > It will also pick out the R5 SPL and sign it with the help of TI signing > entry and generate the final tiboot3.bin. > > Entries for A72 build have been added to k3-j721e-binman.dtsi to > generate tispl.bin and u-boot.img. > > Support has been added for both HS(SR 1.1) and GP images where the > encrypted system firmware binary must be signed along with the signed > certificate binary. > > tiboot3.bin and sysfw-j721e_sr1_1-hs.itb: For HS devices > tiboot3.bin_unsigned and sysfw-j721e-gp-evm.itb: For GP devices > .bin/img: For HS devices > .bin_unsigned/img_unsigned: For GP devices > > Intention of patch is to move signing and packaging to binman, > thus making makefile target only if binman is not enabled. > > It is to be noted that the bootflow followed by J721E requires: > > tiboot3.bin: > * R5 SPL > * R5 SPL dtbs > > sysfw.itb: > * TIFS > * board-cfg > * pm-cfg > * sec-cfg > * rm-cfg > > tispl.bin: > * DM > * ATF > * OPTEE > * A72 SPL > * A72 SPL dtbs > > u-boot.img: > * A72 U-Boot > * A72 U-Boot dtbs > > Signed-off-by: Neha Malcom Francis > --- [...] > + ti_fs_cert: ti-fs-cert.bin { > + filename = "ti-fs-firmware-j721e_sr1_1-hs-cert.bin"; Suggest prefix these with the expected directory name, filename = "ti-sysfw/ti-fs-firmware-j721e_sr1_1-hs-cert.bin"; that way we only need to do one simple firmware path export: export BINMAN_INDIRS="" Same below for DM firmware which lives in the same firmware repo but in a directory that depends on the platform, selecting the correct platform directory here in this file makes it so much easier for users. [...] > + filename = "ipc_echo_testb_mcu1_0_release_strip.xer5f"; filename = "ti-dm/j721e/ipc_echo_testb_mcu1_0_release_strip.xer5f"; Do that for all the DM/SYSFW files for all the platforms in this series. Thanks, Andrew