From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 26 May 2025 12:18:24 +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 1uJUuW-000UWP-2B for lore@lore.pengutronix.de; Mon, 26 May 2025 12:18:24 +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 1uJUuV-0005Me-W6; Mon, 26 May 2025 12:18:24 +0200 Received: from ptz.office.stw.pengutronix.de ([2a0a:edc0:0:900:1d::77] helo=[127.0.0.1]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1uJUuU-0005MQ-6b; Mon, 26 May 2025 12:18:22 +0200 Message-ID: Date: Mon, 26 May 2025 12:18:22 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: Roland Hieber , distrokit@pengutronix.de References: <20250526101147.1953428-1-rhi@pengutronix.de> <20250526101147.1953428-3-rhi@pengutronix.de> Content-Language: en-US, de-DE, de-BE From: Ahmad Fatoum In-Reply-To: <20250526101147.1953428-3-rhi@pengutronix.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [DistroKit] [PATCH 03/11] v7a: barebox: boot from bootsource 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: , 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 Hi, On 5/26/25 12:11, Roland Hieber wrote: > Barebox 2025.05.0 with CONFIG_BOOT_DEFAULTS (which we implicitly > enabled in the last commit) can resolve the boot target "bootsource" to > the device from which the board was initially booted, if this is > supported by the platform code (see barebox commit 6d91022db295 "common: > bootdef: add new boot entry provider" for more info). This way we won't > have to hard-code "mmc0", "mmc2", or "disk0" as the boot target for > different platforms. > > Link: https://git.pengutronix.de/cgit/barebox/commit/?id=6d91022db29555c175e9 > Signed-off-by: Roland Hieber > --- > .../platform-v7a/barebox-defaultenv/nv/bootchooser.system0.boot | 2 +- > .../platform-v7a/barebox-defaultenv/nv/bootchooser.system1.boot | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/configs/platform-v7a/barebox-defaultenv/nv/bootchooser.system0.boot b/configs/platform-v7a/barebox-defaultenv/nv/bootchooser.system0.boot > index c0c541c8b2a3..5ec387df9ea0 100644 > --- a/configs/platform-v7a/barebox-defaultenv/nv/bootchooser.system0.boot > +++ b/configs/platform-v7a/barebox-defaultenv/nv/bootchooser.system0.boot > @@ -1 +1 @@ > -mmc0.root-A > + bootsource.root-A I guess it doesn't matter, but what's up with the space here? Cheers, Ahmad > diff --git a/configs/platform-v7a/barebox-defaultenv/nv/bootchooser.system1.boot b/configs/platform-v7a/barebox-defaultenv/nv/bootchooser.system1.boot > index 1d40e339c2fe..cea618acf89a 100644 > --- a/configs/platform-v7a/barebox-defaultenv/nv/bootchooser.system1.boot > +++ b/configs/platform-v7a/barebox-defaultenv/nv/bootchooser.system1.boot > @@ -1 +1 @@ > -mmc0.root-B > + bootsource.root-B -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |