public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* RE: Problems with AMD CFI chips
@ 2000-11-02 17:19 mark.langsdorf
  2000-11-02 19:16 ` Gregory Schallert
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: mark.langsdorf @ 2000-11-02 17:19 UTC (permalink / raw)
  To: mtd

> mark.langsdorf@amd.com said:
> >  The Flash bank is found correctly, and loads, and I can 
> > write to it.
> > However, when I boot from it, I can't seem to get it to 
> > commit writes- either creating new files or altering old
> > ones.  Once I reboot the device, my changes are gone.
> 
> Please check using the /dev/mtd0 device directly to see 
> whether your writes are 'taking'. 

	I can write to /dev/mtd0, the writes through the char
interface are definitely consistent over power-outs.  It's
only when I use jffs on /dev/mtdblock0 that I run into problems.

> What 'map' driver are you using?

	Modified version of physmap, since the flash banks are
physically mapped at 0x2000000 but I needed to partition them
because the BIOS and kernel image are also stored on the same
banks.

> for me on the iPAQ because I wasn't enabling the Vpp voltage
> during write cycles. Is this necessary on your targer?
> 
> Other than that, poke the author and/or look at the code 
> yourself to see what's happening. What interleave/buswidth
> are you using?

	Interleave 2, 4 byte buswidth, to support 2 16 bit chips.
Again, that all looks pretty consistent.

	I think it may be some kind of interaction with jffs,
because I've had limited success with creating directories 
and deleting files, but not consistently.  I'm not sure where
I should look in the jffs code to get more information, though,
and would appreciate some pointers.
	Also, when does jffs attempt to clean out the dirty
space?  thread_should_wake reports upwards of 2 megs of
dirty space, which is about 16 sectors and 14% of the available
memory.  I'd think that should get returned to the free list
much earlier, especially during the reboots.

-Mark Langsdorf
AMD, Inc.


To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Problems with AMD CFI chips
@ 2000-10-31 17:47 mark.langsdorf
  2000-10-31 17:55 ` David Woodhouse
  0 siblings, 1 reply; 8+ messages in thread
From: mark.langsdorf @ 2000-10-31 17:47 UTC (permalink / raw)
  To: mtd

I'm testing the MTD/JFFS combo using Kernel 2.2.16 and
the October 30, 2000 version of MTD on AMD CFI compliant
chips.

The Flash bank is found correctly, and loads, and I can
write to it.  However, when I boot from it, I can't seem
to get it to commit writes - either creating new files 
or altering old ones.  Once I reboot the device, my
changes are gone.

mtab shows the root device as being mounted read/write.
When I write a file, the debug info seems to indicate
that the version numbers are being updated properly.

What other information should I provide to help debug
this problem?

Mark Langsdorf
Advanced Micro Devices, Inc             Tel: 512.602.3756
5204 E. Ben White Blvd. M/S 590         Fax: 512.602.5051
Austin, TX 78741                        mark.langsdorf@amd.com


To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

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

end of thread, other threads:[~2000-11-04  2:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-02 17:19 Problems with AMD CFI chips mark.langsdorf
2000-11-02 19:16 ` Gregory Schallert
2000-11-02 22:36   ` David Woodhouse
2000-11-02 22:31 ` David Woodhouse
2000-11-03 18:29 ` Compile problems Gregory Schallert
2000-11-04  2:20   ` David Woodhouse
  -- strict thread matches above, loose matches on Subject: below --
2000-10-31 17:47 Problems with AMD CFI chips mark.langsdorf
2000-10-31 17:55 ` David Woodhouse

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