mbox series

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

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

Message

Marek Szyprowski Dec. 22, 2020, 2:09 p.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


Changelog:

v2:
- added docs and minor fixes in the code style

v1: https://lists.denx.de/pipermail/u-boot/2020-December/435208.html
- initial version


Patch summary:

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                 | 314 ++++++++++++++++++++++++++++++++++++++
 disk/part_dos.c           | 207 ++++++++++++++++++++++---
 disk/part_dos.h           |   5 +
 doc/usage/index.rst       |   1 +
 doc/usage/mbr.rst         |  93 +++++++++++
 drivers/fastboot/fb_mmc.c |   2 +-
 include/part.h            |   9 +-
 9 files changed, 612 insertions(+), 28 deletions(-)
 create mode 100644 cmd/mbr.c
 create mode 100644 doc/usage/mbr.rst

-- 
2.17.1