From: Lars Schmidt <l.schmidt@pengutronix.de>
To: distrokit@pengutronix.de
Cc: Lars Schmidt <l.schmidt@pengutronix.de>
Subject: [DistroKit] [PATCH 08/12] beagleplay: fipimage: add fip image for K3
Date: Fri, 23 May 2025 10:10:45 +0200 [thread overview]
Message-ID: <20250523081049.1693633-9-l.schmidt@pengutronix.de> (raw)
In-Reply-To: <20250523081049.1693633-1-l.schmidt@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>
---
.../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 <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-05-23 8:10 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-23 8:10 [DistroKit] [PATCH 00/12] Add beagleplay support to DistroKit Lars Schmidt
2025-05-23 8:10 ` [DistroKit] [PATCH 01/12] v8a: barebox: bump version v2025.03.0 -> v2025.05.0 Lars Schmidt
2025-05-23 8:10 ` [DistroKit] [PATCH 02/12] beagleplay: tf-a: needs adaption for k3 boards Lars Schmidt
2025-05-23 8:10 ` [DistroKit] [PATCH 03/12] tf-a: k3 needs an additional compile argument Lars Schmidt
2025-05-23 8:10 ` [DistroKit] [PATCH 04/12] beagleplay: k3: barebox needs part of tf-a firmware Lars Schmidt
2025-05-23 8:10 ` [DistroKit] [PATCH 05/12] tf-a: unify handling of firmware parts for barebox Lars Schmidt
2025-05-23 8:49 ` Alexander Dahl
2025-05-23 8:10 ` [DistroKit] [PATCH 06/12] beagleplay: firmware-ti: initial package Lars Schmidt
2025-05-23 8:10 ` [DistroKit] [PATCH 07/12] beagleplay: barebox: first stage bootloader for Cortex-R5 Lars Schmidt
2025-05-23 8:10 ` Lars Schmidt [this message]
2025-05-23 8:10 ` [DistroKit] [PATCH 09/12] beagleplay: add full image including bootloaders and rootfs Lars Schmidt
2025-05-23 8:10 ` [DistroKit] [PATCH 10/12] beagleplay: add initial kernel configuration Lars Schmidt
2025-05-23 8:10 ` [DistroKit] [PATCH 11/12] beagleplay: barebox: update config for beagleplay Lars Schmidt
2025-05-23 8:10 ` [DistroKit] [PATCH 12/12] 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=20250523081049.1693633-9-l.schmidt@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