From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 24 Jun 2025 17:47:05 +0200 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 1uU5rV-00Adu1-0e for lore@lore.pengutronix.de; Tue, 24 Jun 2025 17:47:05 +0200 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 1uU5rU-0005Gg-Az; Tue, 24 Jun 2025 17:47:04 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1uU5rN-0004ul-No; Tue, 24 Jun 2025 17:46:57 +0200 Received: from dude06.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::5c]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uU5rN-0058Zs-0t; Tue, 24 Jun 2025 17:46:57 +0200 Received: from localhost ([::1] helo=dude06.red.stw.pengutronix.de) by dude06.red.stw.pengutronix.de with esmtp (Exim 4.96) (envelope-from ) id 1uU5rN-005dSN-0X; Tue, 24 Jun 2025 17:46:57 +0200 From: Lars Schmidt Date: Tue, 24 Jun 2025 17:46:56 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20250624-am62-beagleplay-v2-6-9fcf3e67a98b@pengutronix.de> References: <20250624-am62-beagleplay-v2-0-9fcf3e67a98b@pengutronix.de> In-Reply-To: <20250624-am62-beagleplay-v2-0-9fcf3e67a98b@pengutronix.de> To: distrokit@pengutronix.de X-Mailer: b4 0.14.2 Subject: [DistroKit] [PATCH v2 06/10] beagleplay: fipimage: add fip image for K3 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: , Cc: l.schmidt@pengutronix.de 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 In order to be able to boot from an eMMC boot partition, a FIP image is mandatory. Link: https://lore.kernel.org/all/20250113-k3-r5-v3-20-065fcdcc28d3@pengutronix.de/ Signed-off-by: Lars Schmidt --- .../platform-v8a/config/images/image-fip-k3.config | 7 ++++ configs/platform-v8a/platforms/image-fip-k3.in | 10 ++++++ configs/platform-v8a/rules/image-fip-k3.make | 39 ++++++++++++++++++++++ 3 files changed, 56 insertions(+) diff --git a/configs/platform-v8a/config/images/image-fip-k3.config b/configs/platform-v8a/config/images/image-fip-k3.config new file mode 100644 index 0000000000000000000000000000000000000000..e6362160b6c1513a46e840f4ab3bc5f4ec2edcc1 --- /dev/null +++ b/configs/platform-v8a/config/images/image-fip-k3.config @@ -0,0 +1,7 @@ +image @IMAGE@ { + fip { + nt-fw = @FIP_K3_BAREBOX@ + soc-fw = @FIP_K3_BL31@ + extraargs = "--blob uuid=9e8c2017-8b94-4e2b-a7b3-a0f88eabb8ae,file=@FIP_K3_DM_FW@" + } +} \ No newline at end of file diff --git a/configs/platform-v8a/platforms/image-fip-k3.in b/configs/platform-v8a/platforms/image-fip-k3.in new file mode 100644 index 0000000000000000000000000000000000000000..aff81961585e1347777328e76ca2ac92c507bee9 --- /dev/null +++ b/configs/platform-v8a/platforms/image-fip-k3.in @@ -0,0 +1,10 @@ +## SECTION=image + +config IMAGE_FIP_K3 + tristate + prompt "Generate images/k3.fip" + select BAREBOX + select TF_A + select FIRMWARE_TI + help + Generates a fip image for Beagleplay diff --git a/configs/platform-v8a/rules/image-fip-k3.make b/configs/platform-v8a/rules/image-fip-k3.make new file mode 100644 index 0000000000000000000000000000000000000000..4d133dc1f0a852a6b6ee5ef886fbc78963c2b745 --- /dev/null +++ b/configs/platform-v8a/rules/image-fip-k3.make @@ -0,0 +1,39 @@ +# -*-makefile-*- +# +# Copyright (C) 2025 by Lars Schmidt +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +IMAGE_PACKAGES-$(PTXCONF_IMAGE_FIP_K3) += image-fip-k3 + +# +# Paths and names +# +IMAGE_FIP_K3 := image-fip-k3 +IMAGE_FIP_K3_DIR := $(BUILDDIR)/$(IMAGE_FIP_K3) +IMAGE_FIP_K3_IMAGE := $(IMAGEDIR)/k3.fip +IMAGE_FIP_K3_CONFIG := image-fip-k3.config + + +IMAGE_FIP_K3_ENV := \ + FIP_K3_BL31=$(IMAGEDIR)/bl31.bin \ + FIP_K3_DM_FW=$(SYSROOT)/usr/lib/firmware/ti-dm/am62xx/ti-dm.bin \ + FIP_K3_BAREBOX=$(IMAGEDIR)/barebox-beagleplay.img + +# ---------------------------------------------------------------------------- +# Image +# ---------------------------------------------------------------------------- + +$(IMAGE_FIP_K3_IMAGE): + @$(call targetinfo) + @rm -f $(IMAGEDIR)/bl31.bin + @cp $(IMAGEDIR)/k3-bl31.bin $(IMAGEDIR)/bl31.bin + @$(call image/genimage, IMAGE_FIP_K3) + @$(call finish) + +# vim: syntax=make -- 2.39.5