From: Aras Vaichas <arasv@magellan-technology.com>
To: linux-mtd@lists.infradead.org
Subject: Re: mtd permission denied
Date: Wed, 23 Mar 2005 10:23:31 +1100 [thread overview]
Message-ID: <4240A8F3.1070203@magellan-technology.com> (raw)
In-Reply-To: <423FBE7F.6090700@magellan-technology.com>
Aras Vaichas wrote:
> Mike Lee wrote:
>
>> Hi all
>> i tried to flash_erase and other flash_* tools to my mtd device, the
>> return value is permission denied, but i am already root login. I have
>> selected MTD_CHAR and MTD_BLOCK in kernel. Do i miss somethings?
> This is spookey, I just got the exact same problem at the same time(!)
>
> I'm trying to write data to my Dataflash device, but I get a "permission
> denied" error whenever I try to fopen the file "/dev/mtd/2" to write the
> data into it. I can read data from it with no problems.
Sorry to answer my owns post ... but Mike gave me a hint as to what the problem
was.
Mike had MTD_WRITEABLE set in the mask_flags for his partitions, so they were
read-only.
My "permission denied" was caused because I'd left the default Dataflash
partition settings in at91_dataflash.c from the MTD backporting work I did last
year. The default settings don't honour erase block boundaries and thus the
partitions were being mounted "read only". Silly me didn't look at dmesg ...
regards,
Aras
prev parent reply other threads:[~2005-03-22 23:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-21 17:22 mtd permission denied Mike Lee
2005-03-22 2:49 ` mike
2005-03-22 6:43 ` Aras Vaichas
2005-03-22 23:23 ` Aras Vaichas [this message]
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=4240A8F3.1070203@magellan-technology.com \
--to=arasv@magellan-technology.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox