Skip to contentSkip to conversation

suddently, can't use "cp jffs2.img /dev/mtd0" anymore

DISCUSSION rolf liu 2 participants 3 messages Jul 20, 2005 Memory technology devices (MTD)

lore
Share & tools
lore

rolf liu

author
#0 lore raw

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

#1 lore raw
Quoted 9 lines · 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?

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

author
#2 lore raw

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 :(

Quoted 21 lines · Josh Boyer
Quoted 9 lines · 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?

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