AnsweredAssumed Answered

read mt29f4g08 (nand flash) under uclinux maybe get some data error?

Question asked by sheng yang on May 8, 2018

I port uclinux to my board with stm32f767igt.I want to boot uclinux from nand ,so i add nand flash support with mtd framework.when i test my code, i use dd command to read data from /dev/mtd*,like 

dd if=/dev/mtd0 of=ok1.p0 count=2048

because my first mtd part from 0x0 to 0x100000,i burned my rootfs file named ok.jffs2 to this part.

when i diff ok1.p0 with ok.jffs2,I get some data error,

then i try dd again as below

dd if=/dev/mtd0 of=ok.p0 count=2048

I diff ok.p0 with ok1.p0,

as we can see, these files are different too,so i wonder is the drivers problem or nand flashs attrabutes?

Outcomes