All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 00/10] fastboot: Add better support for specifying partitions
@ 2021-02-05 14:38 Sean Anderson
  2021-02-05 14:38 ` [PATCH v5 01/10] mmc: sandbox: Add support for writing Sean Anderson
                   ` (9 more replies)
  0 siblings, 10 replies; 13+ messages in thread
From: Sean Anderson @ 2021-02-05 14:38 UTC (permalink / raw)
  To: u-boot

This series adds support for flashing eMMC boot partitions, and for
flashing whole partitions. Specifically, it does this by using the
existing U-Boot naming scheme to specify partitions, and not by adding
new KConfig options.

I have added tests for partition naming, but not for the whole flash
process (though that could be a future project). I have tested this on
one board, but I have *not* tested the mt85-specific KConfigs. Hopefully
this series can be a way to phase out those options.

Changes in v5:
- Don't build fastboot test unless we have both FASTBOOT_FLASH *and*
  EFI_PARTITION. This fixes some sandbox builds where only EFI_PARTITION
  was configured.
- Fix conflict between anchors in docs
- Fix incorrect heading name

Changes in v4:
- xxx_auto_alloc_size -> xxx_auto
- Fix missing closing brace
- Expand documentation, making it more man-page-like

Changes in v3:
- Rebase onto dfu/master

Changes in v2:
- Update documentation for part_get_info_by_dev_and_name
- Move partition documentation under doc/usage

Sean Anderson (10):
  mmc: sandbox: Add support for writing
  test: dm: Add test for fastboot mmc partition naming
  part: Give several functions more useful return values
  part: Support getting whole disk from
    part_get_info_by_dev_and_name_or_num
  part: Support string block devices in part_get_info_by_dev_and_name
  fastboot: Remove mmcpart argument from raw_part_get_info_by_name
  fastboot: Move part_get_info_by_name_or_alias after
    raw_part_get_info_by_name
  fastboot: Allow u-boot-style partitions
  doc: Rename k210 partitions anchor
  doc: Document partition specifications

 cmd/ab_select.c             |   3 +-
 configs/sandbox64_defconfig |   2 +
 configs/sandbox_defconfig   |   2 +
 disk/part.c                 |  90 +++++++++-------
 doc/android/fastboot.rst    |   4 +
 doc/board/sipeed/maix.rst   |   4 +-
 doc/usage/index.rst         |   1 +
 doc/usage/partitions.rst    |  80 ++++++++++++++
 drivers/fastboot/fb_mmc.c   | 210 +++++++++++++++++++++---------------
 drivers/mmc/sandbox_mmc.c   |  43 ++++++--
 include/part.h              |   6 +-
 test/dm/Makefile            |   3 +
 test/dm/fastboot.c          |  95 ++++++++++++++++
 test/dm/mmc.c               |  19 +++-
 14 files changed, 419 insertions(+), 143 deletions(-)
 create mode 100644 doc/usage/partitions.rst
 create mode 100644 test/dm/fastboot.c

-- 
2.25.1

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2021-02-07 14:37 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-05 14:38 [PATCH v5 00/10] fastboot: Add better support for specifying partitions Sean Anderson
2021-02-05 14:38 ` [PATCH v5 01/10] mmc: sandbox: Add support for writing Sean Anderson
2021-02-05 14:38 ` [PATCH v5 02/10] test: dm: Add test for fastboot mmc partition naming Sean Anderson
2021-02-05 14:38 ` [PATCH v5 03/10] part: Give several functions more useful return values Sean Anderson
2021-02-05 14:38 ` [PATCH v5 04/10] part: Support getting whole disk from part_get_info_by_dev_and_name_or_num Sean Anderson
2021-02-05 14:38 ` [PATCH v5 05/10] part: Support string block devices in part_get_info_by_dev_and_name Sean Anderson
2021-02-05 14:38 ` [PATCH v5 06/10] fastboot: Remove mmcpart argument from raw_part_get_info_by_name Sean Anderson
2021-02-05 14:38 ` [PATCH v5 07/10] fastboot: Move part_get_info_by_name_or_alias after raw_part_get_info_by_name Sean Anderson
2021-02-05 14:39 ` [PATCH v5 08/10] fastboot: Allow u-boot-style partitions Sean Anderson
2021-02-05 14:39 ` [PATCH v5 09/10] doc: Rename k210 partitions anchor Sean Anderson
2021-02-07 14:37   ` Simon Glass
2021-02-05 14:39 ` [PATCH v5 10/10] doc: Document partition specifications Sean Anderson
2021-02-07 14:37   ` Simon Glass

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.