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 1E3E1C761A6 for ; Tue, 4 Apr 2023 18:58:00 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id ADABA85AEC; Tue, 4 Apr 2023 20:57:58 +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="RO15MPqJ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C48CD85AEC; Tue, 4 Apr 2023 20:57:56 +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 311CB856B2 for ; Tue, 4 Apr 2023 20:57:51 +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 334IveoE105944; Tue, 4 Apr 2023 13:57:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1680634660; bh=1Ps9U2Id34z+ITw9kehHmtXZAfGVInhJpHl6cYjWFCE=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=RO15MPqJIE8pcR3TttRrtOPv6LZtpUzeTDkXb8jCcYuKCpT2BZ+0znmJf9w9r7U1f GTe3UwovmcpOytEQAIa6loIXNO0TXk4nuuVaCTWZOnZXYYNojBfQ+9sNEUJQadq4lp 5WP6Ls/msORrO5Lnyw898JAAce2FnPZ8cMP4LWfo= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 334IveTd024513 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 4 Apr 2023 13:57:40 -0500 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE114.ent.ti.com (10.64.6.35) 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 13:57:40 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE107.ent.ti.com (10.64.6.28) 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 13:57:40 -0500 Received: from [10.250.32.15] (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 334Ivd4a004447; Tue, 4 Apr 2023 13:57:39 -0500 Message-ID: Date: Tue, 4 Apr 2023 13:57:38 -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 00/18] Migration to using binman to generate Content-Language: en-US To: Neha Malcom Francis , , , , , CC: , , , References: <20230404121342.446935-1-n-francis@ti.com> From: Andrew Davis In-Reply-To: <20230404121342.446935-1-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: > This series aims to eliminate the use of additional custom repositories > such as k3-image-gen (K3 Image Generation) repo that was plumbed into > the U-Boot build flow to generate boot images for TI K3 platform devices. > And instead, we move towards using binman that aligns better with the > community standard build flow. > > This series uses binman for all K3 platforms supported on U-Boot currently; > both HS (High Security) and GP (General Purpose) devices. > > Background on using k3-image-gen: > * TI K3 devices require a SYSFW (System Firmware) image consisting > of a signed system firmware image and board configuration binaries, > this is needed to bring up system firmware during U-Boot R5 SPL > startup. > * Board configuration data contain board-specific information > such as resource management, power management and security. > > Series intends to use binman to take over the packaging and signing for > the R5 bootloader images tiboot3.bin (and sysfw.itb, for non-combined > boot flow) instead of k3-image-gen. > > Series also packages the A72/A53 bootloader images (tispl.bin and > u-boot.img) using ATF, OPTEE and DM (Device Manager) > > Changes in v2: > - removed all external scripts > - created ti-board-config etype to support generation of board > config binaries > - created ti-secure and ti-secure-rom etypes to handle signing > instead of using external TI_SECURE_DEV_PKG > - updated openssl btool to support x509 certificate generation > - dropped Makefile changes to obtain external binary components, > moving to using BINMAN_INDIRS to achieve the same > Another thing that got changed is you seem to have dropped the documentation update patch from v1. The documentation change is the best part as it shows how much easier this series makes building U-Boot for K3! :) I did notice a build error when trying this with am62x_evm_r5_defconfig. I don't think this series caused the issue, but it does expose the issue. Fix sent here[0]. So if anyone has issues building this series try that patch. Other than the couple minor comments, everything looks good and I'm extremely impressed how well this all turned out. Removing the external tooling and scripts previously needed to build U-Boot for K3 is key to our upstream-first goals and long term support strategy. Thank you! For the whole series, Acked-by: Andrew Davis [0] https://lists.denx.de/pipermail/u-boot/2023-April/514400.html