JFFS/MTD and Raw access
Hello,
I face a strange problem, i use MTD with JFFS and i want to clone my systeme from one card
to another.
I thought that some think like :
dd if=/dev/mtd0 of=/master.img
and
dd if=/master.img of=/dev/mtd0
But it does not work, if after i do
dd if=/dev/mtd0 of=/test.img
diff test.img master.img
i says they are different.
Is it normal.
Is RAW acces really RAW ?
Do i miss some think ?
Thanks
PS : I use MTD on 2.2.17 kernel
I have hit exactly the same problem using JFFS2. I am no authority on this but, I thought the problem might be caused by the write generating different OOB data for input blocks, which are erased or only partially written. So I guess what needs to be done is to read and copy the DATA and OOB. I think you can do this with the nanddump and nandwrite utilities. I guess I will have to try it sometime.
Cheers
Simon.
Quoted 24 lines · Damien GERANTON
Hello,
I face a strange problem, i use MTD with JFFS and i want to clone my systeme from one card to another. I thought that some think like : dd if=/dev/mtd0 of=/master.img
and
dd if=/master.img of=/dev/mtd0
But it does not work, if after i do
dd if=/dev/mtd0 of=/test.img
diff test.img master.img
i says they are different.Is it normal.
Is RAW acces really RAW ?
Do i miss some think ?
Thanks
Quoted 7 lines
PS : I use MTD on 2.2.17 kernel
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
__________________________
Simon Haynes - Baydel
Phone : 44 (0) 1372 378811
Email : [email protected]
__________________________
If you have not started jffs2 on the image then they should be the same. What is the real difference of the files? Convert to ascii first
od -Ax -tx1z /dev/mtd0 >master.txt
Quoted 33 lines · Damien GERANTON
Hello,
I face a strange problem, i use MTD with JFFS and i want to clone my systeme from one card
to another.
I thought that some think like :
dd if=/dev/mtd0 of=/master.imgand
dd if=/master.img of=/dev/mtd0
But it does not work, if after i do
dd if=/dev/mtd0 of=/test.img
diff test.img master.img
i says they are different.Is it normal.
Is RAW acces really RAW ?
Do i miss some think ?
Thanks
PS : I use MTD on 2.2.17 kernel
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
Quoted 7 lines · On Friday 29 November 2002 12:28, [email protected] wrote:
I have hit exactly the same problem using JFFS2. I am no authority on this but, I thought the problem might be caused by the write generating different OOB data for input blocks, which are erased or only partially written. So I guess what needs to be done is to read and copy the DATA and OOB. I think you can do this with the nanddump and nandwrite utilities. I guess I will have to try it sometime.
On NOR-FLASH dd should work.
For NAND see http://www.linux-mtd/tech/nand.html
Signature · 5 lines
Thomas ____________________________________________________ linutronix - competence in embedded & realtime linux http://www.linutronix.de mail: [email protected]