Originally Posted by Effleurage
I'm working now on NANDWay.
According to samsung's docs (google K9F1G08U0A, page 15 - Identifying Initial Invalid Block) - a bad block is marked in the factory in the spare area of the first or the second page of a block (meaning the first byte in the spare area is 0). This information should not be overwritten by the PS3 - so it's probably there as well.
can you validate this? I don't have yet a NAND w/ bad blocks to check this out but i will be happy if you can go over all the valid blocks and see that the first byte of the spare area in the first page is non-zero unless it's a bad block.
a page is 2112 bytes long (multiply it by 64 (number of pages in a block) and you get 0x21000) and the spare area is beginning after the 2048bytes of the block. so offset 2048 in each block should be non-zero for a valid block and zero for a bad block.
I will be happy if somebody can confirm/verify this (or send a link to a dump w/ a bad block) - so that i can integrate it to my code.
To what I have seen yes but don't quote me on it