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 107FDC001B0 for ; Sun, 13 Aug 2023 14:27:24 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 28BB58475C; Sun, 13 Aug 2023 16:27:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org 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=chromium.org header.i=@chromium.org header.b="OvYEl9eR"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9B3448077D; Sun, 13 Aug 2023 16:27:22 +0200 (CEST) Received: from mail-il1-x136.google.com (mail-il1-x136.google.com [IPv6:2607:f8b0:4864:20::136]) (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 8E3FD8475C for ; Sun, 13 Aug 2023 16:27:20 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-il1-x136.google.com with SMTP id e9e14a558f8ab-34961362f67so11041825ab.0 for ; Sun, 13 Aug 2023 07:27:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1691936839; x=1692541639; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=7LTkTYG2V7V+b/XJGrS5FjZaEUNwdXXPW8dIYQ+5i7g=; b=OvYEl9eRsMW34XwD8LzRf6sWxh0Bz+FGRcwLZ7VsyynHiM2YEmXzHqJz/eIoQCntQ6 kOToaBlHMmL4jY0YT4G92MbR7hl7jgx/vJzsk8tosDjReYBLX807bbJg5McpAsV3SXWd FK9KxldwSl4hUhsyZw8hnPFnnzwfhier9cr9E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691936839; x=1692541639; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7LTkTYG2V7V+b/XJGrS5FjZaEUNwdXXPW8dIYQ+5i7g=; b=kBh3suOL7wx2WgobENpqVjcTNsoiagajJSbDC2C+hW50rpQ3ZK097RDEkR0j4Tw+/A 93V1gqDWq3WUoWjOA4Bav6rcduvVKZC+dU9lQ+8JeypVDXBR0ejfuD8lZaEo04vqEv3q VjaJ05c5x5FPRejXvIZrQhPsii6fWkpZQFdrVyPD6Ws16um1DCzrzRiZOx54FMcayhrz Je8ycpGgzdvhslWqelKn+Vzzu7AoKYYxEMDF8bh9NB0nRpKZ/YG04Gd/Iu1tVtAzN9zw 7VQjG99ZK6hiFsJFGbz7iFlwGaDm/TiN5c1k1q6UMVNY0qDYZ6izdnXhlF0kv3FXXadj FpFQ== X-Gm-Message-State: AOJu0Yz5NNCGIbDqFTXHkEdWeTOduvXEx0Q5/u1N5oI/p9AmmwxY47Ei 4J6q1WZ1oD+iYLPkTgcHaPvv2eFiGGtDt+aP8Pg= X-Google-Smtp-Source: AGHT+IE2I+zPO+NcmP+2OWQP6eHhowhjF1Wna3VKls0yj7SVnk718cfnowrtu6RoIjrP+2KSyuqHig== X-Received: by 2002:a05:6e02:1a82:b0:349:9328:6554 with SMTP id k2-20020a056e021a8200b0034993286554mr11496520ilv.16.1691936839053; Sun, 13 Aug 2023 07:27:19 -0700 (PDT) Received: from sjg1.lan (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id w7-20020a02cf87000000b00430cf006d9bsm2280952jar.30.2023.08.13.07.27.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Aug 2023 07:27:18 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Simon Glass , Abdellatif El Khlifi , Alexey Brodkin , Bin Meng , Dzmitry Sankouski , Heinrich Schuchardt , Huang Jianan , Ilias Apalodimas , Jaehoon Chung , Jose Marinho , Joshua Watt , Marek Vasut , Nikhil M Jain , Pavel Herrmann , Rasmus Villemoes , Stefan Herbrechtsmeier , Tobias Waldekranz , linux-erofs@lists.ozlabs.org Subject: [PATCH 00/24] bootstd: Support ChromiumOS better Date: Sun, 13 Aug 2023 08:26:28 -0600 Message-ID: <20230813142708.361456-1-sjg@chromium.org> X-Mailer: git-send-email 2.41.0.640.ga95def55d0-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 This updates the ChromiumOS bootmeth to detect multiple kernel partitions on a disk. It also includes minor code improvements to the partition drivers, including accessors for the optional fields. This series also includes some other related tweaks in testing. It is available at u-boot-dm/methb-working Simon Glass (24): part: Use desc instead of dev_desc part: amiga: Use desc instead of dev_desc part: dos: Use desc instead of dev_desc part: efi: Use desc instead of dev_desc part: iso: Use desc instead of dev_desc part: nac: Use desc instead of dev_desc part: Add comments for static functions part: Add accessors for struct disk_partition uuid part: Add accessors for struct disk_partition type_uuid part: Add an accessor for struct disk_partition sys_ind part: efi: Add debugging for the signature check fs/erofs: Quieten test for filesystem presence dm: core: Correct error handling when event fails uuid: Move function comments to header file sandbox: Add a way to access persistent test files test: Move 1MB.fat32.img and 2MB.ext2.img bootflow: Show an empty filename when there is none bootstd: test: Allow binding and using any mmc device bootstd: Add a test for bootmeth_cros part: Add a fallback for part_get_bootable() bootstd: Support bootmeths which can scan any partition uuid: Add ChromiumOS partition types bootstd: cros: Allow detection of any kernel partition CI: Add ChromiumOS utilities arch/sandbox/cpu/os.c | 24 ++++ arch/sandbox/dts/test.dts | 9 ++ boot/Kconfig | 2 + boot/bootdev-uclass.c | 24 +++- boot/bootmeth_cros.c | 48 ++++--- cmd/bootflow.c | 2 +- cmd/gpt.c | 10 +- configs/snow_defconfig | 1 + disk/part.c | 226 +++++++++++++++-------------- disk/part_amiga.c | 34 ++--- disk/part_dos.c | 78 +++++----- disk/part_efi.c | 281 +++++++++++++++++++------------------ disk/part_iso.c | 52 +++---- disk/part_mac.c | 59 ++++---- doc/develop/bootstd.rst | 11 +- drivers/core/device.c | 3 +- fs/erofs/super.c | 4 +- fs/fat/fat.c | 4 +- include/bootmeth.h | 3 + include/os.h | 10 ++ include/part.h | 215 ++++++++++++++++++---------- include/part_efi.h | 14 ++ include/uuid.h | 94 +++++++++++++ lib/uuid.c | 93 +----------- test/boot/bootflow.c | 80 ++++++++--- test/dm/host.c | 44 +++--- test/py/tests/fs_helper.py | 6 +- test/py/tests/test_ut.py | 148 ++++++++++++++++++- tools/docker/Dockerfile | 3 + 29 files changed, 982 insertions(+), 600 deletions(-) -- 2.41.0.640.ga95def55d0-goog