[{"id":3683642,"web_url":"http://patchwork.ozlabs.org/comment/3683642/","msgid":"<CAFLszTh2fe02ux+hC12OrDJA827HeRgvsssw0qRG3wuHAfm5yw@mail.gmail.com>","list_archive_url":null,"date":"2026-04-28T18:22:51","subject":"Re: [PATCH v2 4/4] doc: fastboot: Document block device selection\n syntax","submitter":{"id":6170,"url":"http://patchwork.ozlabs.org/api/people/6170/","name":"Simon Glass","email":"sjg@chromium.org"},"content":"Hi Balaji,\n\nOn 2026-04-27T12:06:41, Balaji Selvanathan\n<balaji.selvanathan@oss.qualcomm.com> wrote:\n> doc: fastboot: Document block device selection syntax\n>\n> Add documentation for the device selection syntax in fastboot\n> block device operations. Users can now specify target devices\n> using 'N:partition' format where N is the device number.\n>\n> Document usage examples for regular partition operations like\n> \"fastboot flash 0:boot boot.img\" and partition table operations\n> like \"fastboot flash 1:gpt gpt.img\". When no device number is\n> specified, the default from CONFIG_FASTBOOT_FLASH_BLOCK_DEVICE_ID\n> is used.\n>\n> Reviewed-by: Mattijs Korpershoek <mkorpershoek@kernel.org>\n> Signed-off-by: Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>\n>\n> doc/android/fastboot.rst | 41 +++++++++++++++++++++++++++++++++++++++++\n>  1 file changed, 41 insertions(+)\n\n> diff --git a/doc/android/fastboot.rst b/doc/android/fastboot.rst\n> @@ -147,6 +147,38 @@ The Fastboot implementation in U-Boot allows to write images into disk\n>  partitions. Target partitions are referred on the host computer by\n>  their names.\n>\n> +Device Selection for Block Devices\n> +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\nOther subsection headings in this file use sentence case ('USB\nconfiguration', 'Partition aliases', etc). Please rename to 'Device\nselection for block devices' to match - and likewise 'Partition name\nformats' below.\n\n> diff --git a/doc/android/fastboot.rst b/doc/android/fastboot.rst\n> @@ -186,6 +218,15 @@ configuration options:\n>     CONFIG_FASTBOOT_GPT_NAME\n>     CONFIG_FASTBOOT_MBR_NAME\n>\n> +When using block devices (`FASTBOOT_FLASH_BLOCK), you can specify the target\n> +device by prefixing with the device number::\n> +\n> +   fastboot flash 0:gpt gpt.img    # Write GPT to device 0\n> +   fastboot flash 1:mbr mbr.img    # Write MBR to device 1\n> +\n> +If no device number is specified, the default device from\n> +CONFIG_FASTBOOT_FLASH_BLOCK_DEVICE_ID is used.\n\nThis duplicates what was added a few paragraphs up in 'Device\nSelection for Block Devices' (same '0:gpt'/'1:mbr' examples and the\nsame default-device sentence). How about dropping this block and\nadding a one-liner cross-reference, e.g. 'See above for the\nN:partition syntax when using FASTBOOT_FLASH_BLOCK'.\n\n> diff --git a/doc/android/fastboot.rst b/doc/android/fastboot.rst\n> @@ -147,6 +147,38 @@ The Fastboot implementation in U-Boot allows to write images into disk\n> +This syntax is supported for:\n> +\n> +* Regular partition flashing\n> +* GPT partition table updates (gpt or N:gpt)\n> +* MBR partition table updates (mbr or N:mbr`)\n> +* Partition erasing operations\n\nJust to check, does erase actually go through the same parser? It does\ntoday via fastboot_block_get_part_info(), but worth confirming it's\nexercised since the commit message only mentions flash.\n\nRegards,\nSimon","headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256\n header.s=google header.b=TiXFJJNF;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)","phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=chromium.org","phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de","phobos.denx.de;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=chromium.org header.i=@chromium.org\n header.b=\"TiXFJJNF\";\n\tdkim-atps=neutral","phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=chromium.org","phobos.denx.de;\n spf=pass smtp.mailfrom=sjg@chromium.org"],"Received":["from phobos.denx.de (phobos.denx.de\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g4phc20W4z1xrS\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 04:23:12 +1000 (AEST)","from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 2DD5F8468E;\n\tTue, 28 Apr 2026 20:23:10 +0200 (CEST)","by phobos.denx.de (Postfix, from userid 109)\n id C510E8469E; Tue, 28 Apr 2026 20:23:08 +0200 (CEST)","from mail-ej1-x629.google.com (mail-ej1-x629.google.com\n [IPv6:2a00:1450:4864:20::629])\n (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 81D2B803C6\n for <u-boot@lists.denx.de>; Tue, 28 Apr 2026 20:23:04 +0200 (CEST)","by mail-ej1-x629.google.com with SMTP id\n a640c23a62f3a-ba7a1cc0380so1969167566b.2\n for <u-boot@lists.denx.de>; Tue, 28 Apr 2026 11:23:04 -0700 (PDT)"],"X-Spam-Checker-Version":"SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,\n DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,\n RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham\n autolearn_force=no version=3.4.2","ARC-Seal":"i=1; a=rsa-sha256; t=1777400584; cv=none;\n d=google.com; s=arc-20240605;\n b=ZvAl2/8jSikwHDMfC3FS3SMXuaEMWXnYuXzqmFPb8fr+fGkZkK2PTlYta+eVFT4ekO\n 78GPUf9YQv9rRTAHRzYJSg9sRtsJQXh1oUy0TQds7/NbAwL9tQD1zFjMNN/ZTTSSokzj\n vYDi2RcE2V8Up35aWfrZXFYPdhd/BVtHYPvs/opH+JNO4BlOZxhfjM1cl1NDRLP2Hsf+\n UqM66d/zAM8tDLkTHFLUxuBDqQcMuECAQB08vH2Xo4z1OLamM9FSj7vEfKlyoRfreoTX\n SN15ojwOi/2KbC0mokg0NRLorctCYn7nHOF0qNS6n77iK/BxBpIO2jYMHGB5EDE0m8Hy\n kXRw==","ARC-Message-Signature":"i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n h=cc:to:subject:message-id:date:from:in-reply-to:references\n :mime-version:dkim-signature;\n bh=CdXVyYEfc9MVatREugFrGep+HPBcXEjNAsZG9fLrcpY=;\n fh=FSZLg1kBZKtmq7hkO96s8J8bywdf/NrVlQg027zGQAY=;\n b=XgYvWEMbEu091Hru6Z78otyk5ulaLK9jyUp5pmuwpwlEclSkJDzz5n1lS00nZoB1Ak\n MV+sxSdg94BdLgl2trrgAUXp/fI4N/9Ith1XQG39+yHtF4Q5zEyQlaQ6RE2zMHRRy+02\n JHzbUN/HwnF2UZFUlOWU173uldXuSSJHLOYck7yKYrxPGOiLYKyj3rECQI5sp82U1tYl\n dorxt4KEXUSoFUhvUKY+PWOxsldU+eXQn4MannnJaJuxYKJOUGyJwJnuf09PbJIIofAp\n FiehKrG9msYg4WNxBNKbPKe+kGIqDxuzHSSKDxjUOxm8od3ZVRw4NHEcrZu6Ce7zGg2R\n q6kw==; darn=lists.denx.de","ARC-Authentication-Results":"i=1; mx.google.com; arc=none","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=chromium.org; s=google; t=1777400584; x=1778005384; darn=lists.denx.de;\n h=cc:to:subject:message-id:date:from:in-reply-to:references\n :mime-version:from:to:cc:subject:date:message-id:reply-to;\n bh=CdXVyYEfc9MVatREugFrGep+HPBcXEjNAsZG9fLrcpY=;\n b=TiXFJJNF9G/ePoydIbcm3rWZy5zrRodneU/UVEaxpQZyinnc+C81ho0li/G6Ny7sgj\n PpyqEXmZRuKPXBmOl3J0buMffpKZRW2yG6CacDAyWIksaJQjU/VlOQbgN+IMXscQPgyA\n 3Uexy7skE+IURWmOp4qx29cH0eohLIfa8x0Tk=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777400584; x=1778005384;\n h=cc:to:subject:message-id:date:from:in-reply-to:references\n :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=CdXVyYEfc9MVatREugFrGep+HPBcXEjNAsZG9fLrcpY=;\n b=Wa7YTQ0y4/ms/6yv8rNx/5ZbSoxIcSi4wdbjCi3PJxF2CbsKY8ZZWfGayxjqNAAFeM\n +AyQTqUZ0zJS0a5l754kayPEJqy4L0+BH7Jgm5K0FyNSiqTfCDHrQqvxyBEuGUsCPAx4\n kOYi8n9RJlc5TpRLxo4gEu7jzjn50bVtTGcYQlO+F96DknjqpogGzAi9hNnxj2t1mfNW\n Wm3dOKeys5lQAJcsC69J5oZpdKKcb3CZ2vV4Zgk3bhoaDi6GT8SJafDz8eb67HhJ6xZ9\n JvZxLVK7/aqWP9426twhDsTrAOZFyBNsml2BoPV56flAWuR2x95zDbjHg0G0TqysLHdr\n zjSQ==","X-Gm-Message-State":"AOJu0Yz/6kEhR9Ksjg0SX9c8ncEKwUz6yJfZgxEb59pDgdEcZTVriRyc\n +FFHcZz5uSC4q8L/701MXi11xWVLu5pPrSZOtP4HuR+xDAI9DZbNLfNRfOeZ5bN4OMgsavHqDSS\n Ui1Irs2kaVmJW4FBNXpPBVVJ47M9B4UkcNjJ6Odof","X-Gm-Gg":"AeBDieud7QOxfd2b8/sKxUGWICI1klfpQFDiYl3tCarooq4lOcMLof04YG7PnwMQhjn\n cIsxuak6s8f8ZTNbY0Pa5LqFngRjdp7KusAMshDZFSTwO284ZoeV3YajBAVzo8Pl33CRB8kC9li\n Zyr3yxC00+4T/PvfTY9JiWzmOqUZYBkQ9TxzpurzN3uFQ+RmzTFrldb+bOLrPvZWqzfLpaGH35W\n rpkSkqloYMcAJQDw5P3IeP+7Ut2AIG5rqJIIFHIwVNlN8wKaaC2mkA2tHVPfg/N+DQIRLahJmGa\n l2NIZ0WBA9E2mSSeIUgVc12LTVs=","X-Received":"by 2002:a17:907:d312:b0:b9e:f58:c581 with SMTP id\n a640c23a62f3a-bb80443e813mr257503866b.45.1777400583153; Tue, 28 Apr 2026\n 11:23:03 -0700 (PDT)","MIME-Version":"1.0","References":"<20260427-fb_gpt-v2-0-9e7fe3c1649a@oss.qualcomm.com>\n <20260427-fb_gpt-v2-4-9e7fe3c1649a@oss.qualcomm.com>","In-Reply-To":"<20260427-fb_gpt-v2-4-9e7fe3c1649a@oss.qualcomm.com>","From":"Simon Glass <sjg@chromium.org>","Date":"Tue, 28 Apr 2026 12:22:51 -0600","X-Gm-Features":"AVHnY4IT6N-nU8qI0AvUbi2Wmd0JXr_owuMA22rVxHizqAHPA_89NtKGsk5fvok","Message-ID":"\n <CAFLszTh2fe02ux+hC12OrDJA827HeRgvsssw0qRG3wuHAfm5yw@mail.gmail.com>","Subject":"Re: [PATCH v2 4/4] doc: fastboot: Document block device selection\n syntax","To":"balaji.selvanathan@oss.qualcomm.com","Cc":"u-boot@lists.denx.de, Mattijs Korpershoek <mkorpershoek@kernel.org>,\n Tom Rini <trini@konsulko.com>, Heiko Schocher <hs@nabladev.com>,\n Neil Armstrong <neil.armstrong@linaro.org>,\n Dmitrii Merkurev <dimorinny@google.com>,\n Adrian Freihofer <adrian.freihofer@siemens.com>, Peng Fan <peng.fan@nxp.com>,\n Jaehoon Chung <jh80.chung@samsung.com>,\n \"Ariel D'Alessandro\" <ariel.dalessandro@collabora.com>","Content-Type":"text/plain; charset=\"UTF-8\"","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.39","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<https://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>","X-Virus-Scanned":"clamav-milter 0.103.8 at phobos.denx.de","X-Virus-Status":"Clean"}}]