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 44ED1C25B75 for ; Thu, 23 May 2024 21:10:01 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8AECF885A5; Thu, 23 May 2024 23:09:59 +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="mW9u7HGR"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5328C88600; Thu, 23 May 2024 23:09:58 +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 DBCDB88252 for ; Thu, 23 May 2024 23:09:55 +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=j-humphreys@ti.com Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 44NL9diA125713; Thu, 23 May 2024 16:09:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1716498579; bh=oqVCsFikp5fSR58Axn8uDv2EKAVdYsuLDRU7d9Vr/XQ=; h=From:To:CC:Subject:In-Reply-To:References:Date; b=mW9u7HGR6ZLNgHaNLCtXcWK+5YwTS8/iTOkLnvOpYDAX5WlRDq4RO9NxCBJ4Qm9X4 26WkU5Q+zbS3QT65vOif0bLU4TyOuDHRDjhIVvoBREhq5hk+f4OLnHlD7Hy2nVmuJr RBPrGWYIgcm2qV8mHnGm0xN925qS3uDXaz0HZJOc= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 44NL9dvt044092 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 23 May 2024 16:09:39 -0500 Received: from DLEE111.ent.ti.com (157.170.170.22) 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.2507.23; Thu, 23 May 2024 16:09:38 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) 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.23 via Frontend Transport; Thu, 23 May 2024 16:09:38 -0500 Received: from localhost (udb0321960.dhcp.ti.com [128.247.81.241]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 44NL9c1c080731; Thu, 23 May 2024 16:09:38 -0500 From: Jon Humphreys To: Tom Rini CC: Neha Malcom Francis , Mattijs Korpershoek , Kamlesh Gurudasani , "Manorit Chawdhry" , Heinrich Schuchardt , Judith Mendez , Christian Gmeiner , Devarsh Thakkar , "Simon Glass" , Nikhil M Jain , Andrew Davis , Maxime Ripard , Siddharth Vadapalli , Roger Quadros , Bryan Brattlof , Vignesh Raghavendra , Robert Nelson , Nishanth Menon , Sughosh Ganu , Masahisa Kojima , Marcel Ziswiler , Ilias Apalodimas , Subject: Re: [PATCH v2 4/7] dts: beagleplay: binman: Include firmware capsules binman nodes In-Reply-To: <20240523151740.GQ2568172@bill-the-cat> References: <20240419212819.170033-1-j-humphreys@ti.com> <20240419212819.170033-5-j-humphreys@ti.com> <20240510173200.GV2568172@bill-the-cat> <86o78yd1ud.fsf@udb0321960.dhcp.ti.com> <20240522141048.GG2568172@bill-the-cat> <86jzjlcgjw.fsf@udb0321960.dhcp.ti.com> <20240523151740.GQ2568172@bill-the-cat> Date: Thu, 23 May 2024 16:09:38 -0500 Message-ID: <86ed9sck19.fsf@udb0321960.dhcp.ti.com> MIME-Version: 1.0 Content-Type: text/plain 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 Tom Rini writes: > On Wed, May 22, 2024 at 11:12:35PM -0500, Jon Humphreys wrote: >> Tom Rini writes: >> >> > On Tue, May 21, 2024 at 09:20:26PM -0500, Jon Humphreys wrote: >> >> Tom Rini writes: >> >> >> >> > On Fri, Apr 19, 2024 at 04:28:16PM -0500, Jonathan Humphreys wrote: >> >> > >> >> >> Fill in the BeaglePlay's capsule GUID properties of the base binman capsule >> >> >> nodes. >> >> >> >> >> >> Signed-off-by: Jonathan Humphreys >> >> >> --- >> >> >> arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi | 27 ++++++++++++++++++++ >> >> >> arch/arm/dts/k3-am625-r5-beagleplay.dts | 15 +++++++++++ >> >> >> 2 files changed, 42 insertions(+) >> >> > >> >> > This series introduces failure to build in CI, and it's a little tricky >> >> > to replicate locally, depending on your environment. You first need to >> >> > NOT have BINMAN_INDIRS set and instead be using fake binaries. Second, >> >> > it seems python version dependent perhaps? I don't see this on my host, >> >> > but by: >> >> > - Using the CI container >> >> > - Setting up a virtualenv inside of it >> >> > - pip install -r tools/buildman/requirements.txt >> >> > I get: >> >> > $ ./tools/buildman/buildman --keep-outputs --reproducible-builds -dvel --force-build -PEWM --output /tmp/am62x_beagleplay_r5 --board am62x_beagleplay_r5 >> >> > Building current source for 1 boards (1 thread, 12 jobs per thread) >> >> > arm: + am62x_beagleplay_r5 >> >> > +(am62x_beagleplay_r5) Image 'tiboot3-am62x-gp-evm.bin' is missing optional external blobs but is still functional: ti-fs-gp.bin >> >> > +(am62x_beagleplay_r5) >> >> > +(am62x_beagleplay_r5) /binman/tiboot3-am62x-gp-evm.bin/ti-fs-gp.bin (ti-sysfw/ti-fs-firmware-am62x-gp.bin): >> >> > +(am62x_beagleplay_r5) Missing blob >> >> > +(am62x_beagleplay_r5) binman: object of type 'NoneType' has no len() >> >> > +(am62x_beagleplay_r5) make[1]: *** [Makefile:1126: .binman_stamp] Error 1 >> >> > +(am62x_beagleplay_r5) make: *** [Makefile:177: sub-make] Error 2 >> >> > 0 0 1 /1 am62x_beagleplay_r5 >> >> >> >> Tom, this is failing in the CI container because the container is missing >> >> the mkeficapsule tool. >> >> >> >> To solve this, we just need to add it to the CI container. >> >> >> >> My understanding of binman's handling of missing bintools is that it should >> >> gracefully continue with fake data, so that buildman can successfully test >> >> out builds for boards even when you don't have all the required bintools. >> >> If I have that correct, I can also create a patch to properly handle this >> >> when using mkeficapsule. But I want to verify this is the desired behavior, >> >> since mkeficapsule isn't a unique or vendor specific tool, so shouldn't we >> >> require it as part of the U-Boot build environment and err out if it is >> >> missing? >> > >> > Perhaps it's a binman issue since we build mkeficapsule or at least >> > should be? Neha? >> > >> >> Never mind - I figured it out. >> >> The mkeficapsule tools is built by u-boot if TOOLS_MKEFICAPSULE config is >> set. I didn't explicitly set it because it is implied by >> EFI_CAPSULE_ON_DISK config. But this is only set for the A core u-boot, as >> that is what would apply the capsules. SPL running on the R cores does not >> need this. But that then means that the R core u-boot builds don't have >> TOOLS_MKEFICAPSULE set and if that is all that is being built (as in the >> case of buildman), the mkeficapsule tool isn't built and so is missing. >> >> So I need to explicitly set TOOLS_MKEFICAPSULE in the R core defconfigs. >> I'll repost the patches. > > Interesting. My next thought here is that whatever symbol is allowing > for "make a capsule" should be select'ing TOOLS_MKEFICAPSULE and so the > current logic is a bit flawed. I'm just not sure off-hand where it > should be instead, do you have some ideas now? Thanks. > There is no config that indicates that capsules will be generated for the resulting binary. The only thing I can think of is to scan the board's DTB for the presence of a capsule binman node, and then set the TOOLS_MKEFICAPSULE config. But this seems very complicated to do at build time. Jon > -- > Tom