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 E534EC433EF for ; Wed, 1 Jun 2022 05:54:16 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 92DBE83E68; Wed, 1 Jun 2022 07:54: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="hjgkVQ0H"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 04E6D83E68; Wed, 1 Jun 2022 07:54:12 +0200 (CEST) Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) (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 55B1083C61 for ; Wed, 1 Jun 2022 07:54:08 +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=n-francis@ti.com Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2515s4U1108311; Wed, 1 Jun 2022 00:54:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1654062844; bh=Zv+jmb0RB7VKZRHM3UaXtU7TR4odgtyH8D8qjC0v+1E=; h=Date:Subject:To:References:From:In-Reply-To; b=hjgkVQ0HPAeVAHOtgeGoIsg5FHziw/C1YGeSiIeqF8dUZ8jsZJy+CMjK3/EUSqY5j 2ouZYSZjoked1SvqBxHofH5L5RXMF+TIdulqcCafC5gkCnbKJuN/QpluH8WwGqUdu2 sMixSMvneVqvtLKg3LiJN2WooRmp7TnD76DZhBKI= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2515s439011100 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 1 Jun 2022 00:54:04 -0500 Received: from DLEE113.ent.ti.com (157.170.170.24) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Wed, 1 Jun 2022 00:54:04 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Wed, 1 Jun 2022 00:54:04 -0500 Received: from [172.24.218.149] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 2515s2bU009925; Wed, 1 Jun 2022 00:54:03 -0500 Message-ID: <3067d662-45d1-1b00-8272-a47f32cc5244@ti.com> Date: Wed, 1 Jun 2022 11:24:02 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH RFC v2 00/11] Integration of sysfw, tispl and tiboot3 Content-Language: en-US To: Roger Quadros , References: <20220506043759.8193-1-n-francis@ti.com> From: Neha Malcom Francis In-Reply-To: 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.5 at phobos.denx.de X-Virus-Status: Clean Hi Roger, On 31/05/22 13:51, Roger Quadros wrote: > Hi, > > On 06/05/2022 07:37, Neha Malcom Francis wrote: >> Devices that belong to the K3 architecture require SYSFW which is a FIT >> image consisting of a signed system firmware image and board config >> binaries. >> >> Board config binaries are needed to bring up SYSFW during U-Boot SPL >> startup. The board config data is given in YAML as input. These board >> configs contain board-specific information such as resource management, >> power management and security. >> >> The following series intends to plumb the system firmware generation >> into U-Boot using binman for packaging. Thus it will eliminate the need >> for additional custom repositories for SYSFW generation and also moves t >> owards the community standard build flow. We use binman to package >> tiboot3.bin and sysfw.itb images. >> >> These images also require x509 certificates which are created using the >> etype x509-cert. >> >> The series also plumbs the generation of tispl.bin into the build flow. >> This image is required for loading u-boot in K3 devices. The image is >> packaged using ATF, OPTEE and DM (Device Manager). >> >> Please note that the following series has implemented the above for >> J721E general purpose board. The board configs and device trees added >> are specific to J721E GP devices. >> >> Also note the introduction of three new etypes: ti-sysfw, ti-dm and >> x509-cert. >> >> On running CI tests on Github, errors were produced during world builds >> of keystone2_keystone3 and siemens (I0T2050 which is based on AM65x). >> This patch series is intended for only J721E and future work is to expand >> to the remaining K3 devices as well. The errors that come are mainly due >> to the boards other than J721E trying to generate tispl.bin. > > You will have to implement it such that none of the existing board build/functionality > breaks. Otherwise it will be impossible to get this merged. > > Is this series tested for High-Security (HS) J721E as well? > > cheers, > -roger > I've noted this and the other comments you've mentioned in the rest of the series regarding not breaking any of the existing board functionalities. I'll make the necessary changes and send across a new patch for the same. No this series is intended for only General Purpose J721E devices. >> >> v2: >> - Added etype x509-cert for creating x509 Texas Instruments certificate >> binary >> - Added packaging of tiboot3.bin >> - Packaging of tiboot3.bin and sysfw.itb using new etype x509 >> - sysfw --> ti-sysfw >> - Reformatted and re-arranged patches >> - Removed k3_fit_atf.sh and k3_gen_x509_cert.sh as their functionality >> is provided by binman now >> >> Neha Malcom Francis (11): >> j721e_evm: schema: yaml: Add general schema and J721E board config >> files >> ti: tools: config: Add board config class to generate config binaries >> ti: etype: sysfw: Add entry type for sysfw >> ti: etype: dm: Add entry type for TI DM >> ti: etype: x509: Add etype for x509 certificate for K3 devices >> ti: sysfw: Add support for packaging sysfw.itb >> ti: tiboot3.bin: Remove tiboot3.bin target from makefile >> ti: tispl.bin: Removed script that packages tispl.bin >> ti: x509: Remove shell script used for signing >> ti: dtsi: j721e: Use binman to package sysfw.itb and tiboot3.bin >> ti: dtsi: j721e: Use binman to package tispl.bin >> >> Makefile | 2 + >> arch/arm/dts/k3-j721e-a72-binman.dtsi | 86 + >> .../k3-j721e-common-proc-board-u-boot.dtsi | 1 + >> arch/arm/dts/k3-j721e-r5-binman.dtsi | 88 + >> .../k3-j721e-r5-common-proc-board-u-boot.dtsi | 1 + >> arch/arm/mach-k3/config.mk | 64 +- >> board/ti/common/schema.yaml | 355 ++ >> board/ti/j721e/Kconfig | 2 + >> board/ti/j721e/config.yaml | 3162 +++++++++++++++++ >> scripts/Makefile.spl | 4 - >> test/py/requirements.txt | 1 + >> tools/binman/entries.rst | 36 + >> tools/binman/etype/ti_dm.py | 23 + >> tools/binman/etype/ti_sysfw.py | 28 + >> tools/binman/etype/x509_cert.py | 248 ++ >> tools/binman/ftest.py | 21 + >> tools/binman/test/225_ti_dm.dts | 13 + >> tools/binman/test/232_ti_sysfw.dts | 13 + >> tools/binman/test/232_x509_cert.dts | 18 + >> tools/k3_fit_atf.sh | 123 - >> tools/k3_gen_x509_cert.sh | 252 -- >> tools/tibcfg_gen.py | 114 + >> 22 files changed, 4227 insertions(+), 428 deletions(-) >> create mode 100644 arch/arm/dts/k3-j721e-a72-binman.dtsi >> create mode 100644 arch/arm/dts/k3-j721e-r5-binman.dtsi >> create mode 100644 board/ti/common/schema.yaml >> create mode 100644 board/ti/j721e/config.yaml >> create mode 100644 tools/binman/etype/ti_dm.py >> create mode 100644 tools/binman/etype/ti_sysfw.py >> create mode 100644 tools/binman/etype/x509_cert.py >> create mode 100644 tools/binman/test/225_ti_dm.dts >> create mode 100644 tools/binman/test/232_ti_sysfw.dts >> create mode 100644 tools/binman/test/232_x509_cert.dts >> delete mode 100755 tools/k3_fit_atf.sh >> delete mode 100755 tools/k3_gen_x509_cert.sh >> create mode 100644 tools/tibcfg_gen.py >> -- Thanking You Neha Malcom Francis