Skip to contentSkip to conversation

Quesion on copying to mtdblock0

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

lore
Share & tools
lore

Jim Zeus

author
#0 lore raw

Hi, David

I've got some confusion:
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? 2.Is "cp somefile /dev/mtd0" as same as "cp somefile /dev/mtdblock0"?
3.by the way , May I know the reason that you dont register the master MTD like you register the MTD partition?(just like hda and hda1,2,3...)

Thanks in advance

Jim Zeus

_____________________________________________________________
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 3 lines · [email protected] said:

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.

Quoted 1 line

2.Is "cp somefile /dev/mtd0" as same as "cp somefile /dev/mtdblock0"?

No. The block device erases it first.

Quoted 2 lines

3.by the way , May I know the reason that you dont register the master
MTD like you register the MTD partition?(just like hda and hda1,2,3...)

Just a historical accident; the current partitioning code is just a hack.

--
dwmw2