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 2351FC433F5 for ; Tue, 10 May 2022 20:05:24 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B652B842C8; Tue, 10 May 2022 22:05:21 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.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=konsulko.com header.i=@konsulko.com header.b="HO2ZR9U2"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BA89383D6B; Tue, 10 May 2022 22:05:19 +0200 (CEST) Received: from mail-qv1-xf2b.google.com (mail-qv1-xf2b.google.com [IPv6:2607:f8b0:4864:20::f2b]) (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 129D083D6B for ; Tue, 10 May 2022 22:05:16 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qv1-xf2b.google.com with SMTP id dv4so163439qvb.13 for ; Tue, 10 May 2022 13:05:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=nWAwJNPHcTpZklRn4Qr3/7WnJDNt66y6rYHXIDOzMM8=; b=HO2ZR9U2RF9n9l/0drhHK3UL9xq0bC+oJbkE9rReGvciPPv9XZxoZrBOf/9jYQrcVO BvD2d3YwjMUghBDhPKeqbTDegyDHzCof9BbOv7cdLjxnNM2vdtprPOdXXypDjMkWgABV rNz/Hm9KdFLaroScJ6LkeU9E6fY5Ar0a59RSM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=nWAwJNPHcTpZklRn4Qr3/7WnJDNt66y6rYHXIDOzMM8=; b=AWc44tAL8xiCNsLj/LwlXJXyScEcmVTBd7zciTZJx7E5KKJ9T2Kb2Qp0CmOaY8aZm+ xjLchSFMPnWSBrVjk39Qrs1pIDk3jL9sckleY/RaF4heoMdlhSJ5NLanpWocEEClNLHz AVrwSTSOnkIf0tAoWve8akyr/2qnRnPBstXojYr59W9kTY60BMZcFF/rmV1DA/RAxH1C KWyW2TJMYK4LPz5JJQHgL3UPCGCUX7pJ8hX113OjTab6UQ3niibwJ2hMl90H4+nNWqam mvakpI45EmHXBMW3gYZK8M2W5Q2ED02c6HhskwEzDGpfDrt9koFX7qpOx0tmgD72pUJe efbg== X-Gm-Message-State: AOAM531GNEjDXV2kx3wy7DG4LUbnT9zkhXpxXC560jvT607BDVXdUPKB y/hu4U+xA441jC1St18UAYNNsw== X-Google-Smtp-Source: ABdhPJxgbX4NItqnMEcWtEFM0Wc2sdWN8wBpjfv7wlij4sJDbkfSVrwtFMCCMB3L9ENa4EkvqC2KOQ== X-Received: by 2002:a0c:c784:0:b0:432:304c:a383 with SMTP id k4-20020a0cc784000000b00432304ca383mr18841169qvj.100.1652213114744; Tue, 10 May 2022 13:05:14 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-4500-b057-3c7b-12c2-aabf.res6.spectrum.com. [2603:6081:7b01:4500:b057:3c7b:12c2:aabf]) by smtp.gmail.com with ESMTPSA id t196-20020a37aacd000000b0069fc13ce1d7sm9091403qke.8.2022.05.10.13.05.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 May 2022 13:05:13 -0700 (PDT) Date: Tue, 10 May 2022 16:05:11 -0400 From: Tom Rini To: Neha Malcom Francis , Alper Nebi Yasak Cc: u-boot@lists.denx.de Subject: Re: [PATCH RFC v2 00/11] Integration of sysfw, tispl and tiboot3 Message-ID: <20220510200511.GK3901321@bill-the-cat> References: <20220506043759.8193-1-n-francis@ti.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="qpqR4wE1CEr+Roqx" Content-Disposition: inline In-Reply-To: <20220506043759.8193-1-n-francis@ti.com> X-Clacks-Overhead: GNU Terry Pratchett 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 --qpqR4wE1CEr+Roqx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 06, 2022 at 10:07:48AM +0530, 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. >=20 > 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. >=20 > 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. >=20 > These images also require x509 certificates which are created using the > etype x509-cert. >=20 > 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). >=20 > 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. >=20 > Also note the introduction of three new etypes: ti-sysfw, ti-dm and > x509-cert. >=20 > 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. >=20 > 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 >=20 > 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 >=20 > 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 Adding the other binman maintainer.. --=20 Tom --qpqR4wE1CEr+Roqx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmJ6xXMACgkQFHw5/5Y0 tyzB/Qv/Tqpnufr2rVvzBUX3WwgH0dCwRDbEH+dZiNUjQf9yNshJJHwqkm6uhiAp ICYh09qgXOduyBiWN2/ra+sNWi3zxyKYnRlovx6EMzirfCx7+uiwrPmnnQ6jfN4V qoUTmMmrrUmsDEf4EicBwkYlBGl2m7U1w+PBnCVLoKH78hHGMd9WUrMeZAadhz4W xWPv1/EbxC/OjuHHDxYW8TtpFcqsvN7RxiKbJ4TeLI8FeQPgtTQVhn4UIMAPAOvZ dzdwesTGq0WdBStpViDb4mpkqgXz9t+OrKXntq+7lVVYINXP4RbMvfHgfXOdEHBg 4H0MJiK9BXCOzUthAqooO7Jn29oW0DMEE4Ia4jD6bSMHwR/gbswpPCqpPpsL1bZ6 SZPnRHYl8QPdQQiCuZziNMuY1+Kwm2l9u3SEVjq/aAnA9oxS/w0mit/k2wFi3W4X 9vu04g2H5z5oTBBO1P1YHDc6V5sWBnOXsZXpRa9a7p8HMIRPomFLI3ftKA3Aw1Qx prvq5tbl =9P9R -----END PGP SIGNATURE----- --qpqR4wE1CEr+Roqx--