From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 23 May 2025 10:11:00 +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 1uINUZ-001pQb-2s for lore@lore.pengutronix.de; Fri, 23 May 2025 10:10:59 +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 1uINUZ-0001fQ-5b; Fri, 23 May 2025 10:10:59 +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 1uINUW-0001UZ-TU; Fri, 23 May 2025 10:10:56 +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 1uINUW-000rzj-1r; Fri, 23 May 2025 10:10:56 +0200 Received: from lsc by dude06.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1uINUW-007B03-1T; Fri, 23 May 2025 10:10:56 +0200 From: Lars Schmidt To: distrokit@pengutronix.de Date: Fri, 23 May 2025 10:10:45 +0200 Message-Id: <20250523081049.1693633-9-l.schmidt@pengutronix.de> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250523081049.1693633-1-l.schmidt@pengutronix.de> References: <20250523081049.1693633-1-l.schmidt@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [DistroKit] [PATCH 08/12] 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: Lars Schmidt 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 --- .../config/images/image-fip-k3.config | 7 ++++ .../platform-v8a/platforms/image-fip-k3.in | 10 +++++ configs/platform-v8a/rules/image-fip-k3.make | 39 +++++++++++++++++++ 3 files changed, 56 insertions(+) create mode 100644 configs/platform-v8a/config/images/image-fip-k3.config create mode 100644 configs/platform-v8a/platforms/image-fip-k3.in create mode 100644 configs/platform-v8a/rules/image-fip-k3.make 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 0000000..e636216 --- /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 0000000..aff8196 --- /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 0000000..4d133dc --- /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