public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* JFFS/MTD and Raw access
@ 2002-11-28 16:21 Damien GERANTON
  2002-11-29 11:28 ` simon
  2002-11-29 12:36 ` Kenneth Johansson
  0 siblings, 2 replies; 6+ messages in thread
From: Damien GERANTON @ 2002-11-28 16:21 UTC (permalink / raw)
  To: MTD mailing liste

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: JFFS/MTD and Raw access
  2002-11-28 16:21 JFFS/MTD and Raw access Damien GERANTON
@ 2002-11-29 11:28 ` simon
  2002-11-29 12:35   ` Thomas Gleixner
  2002-11-29 12:36 ` Kenneth Johansson
  1 sibling, 1 reply; 6+ messages in thread
From: simon @ 2002-11-29 11:28 UTC (permalink / raw)
  To: Damien GERANTON; +Cc: MTD mailing list

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.
On 28 Nov 2002, at 17:21, Damien GERANTON wrote:

> 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
> 
> 
> 
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/


__________________________

Simon Haynes - Baydel 
Phone : 44 (0) 1372 378811
Email : simon@baydel.com
__________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: JFFS/MTD and Raw access
  2002-11-29 11:28 ` simon
@ 2002-11-29 12:35   ` Thomas Gleixner
  0 siblings, 0 replies; 6+ messages in thread
From: Thomas Gleixner @ 2002-11-29 12:35 UTC (permalink / raw)
  To: simon, Damien GERANTON; +Cc: MTD mailing list

On Friday 29 November 2002 12:28, simon@baydel.com 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

-- 
Thomas
____________________________________________________
linutronix - competence in embedded & realtime linux
http://www.linutronix.de
mail: tglx@linutronix.de

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: JFFS/MTD and Raw access
  2002-11-28 16:21 JFFS/MTD and Raw access Damien GERANTON
  2002-11-29 11:28 ` simon
@ 2002-11-29 12:36 ` Kenneth Johansson
  1 sibling, 0 replies; 6+ messages in thread
From: Kenneth Johansson @ 2002-11-29 12:36 UTC (permalink / raw)
  To: Damien GERANTON; +Cc: MTD mailing liste

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



On Thu, 2002-11-28 at 17:21, Damien GERANTON wrote:
> 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
> 
> 
> 
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: JFFS/MTD and Raw access
@ 2002-11-29 13:04 John Hall
  2002-11-29 14:23 ` Thomas Gleixner
  0 siblings, 1 reply; 6+ messages in thread
From: John Hall @ 2002-11-29 13:04 UTC (permalink / raw)
  To: tglx; +Cc: simon, Damien GERANTON, MTD mailing list

On 29 November 2002 12:35 Thomas Gleixner <tglx@linutronix.de> wrote:

> For NAND see http://www.linux-mtd/tech/nand.html

You mean http://www.linux-mtd.infradead.org/tech/nand.html

I found a small bug on the page that caused all the text from "HOWTO
implement NAND support" onwards to be in h2. Patch is here:

diff -u nand.html.orig nand.html
--- nand.html.orig      Fri Nov 29 13:02:46 2002
+++ nand.html   Fri Nov 29 13:03:49 2002
@@ -191,7 +191,7 @@
 </p>

 <hr>
-<h2>JFFS2 specific information <h2>
+<h2>JFFS2 specific information</h2>
 <h3>JFFS2 Out of Band usage</h3>

 <h4>Nand chips with 256 byte pagesize and 8 byte OOB size</h4>

Regards,
John Hall

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: JFFS/MTD and Raw access
  2002-11-29 13:04 John Hall
@ 2002-11-29 14:23 ` Thomas Gleixner
  0 siblings, 0 replies; 6+ messages in thread
From: Thomas Gleixner @ 2002-11-29 14:23 UTC (permalink / raw)
  To: John Hall; +Cc: simon, Damien GERANTON, MTD mailing list

On Friday 29 November 2002 14:04, John Hall wrote:
> On 29 November 2002 12:35 Thomas Gleixner <tglx@linutronix.de> wrote:
> > For NAND see http://www.linux-mtd/tech/nand.html
>
> You mean http://www.linux-mtd.infradead.org/tech/nand.html
Yep
> I found a small bug on the page that caused all the text from "HOWTO
> implement NAND support" onwards to be in h2. Patch is here:
>
> diff -u nand.html.orig nand.html
> --- nand.html.orig      Fri Nov 29 13:02:46 2002
> +++ nand.html   Fri Nov 29 13:03:49 2002
> @@ -191,7 +191,7 @@
>  </p>
>
>  <hr>
> -<h2>JFFS2 specific information <h2>
> +<h2>JFFS2 specific information</h2>
>  <h3>JFFS2 Out of Band usage</h3>
>
>  <h4>Nand chips with 256 byte pagesize and 8 byte OOB size</h4>
>
Thanks
-- 
Thomas
____________________________________________________
linutronix - competence in embedded & realtime linux
http://www.linutronix.de
mail: tglx@linutronix.de

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-11-29 13:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-28 16:21 JFFS/MTD and Raw access Damien GERANTON
2002-11-29 11:28 ` simon
2002-11-29 12:35   ` Thomas Gleixner
2002-11-29 12:36 ` Kenneth Johansson
  -- strict thread matches above, loose matches on Subject: below --
2002-11-29 13:04 John Hall
2002-11-29 14:23 ` Thomas Gleixner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox