From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.188]) by ozlabs.org (Postfix) with ESMTP id A43E4DDDFB for ; Wed, 12 Sep 2007 14:08:39 +1000 (EST) Received: by nf-out-0910.google.com with SMTP id c10so94085nfd for ; Tue, 11 Sep 2007 21:08:38 -0700 (PDT) Message-ID: Date: Wed, 12 Sep 2007 09:38:37 +0530 From: Ratheesh To: "Yoni Levin" Subject: Re: writing to flash from linux In-Reply-To: <1E2D24B6DA8A4EE68CFFD33998B2BC26.MAI@mail.livedns.co.il> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_16595_10881296.1189570117309" References: <1E2D24B6DA8A4EE68CFFD33998B2BC26.MAI@mail.livedns.co.il> Cc: linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , ------=_Part_16595_10881296.1189570117309 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 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 > ------=_Part_16595_10881296.1189570117309 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
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

------=_Part_16595_10881296.1189570117309--