All of lore.kernel.org
 help / color / mirror / Atom feed
From: DMcLeod <dmcleod@bittware.com>
To: linux-mtd <linux-mtd@lists.infradead.org>
Subject: querying status ?
Date: Mon, 03 Mar 2008 11:22:23 -0500	[thread overview]
Message-ID: <47CC25BF.4030806@bittware.com> (raw)

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

                 reply	other threads:[~2008-03-03 16:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47CC25BF.4030806@bittware.com \
    --to=dmcleod@bittware.com \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.