From: Lukasz Majewski <l.majewski@samsung.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/3] cmd_partuuid: add command to retrieve a partition's UUID
Date: Fri, 17 Aug 2012 17:21:28 +0200 [thread overview]
Message-ID: <20120817172128.071303c5@amdc308.digital.local> (raw)
In-Reply-To: <502E5E60.7070708@wwwdotorg.org>
On Fri, 17 Aug 2012 09:08:16 -0600
Stephen Warren <swarren@wwwdotorg.org> wrote:
> On 08/17/2012 12:46 AM, Lukasz Majewski wrote:
> > Hi Stephen,
> >
> >> On 08/16/2012 05:15 PM, Stephen Warren wrote:
> >>> This implements the following:
> >>>
> >>> partuuid mmc 0:1
> >>> -> prints the partition's UUID.
> >>> partuuic mmc 0:1 uuid
> >>> -> sets environment variable "uuid" to the partition's UUID.
> >>>
> >>> This can be useful when writing a bootcmd which searches all known
> >>> devices for something bootable, and then wants the kernel to use
> >>> the same partition as the root device, e.g.:
> >>>
> >>> partuuid ${devtype} ${devnum}:${rootpart} uuid
> >>> setenv bootargs root=PARTUUID=${uuid} ...
> >>
> >> I guess one thing I might mention here:
> >>
> >> I can imagine other partition-oriented commands existing, e.g. a
> >> command to find the bootable partition on a particular storage
> >> device. I'm not sure if we should create a single "part" command
> >> with various sub-options for this, e.g.:
> >>
> >> part uuid mmc 0:1
> >> part get-bootable mmc 0
> >
> > I'm now working at restoring the GPT (GUID Partition Table) at MMC
> > in u-boot.
> >
> > I plan to implement a separate command - gptrestore
> > However, I think that one single command would be more suitable for
> > this purpose.
>
> What will gptrestore do?
>
It will write a GPT table on the eMMC memory.
Definitions for partitions are read from u-boot environment variable.
--
Best regards,
Lukasz Majewski
Samsung Poland R&D Center | Linux Platform Group
next prev parent reply other threads:[~2012-08-17 15:21 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-16 23:15 [U-Boot] [PATCH 1/3] disk: part_efi: parse and store partition UUID Stephen Warren
2012-08-16 23:15 ` [U-Boot] [PATCH 2/3] cmd_partuuid: add command to retrieve a partition's UUID Stephen Warren
2012-08-16 23:21 ` Stephen Warren
2012-08-17 6:46 ` Lukasz Majewski
2012-08-17 15:08 ` Stephen Warren
2012-08-17 15:21 ` Lukasz Majewski [this message]
2012-08-16 23:15 ` [U-Boot] [PATCH 3/3] tegra: enable CONFIG_CMD_PARTUUID Stephen Warren
2012-10-02 6:39 ` Simon Glass
2012-09-02 17:45 ` [U-Boot] [PATCH 1/3] disk: part_efi: parse and store partition UUID Wolfgang Denk
2012-09-03 2:06 ` Stephen Warren
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=20120817172128.071303c5@amdc308.digital.local \
--to=l.majewski@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox