* MTD driver
@ 2004-12-07 3:46 Subrahmanyam
2004-12-08 5:48 ` [PATCH] nand flash through IDE interface William J Beksi
2004-12-08 6:37 ` MTD driver Thomas Gleixner
0 siblings, 2 replies; 11+ messages in thread
From: Subrahmanyam @ 2004-12-07 3:46 UTC (permalink / raw)
To: linux-mtd
Hi,
I need to provide an user interface/GUI wherein when a certain data
(string/key) is entered, it should basically store the key in the flash
(this basically happens during run time after the target has been identified
by the host).
In the target we have a flash in which there is jffs2 file system and also
mtd drivers, since i need to store block oriented data, i am looking at the
possiblity of using mtd driver and storing data(key) in a particular
location in flash. How should i proceed in acheiving the same.
I will be thankful if you can best suggest an approach for acheiving the
same.
Thanks,
Subrahmanyam.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH] nand flash through IDE interface
2004-12-07 3:46 MTD driver Subrahmanyam
@ 2004-12-08 5:48 ` William J Beksi
2004-12-09 13:20 ` Thomas Gleixner
2004-12-08 6:37 ` MTD driver Thomas Gleixner
1 sibling, 1 reply; 11+ messages in thread
From: William J Beksi @ 2004-12-08 5:48 UTC (permalink / raw)
To: linux-mtd
[-- Attachment #1: Type: text/plain, Size: 228 bytes --]
Hi,
I use the ide interface for testing nand flash. I think this driver
would be useful for anyone else that does the same. It would save people
the time of hacking another board specific driver to work with ide.
--
William
[-- Attachment #2: ide.c --]
[-- Type: text/x-c, Size: 2926 bytes --]
/*
* drivers/mtd/nand/ide.c
*
* Copyright (C) 2004 William J Beksi <wjbeksi@users.sourceforge.net>
*
* Derived from drivers/mtd/spia.c
* Copyright (C) 2000 Steven J. Hill <sjhill@realitydiluted.com>
*
* $Id: ide.c,v 1.18 2004/12/07 05:17:46 wjbeksi Exp $
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* Overview:
* This device driver allows a NAND flash device to be accessed from
* an IDE interface.
*/
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/nand.h>
#include <linux/mtd/partitions.h>
#include <asm/io.h>
/*
* IDE MTD structure
*/
static struct mtd_info *ide_mtd = NULL;
/*
* Values specific to the IDE
*/
#define BASEPORT1 0x1F0 /* IDE1 NAND Flash I/O Base Address */
#define BASEPORT2 0x170 /* IDE2 NAND Flash I/O Base Address */
#define IDE_IO_BASE BASEPORT1
/*
* Define partitions for flash device
*/
const static struct mtd_partition partition_info[] = {
{
.name = "IDE flash partition 1",
.offset = 0,
.size = 3*1024*1024
},
{
.name = "IDE flash partition 2",
.offset = 3*1024*1024,
.size = 3*1024*1024
}
};
#define NUM_PARTITIONS 2
/*
* Main initialization routine
*/
int __init ide_init(void)
{
struct nand_chip *this;
/* Allocate memory for MTD device structure and private data */
ide_mtd = kmalloc(sizeof(struct mtd_info) + sizeof(struct nand_chip), GFP_KERNEL);
if (!ide_mtd) {
printk("Unable to allocate IDE NAND MTD structure.\n");
return -ENOMEM;
}
/* Get pointer to private data */
this = (struct nand_chip *) (&ide_mtd[1]);
/* Initialize structures */
memset((char *) ide_mtd, 0, sizeof(struct mtd_info));
memset((char *) this, 0, sizeof(struct nand_chip));
/* Link the private data with the MTD structure */
ide_mtd->priv = this;
/* Set address of NAND IO lines */
this->IO_ADDR_R = IDE_IO_BASE;
this->IO_ADDR_W = IDE_IO_BASE;
this->dev_ready = NULL;
/* 20 us command delay time */
this->chip_delay = 20;
/* Set the ECC generator mode */
this->eccmode = NAND_ECC_SOFT;
/* Scan to find existance of the device */
if (nand_scan(ide_mtd, 1)) {
kfree(ide_mtd);
return -ENXIO;
}
/* Register the partitions */
add_mtd_partitions(ide_mtd, partition_info, NUM_PARTITIONS);
/* Return happy */
return 0;
}
module_init(ide_init);
/*
* Clean up routine
*/
#ifdef MODULE
static void __exit ide_cleanup (void)
{
/* Release resources, unregister the device */
nand_release(ide_mtd);
/* Free the MTD device structure */
kfree(ide_mtd);
}
module_exit(ide_cleanup);
#endif
MODULE_LICENSE("GPL");
MODULE_AUTHOR("William J Beksi <wjbeksi@users.sourceforge.net>");
MODULE_DESCRIPTION("Glue layer for NAND flash through an IDE interface");
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: [PATCH] nand flash through IDE interface
2004-12-08 5:48 ` [PATCH] nand flash through IDE interface William J Beksi
@ 2004-12-09 13:20 ` Thomas Gleixner
2004-12-09 13:53 ` William J Beksi
0 siblings, 1 reply; 11+ messages in thread
From: Thomas Gleixner @ 2004-12-09 13:20 UTC (permalink / raw)
To: William J Beksi; +Cc: linux-mtd
On Wed, 2004-12-08 at 13:48 +0800, William J Beksi wrote:
> Hi,
> I use the ide interface for testing nand flash. I think this driver
> would be useful for anyone else that does the same. It would save people
> the time of hacking another board specific driver to work with ide.
Interesting.
Which card types can you access with this driver ?
tglx
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] nand flash through IDE interface
2004-12-09 13:20 ` Thomas Gleixner
@ 2004-12-09 13:53 ` William J Beksi
0 siblings, 0 replies; 11+ messages in thread
From: William J Beksi @ 2004-12-09 13:53 UTC (permalink / raw)
To: linux-mtd; +Cc: tglx
Thomas Gleixner wrote:
>On Wed, 2004-12-08 at 13:48 +0800, William J Beksi wrote:
>
>
>>Hi,
>>I use the ide interface for testing nand flash. I think this driver
>>would be useful for anyone else that does the same. It would save people
>>the time of hacking another board specific driver to work with ide.
>>
>>
>
>Interesting.
>
>Which card types can you access with this driver ?
>
>
I've been able to access both Samsung 32MB (K9F5608U0C) and 64MB
(K9F1208U0M) cards.
The guys in my hardware department build a small board consisting of a
nand flash socket, switch, and ide connector that allows access to the
flash from a pc's ide connector.
--
William
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: MTD driver
2004-12-07 3:46 MTD driver Subrahmanyam
2004-12-08 5:48 ` [PATCH] nand flash through IDE interface William J Beksi
@ 2004-12-08 6:37 ` Thomas Gleixner
2004-12-08 10:03 ` Stephan Linke
1 sibling, 1 reply; 11+ messages in thread
From: Thomas Gleixner @ 2004-12-08 6:37 UTC (permalink / raw)
To: Subrahmanyam; +Cc: linux-mtd
On Tue, 2004-12-07 at 09:16 +0530, Subrahmanyam wrote:
> Hi,
>
> I need to provide an user interface/GUI wherein when a certain data
> (string/key) is entered, it should basically store the key in the flash
> (this basically happens during run time after the target has been identified
> by the host).
>
> In the target we have a flash in which there is jffs2 file system and also
> mtd drivers, since i need to store block oriented data, i am looking at the
> possiblity of using mtd driver and storing data(key) in a particular
> location in flash. How should i proceed in acheiving the same.
Is there any good reason, why the key cannot be stored on the already
available jffs2 filesystem ?
tglx
^ permalink raw reply [flat|nested] 11+ messages in thread
* RE: MTD driver
2004-12-08 6:37 ` MTD driver Thomas Gleixner
@ 2004-12-08 10:03 ` Stephan Linke
0 siblings, 0 replies; 11+ messages in thread
From: Stephan Linke @ 2004-12-08 10:03 UTC (permalink / raw)
To: Subrahmanyam; +Cc: linux-mtd
Hi,
you may setup a dedicated partition that gives you access to the particular
location in the flash where you whant to place this data. Then you can use
normal open() read() write() and seek() functions to access what ever byte in
this partition. How to erass a block you can look up in one of the MTD tools.
(Only if you are using NAND flash you should not do it like this since bad block
handling whould be missing.)
But I aggree with Thomas. Best whould be to put it into a filesystem...
Stephan
> -----Original Message-----
> From: linux-mtd-bounces@lists.infradead.org
> [mailto:linux-mtd-bounces@lists.infradead.org]On Behalf Of Thomas
> Gleixner
> Sent: Mittwoch, 8. Dezember 2004 07:37
> To: Subrahmanyam
> Cc: linux-mtd@lists.infradead.org
> Subject: Re: MTD driver
>
>
> On Tue, 2004-12-07 at 09:16 +0530, Subrahmanyam wrote:
> > Hi,
> >
> > I need to provide an user interface/GUI wherein when a certain data
> > (string/key) is entered, it should basically store the key in the flash
> > (this basically happens during run time after the target has been
> identified
> > by the host).
> >
> > In the target we have a flash in which there is jffs2 file system and also
> > mtd drivers, since i need to store block oriented data, i am looking at the
> > possiblity of using mtd driver and storing data(key) in a particular
> > location in flash. How should i proceed in acheiving the same.
>
> Is there any good reason, why the key cannot be stored on the already
> available jffs2 filesystem ?
>
> tglx
>
>
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* MTD driver
@ 2004-12-09 3:38 Subrahmanyam
2004-12-09 8:51 ` Stephan Linke
2004-12-09 10:04 ` Thomas Gleixner
0 siblings, 2 replies; 11+ messages in thread
From: Subrahmanyam @ 2004-12-09 3:38 UTC (permalink / raw)
To: linux-mtd
Hi Stephen,
Yes as you have said I shall setup a dedicated partition to give access a
particular location in flash. We, have an Intel starta NOR flash which uses
cfi command set driver, which basically i guess takes care of the erase
operation too. I have accessed the target through minicom tool, is this
where i have to set up an additional partition?, can you suggest any site
or
procedure by which I can acheive setting up an additional partition.
Yes, Thomas has suggested that i indeed use a filesystem, but how can I
best
achieve it! I mean the procedure to store data in a file.
Thanks,
Subrahmanyam.
>
> ----- Original Message -----
> From: "Stephan Linke" <Stephan.Linke@epygi.de>
> To: "Subrahmanyam" <subrahmanyam@navayuga.co.in>
> Cc: <linux-mtd@lists.infradead.org>
> Sent: Wednesday, December 08, 2004 03:33 PM
> Subject: RE: MTD driver
>
>
>> Hi,
>>
>> you may setup a dedicated partition that gives you access to the
>> particular
>> location in the flash where you whant to place this data. Then you can
>> use
>> normal open() read() write() and seek() functions to access what ever
>> byte in
>> this partition. How to erass a block you can look up in one of the MTD
>> tools.
>> (Only if you are using NAND flash you should not do it like this since
>> bad block
>> handling whould be missing.)
>> But I aggree with Thomas. Best whould be to put it into a filesystem...
>>
>> Stephan
>>
>>
>>> -----Original Message-----
>>> From: linux-mtd-bounces@lists.infradead.org
>>> [mailto:linux-mtd-bounces@lists.infradead.org]On Behalf Of Thomas
>>> Gleixner
>>> Sent: Mittwoch, 8. Dezember 2004 07:37
>>> To: Subrahmanyam
>>> Cc: linux-mtd@lists.infradead.org
>>> Subject: Re: MTD driver
>>>
>>>
>>> On Tue, 2004-12-07 at 09:16 +0530, Subrahmanyam wrote:
>>> > Hi,
>>> >
>>> > I need to provide an user interface/GUI wherein when a certain data
>>> > (string/key) is entered, it should basically store the key in the
>>> > flash
>>> > (this basically happens during run time after the target has been
>>> identified
>>> > by the host).
>>> >
>>> > In the target we have a flash in which there is jffs2 file system and
>>> > also
>>> > mtd drivers, since i need to store block oriented data, i am looking
>>> > at the
>>> > possiblity of using mtd driver and storing data(key) in a particular
>>> > location in flash. How should i proceed in acheiving the same.
>>>
>>> Is there any good reason, why the key cannot be stored on the already
>>> available jffs2 filesystem ?
>>>
>>> tglx
>>>
>>>
>>>
>>> ______________________________________________________
>>> Linux MTD discussion mailing list
>>> http://lists.infradead.org/mailman/listinfo/linux-mtd/
>>>
>>
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* RE: MTD driver
2004-12-09 3:38 Subrahmanyam
@ 2004-12-09 8:51 ` Stephan Linke
2004-12-13 8:33 ` Subrahmanyam
2004-12-09 10:04 ` Thomas Gleixner
1 sibling, 1 reply; 11+ messages in thread
From: Stephan Linke @ 2004-12-09 8:51 UTC (permalink / raw)
To: Subrahmanyam, linux-mtd
Hi Subrahmanyam,
to setup a separate partition you should have a look at the files in mtd/maps
directory.
The rest is simple as long as you whant to access it from user space. Just use
open/lseek/write (see man pages (2)) on either the filedescriptor of a regular
file or the device inode of the new flash partition.
If you need to access the data from within kernel code it is slightly different.
If you write to a flash partition you can find some ideas how to do it in
mtd/maps. About writing a file from within kernel code I can only tell you that
it is possible but I have no experience.
Stephan
> -----Original Message-----
> From: linux-mtd-bounces@lists.infradead.org
> [mailto:linux-mtd-bounces@lists.infradead.org]On Behalf Of Subrahmanyam
> Sent: Donnerstag, 9. Dezember 2004 04:38
> To: linux-mtd@lists.infradead.org
> Subject: MTD driver
>
>
> Hi Stephen,
>
> Yes as you have said I shall setup a dedicated partition to give access a
> particular location in flash. We, have an Intel starta NOR flash which uses
> cfi command set driver, which basically i guess takes care of the erase
> operation too. I have accessed the target through minicom tool, is this
> where i have to set up an additional partition?, can you suggest any site
> or
> procedure by which I can acheive setting up an additional partition.
>
> Yes, Thomas has suggested that i indeed use a filesystem, but how can I
> best
> achieve it! I mean the procedure to store data in a file.
>
> Thanks,
> Subrahmanyam.
>
> >
> > ----- Original Message -----
> > From: "Stephan Linke" <Stephan.Linke@epygi.de>
> > To: "Subrahmanyam" <subrahmanyam@navayuga.co.in>
> > Cc: <linux-mtd@lists.infradead.org>
> > Sent: Wednesday, December 08, 2004 03:33 PM
> > Subject: RE: MTD driver
> >
> >
> >> Hi,
> >>
> >> you may setup a dedicated partition that gives you access to the
> >> particular
> >> location in the flash where you whant to place this data. Then you can
> >> use
> >> normal open() read() write() and seek() functions to access what ever
> >> byte in
> >> this partition. How to erass a block you can look up in one of the MTD
> >> tools.
> >> (Only if you are using NAND flash you should not do it like this since
> >> bad block
> >> handling whould be missing.)
> >> But I aggree with Thomas. Best whould be to put it into a filesystem...
> >>
> >> Stephan
> >>
> >>
> >>> -----Original Message-----
> >>> From: linux-mtd-bounces@lists.infradead.org
> >>> [mailto:linux-mtd-bounces@lists.infradead.org]On Behalf Of Thomas
> >>> Gleixner
> >>> Sent: Mittwoch, 8. Dezember 2004 07:37
> >>> To: Subrahmanyam
> >>> Cc: linux-mtd@lists.infradead.org
> >>> Subject: Re: MTD driver
> >>>
> >>>
> >>> On Tue, 2004-12-07 at 09:16 +0530, Subrahmanyam wrote:
> >>> > Hi,
> >>> >
> >>> > I need to provide an user interface/GUI wherein when a certain data
> >>> > (string/key) is entered, it should basically store the key in the
> >>> > flash
> >>> > (this basically happens during run time after the target has been
> >>> identified
> >>> > by the host).
> >>> >
> >>> > In the target we have a flash in which there is jffs2 file system and
> >>> > also
> >>> > mtd drivers, since i need to store block oriented data, i am looking
> >>> > at the
> >>> > possiblity of using mtd driver and storing data(key) in a particular
> >>> > location in flash. How should i proceed in acheiving the same.
> >>>
> >>> Is there any good reason, why the key cannot be stored on the already
> >>> available jffs2 filesystem ?
> >>>
> >>> tglx
> >>>
> >>>
> >>>
> >>> ______________________________________________________
> >>> Linux MTD discussion mailing list
> >>> http://lists.infradead.org/mailman/listinfo/linux-mtd/
> >>>
> >>
> >
>
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: MTD driver
2004-12-09 8:51 ` Stephan Linke
@ 2004-12-13 8:33 ` Subrahmanyam
0 siblings, 0 replies; 11+ messages in thread
From: Subrahmanyam @ 2004-12-13 8:33 UTC (permalink / raw)
To: linux-mtd
Hi Stephan,
Thanks for the help.
Inorder to create a new partition on the flash, can I use the "fis" commands
when connected to the target through minicom tool.
As you have said to create a partition, a understanding of the files in
mtd/maps directory is required, but there are so many files pertaining to
it, is it the file of the processor in the target, which in our case happens
to be iop80321.
Please suggest how I can use the already existing jffs2 filesystem upon
which I can create a file and store the key in a file. Apart from the file
system the other option would be to store the key in block oriented format
i.e. by using fis from the redboot.
After storing the key in the flash, you have suggested that I can access the
key using the device inode of the flash partition, how exactly can I obtain
the device inode of a particular partition, could you please suggest the
same.
Thanks,
Subrahmanyam.
----- Original Message -----
From: "Stephan Linke" <Stephan.Linke@epygi.de>
To: "Subrahmanyam" <subrahmanyam@navayuga.co.in>;
<linux-mtd@lists.infradead.org>
Sent: Thursday, December 09, 2004 02:21 PM
Subject: RE: MTD driver
> Hi Subrahmanyam,
>
> to setup a separate partition you should have a look at the files in
> mtd/maps
> directory.
>
> The rest is simple as long as you whant to access it from user space. Just
> use
> open/lseek/write (see man pages (2)) on either the filedescriptor of a
> regular
> file or the device inode of the new flash partition.
>
> If you need to access the data from within kernel code it is slightly
> different.
> If you write to a flash partition you can find some ideas how to do it in
> mtd/maps. About writing a file from within kernel code I can only tell you
> that
> it is possible but I have no experience.
>
> Stephan
>
>> -----Original Message-----
>> From: linux-mtd-bounces@lists.infradead.org
>> [mailto:linux-mtd-bounces@lists.infradead.org]On Behalf Of Subrahmanyam
>> Sent: Donnerstag, 9. Dezember 2004 04:38
>> To: linux-mtd@lists.infradead.org
>> Subject: MTD driver
>>
>>
>> Hi Stephen,
>>
>> Yes as you have said I shall setup a dedicated partition to give access
>> a
>> particular location in flash. We, have an Intel starta NOR flash which
>> uses
>> cfi command set driver, which basically i guess takes care of the erase
>> operation too. I have accessed the target through minicom tool, is this
>> where i have to set up an additional partition?, can you suggest any
>> site
>> or
>> procedure by which I can acheive setting up an additional partition.
>>
>> Yes, Thomas has suggested that i indeed use a filesystem, but how can I
>> best
>> achieve it! I mean the procedure to store data in a file.
>>
>> Thanks,
>> Subrahmanyam.
>>
>> >
>> > ----- Original Message -----
>> > From: "Stephan Linke" <Stephan.Linke@epygi.de>
>> > To: "Subrahmanyam" <subrahmanyam@navayuga.co.in>
>> > Cc: <linux-mtd@lists.infradead.org>
>> > Sent: Wednesday, December 08, 2004 03:33 PM
>> > Subject: RE: MTD driver
>> >
>> >
>> >> Hi,
>> >>
>> >> you may setup a dedicated partition that gives you access to the
>> >> particular
>> >> location in the flash where you whant to place this data. Then you can
>> >> use
>> >> normal open() read() write() and seek() functions to access what ever
>> >> byte in
>> >> this partition. How to erass a block you can look up in one of the MTD
>> >> tools.
>> >> (Only if you are using NAND flash you should not do it like this since
>> >> bad block
>> >> handling whould be missing.)
>> >> But I aggree with Thomas. Best whould be to put it into a
>> >> filesystem...
>> >>
>> >> Stephan
>> >>
>> >>
>> >>> -----Original Message-----
>> >>> From: linux-mtd-bounces@lists.infradead.org
>> >>> [mailto:linux-mtd-bounces@lists.infradead.org]On Behalf Of Thomas
>> >>> Gleixner
>> >>> Sent: Mittwoch, 8. Dezember 2004 07:37
>> >>> To: Subrahmanyam
>> >>> Cc: linux-mtd@lists.infradead.org
>> >>> Subject: Re: MTD driver
>> >>>
>> >>>
>> >>> On Tue, 2004-12-07 at 09:16 +0530, Subrahmanyam wrote:
>> >>> > Hi,
>> >>> >
>> >>> > I need to provide an user interface/GUI wherein when a certain
>> >>> > data
>> >>> > (string/key) is entered, it should basically store the key in the
>> >>> > flash
>> >>> > (this basically happens during run time after the target has been
>> >>> identified
>> >>> > by the host).
>> >>> >
>> >>> > In the target we have a flash in which there is jffs2 file system
>> >>> > and
>> >>> > also
>> >>> > mtd drivers, since i need to store block oriented data, i am
>> >>> > looking
>> >>> > at the
>> >>> > possiblity of using mtd driver and storing data(key) in a
>> >>> > particular
>> >>> > location in flash. How should i proceed in acheiving the same.
>> >>>
>> >>> Is there any good reason, why the key cannot be stored on the already
>> >>> available jffs2 filesystem ?
>> >>>
>> >>> tglx
>> >>>
>> >>>
>> >>>
>> >>> ______________________________________________________
>> >>> Linux MTD discussion mailing list
>> >>> http://lists.infradead.org/mailman/listinfo/linux-mtd/
>> >>>
>> >>
>> >
>>
>>
>> ______________________________________________________
>> Linux MTD discussion mailing list
>> http://lists.infradead.org/mailman/listinfo/linux-mtd/
>>
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: MTD driver
2004-12-09 3:38 Subrahmanyam
2004-12-09 8:51 ` Stephan Linke
@ 2004-12-09 10:04 ` Thomas Gleixner
2004-12-13 14:01 ` Subrahmanyam
1 sibling, 1 reply; 11+ messages in thread
From: Thomas Gleixner @ 2004-12-09 10:04 UTC (permalink / raw)
To: Subrahmanyam; +Cc: linux-mtd
On Thu, 2004-12-09 at 09:08 +0530, Subrahmanyam wrote:
> Yes, Thomas has suggested that i indeed use a filesystem, but how can I
> best
> achieve it! I mean the procedure to store data in a file.
# echo "KEYSTRING" >/path/to/your/file
All programming languages provide functions to write to files.
# man 2 write
might be a good start. If this does not help you might try
http://www.amazon.com/exec/obidos/ASIN/0764570684/dangookin/104-4933924-3663106?creative=327641&camp=14573&link_code=as1
for further assistance.
tglx
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: MTD driver
2004-12-09 10:04 ` Thomas Gleixner
@ 2004-12-13 14:01 ` Subrahmanyam
0 siblings, 0 replies; 11+ messages in thread
From: Subrahmanyam @ 2004-12-13 14:01 UTC (permalink / raw)
To: linux-mtd
Hi Thomas,
Can you suggest an approach to write into the flash either by using a file
system or by using mtd drivers.
Yes, I am aware of writing data to a normal file but, but how is it possible
to do in a jffs2 file system which is read only.
Please do suggest an approach.
Thanks,
Subrahmanyam.
----- Original Message -----
From: "Thomas Gleixner" <tglx@linutronix.de>
To: "Subrahmanyam" <subrahmanyam@navayuga.co.in>
Cc: <linux-mtd@lists.infradead.org>
Sent: Thursday, December 09, 2004 03:34 PM
Subject: Re: MTD driver
> On Thu, 2004-12-09 at 09:08 +0530, Subrahmanyam wrote:
>> Yes, Thomas has suggested that i indeed use a filesystem, but how can I
>> best
>> achieve it! I mean the procedure to store data in a file.
>
> # echo "KEYSTRING" >/path/to/your/file
>
> All programming languages provide functions to write to files.
>
> # man 2 write
>
> might be a good start. If this does not help you might try
>
> http://www.amazon.com/exec/obidos/ASIN/0764570684/dangookin/104-4933924-3663106?creative=327641&camp=14573&link_code=as1
>
> for further assistance.
>
> tglx
>
>
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2004-12-13 13:59 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-07 3:46 MTD driver Subrahmanyam
2004-12-08 5:48 ` [PATCH] nand flash through IDE interface William J Beksi
2004-12-09 13:20 ` Thomas Gleixner
2004-12-09 13:53 ` William J Beksi
2004-12-08 6:37 ` MTD driver Thomas Gleixner
2004-12-08 10:03 ` Stephan Linke
-- strict thread matches above, loose matches on Subject: below --
2004-12-09 3:38 Subrahmanyam
2004-12-09 8:51 ` Stephan Linke
2004-12-13 8:33 ` Subrahmanyam
2004-12-09 10:04 ` Thomas Gleixner
2004-12-13 14:01 ` Subrahmanyam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox