From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 15 Feb 2024 16:05:46 +0100 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1radJ4-007Z9y-2N for lore@lore.pengutronix.de; Thu, 15 Feb 2024 16:05:46 +0100 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1radJ4-0006Tz-9N; Thu, 15 Feb 2024 16:05:46 +0100 Received: from mail.thorsis.com ([92.198.35.195]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1radIt-0006Q6-Cp for distrokit@pengutronix.de; Thu, 15 Feb 2024 16:05:38 +0100 From: Alexander Dahl DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thorsis.com; s=default; t=1708009534; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Kzfo8T2gNYCH5MG3Es6cgRD94M4WDudoqNd/HvyhwJ0=; b=aTsxlM1RG7qYGpKiGHRin8AHwi8JIS3DlzcQBfQOe0atK1gq1b5LbElUyVfSdK+H9rmgoc Ntpj8S76fNnRC6TYFR4NBMKYEI8gwAXLIqo2CcJMF0i4KJDPVAsyFKREEE54Lfmb5GzBsC /f4zmmmUiRQLRjpukVsmCkutLSsE5Sjh3xeH89vGxWQ1qFy1ZLbZiN+DIadM/ddsQuA5VH p48WL25EpXIrqFiiHR1wAAiAP1CyT7GOWkqzcQ28thZXgVnVkjPDWAKMSFEWRig/GzduDh 4kqBfv3XiyGwJbxTxlHbiisDy8zdSst+6k3ybqnxksQEcQNpLgztHPfLFe5cKA== To: distrokit@pengutronix.de Date: Thu, 15 Feb 2024 16:05:29 +0100 Message-Id: <20240215150532.2702910-1-ada@thorsis.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.8 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Subject: [DistroKit] [PATCH 0/3] v7a: barebox: Support FIT images X-BeenThere: distrokit@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: DistroKit Mailinglist List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "DistroKit" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: distrokit-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false Hei hei, while working on a BSP using DistroKit as a base layer I try to support boards supported by DistroKit already plus some more boards where the necessary things are in my upper layer. One task is to use a FIT image for kernel and dts usable with both U-Boot and barebox. This is possible with this series and some tweaks which hit ptxdist master lately. One nasty problem is bootstate.dtsi referenced in barebox config option CONFIG_EXTERNAL_DTS_FRAGMENTS as '${PTXDIST_PLATFORMCONFIGDIR}/dts/bootstate.dtsi' currently. When using DistroKit as a base layer that file can not be found. I experimented with '$(call ptx/in-platformconfigdir, …' as adviced in docs, but that's probably not meant for Kconfig? Build runs successfully, but no bootstate.dtsi is included at all then, leading to barebox not booting anything because it can not find its state. The only solution I could come up with is to use a symbolic link with a relative path in the upper layer to bootstate.dtsi in the base layer, but I don't consider that elegant. And it would have to be done in each layer stacked on top for everyone using DistroKit as a base layer. If anyone can propose a better solution for that, please advice! Otherwise I think all three patches are useful for themselves. I could not test on other platforms however so the two patches touching barebox might be somewhat incomplete? Greets Alex Alexander Dahl (3): platform: v7a: barebox: Upgrade from 2023.12.0 to 2024.01.0 blspec-entry: Backport fix from ptxdist master platform: v7a: barebox: Enable FIT image support .../platform-v7a/barebox-am335x-mlo.config | 10 ++++++++- configs/platform-v7a/barebox-am335x.config | 19 ++++++++++++++--- .../platform-v7a/barebox-am335x.config.diff | 3 +-- configs/platform-v7a/barebox-at91.config | 19 ++++++++++++++--- configs/platform-v7a/barebox-at91.config.diff | 3 +-- configs/platform-v7a/barebox-mx6.config | 20 +++++++++++++++--- configs/platform-v7a/barebox-mx6.config.diff | 4 ++-- configs/platform-v7a/barebox-rpi2.config | 20 ++++++++++++++---- configs/platform-v7a/barebox-rpi2.config.diff | 2 +- configs/platform-v7a/barebox-stm32mp.config | 21 +++++++++++++++---- .../platform-v7a/barebox-stm32mp.config.diff | 3 ++- configs/platform-v7a/barebox-vexpress.config | 19 ++++++++++++++--- .../platform-v7a/barebox-vexpress.config.diff | 3 +-- configs/platform-v7a/barebox.config | 20 ++++++++++++++---- configs/platform-v7a/platformconfig | 4 ++-- rules/blspec-entry.make | 2 +- 16 files changed, 134 insertions(+), 38 deletions(-) base-commit: bc056fb67ed54f8f3fde6798ebbd07101309535f -- 2.39.2