From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Wed, 13 Dec 2023 17:50:39 +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 1rDSRS-002Jty-1d for lore@lore.pengutronix.de; Wed, 13 Dec 2023 17:50:39 +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 1rDSRS-0006V8-Tx; Wed, 13 Dec 2023 17:50:38 +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 1rDSRR-0006Op-C0; Wed, 13 Dec 2023 17:50:37 +0100 Received: from [2a0a:edc0:0:1101:1d::54] (helo=dude05.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 1rDSRQ-00Fc5w-Vu; Wed, 13 Dec 2023 17:50:37 +0100 Received: from localhost ([::1] helo=dude05.red.stw.pengutronix.de) by dude05.red.stw.pengutronix.de with esmtp (Exim 4.96) (envelope-from ) id 1rDSRQ-005N3L-2u; Wed, 13 Dec 2023 17:50:36 +0100 From: Ahmad Fatoum To: distrokit@pengutronix.de Date: Wed, 13 Dec 2023 17:50:16 +0100 Message-Id: <20231213165014.1279779-2-a.fatoum@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231213165014.1279779-1-a.fatoum@pengutronix.de> References: <20231213165014.1279779-1-a.fatoum@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [DistroKit] [PATCH 2/2] v7a: images: stm32mp: generate eMMC boot partition image as well 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: 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.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false The DistroKit image is capable of booting both from SD-Card and eMMC user area. For boot from eMMC boot partition, we can keep reusing the same image for the user area, but need to place the boot firmware into the boot partition as well. Add an extra image that does just that. Signed-off-by: Ahmad Fatoum --- .../platform-v7a/config/images/stm32mp.config | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/configs/platform-v7a/config/images/stm32mp.config b/configs/platform-v7a/config/images/stm32mp.config index 58b9232d84a6..f75d6adc054a 100644 --- a/configs/platform-v7a/config/images/stm32mp.config +++ b/configs/platform-v7a/config/images/stm32mp.config @@ -4,6 +4,8 @@ image @IMAGE@ { partition-table-type = gpt gpt-no-backup = true } + + /* below three partitions are unused when booting from eMMC boot partition */ partition fsbl1 { image = "stm32mp1-tf-a-@STM32MP_BOARD@.stm32" size = 256K @@ -16,6 +18,7 @@ image @IMAGE@ { image = "@STM32MP_BOARD@.fip" size = 1M } + partition barebox-environment { size = 1M } @@ -29,6 +32,22 @@ image @IMAGE@ { } } +image @STM32MP_BOARD@-emmcboot.img { + hdimage { + partition-table = false + } + + partition fsbl { + image = "stm32mp1-tf-a-@STM32MP_BOARD@.stm32" + size = 256K + } + + partition fip { + image = "@STM32MP_BOARD@.fip" + offset = 256K + } +} + image @STM32MP_BOARD@.fip { fip { fw-config = "stm32mp1-@STM32MP_BOARD@-fw-config.dtb" -- 2.39.2