All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Szyprowski <m.szyprowski@samsung.com>
To: u-boot@lists.denx.de
Subject: [PATCH v3 0/6] Add MBR partition table creation and verify command
Date: Wed, 23 Dec 2020 13:55:09 +0100	[thread overview]
Message-ID: <20201223125515.28865-1-m.szyprowski@samsung.com> (raw)
In-Reply-To: CGME20201223125533eucas1p26a3a9fdce43c0902e8ee3c033cb510b0@eucas1p2.samsung.com

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

       reply	other threads:[~2020-12-23 12:55 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20201223125533eucas1p26a3a9fdce43c0902e8ee3c033cb510b0@eucas1p2.samsung.com>
2020-12-23 12:55 ` Marek Szyprowski [this message]
     [not found]   ` <CGME20201223125533eucas1p24c90762deb359fc4c73ddb717892c932@eucas1p2.samsung.com>
2020-12-23 12:55     ` [PATCH v3 1/6] disk: dos: rename write_mbr_partition to write_mbr_sector Marek Szyprowski
2021-01-16 16:25       ` Tom Rini
     [not found]   ` <CGME20201223125534eucas1p2388f9e307ba4fdb85ba1dfea6184e60f@eucas1p2.samsung.com>
2020-12-23 12:55     ` [PATCH v3 2/6] disk: dos: add some defines for the hardcoded numbers Marek Szyprowski
2021-01-16 16:25       ` Tom Rini
     [not found]   ` <CGME20201223125534eucas1p12cb4b6a480be29f0101e5cd953d1ce02@eucas1p1.samsung.com>
2020-12-23 12:55     ` [PATCH v3 3/6] disk: dos: use generic macro for unaligned le32 access Marek Szyprowski
2021-01-16 16:25       ` Tom Rini
     [not found]   ` <CGME20201223125534eucas1p17107d79af8457f52a5536084f9b903b9@eucas1p1.samsung.com>
2020-12-23 12:55     ` [PATCH v3 4/6] disk: dos: make some functions static Marek Szyprowski
2021-01-16 16:25       ` Tom Rini
     [not found]   ` <CGME20201223125535eucas1p2358eef28313de969c15405450a5b9acf@eucas1p2.samsung.com>
2020-12-23 12:55     ` [PATCH v3 5/6] disk: dos: add code for creating MBR partition layout Marek Szyprowski
2021-01-16 16:25       ` Tom Rini
     [not found]   ` <CGME20201223125535eucas1p12eefba574c1dad89834fa4e12ee35e56@eucas1p1.samsung.com>
2020-12-23 12:55     ` [PATCH v3 6/6] cmd: Add MBR partition layout control utility Marek Szyprowski
2021-01-16 16:25       ` Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201223125515.28865-1-m.szyprowski@samsung.com \
    --to=m.szyprowski@samsung.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.