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 21218C636CC for ; Thu, 16 Feb 2023 17:22:43 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 16CFC85B8A; Thu, 16 Feb 2023 18:22:41 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="WGvxYTSC"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 29F5285B8A; Thu, 16 Feb 2023 18:22:32 +0100 (CET) Received: from mail-qt1-x82d.google.com (mail-qt1-x82d.google.com [IPv6:2607:f8b0:4864:20::82d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 709F985B92 for ; Thu, 16 Feb 2023 18:22:24 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x82d.google.com with SMTP id f10so2964788qtv.1 for ; Thu, 16 Feb 2023 09:22:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=MUtg3oiWtkgR8CuOKamOH0H/J3QOWFjxI8BvYIPk4HI=; b=WGvxYTSC52gjh4qlpXp6VlZU9ka1xX0XezKP/IuNyK5xQwvI+Bk3+1eyqql+PU31kL vaJlvCVEW6QNDLWn21yunf+KzIU86rS8e/cYSuLY9ashd8UaDW51MzW5m842PalPh5y9 0VvTS6HeLf2R1CpgF7DVSOYjLi5r8/Zk2lPB8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=MUtg3oiWtkgR8CuOKamOH0H/J3QOWFjxI8BvYIPk4HI=; b=iI5t9BqMlMqE8PQCeryr88Jap7Ya2T9K2MWpftEkeKD61cT2OeG7vUsZP4KOWPNIG5 HQhf8J1Q4rT66pRdvXXBgLOaGctZgC5kydD1zjHjyrzLK8qptiXKWuVBrhW1vjQaGnzF 9ubs3jLSgPuWNmc3ZiSis7VwyTGkGaxvrQxF/TaQYxAjRxwFgu6jnaoNxRu3X0fu43tE k0oiaFKehvcKp8mqsr2/npgJa1jD1SJGtIUsxCHEu/ZrKUZPQYCtoJ6HikL0+wG4pmSg vKlfGClvsU45NiVf/4SJ2gUjtxXJhmNOrssNlygcm7sI1/Uz4m0TH2RIjJU2qG3wafCb gtTQ== X-Gm-Message-State: AO0yUKUoF/tsgl1NNdwsLaEObMmK1Am2v8AHBUo/6on4tDedNQ7H2aFE SkqvIwnPK10VT5gBE40jnoj0zw== X-Google-Smtp-Source: AK7set/CrBW/ZTzdV5bOOOBWnBJiarGv8aKQBfNvhEofmPhoZS5g4BkvIlQcWCar7GqJdlDlGjvw7w== X-Received: by 2002:a05:622a:113:b0:3bd:11a5:c114 with SMTP id u19-20020a05622a011300b003bd11a5c114mr2561028qtw.63.1676568143195; Thu, 16 Feb 2023 09:22:23 -0800 (PST) Received: from bill-the-cat (2603-6081-7b00-6400-2265-3a10-92ec-4b22.res6.spectrum.com. [2603:6081:7b00:6400:2265:3a10:92ec:4b22]) by smtp.gmail.com with ESMTPSA id bs13-20020ac86f0d000000b003b9a426d626sm1628248qtb.22.2023.02.16.09.22.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Feb 2023 09:22:22 -0800 (PST) Date: Thu, 16 Feb 2023 12:22:20 -0500 From: Tom Rini To: Heinrich Schuchardt Cc: Yanhong Wang , Simon Glass , Andrew Davis , Alper Nebi Yasak , Stefan Roese , Andre Przywara , =?iso-8859-1?B?Suly9G1l?= Carretero , Harald Seiler , u-boot@lists.denx.de Subject: Re: [PATCH v2 1/1] spl: allow loading via partition type GUID Message-ID: References: <20230216152956.130038-1-heinrich.schuchardt@canonical.com> <15eb0c06-33f7-31f3-e9d7-696f642de3d6@canonical.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="rSgShpf6RoidzEFO" Content-Disposition: inline In-Reply-To: <15eb0c06-33f7-31f3-e9d7-696f642de3d6@canonical.com> X-Clacks-Overhead: GNU Terry Pratchett 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.6 at phobos.denx.de X-Virus-Status: Clean --rSgShpf6RoidzEFO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 16, 2023 at 06:19:11PM +0100, Heinrich Schuchardt wrote: >=20 >=20 > On 2/16/23 18:01, Tom Rini wrote: > > On Thu, Feb 16, 2023 at 04:29:56PM +0100, Heinrich Schuchardt wrote: > >=20 > > > Some boards provide main U-Boot as a dedicated partition to SPL. > > > Currently we can define either a fixed partition number or an MBR > > > partition type to define which partition is to be used. > > >=20 > > > Partition numbers tend to conflict with established partitioning sche= mes > > > of Linux distros. MBR partitioning is more and more replaced by GPT > > > partitioning. > > >=20 > > > Allow defining a partition type GUID identifying the partition to load > > > main U-Boot from. > > >=20 > > > Signed-off-by: Heinrich Schuchardt > > [snip] > > > +config SYS_MMCSD_RAW_MODE_U_BOOT_GPT_PARTITION_TYPE > > > + string "GPT Partition Type on the MMC to load U-Boot from" > > > + depends on SYS_MMCSD_RAW_MODE_U_BOOT_USE_GPT_PARTITION_TYPE > > > + default d2f002f8-e4e7-4269-b8ac-3bb6fabeaff6 > >=20 > > Is there a reason to use any other GUID value here? If not, just define, > > or use it directly with a comment. If there is a reason for other > > values to be used: >=20 > Board vendors already differ in the partition GUIDs they use, e.g. >=20 > SiFive: > SPL: 5B193300-FC78-40CD-8002-E86C45580B47 > Main U-Boot: 2E54B353-1271-4842-806F-E436D6AF6985 >=20 > StarFive > SPL: 2E54B353-1271-4842-806F-E436D6AF6985 (sic) >=20 > Microchip Icicle Board: > SPL: 21686148-6449-6E6F-744E-656564454649 >=20 > Using unique IDs per board allow to create SD card images where U-Boot for > multiple boards is installed in parallel: >=20 > The boot ROM will select the board specific SPL via a unique ID and then = SPL > will use another unique ID to load the matching main U-Boot. >=20 > I only added a default value here to provide a formatting sample. Thanks for elaborating. It might be helpful to put something in a follow-up patch about these use cases under doc/ --=20 Tom --rSgShpf6RoidzEFO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmPuZkMACgkQFHw5/5Y0 tyw6vwv+Mc6M2ExjY9RjjwngrZOCt/F8WOqFZviESzz174m7xlpLfQ5Nuy6vg7BK OR5pkFF0cjNW/jaWeCe/pkLyEh9rrcnRIsAT3tVXj4Ms+jydJwGOsrfhjT8F1fVU y661MGDB0jnbb1OHEz8sZbDy0oN+v/52V93cecO80SFtuKfKOvCECgM8yULNnpn9 y9/LXuIFIuR8KX1KjTDXvgSgx+x+JBPIlQM9arlq3dVut9lphxNIDaqYuq6HYQlC W3ux3wiyfWzw5P3bYAqAMP8HSqpmKDKTjYQQZlYWdTnQ3dPNOK3Aj0LiCD43s5lD kXIr4GJW+yijjTSom0MHjfpItzddohoxo5k6mYAX2Zs7fuZMN0unwUR5P+mQdDRA 7XbLdegFiwzB8xEgy+rs4TIHh1bmBIwSXK9nYkG8f4hLwL1ZlgfVnhWJDx0NLrpJ AQuDkfnfff0IsHAfvcGW95ULc9EeqZSKXfig0gITk/GRJ+MlmZaAYt/XM2txBls1 pqyFaDJD =Npla -----END PGP SIGNATURE----- --rSgShpf6RoidzEFO--