Re: [Uboot-stm32] [PATCH v2] dfu: mtd: mark bad the MTD block on erase error

2023-06-05 Thread Patrick DELAUNAY
Hi, On 6/2/23 17:27, Michael Nazzareno Trimarchi wrote: Hi On Fri, Jun 2, 2023 at 3:23 PM Patrick Delaunay wrote: In the MTD DFU backend, it is needed to mark the NAND block bad when the erase failed with the -EIO error, as it is done in UBI and JFFS2 code. This operation is not done in the

Re: [PATCH v2] dfu: mtd: mark bad the MTD block on erase error

2023-06-02 Thread Michael Nazzareno Trimarchi
Hi On Fri, Jun 2, 2023 at 3:23 PM Patrick Delaunay wrote: > > In the MTD DFU backend, it is needed to mark the NAND block bad when the > erase failed with the -EIO error, as it is done in UBI and JFFS2 code. > > This operation is not done in the MTD framework, but the bad block > tag (in BBM or

[PATCH v2] dfu: mtd: mark bad the MTD block on erase error

2023-06-02 Thread Patrick Delaunay
In the MTD DFU backend, it is needed to mark the NAND block bad when the erase failed with the -EIO error, as it is done in UBI and JFFS2 code. This operation is not done in the MTD framework, but the bad block tag (in BBM or in BBT) is required to avoid to write data on this block in the next