[U-Boot-Users] dtb in env sector - was: (Try 2) Please pull ...

Jerry Van Baren gerald.vanbaren at smiths-aerospace.com
Tue Apr 3 17:17:31 CEST 2007


Joakim Tjernlund wrote:
> On Tue, 2007-04-03 at 10:21 -0400, Jerry Van Baren wrote:
>> Joakim Tjernlund wrote:
>>> On Tue, 2007-04-03 at 14:59 +0200, Wolfgang Denk wrote:
>>>> In message <1175600261.12080.24.camel at gentoo-jocke.transmode.se> you wrote:
>>>>> I think to start with one would just need an install dtb command that
>>>>> places the dtb at the end of the env. sector to allow either one
>>>>> to grow without trashing eachother. Also rendundant env needs to be
>>>> Umm... The environment will not grow beyond it's defined  size.  Then
>>>> just use "cp" to copy the dtb to the next free address.
>>> And later you need some more space for env. so you increase CFG_ENV_SIZE
>>> a little and now you have destroyed your dtb as well.
>> Actually, it is much worse than that: currently when you do a "saveenv" 
>> it will wipe out the fdt blob because it doesn't know that the blob is 
>> in the same sector.
> 
> Oh, my memory from the good old days(ppcboot) was that saveenv copied 
> the whole sector to RAM, modified env. parts and wrote the whole
> block back. Probably I remember incorrectly.

Nope, looks like my bad (per email from Martin Krause).  That is good.

Best regards,
gvb




More information about the U-Boot mailing list