From: =?ISO-8859-1?Q?Andr=E9?= Schwarz Date: Mon, 15 Mar 2010 10:00:15 +0100 Subject: [U-Boot] MPC5200: possible to "reserve" embedded flash sectors ? In-Reply-To: <1268382763.2514.3.camel@swa-e6500> References: <1268321602.4803.24.camel@swa-m460> <20100311161554.E7B0CE22AD1@gemini.denx.de> <1268325452.4803.34.camel@swa-m460> <20100311205209.42A31E22AD1@gemini.denx.de> <1268382763.2514.3.camel@swa-e6500> Message-ID: <1268643615.4089.8.camel@swa-m460> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Wolfgang, ... > > This is because all boards used the same script anyway, so there was > > no use in keeping multiple copies of the same file. But please note > > that nothing prevents you to use a local, customized linker script. > > All you need to do is set it's name in you config.mk (add a line > > "LDSCRIPT="). Created the board dir and added this line to config.mk: LDSCRIPT := $(SRCTREE)/board/matrix-vision/mvsmr/u-boot.lds which results in failure during make : swa at swa-m460:~/u-boot.git$ CROSS_COMPILE=ppc_6xx- ARCH=powerpc make for dir in tools examples/standalone examples/api cpu/mpc5xxx /home/swa/u-boot.git/board/matrix-vision/mvsmr/ ; do \ make -C $dir _depend ; done make[1]: Entering directory `/home/swa/u-boot.git/tools' make[1]: Nothing to be done for `_depend'. ... make[1]: Leaving directory `/home/swa/u-boot.git/cpu/mpc5xxx' make: *** /home/swa/u-boot.git/board/matrix-vision/mvsmr/: No such file or directory. Stop. make: *** [depend] Error 2 At first glance I thought there's a make target missing. But looking at other boards doing the same thing showed no difference. Using "LDSCRIPT := $(SRCTREE)/cpu/mpc5xxx/u-boot-customlayout.lds" withing config.mk compiles cleanly and results in working U-Boot. What am I missing ? > > excellent - that's what I've been looking for. > At first glance I'd expected custom linker scripts to be refused ... > > > > > > Since I want to submit the board files as soon as the merge window will > > > open I'm asking for a reasonable way to implement this in current > > > U-Boot. > > > > Use a customized linker script. > > will do - thanks for the help. > Regards, Andr? MATRIX VISION GmbH, Talstrasse 16, DE-71570 Oppenweiler Registergericht: Amtsgericht Stuttgart, HRB 271090 Geschaeftsfuehrer: Gerhard Thullner, Werner Armingeon, Uwe Furtner, Hans-Joachim Reich