From patchwork Sun Apr 19 14:31:41 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 4544 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 4613E40D1C for ; Sun, 19 Apr 2026 16:32:59 +0200 (CEST) Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-488a4c29ce4sf1811275e9.0 for ; Sun, 19 Apr 2026 07:32:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1776609179; cv=pass; d=google.com; s=arc-20240605; b=QmvHDnfSo0nhWh5xp3MBTVtQt20OR8ssWX1JglBVJYLeRc5DK+LgCpgY8X0CpplfEN prXWVeB3LjFg5y/DiJurZYa1sL26JFyZ0XRnMxVxl0FT8+YocMPC8L3K/uOFDPToW3rV Wufhw0J5bzx+h4xAtD0GyvbS7+QMqMNXH4K9W7WkxUb1YCnaAVcaZV/IoTqVND84LQsb cUUE3eNMhFjSgC/pUl3YiUsktQRNwNSKXxF9QDj5XOyhlxnUoEoy8tQTJI+6P/Uwbwyi vFE05gTCly6oU642o0GpF1qTo76EEZI9tt44J5CpycbGHQc0LApUFZPX1YyJ147hzPuW g4DA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=ZIzOJJFletaonBorIumd6+mkNx+CdGdQPYA03MKdaNU=; fh=oJZZODt8/uzH1dwvUdjYp3RbQP08p/4k1qgB6dNoF58=; b=N5VquuXgoMSaB15b/i1XKGoXS0ucbjzFC3ktxyWkKLQ86NB/sQR8hSIaGPoOs/engi cz6RF4yesJKquFxSlCF8tRhSa0Zzul1vlVO4SKcbOK+aN7Qg4s8D7KgJoeF/Pw840yvS VHwctzXB4dlCKFFifVfQzoIxQ0xMI+bNg8cXBP14d0G9gH1WEWJAQKrbXMhNvmyhwuPd AnmRri9omqSPurpzwWgl9urv0HvQ0vs7FSqR3veRpQTwDRXdAmab4cl68W/1m/DeXtyP +wq9VP1EabqIvjARsBP1i7mcFbuRPel/tQ1doMQYxwLZHyCDPMIhJz+PyDpEI+DEG6S+ RMnA==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Jx8iBqEL; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=neutral header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1776609179; x=1777213979; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=ZIzOJJFletaonBorIumd6+mkNx+CdGdQPYA03MKdaNU=; b=LDWVhCMyfirnjAsO7G3BhvnTlNNflgWhg2Cgb6d5lvdnJ1QY6m2bPSJXd/G+3+fGiL FuJ3es3IaqlvilUjIdHYzhGMGd6MqatFV9T7UkSJzUQuJkWSplJTWAt2H5lyxnIyXgMO DwCLBeMVqBsUBO2R5LSPRdiAOLP1Xaq5BwJQk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776609179; x=1777213979; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ZIzOJJFletaonBorIumd6+mkNx+CdGdQPYA03MKdaNU=; b=EVBFlTmgmPq07rOL6YoITBDMr5GvgwarkuQW9mZVyaYI8zIi0A7t+yQbMK/JONrUUY 1XJ0y1RemMUA+vy9NsLLi8a63as7EjyAER4HacetXYgAaDhgpM0cDN7dyVQN6a6mHhjS RdYKICbp6SNDUvMNHLnTFuIfUl6Hr9Uo4OpdZxKhLa6Lh2NyE6Ee9yacKLhG9AabuqJo qO7pkRGKwSuPYt3i2uTIjtlNxVs8RqlGKVzrcz7xCJg1ehh2WYkOyKhufzLmnRA90Cxu aVaOcruE1pZ521Vyf//LwcIa1C4DVzIIpsPMI0kmnmZjg6PeJ3oRGWJj7dXd6mXizM4p Pixg== X-Forwarded-Encrypted: i=2; AFNElJ+QHQ8wBsp7e3RwN3+5EcsO1L7dxJyinM7MYrxDZz+pvDN93ZsS8cy9f3g05XB+eOn3GlPQ6woezSzCGuTk@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YxJft+nlnCx7prKW0K/eBaH/hE9HofiAdWbXwftkjliOa9rRzqt jzTtiqfY8YVG++H7GCNKvA7A0iKuKX/FVZv92rWfVUPlB+VF1A9zAsDZVwPX2pHCegh9QQ== X-Received: by 2002:a05:600c:3544:b0:488:93c5:4dc with SMTP id 5b1f17b1804b1-488fb773f1bmr76420485e9.7.1776609178864; Sun, 19 Apr 2026 07:32:58 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com; h="AYAyTiKENAySJGaNUc6yLfQsnj4l/rPx93+DMEHXQrlWp2fnnw==" Received: by 2002:a05:600c:310a:b0:489:1b02:7d07 with SMTP id 5b1f17b1804b1-4891b02977dls1579285e9.2.-pod-prod-04-eu; Sun, 19 Apr 2026 07:32:57 -0700 (PDT) X-Received: by 2002:a05:600c:6286:b0:485:3f1c:d8a1 with SMTP id 5b1f17b1804b1-488fb74a677mr146159455e9.9.1776609177084; Sun, 19 Apr 2026 07:32:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1776609177; cv=none; d=google.com; s=arc-20240605; b=IbVm2mYDsWyTL/0P/izrIyI674OXKwlpTz9mhawKQevz0GnKWjuvquxt2s+PgKys/A e8/5NUrop6eLZy8gOVzIHYb8hhho/g/pV/Z98zaynhlljsjj0vROwyZ8eoC+s/bkvtoI C4EpOvGioHTUpX+c83eabyuN2hm5q4vRRQLXIl0K5j276214jPhpbZSuGArsjBl/9SMs 5YmBuKQw1sL+sMd9zM+S72GaeyVhLk4TggYYbKlMznJ/itSW+SvR2Q0k607r7ZffAs5t YnNzC9TJhIQDDSJTNq8D42ZnFBqAUtzCbu/jl3P8yKuTummRYdvMhRTgBtvvBO0aJCZh v8rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=7DKsi4pzYyQDOTb8zo06i67V2qb9y1zARBTwXnfbWaQ=; fh=DgSNEHkI+k06nk8mDZFRveritGH++LuSPtF28KDFn/A=; b=DGMyo4DrCh2pYek1LlR/VFNkFdVgpuLjqAIFUcI8CycFqHvaNfulipYLwbKPRiC1H6 C84pwZLq/eQWXrB4GyrYVXw0+jnPzenpQN001AWQ9PV3TdB3Y03AEa6QU9yQLrDMYk0x lS6fWAoqsckEO6htEPF4oxvzghGXWnwR3YJlUCAryvKj0Jo9PApBa8LwfyNFEX8hpjWH XPgU2AZrllq7hdOfE+8+85X/0c3z7MBrFBzslht48uo7lL0saDcJsYaRbFxsP3BBfKlJ Ve74S1CCPgQyIQ3z78V1d3PaOlidPXkB4q6qFzU4JD1Xgrlf4jiHqhHY0RctBIzvMsvs v1EQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Jx8iBqEL; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=neutral header.i=@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id 5b1f17b1804b1-4890933ff2esor2936525e9.0.2026.04.19.07.32.57 for (Google Transport Security); Sun, 19 Apr 2026 07:32:57 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Gm-Gg: AeBDietaKh3FFgBddgIN9NKQAQNdCUIeIfLQEZlzuWLulsx9jS9jN88MuxhH0V3bRv3 om48rCEgMZ+midXxNhGji3jjGbRMSTPmJTUcjsYitVwwaA9DQN19cdtBeSrMzVO2KKJNT5uYGkQ u/II4+NjBD36Er/BSYhsIrx4HqaW9uXgOUOB20peaQRgrBw/LTGByoG1wE+JLzBnIQB6LeJ6ExR 9RklYom1I0rXCOeV6KN/GlzLSNiVO1BXFc4MZJYUePwjdtTTp2WZbt3YHp8iJfi6fw7RyuoIcQs QluhEsNKm6SPOnFkQZUiVTg1xCbuXrXALsBtH0A9rykzOiyltZu4BSB8/XhVN+TH6xY3AVHzf8N 7DnMkz6MSukHbk2uRDvuORZWeBDJYQZ43SJlnPL4p8NXg8JkO7PK0sGGphrTZzkKTjiAvezdH5I jjMTtX59Fm3Raj6MIiNkL6+r8TpbMIRBNhdH8QAfp+SxPjQrL+x0pIXNoi7JJvRW4bzLrNm9tb7 kY++XhgEo5ABmDX9SWo6GL9z4ijt2wo35q3kZY/zF9cQcTIfgwRhsSpS71SzbQ4KohHga4DrVTp PfwT/z1nJh+SRSfgQcFvoGHlVkldtyDt X-Received: by 2002:a05:600c:8b84:b0:480:1c69:9d36 with SMTP id 5b1f17b1804b1-488fb76e4aamr155501975e9.17.1776609176620; Sun, 19 Apr 2026 07:32:56 -0700 (PDT) Received: from dario-ThinkPad-P14s-Gen-5.homenet.telecomitalia.it (host-79-20-97-39.retail.telecomitalia.it. [79.20.97.39]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-488fb755938sm86864245e9.3.2026.04.19.07.32.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Apr 2026 07:32:56 -0700 (PDT) From: Dario Binacchi To: u-boot@lists.denx.de Cc: linux-amarula@amarulasolutions.com, Dario Binacchi , Simon Glass , Heinrich Schuchardt , Ilias Apalodimas , Javier Martinez Canillas , Jerome Forissier , Patrick Delaunay , Tom Rini , =?utf-8?q?Vincent_Stehl=C3=A9?= Subject: [PATCH v4 1/8] lib: uuid: add partition type GUID for extended bootloader Date: Sun, 19 Apr 2026 16:31:41 +0200 Message-ID: <20260419143247.437733-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260419143247.437733-1-dario.binacchi@amarulasolutions.com> References: <20260419143247.437733-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Jx8iBqEL; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=neutral header.i=@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The Extended Boot Loader Partition (XBOOTLDR) is a standard defined by the Discoverable Partitions Specification (DPS) to host boot loader resources outside of the EFI System Partition ([1], [2]). Defining this GUID (bc13c2ff-59e6-4262-a352-b275fd6f7172) allows U-Boot to correctly identify and label these partitions using the "xbootldr" shorthand. [1] https://uapi-group.org/specifications/specs/discoverable_partitions_specification/#extended-boot-loader-partition:~:text=UEFI%20Specification.-,Extended%20Boot%20Loader%20Partition,-bc13c2ff%2D59e6%2D4262 [2] https://uapi-group.org/specifications/specs/boot_loader_specification/ Signed-off-by: Dario Binacchi Reviewed-by: Simon Glass --- (no changes since v2) Changes in v2: - Add links to the XBOOTLDR specification in the commit message - Add Reviewed-by tag of Simon Glass doc/README.gpt | 2 ++ include/part_efi.h | 3 +++ lib/uuid.c | 1 + 3 files changed, 6 insertions(+) diff --git a/doc/README.gpt b/doc/README.gpt index 386ac2e0fc8f..a6e1fd7ce8d4 100644 --- a/doc/README.gpt +++ b/doc/README.gpt @@ -286,6 +286,8 @@ Some strings can be also used at the place of known GUID : (E6D6D379-F507-44C2-A23C-238F2A3DF928) "u-boot-env" = PARTITION_U_BOOT_ENVIRONMENT (3DE21764-95BD-54BD-A5C3-4ABE786F38A8) + "xbootldr" = PARTITION_XBOOTLDR + (BC13C2FF-59E6-4262-A352-B275FD6F7172) "uuid_disk=...;name=u-boot,size=60MiB,uuid=...; name=kernel,size=60MiB,uuid=...,type=linux;" diff --git a/include/part_efi.h b/include/part_efi.h index 2cea50880465..5713b3018f42 100644 --- a/include/part_efi.h +++ b/include/part_efi.h @@ -60,6 +60,9 @@ #define PARTITION_U_BOOT_ENVIRONMENT \ EFI_GUID( 0x3de21764, 0x95bd, 0x54bd, \ 0xa5, 0xc3, 0x4a, 0xbe, 0x78, 0x6f, 0x38, 0xa8) +#define PARTITION_XBOOTLDR \ + EFI_GUID( 0xbc13c2ff, 0x59e6, 0x4262, \ + 0xa3, 0x52, 0xb2, 0x75, 0xfd, 0x6f, 0x71, 0x72) /* Special ChromiumOS things */ #define PARTITION_CROS_KERNEL \ diff --git a/lib/uuid.c b/lib/uuid.c index 3a666d0430db..d7c164ea06bf 100644 --- a/lib/uuid.c +++ b/lib/uuid.c @@ -86,6 +86,7 @@ static const struct { {"swap", NULL, PARTITION_LINUX_SWAP_GUID}, {"lvm", NULL, PARTITION_LINUX_LVM_GUID}, {"u-boot-env", NULL, PARTITION_U_BOOT_ENVIRONMENT}, + {"xbootldr", NULL, PARTITION_XBOOTLDR}, {"cros-kern", NULL, PARTITION_CROS_KERNEL}, {"cros-root", NULL, PARTITION_CROS_ROOT}, {"cros-fw", NULL, PARTITION_CROS_FIRMWARE},