public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Newly-erased Block...
@ 2005-07-28 16:20 Calò Massimo
  2005-07-31  6:08 ` Artem B. Bityuckiy
  2005-08-01 12:36 ` David Woodhouse
  0 siblings, 2 replies; 8+ messages in thread
From: Calò Massimo @ 2005-07-28 16:20 UTC (permalink / raw)
  To: ucLinux-Mtd@Lists. Infradead. Org

Hi All,

I have an AM29LV160DB flash cip :
	snds100map flash device: 200000 at 1000000
	Search for id:(01 2249) interleave(1) type(2)
	Found: AMD AM29LV160DB
	Physically mapped flash of SNDS100: Found 1 x16 devices at 0x0 in
16-bit mode
	number of JEDEC chips: 1
	Creating 6 MTD partitions on "Physically mapped flash of SNDS100":
	0x00000000-0x00010000 : "boot loader (64K)"
	0x00010000-0x00020000 : "boot data (64K)"
	0x00020000-0x000e0000 : "kernel (768K)"
	0x000e0000-0x00100000 : "user data 00 (128K)"
	0x00100000-0x001a0000 : "root fs (512K)"
	0x001a0000-0x00200000 : "user Jffs2 (512K)"


After the mount command :  />mount -t jffs2 /dev/mtdblock5 /mnt

I receive the following msg:

	Newly-erased block contained wod xxxx at offset xxxx
	Newly-erased block contained wod xxxx at offset xxxx

And the command />df tell me that all the blocks of the partition are used :
0 available.

I tryed to compile "flash_eraseall" under my uClinux-2.4.29, but I did't
have success.

I cleared the flash using my Flash programmer, but the situation is the
same.

Can someone help me on finding the cause of this messages?

Thanks!

	Massimo.

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Newly-erased Block...
@ 2005-09-23 13:29 Calò Massimo
  2005-09-23 13:32 ` Artem B. Bityutskiy
  0 siblings, 1 reply; 8+ messages in thread
From: Calò Massimo @ 2005-09-23 13:29 UTC (permalink / raw)
  To: ucLinux-Mtd@Lists. Infradead. Org; +Cc: dedekind


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.

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

end of thread, other threads:[~2005-09-23 13:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-28 16:20 Newly-erased Block Calò Massimo
2005-07-31  6:08 ` Artem B. Bityuckiy
2005-08-01  8:38   ` Calò Massimo
2005-08-02  8:12     ` Artem B. Bityuckiy
2005-08-01 12:36 ` David Woodhouse
2005-08-01 13:03   ` Calò Massimo
  -- strict thread matches above, loose matches on Subject: below --
2005-09-23 13:29 Calò Massimo
2005-09-23 13:32 ` Artem B. Bityutskiy

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