[PATCH 3/4] ARM: i.MX: Add bbu handler for external NAND boot

2013-03-12 Thread Sascha Hauer
The external NAND boot code currently does not handle bad blocks correctly on 2k NAND flashes. This patch adds a barebox_update handler for external NAND boot which embeds a Bad block table in the flashed image. The boot code will skip bad blocks found in this bad block table then. Signed-off-by:

Re: [PATCH 3/4] ARM: i.MX: Add bbu handler for external NAND boot

2013-03-12 Thread Juergen Beisert
Sascha Hauer wrote: [...] +   if (size_available 0) { +   printf(device is too small\n); +   ret = -ENOSPC; +   goto out; +   } [...] As the user only sees bad block info when DEBUG is enabled, you should

Re: [PATCH 3/4] ARM: i.MX: Add bbu handler for external NAND boot

2013-03-12 Thread Sascha Hauer
On Tue, Mar 12, 2013 at 10:48:16AM +0100, Juergen Beisert wrote: Sascha Hauer wrote: [...] +   if (size_available 0) { +   printf(device is too small\n); +   ret = -ENOSPC; +   goto out; +   } [...]

Re: [PATCH 3/4] ARM: i.MX: Add bbu handler for external NAND boot

2013-03-12 Thread Juergen Beisert
Sascha Hauer wrote: On Tue, Mar 12, 2013 at 10:48:16AM +0100, Juergen Beisert wrote: Sascha Hauer wrote: [...] +   if (size_available 0) { +   printf(device is too small\n); +   ret = -ENOSPC; +   goto out;