From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Wed, 17 Jan 2024 14:34:53 +0100 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 1rQ64C-003mX3-1C for lore@lore.pengutronix.de; Wed, 17 Jan 2024 14:34:53 +0100 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 1rQ64D-0001KV-2c; Wed, 17 Jan 2024 14:34:53 +0100 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 1rQ644-0001Fh-CW; Wed, 17 Jan 2024 14:34:44 +0100 Received: from [2a0a:edc0:0:1101:1d::39] (helo=dude03.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rQ643-000Tkx-Tq; Wed, 17 Jan 2024 14:34:43 +0100 Received: from lgo by dude03.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rQ643-0041dY-2n; Wed, 17 Jan 2024 14:34:43 +0100 From: =?UTF-8?q?Leonard=20G=C3=B6hrs?= To: distrokit@pengutronix.de Date: Wed, 17 Jan 2024 14:34:36 +0100 Message-Id: <20240117133440.944800-4-l.goehrs@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240117133440.944800-1-l.goehrs@pengutronix.de> References: <20240117133440.944800-1-l.goehrs@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [DistroKit] [PATCH v2 3/7] images: imx8m: add a barebox environment partition 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: =?UTF-8?q?Leonard=20G=C3=B6hrs?= 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 The barebox environment is configured in the board devicetrees to be at 896k and 128k in size (e.g. the last 128k before the 1M mark). This is for compatibility with the fdisk behaviour of placing the start of the first partition at the 1M mark. Not everyone knows this though, so it can easily happen that someone increases the size of the barebox partition, making it overlap with the environment "partition". Make this less likely to happen by listing the barebox state in the genimage config. Signed-off-by: Leonard Göhrs --- configs/platform-v8a/config/images/imx8m.config | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configs/platform-v8a/config/images/imx8m.config b/configs/platform-v8a/config/images/imx8m.config index 32a0661..a4a7e12 100644 --- a/configs/platform-v8a/config/images/imx8m.config +++ b/configs/platform-v8a/config/images/imx8m.config @@ -9,6 +9,14 @@ image @IMAGE@ { in-partition-table = false holes = {"(440; 32K)"} } + partition barebox-environment { + # The barebox environment location is configured in the board + # devicetree files to 0xe0000 ... 0xe0000+0x20000. + offset = 896K + size = 128K + in-partition-table = false + image = /dev/null + } partition root-A { offset = 4M image = "root.ext2" -- 2.39.2