Skip to contentSkip to conversation

Quesion on copying to mtdblock0

DISCUSSION Jim Zeus 2 participants 2 messages May 16, 2002 Memory technology devices (MTD)

lore
Share & tools
lore

Jim Zeus

author
#0 lore raw
Quoted 3 lines · --- David Woodhouse

The flash is not completely erased, and doesn't contain _anything_ that looks like valid JFFS2 data, so we don't erase it and start using it, because you might have mounted the wrong partition.

Yes, you are right, and I think I have to apologize for my stupid question

Quoted 6 lines
Quoted 4 lines

I know the "Last[3] is 9da5, datum is 6246" message is to tell me that what should be written is wrongly different from what be read from flash,its a sanity check,but why a printk() can affects the Flash write?

Timing? You definitely have flash driver problems.

Just forget about it,its ok now.

Quoted 5 lines
Quoted 3 lines

1.Is the command"cp jffs.img /dev/mtdblock0" after booting result as same as to burn the jffs.img into flash chip(which is presented as mtdblock0)with kernel Image?

Yes.

But I cant mount the jffs.img which was copied to mtdblock0(it has been *completely* erased) after booting.

What I mean is I can mount the mtdblock0 to /mnt, but after mounting,/mnt is still a empty directory,thought it should be many files and directories in it(because those are in jffs.img).I think the what the "mount" did is just find the long enough erased space in flash which is after the jffs.img and mount it on. It may not recognize the jffs.img, what do you think about it?
And I took a same try with JFFS2, but I got "Magic bitmask not found"message then mount failed.Is seems to prove my conclusion.

_____________________________________________________________
Want a new web-based email account ? ---> http://www.firstlinux.net

_____________________________________________________________
Promote your group and strengthen ties to your members with [email protected] by Everyone.net http://www.everyone.net/?btn=tag

#1 lore raw
Quoted 2 lines · [email protected] said:

But I cant mount the jffs.img which was copied to mtdblock0(it has been *completely* erased) after booting.

Are you sure the JFFS2 image was created correctly? Is your target bigendian? If you read the image back from mtdblock0 after writing it and compare with the original, is it intact? Can you send me the image?

--
dwmw2