public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* suddently, can't use "cp jffs2.img /dev/mtd0" anymore
@ 2005-07-20 18:40 rolf liu
  2005-07-20 21:32 ` Josh Boyer
  0 siblings, 1 reply; 3+ messages in thread
From: rolf liu @ 2005-07-20 18:40 UTC (permalink / raw)
  To: linux-mtd; +Cc: rolf liu

Yesterday, I can use "cp jffs2.img  /dev/mtd0" to copy the jffs2 image
to mtd. Today, I applied the cvs snapshot of mtd to kernel and
compiled it. Suddenly, the "cp" command stops working.

it tells me:
MTD do_write_buffer(): software timeout
cp: writing '/dev/mtd0' : Input/output error

any idea?

thanks

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

* Re: suddently, can't use "cp jffs2.img /dev/mtd0" anymore
  2005-07-20 18:40 suddently, can't use "cp jffs2.img /dev/mtd0" anymore rolf liu
@ 2005-07-20 21:32 ` Josh Boyer
  2005-07-20 21:47   ` rolf liu
  0 siblings, 1 reply; 3+ messages in thread
From: Josh Boyer @ 2005-07-20 21:32 UTC (permalink / raw)
  To: rolf liu; +Cc: linux-mtd

On Wed, 2005-07-20 at 11:40 -0700, rolf liu wrote:
> Yesterday, I can use "cp jffs2.img  /dev/mtd0" to copy the jffs2 image
> to mtd. Today, I applied the cvs snapshot of mtd to kernel and
> compiled it. Suddenly, the "cp" command stops working.
> 
> it tells me:
> MTD do_write_buffer(): software timeout
> cp: writing '/dev/mtd0' : Input/output error
> 
> any idea?

Did you erase the chip before writing to it like that again?  If not,
you'll need to do:

flash_eraseall /dev/mtd0

Then try your copy again.

josh

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

* Re: suddently, can't use "cp jffs2.img /dev/mtd0" anymore
  2005-07-20 21:32 ` Josh Boyer
@ 2005-07-20 21:47   ` rolf liu
  0 siblings, 0 replies; 3+ messages in thread
From: rolf liu @ 2005-07-20 21:47 UTC (permalink / raw)
  To: Josh Boyer; +Cc: linux-mtd

I did it every time before I want to write to it :)
It just works yesterday. Today I applied the patch and recompiled the
kernel 2.6.12.
It stops working :(


On 7/20/05, Josh Boyer <jdub@us.ibm.com> wrote:
> On Wed, 2005-07-20 at 11:40 -0700, rolf liu wrote:
> > Yesterday, I can use "cp jffs2.img  /dev/mtd0" to copy the jffs2 image
> > to mtd. Today, I applied the cvs snapshot of mtd to kernel and
> > compiled it. Suddenly, the "cp" command stops working.
> >
> > it tells me:
> > MTD do_write_buffer(): software timeout
> > cp: writing '/dev/mtd0' : Input/output error
> >
> > any idea?
> 
> Did you erase the chip before writing to it like that again?  If not,
> you'll need to do:
> 
> flash_eraseall /dev/mtd0
> 
> Then try your copy again.
> 
> josh
> 
>

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

end of thread, other threads:[~2005-07-20 21:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-20 18:40 suddently, can't use "cp jffs2.img /dev/mtd0" anymore rolf liu
2005-07-20 21:32 ` Josh Boyer
2005-07-20 21:47   ` rolf liu

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