]> git.ipfire.org Git - thirdparty/u-boot.git/commit
fastboot: blk: introduce fastboot block flashing support
authorDmitrii Merkurev <dimorinny@google.com>
Fri, 21 Nov 2025 10:53:31 +0000 (11:53 +0100)
committerMattijs Korpershoek <mkorpershoek@kernel.org>
Mon, 24 Nov 2025 09:51:16 +0000 (10:51 +0100)
commit4bf92b541af628d899ea1dadf9147baa3482967a
treecfdf072a787811d2f63980632a84b1a992fb0ed0
parent6e7d2399c8139f8e2d037e446236b8d8bdbca604
fastboot: blk: introduce fastboot block flashing support

Introduce fastboot block flashing functions and helpers
to be shared with the MMC implementation.

The write logic comes from the mmc implementation, while
the partition lookup is much simpler and could be extended.

For the erase logic, allmost no block drivers exposes the
erase operation, except mmc & virtio, so in order to allow
erasiong any partition a soft-erase logic has been added
to write zero-ed buffers in a loop.

Signed-off-by: Dmitrii Merkurev <dimorinny@google.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@kernel.org>
Tested-by: Mattijs Korpershoek <mkorpershoek@kernel.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20251121-topic-fastboot-blk-v7-1-9589d902fc91@linaro.org
Signed-off-by: Mattijs Korpershoek <mkorpershoek@kernel.org>
drivers/fastboot/fb_block.c [new file with mode: 0644]
include/fb_block.h [new file with mode: 0644]