I’ve crosscompiled u-boot for my imx31. I’ve succesfully erased the nand and wrote my u-boot.bin starting at 0x0. Dumping the nand is NOT the same as what was written.
I erased the nand again and dumped it. About the first 100 bytes or so are 0s then about the next 100 bytes are garbage (rinse and repeat).
I’ve tried the hwecc, noecc, raw_access enable, and they all give me the same dump. Would anyone happen to have any ideas?
So I may have been a little off on my figures but I did a little more research and and it turns out the first 511 bytes are all 1s. then the next 899 bytes are garbage. The next 1211 bytes are all 1s and the next 899 bytes are garbage, rinse and repeat.
Trying to erase the nand gives me all bad blocks unless I enable raw access. After that erasing and doing a short dump shows all 1s which is good. But, I don’t know why but I can’t trust it to erase unless I enable raw access and also I can’t write raw
write_data() not implemented
Unable to write data to NAND device
failed writing file u-boot.bin to NAND flash 0 at offset 0x00000000
But disabling raw access gives me the garbage listed previously.
Could someone please point out any other alternatives I might have.