file copy to /dev/mtd0 hangs after write
Hello!
I am using linux kernel 2.4.18 with included MTD drivers. I got working Intel Strataflash on our experimental board with physmap driver.
When i write something directly to flash, using "cp" command (cp ./image /dev/mtd0), then system hangs *after* data is written. Command returns to shell prompt, but system does not respond any more. Debug messages from mtd do not indicate any errors.
jffs seems to be working OK.
Any ideas why this happens? Any suggestions for debugging?
Signature · 1 line
Ivar
Quoted 1 line · [email protected] said:
Any ideas why this happens? Any suggestions for debugging?
SysRq-P, SysRq-T
--
dwmw2
Quoted 3 lines · David Woodhouse
Quoted 1 line
Any ideas why this happens? Any suggestions for debugging?
SysRq-P, SysRq-T
Does not respond even to this. Otherwise "magic key" is OK.
Any other suggestions?
Signature · 1 line
Ivar
Quoted 7 lines · Ivar Zarans
Quoted 3 lines
Quoted 1 line
Any ideas why this happens? Any suggestions for debugging?
SysRq-P, SysRq-T
Does not respond even to this. Otherwise "magic key" is OK.
Any other suggestions?
- use mtdblock0 instead of mtd0.
- external debugging (some jtag controller, like riscwatch)
- printk()s, if you have the time
Jörn
Signature · 3 lines
The cheapest, fastest and most reliable components of a computer system are those that aren't there. -- Gordon Bell, DEC labratories