linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* MTD problem for Intel Flash
@ 2003-02-26 13:12 Shenrong
  0 siblings, 0 replies; 2+ messages in thread
From: Shenrong @ 2003-02-26 13:12 UTC (permalink / raw)
  To: linuxppc-embedded


Hi,

I met a problem when using JFFS2/MTD with Intel CFI Flash.I mount
JFFS2 fs on a MTD partition and copy a file to JFFS2 fs, then umount
the JFFS2 fs and reboot the system. The bootloader(PPCBoot) crashes
around the first instruction. I check the Flash with BDI, and find the Flash
in
the Status state(i.e. 0x00800080). The Intel CFI Flash is supported in file
cfi_cmdset_0001.c. After the read/write/erase operations, the Flash is not
reset to Ready state(what I think is for increasing the performance). This
doesn't
happen with AMD CFI Flash(impled in cfi_cmdset_0002.c). Even the umount
operation(with cfi_intelext_sync() called ) won't reset the Flash to Ready
state.
So run from Flash after reboot won't success except Hard reset.

I think the Flash should be reset to Ready state at least in
cfi_intelext_sync(), which
will be called whenever the MTD partition is closed. Maybe I have missed
sth.
Any ideas? Thanks.

Shenrong


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: MTD problem for Intel Flash
@ 2003-02-26 13:29 Jaap-Jan Boor
  0 siblings, 0 replies; 2+ messages in thread
From: Jaap-Jan Boor @ 2003-02-26 13:29 UTC (permalink / raw)
  To: rshen; +Cc: linuxppc-embedded


Hi Shenrong,

I have the same problem. I solved it by making a rather ugly
patch. I changed the 8xx reset vector code to first put flash
in Ready state (reset the flash state machine by writing 0x5050)

Jaap-Jan

>
> Hi,
>
> I met a problem when using JFFS2/MTD with Intel CFI Flash.I mount
> JFFS2 fs on a MTD partition and copy a file to JFFS2 fs, then umount
> the JFFS2 fs and reboot the system. The bootloader(PPCBoot) crashes
> around the first instruction. I check the Flash with BDI, and find the Flash
> in
> the Status state(i.e. 0x00800080). The Intel CFI Flash is supported in file
> cfi_cmdset_0001.c. After the read/write/erase operations, the Flash is not
> reset to Ready state(what I think is for increasing the performance). This
> doesn't
> happen with AMD CFI Flash(impled in cfi_cmdset_0002.c). Even the umount
> operation(with cfi_intelext_sync() called ) won't reset the Flash to Ready
> state.
> So run from Flash after reboot won't success except Hard reset.
>
> I think the Flash should be reset to Ready state at least in
> cfi_intelext_sync(), which
> will be called whenever the MTD partition is closed. Maybe I have missed
> sth.
> Any ideas? Thanks.
>
> Shenrong
>
>
>

---
J.G.J. Boor
Lucent Technologies Nederland b.v.	Room:  BE-525
Optical Networking Group TMS Data 	Phone: +31 (0)35 687 4721
Larenseweg 50, P.O. Box 1168, 		Fax:   +31 (0)35 687 5976
1200 BD, Hilversum, The Netherlands	mailto:jjboor@lucent.com


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2003-02-26 13:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-26 13:12 MTD problem for Intel Flash Shenrong
  -- strict thread matches above, loose matches on Subject: below --
2003-02-26 13:29 Jaap-Jan Boor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).