From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerry Van Baren Date: Tue, 03 Apr 2007 11:17:31 -0400 Subject: [U-Boot-Users] dtb in env sector - was: (Try 2) Please pull ... In-Reply-To: <1175613265.12080.49.camel@gentoo-jocke.transmode.se> References: <20070403125900.E43F4352676@atlas.denx.de> <1175609051.12080.41.camel@gentoo-jocke.transmode.se> <461262CD.7000309@smiths-aerospace.com> <1175613265.12080.49.camel@gentoo-jocke.transmode.se> Message-ID: <4612700B.6090003@smiths-aerospace.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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@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