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 BEF1DC54EBD for ; Fri, 13 Jan 2023 00:19:08 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D8AAA85595; Fri, 13 Jan 2023 01:17:46 +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="q5SNMqGl"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6D69A852F3; Fri, 13 Jan 2023 01:17:17 +0100 (CET) Received: from mail-qt1-x834.google.com (mail-qt1-x834.google.com [IPv6:2607:f8b0:4864:20::834]) (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 16FB0854E2 for ; Fri, 13 Jan 2023 01:17:08 +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-x834.google.com with SMTP id d16so4952523qtw.8 for ; Thu, 12 Jan 2023 16:17:07 -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=5zvundV7CuTG+03ifwr0UhLPK2KnBSx54+JrmR/49qM=; b=q5SNMqGlZLX6VG0N8czns9NsupDPw7225moccYMka+D525/Kp5b1Qx1r3Gsef+JUzq cd07p7F7Xt6anQQ9heV5HTFXs3zETRZYCHMLpQ1sUm0iBkpmus79i++HW80l1wqqBheb pQsUNq5L6/V/u+EcKTVuEF+vPWQMIlgLNEbvI= 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=5zvundV7CuTG+03ifwr0UhLPK2KnBSx54+JrmR/49qM=; b=lt3Kt5A7Fj8fF+6EIBCiIdsGDrSN4ZQcHhlNQQVeMitFRHH83RerFxxnE5fYkvIwf7 PWTJlg1AsttUDIHSO1Vturr1nWwO/hJNMhF/MfEIQ8+8TE7x1JWvjaD6MxGCgTeRqkL4 qkSknUuZxJnkWRvWVQie0AOk9MbdcmT3BuXhf1kCKoAS9UysbNkEMLfrQ29ED+qQ+n9w ZuNj3cwxPGQ6XN/Np+WTmCGkiHMmins3WciInCF8Wofzfo1jO4WpEkj92ox2yJjkqT/Y qgT+p5YYWZnQ6B6JLGhHbcl8Se7yKrsZxeeyB6vpvqG3eEpByRQs3xRsmOimJdOJTgnr tRBw== X-Gm-Message-State: AFqh2kr+qYG9viDOo3hoUI1O8mRNsk1MHIEpIQQ8JDNlfLl47pHNGKO6 VWolgzdGqgsuS76Ry7/wRrDW9AF+95zpQMNuMmk= X-Google-Smtp-Source: AMrXdXu0eDLYJ47wj7fLD5zqNns6HZGFQ+HlUWWLhsfEH8qwgIQV6qvEvD9S579KzDlpQKC+ANbkqw== X-Received: by 2002:a05:622a:5da4:b0:3b1:c538:701b with SMTP id fu36-20020a05622a5da400b003b1c538701bmr6291335qtb.40.1673569026743; Thu, 12 Jan 2023 16:17:06 -0800 (PST) Received: from bill-the-cat (2603-6081-7b00-6400-38c4-8177-7e9d-a94f.res6.spectrum.com. [2603:6081:7b00:6400:38c4:8177:7e9d:a94f]) by smtp.gmail.com with ESMTPSA id a9-20020ac87209000000b003b0766cd169sm3394406qtp.2.2023.01.12.16.17.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Jan 2023 16:17:06 -0800 (PST) Date: Thu, 12 Jan 2023 19:17:04 -0500 From: Tom Rini To: Marek Vasut Cc: u-boot@lists.denx.de, Frieder Schrempf , "Matwey V . Kornilov" , Pali Rohar , Peter Hoyes Subject: Re: [PATCH] distro_bootcmd: Set distro_bootpart_uuid for block devices Message-ID: <20230113001704.GF3787616@bill-the-cat> References: <20230105130823.97130-1-marex@denx.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="/t9dtUWCOvoCUFXj" Content-Disposition: inline In-Reply-To: <20230105130823.97130-1-marex@denx.de> 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 --/t9dtUWCOvoCUFXj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 05, 2023 at 02:08:23PM +0100, Marek Vasut wrote: > The assignment of block device nodes in Linux is not deterministic by > default, i.e. a newly added eMMC controller or other block device can > change the assignment of /dev/mmcblkN (or other block device node like > e.g. /dev/sdXy) and prevent the system from picking the correct block > device for root filesystem in case the root filesystem is specified on > kernel command line using 'root=3D/dev/mmcblkNpM' (or 'root=3D/dev/sdXy' > etc.). >=20 > One way out is to derive PARTUUID in U-Boot, which is unique identifier > of a partition, and pass that as root=3DPARTUUID=3D to Linux via > kernel command line. Linux would then find the partition using PARTUUID, > no matter on which block device the partition resides and which node was > assigned to that block device. >=20 > Derive the PARTUUID before scanning for extlinux presence and assign it > into distro_bootpart_uuid environment variable, which can then be used > in extlinux.conf kernel command line specifier. >=20 > Note that it is not possible to do this in scan_dev_for_extlinux script > because this script is called from scan_dev_for_boot script, which is > called for both block devices as well as UBI volumes, and we can not > derive PARTUUID for UBI volumes. >=20 > Signed-off-by: Marek Vasut Applied to u-boot/master, thanks! --=20 Tom --/t9dtUWCOvoCUFXj Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmPAowAACgkQFHw5/5Y0 tyyX6wv/ZCTlXyBgRUrWqrl+8HqsBhs0JHAh5VAAwxas6DnTo2wyYWIQ+svP1MeZ 4jJHrBNVjqul8kup0jKthC0BVVrC02zFiH5Q0haNr/fYO35NGl+U4FXECc1BQJ1H sVzMrA+G8oo49lZ6KKaKQSjDpo3saG6Tr264hqxImvEaSjmzbiESnfH2ZYbUbIGT ARxGfyYlNf1vgv/adScsRsakUxbOBd0PEbNJ4WMVfOoE+7m6KRExRCqqRKjVnPCQ usjynC2dbhD2MpkAw7B1g0l7JwwtI5szh7+UxZEtE/GIUDk04Yqgsx4ZKmiVDHjp LUxUossOMot0xuUq7dhHxU0g/Y8yr7LCVKCr5zpFgH53K+0sBcwxlx4ZPirkeMM5 O4ggYlCLuSqemSqAUnY7c5hdXQecFO3kxVQsM36lDUGQVKZy7C7twK6VgnqUn0Ez qxHepptaALQb1/gWOYF7g+SeuXI5t1SIfxKAbb8+ZsqVfowKZ+mZVit3moR4Rb3p yq1qx0xD =x3cs -----END PGP SIGNATURE----- --/t9dtUWCOvoCUFXj--