Andreas Huber cf73639d32 km/common: add support for second flash
Add support for a second flash.
By default, a single flash chip is set up:
- called 'boot'
- mtd name for ubi 'ubi0'
MTDIDS and MTDPARTS may be overwritten to add a second flash.
The 'ubiattach' command is featured in two versions:
- if CONFIG_KM_UBI_PARTITION_NAME_APP is not defined:
  this is the version as up to now
- if CONFIG_KM_UBI_PARTITION_NAME_APP is defined:
  a check on 'actual_bank' will be done to determine the flash to boot
  from.

Use CONFIG_KM_UBI_PARTITION_NAME_BOOT and
CONFIG_KM_UBI_PARTITION_NAME_APP to define where to put the bootloader
and the applications.

Example:
In the board config do:
... snip ...

       "boot:"                                                 \
               "768k(u-boot),"                                 \
               "128k(env),"                                    \
               "128k(envred),"                                 \
               "-(" CONFIG_KM_UBI_PARTITION_NAME_BOOT ");"     \
       "app:"                                                  \
               "-(" CONFIG_KM_UBI_PARTITION_NAME_APP ");"

... snap ...

You may also need to enable the second flash:
... snip ...
/* additional featured for COGE5 */
... snap ...

Signed-off-by: Andreas Huber <andreas.huber@keymile.com>
cc: Kim Phillips <kim.phillips@freescale.com>
cc: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Gerlando Falauto <gerlando.falauto@keymile.com>
Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
2012-06-15 17:07:11 -05:00
..
2010-04-13 09:13:04 +02:00
2011-08-01 15:19:40 +02:00
2012-05-15 08:31:37 +02:00
2012-05-15 08:31:30 +02:00
2011-08-04 23:34:02 +02:00
2011-08-01 15:19:40 +02:00
2010-01-27 21:23:14 +01:00
2012-03-18 20:10:02 +01:00
2012-03-27 22:05:28 +02:00
2011-10-22 01:22:21 +02:00
2010-09-19 19:29:47 +02:00
2010-12-09 10:24:09 +01:00
2011-08-04 23:34:02 +02:00
2012-05-15 08:31:40 +02:00
2011-08-01 15:19:40 +02:00
2011-05-19 22:22:44 +02:00
2012-05-15 08:31:34 +02:00
2011-04-30 23:29:55 +02:00
2012-05-25 10:39:23 +02:00
2012-05-25 09:15:10 +02:00
2010-01-21 22:26:00 +01:00
2011-09-10 00:04:01 +02:00
2012-05-08 18:02:22 -05:00
2010-10-12 22:44:33 +02:00
2010-03-21 22:44:42 +01:00
2012-03-12 11:06:48 -04:00
2012-05-22 10:14:34 +02:00
2010-03-12 23:06:04 +01:00
2012-03-30 22:46:00 +02:00
2012-03-26 23:09:23 +02:00
2012-05-15 08:31:34 +02:00
2011-10-05 22:03:11 +02:00
2011-03-27 19:19:54 +02:00
2012-05-20 08:32:32 +02:00
2011-08-04 23:34:02 +02:00
2011-08-04 23:34:02 +02:00
2011-08-01 15:19:40 +02:00
2011-06-22 20:00:51 +02:00
2012-05-15 08:31:40 +02:00
2011-12-07 08:45:51 +01:00
2012-05-15 08:31:37 +02:00
2011-04-29 07:32:48 -05:00
2011-09-30 22:00:55 +02:00
2012-05-15 08:31:25 +02:00
2012-05-20 08:32:32 +02:00
2011-08-01 15:19:40 +02:00
2010-05-28 10:56:04 -04:00
2011-08-01 15:19:40 +02:00