From: Lars Schmidt <l.schmidt@pengutronix.de>
To: distrokit@pengutronix.de
Cc: l.schmidt@pengutronix.de
Subject: [DistroKit] [PATCH v2 06/10] beagleplay: fipimage: add fip image for K3
Date: Tue, 24 Jun 2025 17:46:56 +0200 [thread overview]
Message-ID: <20250624-am62-beagleplay-v2-6-9fcf3e67a98b@pengutronix.de> (raw)
In-Reply-To: <20250624-am62-beagleplay-v2-0-9fcf3e67a98b@pengutronix.de>
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 <l.schmidt@pengutronix.de>
---
.../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 <l.schmidt@pengutronix.de>
+#
+# 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
next prev parent reply other threads:[~2025-06-24 15:47 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-24 15:46 [DistroKit] [PATCH v2 00/10] Add beagleplay support to DistroKit Lars Schmidt
2025-06-24 15:46 ` [DistroKit] [PATCH v2 01/10] v8a: barebox: bump version v2025.03.0 -> v2025.06.0 Lars Schmidt
2025-06-24 15:46 ` [DistroKit] [PATCH v2 02/10] beagleplay: k3: barebox needs part of tf-a firmware Lars Schmidt
2025-06-24 15:46 ` [DistroKit] [PATCH v2 03/10] tf-a: unify handling of firmware parts for barebox Lars Schmidt
2025-06-24 15:46 ` [DistroKit] [PATCH v2 04/10] beagleplay: firmware-ti: initial package Lars Schmidt
2025-06-24 15:46 ` [DistroKit] [PATCH v2 05/10] beagleplay: barebox: first stage bootloader for Cortex-R5 Lars Schmidt
2025-06-24 15:46 ` Lars Schmidt [this message]
2025-06-24 15:46 ` [DistroKit] [PATCH v2 07/10] beagleplay: add full image including bootloaders and rootfs Lars Schmidt
2025-06-24 15:46 ` [DistroKit] [PATCH v2 08/10] beagleplay: add initial kernel configuration Lars Schmidt
2025-06-24 15:46 ` [DistroKit] [PATCH v2 09/10] beagleplay: barebox: get second boot stage running Lars Schmidt
2025-06-24 15:47 ` [DistroKit] [PATCH v2 10/10] beagleplay: add initial platform config Lars Schmidt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250624-am62-beagleplay-v2-6-9fcf3e67a98b@pengutronix.de \
--to=l.schmidt@pengutronix.de \
--cc=distrokit@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox