From: Tom Rini <trini@konsulko.com>
To: Neil Armstrong <neil.armstrong@linaro.org>
Cc: Mattijs Korpershoek <mkorpershoek@kernel.org>,
u-boot@lists.denx.de, Dmitrii Merkurev <dimorinny@google.com>
Subject: Re: [PATCH RFT v4 3/3] fastboot: integrate block flashing back-end
Date: Thu, 22 May 2025 08:39:58 -0600 [thread overview]
Message-ID: <20250522143958.GJ100073@bill-the-cat> (raw)
In-Reply-To: <20250522-topic-fastboot-blk-v4-3-af7f7f30564d@linaro.org>
[-- Attachment #1: Type: text/plain, Size: 2749 bytes --]
On Thu, May 22, 2025 at 02:37:07PM +0200, Neil Armstrong wrote:
> From: Dmitrii Merkurev <dimorinny@google.com>
>
> 1. Get partition info/size
> 2. Erase partition
> 3. Flash partition
> 4. BCB
>
> Signed-off-by: Dmitrii Merkurev <dimorinny@google.com>
> Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
> Tested-by: Mattijs Korpershoek <mkorpershoek@kernel.org>
> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
> ---
> drivers/fastboot/Kconfig | 29 +++++++++++++++++++++++++++++
> drivers/fastboot/Makefile | 1 +
> drivers/fastboot/fb_command.c | 8 ++++++++
> drivers/fastboot/fb_common.c | 22 ++++++++++++++++++----
> drivers/fastboot/fb_getvar.c | 8 +++++++-
> 5 files changed, 63 insertions(+), 5 deletions(-)
I know this was posted before I replied with more feedback moments ago.
[snip]
> @@ -193,6 +197,31 @@ config FASTBOOT_MMC_USER_NAME
> defined here.
> The default target name for erasing EMMC_USER is "mmc0".
>
> +config FASTBOOT_FLASH_BLOCK_INTERFACE_NAME
> + string "Define FASTBOOT block interface name"
> + depends on FASTBOOT_FLASH_BLOCK
> + default ""
> + help
> + The fastboot "flash" and "erase" commands support operations
> + on any Block device, this should specify the block device name
> + like ide, scsi, usb, sata, nvme, virtio, blkmap, mtd...
> + The mmc block device type can be used but most of the features
> + available in the FASTBOOT_MMC will be missing.
> + Consider using FASTBOOT_MMC on a MMC block device until all
> + features are migrated.
A default like "" in order to un-stick configs that are now here and
enabling the option is wrong. If we're enabling new functionality for
platforms, it needs to be configured correctly. This leads to building
code on platforms that won't be used on the platform so we've likely
added run-time bloat for no benefit.
> +config FASTBOOT_FLASH_BLOCK_DEVICE_ID
> + int "Define FASTBOOT block device identifier"
> + depends on FASTBOOT_FLASH_BLOCK
> + default 0
> + help
> + The fastboot "flash" and "erase" commands support operations
> + on any Block device, this should specify the block device
> + identifier on the system, as a number.
> + The device identifier should be 0 for first device on the
> + interface type specified in FLASH_BLOCK_INTERFACE_NAME config,
> + 1 the second, etc...
This help should be one paragraph and note something along the lines of:
- Device identifiers are numbered starting from 0.
- The most common case is to use the first controller.
And then yes, "default 0" is fine here because it is a reasonable
default when configuring the system to use the functionality.
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
next prev parent reply other threads:[~2025-05-22 14:40 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-22 12:37 [PATCH RFT v4 0/3] fastboot: add support for generic block flashing Neil Armstrong
2025-05-22 12:37 ` [PATCH RFT v4 1/3] fastboot: blk: introduce fastboot block flashing support Neil Armstrong
2025-05-22 12:37 ` [PATCH RFT v4 2/3] fastboot: blk: switch emmc to use the block helpers Neil Armstrong
2025-05-22 14:35 ` Tom Rini
2025-06-05 8:14 ` Neil Armstrong
2025-05-22 12:37 ` [PATCH RFT v4 3/3] fastboot: integrate block flashing back-end Neil Armstrong
2025-05-22 14:39 ` Tom Rini [this message]
2025-06-05 8:16 ` Neil Armstrong
2025-06-05 14:21 ` Tom Rini
2025-06-05 17:48 ` Neil Armstrong
2025-06-06 7:22 ` Mattijs Korpershoek
2025-06-06 9:23 ` Neil Armstrong
2025-06-06 14:25 ` Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250522143958.GJ100073@bill-the-cat \
--to=trini@konsulko.com \
--cc=dimorinny@google.com \
--cc=mkorpershoek@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.