[U-Boot] [PATCH] env_mmc: avoid stack allocation for env
Tom Rini
trini at konsulko.com
Sat May 9 01:14:43 CEST 2015
On Sat, May 09, 2015 at 12:15:37AM +0200, Marek Vasut wrote:
> On Friday, May 08, 2015 at 11:51:36 PM, Tim Harvey wrote:
> > Allocating space for temporary env on the stack makes env_relocate_spec()
> > unsuitable for SPL environments which have very little stack.
>
> Well yeah, but what if you don't have malloc area ? I'd expect that
> the be the case in SPL quite often.
OK, hold up. We went through this a while back which is why things are
how they are today. First, we have things setup today such that you can
throw stack (at the point we do env in SPL) into DDR. This means we can
keep doing things the way they are. You can take a look at
include/configs/am335x_evm.h and where CONFIG_EMMC_BOOT is set, that's
how we do what it looks like you're trying to do on imx6 but on TI
am335x.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150508/f62c641b/attachment.sig>
More information about the U-Boot
mailing list