From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lukasz Majewski Date: Thu, 06 Sep 2012 13:27:56 +0200 Subject: [U-Boot] gpt: GUID/UUID - GPT restoration - open questions In-Reply-To: <5047B43A.5010204@wwwdotorg.org> References: <1345795995-24656-1-git-send-email-l.majewski@samsung.com> <20120824104836.22dfc647@amdc308.digital.local> <5047B43A.5010204@wwwdotorg.org> Message-ID: <20120906132756.6d49b0a2@amdc308.digital.local> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Stephen, > On 08/24/2012 02:48 AM, Lukasz Majewski wrote: > > Hi Stephen, > > > > I'm writing to you, since I've posted a patch series regarding GPT > > support for Samsung Trats board (you were on the CC). > > > > e.g. http://patchwork.ozlabs.org/patch/179785/ > > > > I think, that we can cooperate to provide better EFI/GPT support. > > > > In mine implementation the "gpt" command (with several sub > > commands) has been proposed > > - we can discuss if this is a correct way to go. > > > > Moreover, at this patch series a "weak" GUID generator is > > implemented. For now it is "good enough", since I consider the > > restoration as an emergency situation. > > I think that (perhaps optionally) allowing the user to specify their > own UUIDs would be a good idea; whatever was generating the script > being executed might have access to a better entropy source. I think, that passing UUID as the command argument would be a better option than inventing own GUID generator, especially when tools like uuid were available. > > > However,I wonder how can we provide better GUID (and in general > > random numbers pool) generator for u-boot. > > > > Maybe md5sum command can be used with some running clock (WDT, or > > system clock from u-boot start up) data to provide better entropy? > > If there's a standard way of retrieving wall-clock, MAC address, ... > it'd definitely be a good idea to include those entropy sources. > -- Best regards, Lukasz Majewski Samsung Poland R&D Center | Linux Platform Group