[PATCH v3 0/6] Add MBR partition table creation and verify command
Marek Szyprowski
m.szyprowski at samsung.com
Wed Dec 23 13:55:09 CET 2020
Hi All,
This patchset adds 'mbr' command to let one to 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:
v3:
- fixed minor issues in the docs
v2: https://lists.denx.de/pipermail/u-boot/2020-December/435689.html
- 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
More information about the U-Boot
mailing list