* Need Some help to write NandFlash Driver
@ 2002-06-06 2:35 Jason Chan
2002-06-09 13:24 ` Thomas Gleixner
0 siblings, 1 reply; 2+ messages in thread
From: Jason Chan @ 2002-06-06 2:35 UTC (permalink / raw)
To: 'linux-arm-kernel@lists.arm.linux.org.uk', linux-mtd
Dear all,
I am currently implementing Samsung Nand-Flash Driver for edb7312 block on 2.4.18 kernel. I am seeking for suggestion on which method should be used to improve my nandflash driver.
It implement the Nand-Flash Driver as a block device currently.=20
When there are some "WRITE" request to write an sector, I will
1. Copy the content of the block into a buffer.
2. Update the content of the buffer of specific sector location.
3. Erase the block
4. Write the whole block back to the flash.
But I find that, when I write an whole block of buffer back to the flash, all the interrupt will be blocked during the operation. And that's cause problem of other drivers. And I want the interrupt can fully functional even when I writing flash.
Now I have following idea,
1. Not to disable interrupt when processing "WRITE" request. But how can I control the read/write operation so that I won't have some synchronization problem.
2. Use MTD Block device, I have do some initial port on that. I use MTD NandFlash support and port my own code there. I can use the "mtd-nand" char device to read/write the flash. But when I use the "mtd-block" block device to read to flash, it work fine. But it crash when I try to write to the block device. Is that the MTD block driver problem? Anyone has successful port Samsung nandflash to MTD block device.
3. Use JFFS2. It seems JFFS2 can support the NandFlash. Anyone have try that?
4. Use NTFL. But it only support DiskOnChip. Can this use Nandflash on this.
Any suggestion is welcome.
--
Best Regards,
Jason Chan
Emsoft Ltd.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Need Some help to write NandFlash Driver
2002-06-06 2:35 Need Some help to write NandFlash Driver Jason Chan
@ 2002-06-09 13:24 ` Thomas Gleixner
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Gleixner @ 2002-06-09 13:24 UTC (permalink / raw)
To: Jason Chan, 'linux-arm-kernel@lists.arm.linux.org.uk',
linux-mtd
On Thursday, 6. June 2002 04:35, Jason Chan wrote:
> Dear all,
> I am currently implementing Samsung Nand-Flash Driver for edb7312 block on
> 2.4.18 kernel. I am seeking for suggestion on which method should be used
> to improve my nandflash driver.
There is a working nand flash driver for edb7312 in mtd CVS.
JFFS2 support is working
--
Thomas
___________________________________
autronix automation GmbH
http://www.autronix.de gleixner@autronix.de
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-06-09 13:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-06 2:35 Need Some help to write NandFlash Driver Jason Chan
2002-06-09 13:24 ` Thomas Gleixner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox