From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [PATCH v3 6/6] cmd: Add MBR partition layout control utility
Date: Sat, 16 Jan 2021 11:25:54 -0500 [thread overview]
Message-ID: <20210116162554.GE9782@bill-the-cat> (raw)
In-Reply-To: <20201223125515.28865-7-m.szyprowski@samsung.com>
On Wed, Dec 23, 2020 at 01:55:15PM +0100, Marek Szyprowski wrote:
> Add a 'mbr' command to let users create or verify MBR partition layout
> based on the provided text description. The partition layout is
> alternatively read from the 'mbr_parts' environment variable. This can be
> used in scripts to help system image flashing tools to ensure proper
> partition layout.
>
> The syntax of the text description of the partition list is similar to
> the one used by the 'gpt' command. Supported parameters are: name
> (currently ignored), start (partition start offset in bytes), size (in
> bytes or '-' to expand it to the whole free area), bootable (boolean
> flag) and id (MBR partition type). If one wants to create more than 4
> partitions, an 'Extended' primary partition (with 0x05 ID) has to be
> explicitely provided as a one of the first 4 entries.
>
> Here is an example how to create a 6 partitions (3 on the 'extended
> volume'), some of the predefined sizes:
>
> > setenv mbr_parts 'name=boot,start=4M,size=128M,bootable,id=0x0e;
> name=rootfs,size=3072M,id=0x83;
> name=system-data,size=512M,id=0x83;
> name=[ext],size=-,id=0x05;
> name=user,size=-,id=0x83;
> name=modules,size=100M,id=0x83;
> name=ramdisk,size=8M,id=0x83'
> > mbr write mmc 0
>
> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210116/9009d632/attachment.sig>
prev parent reply other threads:[~2021-01-16 16:25 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 ` [PATCH v3 0/6] Add MBR partition table creation and verify command Marek Szyprowski
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
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
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
2020-12-23 12:55 ` [PATCH v3 4/6] disk: dos: make some functions static Marek Szyprowski
2021-01-16 16:25 ` Tom Rini
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
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 [this message]
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=20210116162554.GE9782@bill-the-cat \
--to=trini@konsulko.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox