[U-Boot] [PATCH v2 6/7] gpt: Support for new "gpt" command
Tom Rini
trini at ti.com
Wed Sep 12 19:21:29 CEST 2012
On 09/12/2012 07:50 AM, Lukasz Majewski wrote:
> New command - "gpt" is supported. It restores the GPT partition table.
> It looks into the "partitions" environment variable for partitions definition.
> It can be enabled at target configuration file with CONFIG_CMD_GPT.
> Simple UUID generator has been implemented. It uses the the gd->start_addr_sp
> for entrophy pool. Moreover the pool address is used as crc32 seed.
>
> Signed-off-by: Lukasz Majewski <l.majewski at samsung.com>
> Signed-off-by: Kyungmin Park <kyungmin.park at samsung.com>
[snip]
> + /* allocate remaining memory in last partition */
> + if (i != parts - 1) {
> + gpt_e[i].ending_lba =
> + cpu_to_le64(offset + size[i] - 1);
> + } else {
> + gpt_e[i].ending_lba = gpt_h->last_usable_lba;
> + }
Extra curly braces. That's all I've seen in this patch however, so
getting close :)
--
Tom
More information about the U-Boot
mailing list