Re: [OpenWrt-Devel] [PATCH] Let MTD support skipping bad chunks

2013-08-12 Thread Joe XUE
NAND flash has very high possibility to has bad blocks. Some bootloaders such as u-boot support to skip bad blocks when it read the kernel image from NAND falsh. For now, the mtd just exits when it meet the bad block. That means even there is one bad block in NAND flash, then we can't use mtd to

Re: [OpenWrt-Devel] [PATCH] Let MTD support skipping bad chunks

2013-08-12 Thread Rafał Miłecki
2013/8/12 Joe XUE : > NAND flash has very high possibility to have bad blocks. > > > Some bootloaders such as u-boot support to skip bad blocks when it read > the kernel image from NAND falsh. > > For now, the mtd just exits when it meets the bad block. That means even > > there is one bad block in

Re: [OpenWrt-Devel] [PATCH] Let MTD support skipping bad chunks

2013-08-11 Thread Felix Fietkau
On 2013-08-12 1:54 AM, Joe XUE wrote: > NAND flash has very high possibility to have bad blocks. > > Some bootloaders such as u-boot support to skip bad blocks when it read > the kernel image from NAND falsh. > > For now, the mtd just exits when it meets the bad block. That means even > there is

Re: [OpenWrt-Devel] [PATCH] Let MTD support skipping bad chunks

2013-08-11 Thread Joe XUE
NAND flash has very high possibility to have bad blocks. Some bootloaders such as u-boot support to skip bad blocks when it read the kernel image from NAND falsh. For now, the mtd just exits when it meets the bad block. That means even there is one bad block in NAND flash, then we can't use mtd t

Re: [OpenWrt-Devel] [PATCH] Let MTD support skipping bad chunks

2013-08-10 Thread Rafał Miłecki
2013/8/9 Joe XUE : > NAND flash has very possibility to has bad blocks. > > Some bootloaders such as u-boot support to skip bad blocks when it read > the kernel image from NAND falsh. > > For now, the mtd just exits when it meet the bad block. That means even > there is one bad block in NAND flash,

Re: [OpenWrt-Devel] [PATCH] Let MTD support skipping bad chunks

2013-08-10 Thread Felix Fietkau
On 2013-08-09 10:54 PM, Joe XUE wrote: > NAND flash has very possibility to has bad blocks. > > Some bootloaders such as u-boot support to skip bad blocks when it read > the kernel image from NAND falsh. > > For now, the mtd just exits when it meet the bad block. That means even > there is one ba

[OpenWrt-Devel] [PATCH] Let MTD support skipping bad chunks

2013-08-09 Thread Joe XUE
NAND flash has very possibility to has bad blocks. Some bootloaders such as u-boot support to skip bad blocks when it read the kernel image from NAND falsh. For now, the mtd just exits when it meet the bad block. That means even there is one bad block in NAND flash, then we can't use mtd to write