From: Lars Schmidt <l.schmidt@pengutronix.de>
To: distrokit@pengutronix.de
Cc: Lars Schmidt <l.schmidt@pengutronix.de>
Subject: [DistroKit] [PATCH 09/12] beagleplay: add full image including bootloaders and rootfs
Date: Fri, 23 May 2025 10:10:46 +0200 [thread overview]
Message-ID: <20250523081049.1693633-10-l.schmidt@pengutronix.de> (raw)
In-Reply-To: <20250523081049.1693633-1-l.schmidt@pengutronix.de>
Signed-off-by: Lars Schmidt <l.schmidt@pengutronix.de>
---
.../config/images/image-beagleplay.config | 43 +++++++++++++++++++
.../platforms/image-beagleplay.in | 11 +++++
.../platform-v8a/rules/image-beagleplay.make | 39 +++++++++++++++++
3 files changed, 93 insertions(+)
create mode 100644 configs/platform-v8a/config/images/image-beagleplay.config
create mode 100644 configs/platform-v8a/platforms/image-beagleplay.in
create mode 100644 configs/platform-v8a/rules/image-beagleplay.make
diff --git a/configs/platform-v8a/config/images/image-beagleplay.config b/configs/platform-v8a/config/images/image-beagleplay.config
new file mode 100644
index 0000000..44a8bd6
--- /dev/null
+++ b/configs/platform-v8a/config/images/image-beagleplay.config
@@ -0,0 +1,43 @@
+image @IMAGE@ {
+ hdimage {
+ partition-table-type = hybrid
+ align = 1M
+ }
+
+ partition boot {
+ image = @IMAGE@.boot.vfat
+ partition-type = 0xc
+ partition-type-uuid = F
+ bootable = true
+ }
+
+ partition root-A {
+ image = @IMAGE@.root.ext4
+ partition-type = 0x83
+ partition-type-uuid = b921b045-1df0-41c3-af44-4c6f280d3fae
+ size = 200M
+ }
+
+ partition root-B {
+ size = 200M
+ partition-type = 0x83
+ partition-type-uuid = b921b045-1df0-41c3-af44-4c6f280d3fae
+
+ }
+}
+
+image @IMAGE@.root.ext4 {
+ ext4 {}
+ size = 200M
+ mountpoint = "/"
+}
+
+image @IMAGE@.boot.vfat {
+ vfat {
+ file tiboot3.bin { image = @IMAGE_BAREBOX_R5@ }
+ file k3.fip { image = @IMAGE_FIP_K3@ }
+ }
+ name = boot-vfat
+ size = 128M
+ empty = true
+}
diff --git a/configs/platform-v8a/platforms/image-beagleplay.in b/configs/platform-v8a/platforms/image-beagleplay.in
new file mode 100644
index 0000000..6d997ba
--- /dev/null
+++ b/configs/platform-v8a/platforms/image-beagleplay.in
@@ -0,0 +1,11 @@
+## SECTION=image
+
+config IMAGE_BEAGLEPLAY
+ tristate
+ select HOST_GENIMAGE
+ select HOST_DOSFSTOOLS
+ select IMAGE_FIP_K3
+ prompt "Generate images/image-beagleplay.hdimg"
+ help
+ Complete image for BeaglePlay. Includes all barebox bootloader stages,
+ firmware images as well as root filesystem.
diff --git a/configs/platform-v8a/rules/image-beagleplay.make b/configs/platform-v8a/rules/image-beagleplay.make
new file mode 100644
index 0000000..123494a
--- /dev/null
+++ b/configs/platform-v8a/rules/image-beagleplay.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_BEAGLEPLAY) += image-beagleplay
+
+#
+# Paths and names
+#
+IMAGE_BEAGLEPLAY := image-beagleplay
+IMAGE_BEAGLEPLAY_DIR := $(BUILDDIR)/$(IMAGE_BEAGLEPLAY)
+IMAGE_BEAGLEPLAY_IMAGE := $(IMAGEDIR)/image-beagleplay.hdimg
+IMAGE_BEAGLEPLAY_FILES := $(IMAGEDIR)/root.tgz
+IMAGE_BEAGLEPLAY_CONFIG := image-beagleplay.config
+
+IMAGE_BEAGLEPLAY_ENV := \
+ IMAGE_FIP_K3=$(IMAGEDIR)/k3.fip \
+ IMAGE_BAREBOX_R5=$(IMAGEDIR)/barebox-beagleplay-r5.img \
+ IMAGE_BAREBOX=$(IMAGEDIR)/barebox-beagleplay.img
+
+
+
+# ----------------------------------------------------------------------------
+# Image
+# ----------------------------------------------------------------------------
+
+$(IMAGE_BEAGLEPLAY_IMAGE):
+ @$(call targetinfo)
+ @$(call image/genimage, IMAGE_BEAGLEPLAY)
+ @$(call finish)
+
+# vim: syntax=make
--
2.39.5
next prev parent reply other threads:[~2025-05-23 8:11 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 ` [DistroKit] [PATCH 08/12] beagleplay: fipimage: add fip image for K3 Lars Schmidt
2025-05-23 8:10 ` Lars Schmidt [this message]
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-10-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