public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* RE: [ECOS] JFFS2 Access and interrupts
@ 2006-09-07 11:21 Zimman, Chris
  0 siblings, 0 replies; 12+ messages in thread
From: Zimman, Chris @ 2006-09-07 11:21 UTC (permalink / raw)
  To: ecos-discuss

Most likely, it's not really a problem with JFFS2 itself, but rather
with the underlying flash driver as they're not interrupt safe.  eCosPro
has newer versions of the flash drivers that are interrupt safe.
 
--Chris

-----Original Message-----
From: ecos-discuss-owner@ecos.sourceware.org
[mailto:ecos-discuss-owner@ecos.sourceware.org] On Behalf Of Gary Thomas
Sent: Wednesday, September 06, 2006 8:32 PM
To: Gernot Zankl
Cc: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] JFFS2 Access and interrupts

Gernot Zankl wrote:
> Hi all,
> 
> while writing a file in a jffs2 filesystem (by means of open, write,
> close)
> my application seems to hang in function write(). 
> After guarding the write access with
> HA_DISABLE_INTERRUPTS/HAL_RESTORES_INTERRUPTS 
> the write accesses worked properly.
> 
> After a short inspection of flash.c (in packages/io/flash/current/src)
> it seems that in my port these guards are already present,
> placed around the "__anonymizer"-ed flash access functions.
> 
> Is there a general rule, how to handle mutual IRQs and flash access ?
> Do I miss something ?
> Is there a configuration option, I've forgotten to enable ?

There aren't any configuration options for this - it's assumed to work.

Can you please explain in more detail exactly what you've done to get
things to work?  Given that the generic functions (e.g. flash_program)
already disable interrupts, I'm a bit confused.

> 
> Kind regards,
> Gernot Zankl
> 
> Btw: PowerPC MPC5200B and external flash Spansion S29GL064M

Given that the eCos port for the MPC5200 is not public (you got it
from Analogue & Micro), it makes sense to ask these questions of
A&M, not the general list.


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: [ECOS] Getting segmentation fault while unmounting JFFS2 file  system .
@ 2006-09-06 10:50 Gary Thomas
  2006-09-06 16:43 ` [ECOS] JFFS2 Access and interrupts Gernot Zankl
  0 siblings, 1 reply; 12+ messages in thread
From: Gary Thomas @ 2006-09-06 10:50 UTC (permalink / raw)
  To: Amitesh Singh; +Cc: ecos-discuss

Amitesh Singh wrote:
> Hi All
> I am facing problem while umounting JFFS2 FS.
> I am successfully able to mount JFFS2 system on CRAMFS root file
> system but not able to umount it. It shows Seg.fault when i umount
> this File system.
> # umount /mnt
> umount: Cannot open /etc/mtab
> Unable to handle kernel NULL pointer dereference at virtual address 
> 00000000
> .
> ..
> ..
> I am using CFI Flash device in physical memory map .
> <*> CFI Flash device in physical memory map
>       │ │
> │ │         (0x50000000) Physical start address of flash mapping
>                     │ │
> │ │         (0x01000000) Physical length of flash mapping
> 
> Earlier,i was facing same problem while mounting any MTD block then i
> used the physical mapped flash map instead of the ixp_4xx map .
> Now,I only able to mount but failed to unmount MTD device :P
> Please help me out !

This is purely a JFFS2 problem and has nothing to do with RedBoot/eCos
- take it up with the folks that support JFFS2.

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

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

end of thread, other threads:[~2006-09-14 15:15 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-07 11:21 [ECOS] JFFS2 Access and interrupts Zimman, Chris
  -- strict thread matches above, loose matches on Subject: below --
2006-09-06 10:50 [ECOS] Getting segmentation fault while unmounting JFFS2 file system Gary Thomas
2006-09-06 16:43 ` [ECOS] JFFS2 Access and interrupts Gernot Zankl
2006-09-06 19:32   ` Gary Thomas
2006-09-07 14:50   ` Bart Veer
2006-09-08  8:43     ` Andrew Lunn
2006-09-08 10:00     ` Gernot Zankl
2006-09-08 16:58       ` Andrew Lunn
2006-09-14 12:27     ` Gernot Zankl
2006-09-14 12:31       ` Gary Thomas
2006-09-14 12:42         ` Gernot Zankl
2006-09-14 12:56           ` Gary Thomas
2006-09-14 15:15           ` Bart Veer

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 read-only IMAP folder(s) and NNTP newsgroup(s).