From: Ankur Maheshwari <ankur_maheshwari@procsys.com>
To: Dave Littell <littelld@verizon.net>
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: direct access to Flash from userland
Date: Mon, 08 Sep 2008 11:30:14 +0530 [thread overview]
Message-ID: <48C4BF6E.9020109@procsys.com> (raw)
In-Reply-To: <48C1F9E2.2030502@verizon.net>
Dave Littell wrote:
> Arnd Bergmann wrote:
>
>> On Thursday 04 September 2008, Fillod Stephane wrote:
>>
>>>> Is there a way for a userland application to issue non-CFI commands
>>>> directly to a Flash device? (This is a 2.6.18-based kernel on a AMCC
>>>> PPC440EPx platform.)
>>>>
>>> I don't know whether there's specific ioctl for such purpose.
>>> Have you tried to read the mtd source? You may also hack the mtd
>>> layer to add your command. Definitely a question for
>>> http://www.linux-mtd.infradead.org/mail.html
>>>
>>>
>> There is no ioctl command for sending arbitrary requests to the
>> flash, but it sounds like something that should be implemented
>> in the kernel, in mtdchar, depending on what the command does.
>>
>> What are you actually trying to do with those commands?
>>
>>
>
> Hi Arnd,
>
> There are some sector protection options and a user-writable
> one-time-programmable section that's larger than the presently
> implemented 8-byte area that I need to support.
>
>
> Thanks,
> Dave
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>
>
Hi Arnd,
You can consider "fw_env" utility (used for changing [read/write] U-boot
environment variables from Linux) provided with u-boot source. You still
need to enable mtd-char support.
Please check u-boot-source/tools/env directory for details.
thanks,
Ankur
next prev parent reply other threads:[~2008-09-08 6:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-04 12:22 direct access to Flash from userland Fillod Stephane
2008-09-05 15:50 ` Arnd Bergmann
2008-09-06 3:32 ` Dave Littell
2008-09-08 6:00 ` Ankur Maheshwari [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-09-03 23:35 Dave Littell
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=48C4BF6E.9020109@procsys.com \
--to=ankur_maheshwari@procsys.com \
--cc=linuxppc-embedded@ozlabs.org \
--cc=littelld@verizon.net \
/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.