From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7182ED6ACC5 for ; Wed, 27 Nov 2024 12:33:09 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 73219897D5; Wed, 27 Nov 2024 13:33:00 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=dh-electronics.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=dh-electronics.com header.i=@dh-electronics.com header.b="u5qus3KY"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 881D4895BD; Wed, 27 Nov 2024 11:30:12 +0100 (CET) Received: from mx3.securetransport.de (mx3.securetransport.de [116.203.31.6]) by phobos.denx.de (Postfix) with ESMTP id 798AA89430 for ; Wed, 27 Nov 2024 11:30:10 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=dh-electronics.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pzimmermann@dh-electronics.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dh-electronics.com; s=dhelectronicscom; t=1732703401; bh=Gz+f8ldq07zPClYOyakbS/3I33vNC19DZ5Q6s3+jUyg=; h=From:To:CC:Subject:Date:From; b=u5qus3KYQig0QP2VPsXW8Xpa5wbc2CIuV8vttqrHieAJ0uHpgFFgEJWyGQPtyG51S NAKwKfyuNo0g3tK+3xhNAbvE7vEryZCb3Ud4sqJgiM5mae2FBaibBmBVj0lqghx2Jr XtdjeWtdQ7OGPHeNbC6liy9RLYaJKURnZpAJaQvdKRqauzQRXMvFBLE67/2de05VTk HHWmAeL40Bd6GeuOG9sdWyAx/Q2+KNpKbLZNHUoJxiBFWSOJjtUZPX65smgz3baOCF Ktuo2oj7iaanm+zwssEiQjzfqRPRIzHLhy/CJo98PYK/ctprUyidT7JJ2hSelPrN1/ ci2VPX6pv/ZJQ== From: Pascal Zimmermann To: CC: Pascal Zimmermann , Marek Vasut , Patrick Delaunay , Patrice Chotard , Tom Rini , Simon Glass , , Subject: [PATCH 0/2] ARM: stm32: env: Enable scan and start for AB schema on STM32MP15 DHSOM Date: Wed, 27 Nov 2024 11:29:22 +0100 Message-ID: <20241127102924.7652-1-pzimmermann@dh-electronics.com> X-klartext: yes MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Mailman-Approved-At: Wed, 27 Nov 2024 13:32:59 +0100 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean For the STM32MP15 DHSOM, change the default environment so an AB schema on a device can be detected. The first patch makes possible to substitute the 'part list' command inside 'scan_dev_for_boot_part' with a custom board specific implementation. The second patch uses the change of the first patch to plug the board specific code for booting from AB into the standard boot of all boot targets at the STM32MP15 DHSOM. The detection works by looking for the partitions with specific lables. The name of those partitions are in the variables and its defaults: * dh_ab_partname_primary=rootfs-a * dh_ab_partname_secondary=rootfs-b To prevent being hanging at bootcmd, enable "CONFIG_BOOT_RETRY" and "CONFIG_RESET_TO_RETRY", but the timer will only be activated, if the AB partitions are detected. Pascal Zimmermann (2): config_distro_bootcmd: make possible to substitute 'part list' in distro_bootcmd ARM: stm32: env: Enable scan and start for AB schema on STM32MP15 DHSOM configs/stm32mp15_dhsom.config | 3 +++ include/config_distro_bootcmd.h | 7 +++++- include/configs/stm32mp15_dh_dhsom.h | 33 ++++++++++++++++++++++++++++ 3 files changed, 42 insertions(+), 1 deletion(-) Signed-off-by: Pascal Zimmermann --- Cc: Marek Vasut Cc: Patrick Delaunay Cc: Patrice Chotard Cc: Tom Rini Cc: Simon Glass Cc: u-boot@dh-electronics.com Cc: uboot-stm32@st-md-mailman.stormreply.com Cc: u-boot@lists.denx.de -- 2.30.2