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 0997EC433EF for ; Mon, 18 Apr 2022 19:58:49 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2433A83B34; Mon, 18 Apr 2022 21:58:41 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="T8WCz3Ie"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9A91B83B38; Mon, 18 Apr 2022 21:58:26 +0200 (CEST) Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) (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 8815283AE2 for ; Mon, 18 Apr 2022 21:58:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=alpernebiyasak@gmail.com Received: by mail-ed1-x532.google.com with SMTP id 11so13624349edw.0 for ; Mon, 18 Apr 2022 12:58:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:from:subject:to:cc :references:content-language:in-reply-to:content-transfer-encoding; bh=Wifraz4iwYq7+4fC5o9bh5N9CalEJqsaXvbHuBdRJwk=; b=T8WCz3IeRuWiOhRGVeePzFBWkw8Er4dFxpUSB03M1XIcKDC+ZMUZLYXZmY1vRz3I8r PI7EFJLHQmZHAEgTn0PkM3jC+V8VE/nxzvNuVbxi6L8Wt2Awxuia3maFgA0xvy10mt4k SqcroyJNoFjE9QZPX3fMJ1vo8/u0+0YU9NK0ZHEsDD/KRRw1+AOxNIe2W94bFieMAfo9 waVF9FCzWYM7KxyRM4lGw/vL9//wttgHnZLdEMifaykPcwdsHsRS8uUSm8P0N0r9oJma 515ZnAEN0etYv0yaIyUln02RkgslIlWLZE5nJPu5ejTWCTrCUU7rBmqXdHMvqkaE+S2s kE2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:from :subject:to:cc:references:content-language:in-reply-to :content-transfer-encoding; bh=Wifraz4iwYq7+4fC5o9bh5N9CalEJqsaXvbHuBdRJwk=; b=yHtqxQ6R8nxlFj0bSMqAN8JsYHzIiXyh5pPdWaJ6iV4yHjBGpGwKwVYzU4iVlGhJgv NmlsbjeR2lMqKbP2H/WbJGQOmQOL3qDhXZeDynKiBS7UZLa7+wb0sEC7ktuCLl+eiCvu 0tnEZ2/6MleL89rS6radCACZ3MD0JIbzv0WJ1kaaxKENbuFWtDA+kvsG+tcACQxW4FZx stBlcb1XIHaMP8f1fRXaXh+UDeOBmt/Batdi47VAfSAEYFV/iGFWCCs8HZHzXeYLCWk2 dR+vvpk9xzrG6Yh54h48xlTyD3rRV44k+1GuK1ceSod4p1yLVoPqLwQMdjNmIuQbdukm sCLA== X-Gm-Message-State: AOAM5338beXOUDjMzslsauFDNqGC46Gykdi0GoGMrpytWZYh2RUuAEy+ RDNcpGPCvZkCzB/ZK70WmEs= X-Google-Smtp-Source: ABdhPJzNyR29xT/nhxtN1JXurkLd0OfACj9p7EnsLdfEznMkn5JyZLQb8CF4TtCXXZwYjGqtgZPzZw== X-Received: by 2002:a05:6402:440d:b0:412:9e8a:5e51 with SMTP id y13-20020a056402440d00b004129e8a5e51mr13883526eda.362.1650311903160; Mon, 18 Apr 2022 12:58:23 -0700 (PDT) Received: from [192.168.0.74] ([178.233.178.185]) by smtp.gmail.com with ESMTPSA id v8-20020a1709064e8800b006ef74044062sm3088008eju.16.2022.04.18.12.58.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Apr 2022 12:58:22 -0700 (PDT) Message-ID: <7377b3ec-806d-fb88-4a06-371ba52a1d59@gmail.com> Date: Mon, 18 Apr 2022 22:56:40 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 From: Alper Nebi Yasak Subject: Re: [RESEND, RFC 6/8] binman: dtsi: sysfw: j721e: Use binman to package sysfw.itb To: Neha Malcom Francis Cc: sjg@chromium.org, marek.behun@nic.cz, xypron.glpk@gmx.de, vigneshr@ti.com, a-govindraju@ti.com, kristo@kernel.org, s-anna@ti.com, kishon@ti.com, joel.peshkin@broadcom.com, patrick.delaunay@foss.st.com, mr.nuke.me@gmail.com, nm@ti.com, u-boot@lists.denx.de References: <20220406122919.6104-1-n-francis@ti.com> <20220406122919.6104-7-n-francis@ti.com> Content-Language: en-US In-Reply-To: <20220406122919.6104-7-n-francis@ti.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 On 06/04/2022 15:29, 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 binary artifacts generated by > TIBoardConfig with sysfw.bin and generate the final image sysfw.itb. > > j721e-r5-binman.dtsi has been introduced for R5 specific binman node. It > can be then be include by files that require it like > k3-j721e-r5-common-proc-board-u-boot.dtsi. > > Signed-off-by: Tarun Sahu > [n-francis@ti.com: prepared patch for upstreaming] > Signed-off-by: Neha Malcom Francis > --- > arch/arm/dts/j721e-r5-binman.dtsi | 75 +++++++++++++++++++ > .../k3-j721e-r5-common-proc-board-u-boot.dtsi | 1 + > board/ti/j721e/Kconfig | 1 + > 3 files changed, 77 insertions(+) > create mode 100644 arch/arm/dts/j721e-r5-binman.dtsi > > diff --git a/arch/arm/dts/j721e-r5-binman.dtsi b/arch/arm/dts/j721e-r5-binman.dtsi > new file mode 100644 > index 0000000000..6e69084eaa > --- /dev/null > +++ b/arch/arm/dts/j721e-r5-binman.dtsi You should prefix this name with 'k3-' for consistency with other files. > @@ -0,0 +1,75 @@ > +// SPDX-License-Identifier: GPL-2.0+ > +// Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/ > + > +#include > + > +/ { > + binman: binman { > + multiple-images; > + }; > +}; > + > +&binman { > + binary { > + filename = "sysfw.bin"; > + sysfw { > + filename = "ti-fs-firmware-j721e-gp.bin"; > + device = "j721e"; > + load = <0x0040000>; > + }; > + }; This confuses me a bit, because so far I've understood 'sysfw.bin' to be the unsigned file (as in your entry type's test). Also, doesn't look like the 'device' property is used in the entry type at all. What is it meant to do? > + itb { > + filename = "sysfw.itb"; > + fit { > + description = "SYSFW and Config Fragments"; > + #address-cells = <1>; > + images { > + sysfw.bin { > + description = "sysfw"; > + type = "firmware"; > + arch = "arm"; > + compression = "none"; > + blob-ext { > + filename = "sysfw.bin"; > + }; This is meant to be the signed 'sysfw.bin' you're creating with binman above, right? I'm not sure if including binman-built files like this is guaranteed to work. > + }; > + board-cfg.bin { > + description = "board-cfg"; > + type = "firmware"; > + arch = "arm"; > + compression = "none"; > + blob-ext { > + filename = "board-cfg.bin"; > + }; > + }; > + pm-cfg.bin { > + description = "pm-cfg"; > + type = "firmware"; > + arch = "arm"; > + compression = "none"; > + blob-ext { > + filename = "pm-cfg.bin"; > + }; > + }; > + rm-cfg.bin { > + description = "rm-cfg"; > + type = "firmware"; > + arch = "arm"; > + compression = "none"; > + blob-ext { > + filename = "rm-cfg.bin"; > + }; > + }; > + sec-cfg.bin { > + description = "sec-cfg"; > + type = "firmware"; > + arch = "arm"; > + compression = "none"; > + blob-ext { > + filename = "sec-cfg.bin"; > + }; > + }; Since you're generating these in the build now, 'blob' might be more appropriate than 'blob-ext'. > + }; > + }; > + }; > +}; > diff --git a/arch/arm/dts/k3-j721e-r5-common-proc-board-u-boot.dtsi b/arch/arm/dts/k3-j721e-r5-common-proc-board-u-boot.dtsi > index 48c6ddf672..75fae60a97 100644 > --- a/arch/arm/dts/k3-j721e-r5-common-proc-board-u-boot.dtsi > +++ b/arch/arm/dts/k3-j721e-r5-common-proc-board-u-boot.dtsi > @@ -4,6 +4,7 @@ > */ > > #include "k3-j721e-common-proc-board-u-boot.dtsi" > +#include "j721e-r5-binman.dtsi" > > / { > chosen { > diff --git a/board/ti/j721e/Kconfig b/board/ti/j721e/Kconfig > index c28752a658..a3a9d504ae 100644 > --- a/board/ti/j721e/Kconfig > +++ b/board/ti/j721e/Kconfig > @@ -24,6 +24,7 @@ config TARGET_J721E_R5_EVM > select RAM > select SPL_RAM > select K3_DDRSS > + select BINMAN > imply SYS_K3_SPL_ATF > imply TI_I2C_BOARD_DETECT >