dfu, nand, ubi: add partubi alt settings for updating ubi partition
authorHeiko Schocher <hs@denx.de>
Thu, 25 Jul 2013 04:43:11 +0000 (06:43 +0200)
committerMarek Vasut <marex@denx.de>
Mon, 26 Aug 2013 19:56:34 +0000 (21:56 +0200)
commit815c30b2b6f1920cfdb9d6c10eb1359129377c9e
treee7c3ea65bc7083249d177113d97a5897648abe18
parenteaf3e613ea6f0dc95c94a93997ad62785fe2969c
dfu, nand, ubi: add partubi alt settings for updating ubi partition

updating an ubi partition needs a completely erased mtd partition,
see:
http://lists.infradead.org/pipermail/linux-mtd/2011-May/035416.html

So, add partubi alt setting for the dfu_alt_info environment
variable to mark this partition as an ubi partition. In case we
update an ubi partition, we erase after flashing the image into the
partition, the remaining sektors.

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
Cc: Tom Rini <trini@ti.com>
Cc: Lukasz Majewski <l.majewski@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Marek Vasut <marex@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Scott Wood <scottwood@freescale.com>
drivers/dfu/dfu_nand.c
include/dfu.h