From: Ratheesh <ratheeshreddy@gmail.com>
To: "Yoni Levin" <yoni.l@slyde-tech.com>
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: writing to flash from linux
Date: Wed, 12 Sep 2007 09:38:37 +0530 [thread overview]
Message-ID: <c94019ff0709112108o71bd5e25o7e04472d433d9922@mail.gmail.com> (raw)
In-Reply-To: <1E2D24B6DA8A4EE68CFFD33998B2BC26.MAI@mail.livedns.co.il>
[-- Attachment #1: Type: text/plain, Size: 804 bytes --]
Hi,
You can write into flash from linux if you have mapped the flash in mtd
partition. you can open /dev/mtdx(partition that covers your flash
area) file and use normal read/write function calls to read/write from the
flash. Remember to erase the flash before attempting to write data. You can
refer sourcecode of mtd-utils.
Regards
Ratheesh
On 9/11/07, Yoni Levin <yoni.l@slyde-tech.com> wrote:
>
> Hi , I have EN29LV640H flash (http://www.eonsdi.com/pdf/EN29LV640.pdf)
>
> On my mpc83xx board.
>
> How can I write data to flash from linux.?
>
> I guess it done with mtd , there is an example somewhere?
>
> Thanks.
>
>
>
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>
[-- Attachment #2: Type: text/html, Size: 2502 bytes --]
next prev parent reply other threads:[~2007-09-12 4:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-11 15:13 writing to flash from linux Yoni Levin
2007-09-12 4:08 ` Ratheesh [this message]
2007-09-12 14:15 ` David H. Lynch Jr.
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=c94019ff0709112108o71bd5e25o7e04472d433d9922@mail.gmail.com \
--to=ratheeshreddy@gmail.com \
--cc=linuxppc-embedded@ozlabs.org \
--cc=yoni.l@slyde-tech.com \
/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.