From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 24 Jun 2025 17:47:04 +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 1uU5rU-00Adtf-2f for lore@lore.pengutronix.de; Tue, 24 Jun 2025 17:47:04 +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 1uU5rT-0005Bk-Vt; Tue, 24 Jun 2025 17:47:04 +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 1uU5rN-0004up-Mx; Tue, 24 Jun 2025 17:46:57 +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 1uU5rN-0058Zt-0u; Tue, 24 Jun 2025 17:46:57 +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 1uU5rN-005dSN-0Y; Tue, 24 Jun 2025 17:46:57 +0200 From: Lars Schmidt Date: Tue, 24 Jun 2025 17:46:57 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20250624-am62-beagleplay-v2-7-9fcf3e67a98b@pengutronix.de> References: <20250624-am62-beagleplay-v2-0-9fcf3e67a98b@pengutronix.de> In-Reply-To: <20250624-am62-beagleplay-v2-0-9fcf3e67a98b@pengutronix.de> To: distrokit@pengutronix.de X-Mailer: b4 0.14.2 Subject: [DistroKit] [PATCH v2 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 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 +# +# 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