lkml.org 
[lkml]   [2010]   [Apr]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: Writing to NAND, Which is not visible to USER
From
On Fri, Apr 09, 2010 at 05:01:58PM +0530, Prabhu Chawandi wrote:
> I want to write someting to the NAND flash, which is not a part of
> partitioning.
>
> say , out of 128 MB , I am using 64 MB which I have partitioned using
> MTD, but I have to access the other 64 MB.
>
> Can any one help me or give me any ideas ?
>
> Is it possible to write using assmbly code. I am using MIPS board.

I suspect you can't do that.

Most devices have registers needed to access them, in the case of a NAND
flash, commands like 'erase block', 'read', 'write', etc. If you try to
do erase block from your program and then the kernel tries to do something
in its half of the flash, who owns the registers of the NAND flash?

You probably will have to just use the kernel's driver to provide another
partition and then access that directly (without a filesystem) from
your program. At least that way one driver is in charge of accessing
the device.

--
Len Sorensen


\
 
 \ /
  Last update: 2010-04-13 22:27    [W:0.052 / U:0.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site