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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 output 
more info here.
The device (or better partition?) can be too small in general, or it can be 
too small due to many bad blocks inside. IMHO it would be helpful to see more 
info here why it failed.

jbe

-- 
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | http://www.pengutronix.de/  |
_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux