[U-Boot] [PATCH v3] mpq101: initial support for Mercury Computer Systems MPQ101 board

Wolfgang Denk wd at denx.de
Tue Jan 11 08:43:37 CET 2011


Dear Alex Dubov,

In message <546160.74882.qm at web37605.mail.mud.yahoo.com> you wrote:
> 
> 1. I want to fit an environment and the bootloader into a single flash
> sector.

This is a very bad idea as it will open a window brick your system at
each and every "saveenv" command.

I strongly recommend not to do that.

> 3. If I don't fix up the ppcenv starting address, the resulting u-boot
> image will shrink by the environment size and won't start on sector
> boundary itself.
> 4. Other boards use handcrafted ld scripts to fit environments at right
> boundaries.

If you stop doing 1., all other problems will just disappear.

> That's why I need the LDFLAGS in question.
> If not in config.mk, where am I supposed to put them?
> Custom ld script is definitely an overshoot in this and other similar
> cases.

If you really insist in such an unreliablke configuration, a custom
linker script would IMO be better, as it would make the image layout
more visible.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
God may be subtle, but He isn't plain mean.         - Albert Einstein


More information about the U-Boot mailing list