Hello
I have a custom board with a am3352 and a Micron 2 GB NAND with a 4096kb page size. Currently I'm running the latest main line u-boot with the TI posted BCH16 patches applied.
The problem I'm experiencing is a bit of a weird one. I can write a large image to NAND and read it back to RAM just fine without any errors but if I initialize an area as an UBI image i.e
ubi part <partition name>
reboot and try attach it again with the same command I get a lot of Unrecoverable ECC error messages.
The same thing goes if I write my rootfs as an ubi image to nand with ubi write $loadaddr 0 0x<len> i can read it back to RAM with nand read but if I try to attach it as an ubi image I get ECC errors again.
If I purposefully sabotage the image on NAND and then try to read it back with nand read then it also will give ECC errors so that seems to be working.
Suspecting that something is hardcoded in UBI or some such thing but have any one seen or have any insights in this kind of a problem?
Oh, and one last thing. I'm booting the system off SPI flash and not directly from NAND.
BR
//Henrik