From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 28 Jul 2023 18:49:45 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qPQew-00Dm0i-D0 for lore@lore.pengutronix.de; Fri, 28 Jul 2023 18:49:44 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1qPQet-0001d1-P2; Fri, 28 Jul 2023 18:49:43 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qPQem-0001Ue-UN; Fri, 28 Jul 2023 18:49:36 +0200 Received: from [2a0a:edc0:0:1101:1d::54] (helo=dude05.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1qPQem-002kWX-9h; Fri, 28 Jul 2023 18:49:36 +0200 Received: from afa by dude05.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1qPQel-001R4Z-0a; Fri, 28 Jul 2023 18:49:35 +0200 From: Ahmad Fatoum To: distrokit@pengutronix.de Date: Fri, 28 Jul 2023 18:49:31 +0200 Message-Id: <20230728164933.342061-6-a.fatoum@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230728164933.342061-1-a.fatoum@pengutronix.de> References: <20230728164933.342061-1-a.fatoum@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [DistroKit] [PATCH 5/7] v8a: imx8m: genimage: switch from MBR to GPT images 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: Johannes Zink , Ahmad Fatoum 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.ext.pengutronix.de); SAEximRunCond expanded to false MBR is stuff of the past. Switch over to GPT. This is easier on i.MX8M than on i.MX6, because the BootROM starts execution at an >= 32K offset, so GPT can be located at its usual location. We should eventually move barebox into a proper GPT partition, but for now, just keep the old partition numbering intact. Signed-off-by: Ahmad Fatoum --- Cc: Johannes Zink --- configs/platform-v8a/config/images/imx8m.config | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configs/platform-v8a/config/images/imx8m.config b/configs/platform-v8a/config/images/imx8m.config index 367d98edcc1d..dfe106612426 100644 --- a/configs/platform-v8a/config/images/imx8m.config +++ b/configs/platform-v8a/config/images/imx8m.config @@ -1,17 +1,17 @@ image @IMAGE@ { hdimage { + partition-table-type = "gpt" align = 1M - disk-signature = 0x9e1b14a8 } partition barebox { image = "@BAREBOX_IMAGE@" size = 896K in-partition-table = false - holes = {"(440; 1K)"} + holes = {"(440; 32K)"} } partition root { offset = 2M image = "root.ext2" - partition-type = 0x83 + partition-type-uuid = b921b045-1df0-41c3-af44-4c6f280d3fae } } -- 2.39.2