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;
> > > +
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;
> > +
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, yo
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: