From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Sat, 26 Jul 2025 10:54:35 +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 1ufafr-003rlE-2c for lore@lore.pengutronix.de; Sat, 26 Jul 2025 10:54:35 +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 1ufafr-00082x-3g; Sat, 26 Jul 2025 10:54:35 +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 1ufafj-0007p0-JK; Sat, 26 Jul 2025 10:54:27 +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 1ufafj-00AMME-0h; Sat, 26 Jul 2025 10:54:27 +0200 Received: from localhost ([::1] helo=dude06.red.stw.pengutronix.de) by dude06.red.stw.pengutronix.de with esmtp (Exim 4.96) (envelope-from ) id 1ufafj-00D83w-0I; Sat, 26 Jul 2025 10:54:27 +0200 From: Lars Schmidt Date: Sat, 26 Jul 2025 10:54:20 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20250624-beagleplay-v1-v3-7-0b515d1317cd@pengutronix.de> References: <20250624-beagleplay-v1-v3-0-0b515d1317cd@pengutronix.de> In-Reply-To: <20250624-beagleplay-v1-v3-0-0b515d1317cd@pengutronix.de> To: distrokit@pengutronix.de X-Mailer: b4 0.12.0 Subject: [DistroKit] [PATCH v3 07/10] beagleplay: add full image including bootloaders and rootfs 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: l.schmidt@pengutronix.de 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 Signed-off-by: Lars Schmidt --- .../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 0000000..9621bd6 --- /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 0000000..2ca1783 --- /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 0000000..123494a --- /dev/null +++ b/configs/platform-v8a/rules/image-beagleplay.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_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