From: Wolfgang Denk Date: Tue, 11 Jan 2011 08:43:37 +0100 Subject: [U-Boot] [PATCH v3] mpq101: initial support for Mercury Computer Systems MPQ101 board In-Reply-To: <546160.74882.qm@web37605.mail.mud.yahoo.com> References: <546160.74882.qm@web37605.mail.mud.yahoo.com> Message-ID: <20110111074337.65517150A49@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Alex Dubov, In message <546160.74882.qm@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