DistroKit Mailinglist
 help / color / mirror / Atom feed
From: Lars Schmidt <l.schmidt@pengutronix.de>
To: distrokit@pengutronix.de
Cc: l.schmidt@pengutronix.de
Subject: [DistroKit] [PATCH v2 07/10] beagleplay: add full image including bootloaders and rootfs
Date: Tue, 24 Jun 2025 17:46:57 +0200	[thread overview]
Message-ID: <20250624-am62-beagleplay-v2-7-9fcf3e67a98b@pengutronix.de> (raw)
In-Reply-To: <20250624-am62-beagleplay-v2-0-9fcf3e67a98b@pengutronix.de>

Signed-off-by: Lars Schmidt <l.schmidt@pengutronix.de>
---
 .../config/images/image-beagleplay.config          | 55 ++++++++++++++++++++++
 configs/platform-v8a/platforms/image-beagleplay.in | 12 +++++
 configs/platform-v8a/rules/image-beagleplay.make   | 39 +++++++++++++++
 3 files changed, 106 insertions(+)

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 0000000000000000000000000000000000000000..9621bd65e9f62462acd03616dd14ecde688ea16f
--- /dev/null
+++ b/configs/platform-v8a/config/images/image-beagleplay.config
@@ -0,0 +1,55 @@
+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 barebox-environment {
+		partition-type-uuid = barebox-env
+		image = barebox-default-environment
+		size = 1M
+		image = "/dev/zero"
+	}
+
+	partition barebox-state {
+		partition-type-uuid = barebox-state
+		size = 1M
+		image = "/dev/zero"
+	}
+
+    partition root-A {
+        image = @IMAGE@.root.ext4
+        partition-type = 0x83
+        partition-type-uuid = root-arm64
+        size = 200M
+    }
+
+    partition root-B {
+        size = 200M
+        partition-type = 0x83
+        partition-type-uuid = root-arm64
+    }
+}
+
+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
+}
\ No newline at end of file
diff --git a/configs/platform-v8a/platforms/image-beagleplay.in b/configs/platform-v8a/platforms/image-beagleplay.in
new file mode 100644
index 0000000000000000000000000000000000000000..2ca17834f8e9e6f005e77c7fee2e8be32a00b556
--- /dev/null
+++ b/configs/platform-v8a/platforms/image-beagleplay.in
@@ -0,0 +1,12 @@
+## SECTION=image
+
+config IMAGE_BEAGLEPLAY
+	tristate
+	select HOST_GENIMAGE
+	select HOST_DOSFSTOOLS
+	select IMAGE_FIP_K3
+	select HOST_E2FSPROGS
+	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 0000000000000000000000000000000000000000..123494ae0bd6d0ddeeb766f45818057382717df9
--- /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




  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 ` [DistroKit] [PATCH v2 06/10] beagleplay: fipimage: add fip image for K3 Lars Schmidt
2025-06-24 15:46 ` Lars Schmidt [this message]
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-7-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