u-boot/board/fads
Wolfgang Denk 67c31036ac TQM8xx[LM]: Fix broken environment alignment.
With recent toolchains, the environment sectors were no longer aligned to
sector boundaries. The reason was a combination of two bugs:

1) common/environment.c assumed that CONFIG_TQM8xxL would be defined
   for all TQM8xxL and TQM8xxM boards. But "include/common.h", where
   this gets defined, is not included here (and cannot be included
   without causing lots of problems).

   Added a new #define CFG_USE_PPCENV for all boards which really
   want to put the environment is a ".ppcenv" section.

2) The linker scripts just include environment.o, silently assuming
   that the objects in that file are really in the order in which
   they are coded in the C file, i. e. "environment" first, then
   "redundand_environment", and "env_size" last. However, current
   toolchains (GCC-4.x) reorder the objects, causing the environment
   data not to start on a flash sector boundary:

   Instead of:					we got:

	40008000 T environment			40008000 T env_size
	4000c000 T redundand_environment	40008004 T redundand_environment
	40010000 T env_size			4000c004 T environment

   Note: this patch fixes just the first part, and cures the alignment
   problem by making sure that "env_size" gets placed correctly. However,
   we still have a potential issue because primary and redundant
   environment sectors are actually swapped, i. e. we have now:

	40008000 T redundand_environment
	4000c000 T environment
	40010000 T env_size

   This shall be fixed in the next version.

Signed-off-by: Wolfgang Denk <wd@denx.de>
2007-09-16 17:20:37 +02:00
..
config.mk Patch by Yuli Barcohen, 19 Apr 2004: 2004-06-06 21:35:06 +00:00
fads.c board/[A-Za-i]*: Remove lingering references to CFG_CMD_* symbols. 2007-07-10 10:39:10 -05:00
fads.h TQM8xx[LM]: Fix broken environment alignment. 2007-09-16 17:20:37 +02:00
flash.c Patch by Yuli Barcohen, 09 Jun 2004: 2004-06-09 21:54:22 +00:00
lamp.c * Patch by Yuli Barcohen, 3 Dec 2003: 2003-12-07 21:39:28 +00:00
Makefile Move "ar" flags to config.mk to allow for silent "make -s" 2006-10-09 01:02:05 +02:00
pcmcia.c board/[f-l]*: Remove obsolete references to CONFIG_COMMANDS 2007-07-09 18:48:06 -05:00
u-boot.lds 2005-12-12 16:06:05 +01:00
u-boot.lds.debug 2005-12-12 16:06:05 +01:00