[PATCH 0/6] Add MBR partition table creation and verify command
Marek Szyprowski
m.szyprowski at samsung.com
Thu Dec 17 12:27:33 CET 2020
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
More information about the U-Boot
mailing list