ohjeongwook / dumpflash

Low-level NAND Flash dump and parsing utility
288 stars 102 forks source link

nandRead function wrong in slow-mode #2

Closed p1ngb4ck closed 4 years ago

p1ngb4ck commented 9 years ago

Hi ! Just as a small feedback: I found the reason for a part of the errors I experience with DumpFlash: the nandRead function doesnt return every second byte in slow-mode only (please compare bkerlers code for nand-read in slow-mode : he explicitly states, that in slow-mode, ftdi-read function returns every byte twice ("doubled"). The read function therefore has to compensate for that, which it currently doesnt in FlashDevice.py. While writing my own pure C code, I also could verify this behaviour (doubled bytes return in slow-mode) I didnt find the reason for the erroneous Flash-Detection (works correct in NandTool) yet. But thats whats next in my own code, so I`m sure I will find it soon.. (when tinkering around with my own code). Best regards, Oliver

p1ngb4ck commented 9 years ago

Also : Despite to bkerlers code, the device-initialization works correctly in DumpFlash, which helped me a lot to debug the initialization in C / build my own code. thanks a lot again

ohjeongwook commented 8 years ago

Good info. I didn't see that behavior personally. I'll test myself if I can repro this.

ohjeongwook commented 4 years ago

Couldn't repro. Closing the issue.