Newly-erased Block...

Calò Massimo m.calo at ctsgroup.it
Fri Sep 23 09:29:07 EDT 2005


Hi Artem,

	do you remember about my flash problem?

>>/>mount -t jffs2 /dev/mtdblock5 /mnt
>>/>Newly-erased block contained word 0x4c004c at offest 0x00040000
>>Newly-erased block contained word 0x4c004c at offest 0x00030000

I have found the cause : the Samsung S3C4510b when access to the memory use
the "cache" by default.
If you have to disable it (like while you program the flash) you have to 'or
0x4000000 to the base address.

So I have modifyed the file "cfi_cmdset_0002.c" as follow :

	for esample: "do_erase_chip" function

		...
		chip->start |= 0x4000000; //my modify!!!!!!!!!!!!!

		chip->state = FL_ERASING;

		ENABLE_VPP(map);
	
cfi_send_gen_cmd(0xAA,cfi->addr_unlock1,chip->start,map,cfi,......


I did the same for every "cfi_send_gen_cmd" : the 3rd parameter has been
ored to 0x4000000.

What do you think about this modify? Do you know a better way?

Now I still have one warning msg : 
	"Warning: DQ5 raised while program operation was in progress,
however operation completed OK"
Can I ignore this msg?

Thanks!

	Massimo.





More information about the linux-mtd mailing list