Block device drivers for flash memory devices
The first version of Windows CE was used solely on platforms with battery-backed Ram storage with a simple file system to manage the storage. however, Windows CE versions 2.10 and later are often used on embedded systems that require persistent storage and cannot depend on battery-backed Ram storage. as a solution Windows CE can use flash memory, which is the industry standard for nonvolatile storage in embedded applications.
The two leading types of flash memory architecture are ata flash and linear flash memory. both conform to the industry standard PC Card form factor, and they can be used interchangeably in existing PC Card sockets. however, there are significant differences between the two ubuntures that affect their performance on Windows CE.
ATA cards emulate the behavior of an ATA-style hard drive by means of linear flash memory components and a special microcontroller chip, which performs Hardware Emulation of an ATA-style hard disk. an ATA card appears as an ordinary hard drive to an operating system. ATA-style hard disks are Block devices, and thus ata cards require block device drivers in order to work with Windows CE. windows CE provides a sample block device driver called atadisk that works with Block devices that conform to the industry standard Advanced Technology Attachment (ATA) specificiation. most ata flask disks will work with the atadisk driver.
Linear Flash Memory takes its name from the fact that, unlike ATA-style flash, the individual storage locations form a contiguous range of memory addresses, each of which can be accessed directly. thus, linear flash memory can be read directly as though it were Ram or Rom. Moreover, Windows CE uses a software driver layer to emulate a disk drive on Linear flash memory devices; this eliminates the need for special controller hardware. linear flash memory devices that operate in this block-oriented fashion use the driver layer to translate data to and from a block format that Windows CE can understand.
This driver layer is called the Flash Translation Layer (FTL ). the FTL software component implemented on Windows CE is provided by the trueffs driver from m-Systems, Inc. the trueffs driver exposes standard Windows CE stream interface functions to the operating system. currently, the trueffs driver in Windows CE supports linear flash memory in several form factors: minicards, industry standard PC cards, and built-in diskonchip devices. linear flash devices that are resident on system boards, also known as resident flash arrays, are not currently supported as Block devices by the trueffs driver.