OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - Hardware discussion => Topic started by: HoloVector on May 09, 2017, 07:59:21 pm

Title: How Many Bad Blocks Until A Zaurus Packs It In?
Post by: HoloVector on May 09, 2017, 07:59:21 pm
I was in the diag menu to do a NAND backup last night after the backup I decided to check the NAND Bad Count and I have 2 bad blocks out of 8.  They are blocks 3 and 4.  So how many more bad blocks can I before the little guy dies?
Title: How Many Bad Blocks Until A Zaurus Packs It In?
Post by: Varti on May 10, 2017, 04:55:59 am
Just last week I asked ant on #kexecboot about how the badblocks are handled on the NAND. I have done the same check as you on my Akita (thanksfully, no badblocks there yet), this is what he explained to me: it depends on where they are located. Mtd1 (the partition where the kernel is stored, i.e. the flashed zImage file) has all the badblocks automatically remapped to other blocks at the lower MTD level, so it doesn't matter what filesystem is used there. The first block, which is probably the first block being read at boot time, is also guaranteed to be error-free. I don't remember if the Sharp's badblocks tool prints out on what partition have been the bad blocks found, though.

Regarding the other two mtd1 and mtd2 partitions, the badblocks can be only handled by the used filesystem. The standard jffs1/2 filesystem, used by Cacko and pdaXrom, doesn't have such a feature, but there might exist a tool which checks and remaps them. Ubifs handles them, but it is not supported by neither Cacko or pdaXrom; only kexecboot and (I believe) OE's Poky can be run on this filesystem.

If the badblocks are within mtd2 or 3, it might be a good idea to boot Cacko from SD instead of NAND.

Varti