Re: Flash translation layer
Herb Peyerl <hpeyerl <at> beer.org>
2005-10-04 20:03:30 GMT
On 4-Oct-05, at 1:43 PM, Perry E. Metzger wrote:
>> If anyone could offer me some pointers (or a mentorship!) or let me
>> know if it was decided that this wasn't needed, had already been
>> etc then it would be much appreciated!
> I haven't looked at the web page for SoC, but the general problem is
> to produce a set of drivers so that a chunk of flash memory can be
> used effectively as a disk. As I recall, the primary issue is wear
> leveling. There are, however, lots of references on the net for wear
> leveling algorithms and you should be able to implement one pretty
> You might also want to study how the Linux stuff works, if only to get
> ideas for the interface, and check (I haven't in a while) whether
> there is code to do any of this stuff in FreeBSD or OpenBSD that might
> be of use.
> In theory, one could produce a new file system specifically geared to
> the needs of flash memory, and that might be a lot more efficient than
> a wear leveling adaptation layer, but that is a much more ambitious
> project and I would try the simpler one first.
I have the misfortune of having experience with the Linux Flash
'stuff'. You want to look at 'mtd' (memory technology device) for
the flash driver, and 'jffs2' which is the filesystem layer that is
commonly used over top of an mtd partition.