cancel
Showing results for 
Search instead for 
Did you mean: 

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

sheng yang
Associate III
Posted on May 08, 2018 at 10:40

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,

0690X0000060B3oQAE.png

then i try dd again as below

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

I diff ok.p0 with ok1.p0,

0690X0000060B3yQAE.png

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

0 REPLIES 0