From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 23 May 2025 10:11:00 +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 1uINUa-001pRb-2T for lore@lore.pengutronix.de; Fri, 23 May 2025 10:11:00 +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 1uINUa-0001r8-3Z; Fri, 23 May 2025 10:11:00 +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 1uINUX-0001UY-1r; Fri, 23 May 2025 10:10: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 1uINUW-000rzn-1q; Fri, 23 May 2025 10:10:56 +0200 Received: from lsc by dude06.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1uINUW-007B06-1W; Fri, 23 May 2025 10:10:56 +0200 From: Lars Schmidt To: distrokit@pengutronix.de Date: Fri, 23 May 2025 10:10:46 +0200 Message-Id: <20250523081049.1693633-10-l.schmidt@pengutronix.de> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250523081049.1693633-1-l.schmidt@pengutronix.de> References: <20250523081049.1693633-1-l.schmidt@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [DistroKit] [PATCH 09/12] 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: Lars Schmidt 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 | 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 +# +# 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