mbox series

[0/6] Add MBR partition table creation and verify command

Message ID 20201217112739.5045-1-m.szyprowski@samsung.com
Headers show
Series Add MBR partition table creation and verify command | expand

Message

Marek Szyprowski Dec. 17, 2020, 11:27 a.m. UTC
Hi All,

This patchset adds 'mbr' command to let one create or verify MBR (Master
Boot Record) partition layout based on the provided text description.
This can be used in scripts to help system flashing tools/scripts to
ensure proper partition layout. It has been inspired by the 'gpt' command
already present in u-boot.

Best regards
Marek Szyprowski
Samsung R&D Institute Poland


Marek Szyprowski (6):
  disk: dos: rename write_mbr_partition to write_mbr_sector
  disk: dos: add some defines for the hardcoded numbers
  disk: dos: use generic macro for unaligned le32 access
  disk: dos: make some functions static
  disk: dos: add code for creating MBR partition layout
  cmd: Add MBR partition layout control utility

 cmd/Kconfig               |   8 +
 cmd/Makefile              |   1 +
 cmd/mbr.c                 | 308 ++++++++++++++++++++++++++++++++++++++
 disk/part_dos.c           | 207 +++++++++++++++++++++----
 disk/part_dos.h           |   5 +
 drivers/fastboot/fb_mmc.c |   2 +-
 include/part.h            |   9 +-
 7 files changed, 512 insertions(+), 28 deletions(-)
 create mode 100644 cmd/mbr.c

-- 
2.17.1