[U-Boot] gpt: GUID/UUID - GPT restoration - open questions

Lukasz Majewski
2012-09-06T14:14:43Z

Hi Rob,

> The question I'm asking is why we need partition creation support in
> u-boot in the first place?

Please consider following scenarios:

1. eMMC content is exported to the user (via UMS USB Mass Storage). Then
user by chance or on purpose will corrupt MBR/GPT.

2. misuse of "mmc" command - user by chance writes mmc erase 0.

To unbrick the device one would simply use "gpt/part restore" command
with already defined at ./include/config/{target}.h default settings
for partitions.

> Next you need filesystem creation too?

I can use UMS to export eMMC to host PC (with restored partitions) and
then use mkfs.* to create proper file system.

--
Best regards,

Lukasz Majewski

Samsung Poland R&D Center | Linux Platform Group