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
..
2003-06-27 21:31:46 +00:00
2005-09-25 16:59:36 +02:00
2006-07-21 15:24:56 +02:00
2003-06-27 21:31:46 +00:00
2002-04-01 14:29:03 +00:00
2006-08-15 14:15:51 +02:00
2006-08-23 10:39:01 -05:00
2006-08-15 14:15:51 +02:00
2003-06-27 21:31:46 +00:00
2005-10-04 23:10:28 +02:00
2007-08-14 18:42:36 +02:00
2004-10-10 18:03:33 +00:00
2007-05-15 23:38:05 +02:00
2005-10-05 02:00:09 +02:00
2002-03-14 16:44:03 +00:00
2006-07-12 15:26:01 +02:00
2000-11-12 23:38:42 +00:00
2006-04-16 10:51:58 +02:00
2004-08-01 23:02:45 +00:00
2004-12-16 17:33:10 +00:00
2003-06-27 21:31:46 +00:00
2007-04-06 14:17:14 -04:00
2005-10-13 16:45:02 +02:00
2002-11-03 00:07:02 +00:00
2003-05-31 18:35:21 +00:00
2006-11-30 18:02:20 +01:00
2002-08-27 10:38:37 +00:00
2001-11-03 22:15:16 +00:00
2007-08-14 18:42:36 +02:00
2007-08-10 19:21:35 -04:00
2002-09-17 21:37:55 +00:00
2003-06-27 21:31:46 +00:00
2004-08-02 23:39:03 +00:00
2003-06-27 21:31:46 +00:00
2003-06-27 21:31:46 +00:00
2001-04-28 17:59:11 +00:00
2003-06-27 21:31:46 +00:00
2007-08-13 23:22:31 -04:00
2004-10-10 21:27:30 +00:00
2004-05-19 21:33:14 +00:00
2003-10-08 23:26:14 +00:00
2006-07-19 13:50:38 +02:00
2002-04-01 14:29:03 +00:00
2007-07-20 15:03:03 +02:00
2000-07-19 14:09:16 +00:00
2004-03-25 15:14:43 +00:00
2001-04-09 21:43:07 +00:00
2003-06-27 21:31:46 +00:00
2006-06-26 10:54:52 +02:00
2001-04-28 17:59:11 +00:00
2002-03-27 13:48:44 +00:00
2003-06-27 21:31:46 +00:00
2007-06-30 18:50:48 +02:00
2003-06-27 21:31:46 +00:00
2003-06-27 21:31:46 +00:00
2007-07-10 00:01:28 +02:00
2005-09-22 09:04:17 +02:00
2003-06-27 21:31:46 +00:00
2002-09-26 02:01:47 +00:00
2003-06-27 21:31:46 +00:00
2004-02-23 16:11:30 +00:00
2004-12-16 21:44:03 +00:00
2006-06-14 18:14:56 +02:00
2007-06-06 10:08:13 +02:00
2006-06-14 18:14:56 +02:00
2006-06-14 17:45:53 +02:00
2006-06-14 18:14:56 +02:00
2001-11-03 22:21:15 +00:00
2003-06-27 21:31:46 +00:00
2000-10-25 11:24:22 +00:00
2002-11-03 00:38:21 +00:00
2001-11-03 22:21:15 +00:00
2002-11-03 00:24:07 +00:00
2002-03-08 21:31:05 +00:00
2005-09-23 11:05:55 +02:00
2006-07-21 15:24:56 +02:00
2003-06-27 21:31:46 +00:00