All of lore.kernel.org
 help / color / mirror / Atom feed
* querying status ?
@ 2008-03-03 16:22 DMcLeod
  0 siblings, 0 replies; only message in thread
From: DMcLeod @ 2008-03-03 16:22 UTC (permalink / raw)
  To: linux-mtd

Hi,
    Is there a way to query  the status of MTD devices? We are using mtd 
over a NOR flash device with jffs2 filesystem. At boot time, there are 
occasionally more than one processes accessing the filesystem and one of 
our utilities reads strange values (eg 0xff4fff4f) during bootup. It 
reads this value by dereferencing a pointer to a memory mapped address.. 
eg;

        U32 base = 0x7fc0000;
        memcpy(buff, (void *)base, sizeof(buff));

9 times out of 10, valid data is read using this method. But the other 
time it seems there's some operation keeping us from accessing flash...  
ideally, we'd like to be able to query (and maybe lock) flash during 
this read. Our first thought was to try to fopen /dev/mtdblockX for 
reading, but this does not work.

Thanks in advance,

-- 

Thank you,
Dennis McLeod
Software Engineer
BittWare, Inc
9 Hills Ave
Concord, NH 03301
dmcleod@bittware.com
603 226 0404 x514

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-03-03 16:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-03 16:22 querying status ? DMcLeod

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.