cat file > /dev/mtd0 works but after position 512

Thomas Gleixner tglx at linutronix.de
Tue Jun 13 10:53:42 EDT 2006


On Tue, 2006-06-13 at 17:02 +0300, Indrek Kruusa wrote:
> Hi!
> 
> I have Samsung 64 MB NAND behind cs553x flash controller - therefore 
> cs553x_nand driver.
> cat file > /dev/mtd0 works reportedly (with page aligned file). But 
> after board reboots the flash is empty.
> 
> dd ... bs=512 seek=1 of=/dev/mtd0  works and content stays in flash 
> after reboot too (it works I mean :) )
> 
> I am debugging my own changes in cs553x_nand driver so it is up to me of 
> course. But can this behavior be explained in other way than nand driver 
> bug? Broken BIOS/board?

http://www.linux-mtd.infradead.org/faq/nand.html

	tglx






More information about the linux-mtd mailing list