Re: VxWorks - ATA and PCMCIA driver



Hey Larry,

Do you have any document for writing this ATA driver? When I try to
build the BSP with INCLUDE_ATA, I get lot of linker errors, it expects
me to provide lot of functions.

Do you have any documents from the windriver for writing this IDE / ATA
driver? I have good document which explains writing TFFS driver. I
refer to kernel programers guide, there thy have covered TFFS driver
for the flash memories. Where can I get similar document for the IDE
driver?

Your help will be really appreciated.

thanks,
MB.

LarryC wrote:
Just to clarify, if you want to use an ATA device, you should ataDrv,
which is provided with most vxWorks distributions. ataDrv requires
register level access to the ata device itself. If you are using
something like a PCMCIA or CF type ATA device, you will be bridging
between a CARDBUS type interface and an ATA device. Most CARDBUS
devices have a mode that allows you to put the CARBUS into an ATA
emulation mode. To get into this mode, I use sysAta.c, which is
written for this purpose, but must be customized for the specific type
of bridge chip you are using.

After you get the ata driver to work, setting up the dos fs is somewhat
straightforward and is documented in the manuals.

TFFS requires a flash MTD interface to the flash part. While you could
certainly write such a driver and integrate it with an ATA device, I'm
not sure what the point would be.

Good luck,
lc


Bill Pringlemeir wrote:
MB wrote:

I would like to know, whether TFFS drivers can be used for the ATA
devices also? I have sndisc compact flash device. In linux, we
can write a IDE drivers, is there anything similar in vxworks?

Is TFFS can be used for both PCMCI mode and IDE mode as well? If
we cant, then what type device driver is for ATA or IDE devices?

On 8 Aug 2006, larry@xxxxxxxxxx wrote:
I'm not sure TFFS is appropriate for a CF device. I use a CF device
with vxWorks, and it works with the ATA driver with the DOSFS file
system, formatted for fat or fat16.

The major purpose of TFFS is wear leveling. The ATA driver is simply
a regular vxWorks driver with read/write/ioctl. You have to have
ioctls like seek, etc. There is no "ATA" or "IDE" type driver.
However, DosFs comes with an ATA driver already (or it is bundled with
vxWorks).

"http://www.google.ca/search?q=ataDrv";

It would be really redundant (and possibly error prone) to use TFFS on
top of an ATA flash card. See Leonid (DosFs author) comments on ATA
versus NOR flash and TFFS.

"http://www.xs4all.nl/~borkhuis/vxworks/mcp750.html#mcp750.2-A";
"http://www.xs4all.nl/~borkhuis/vxworks/vxw_pt3.html#3.1-F";
and others...

hth,
Bill Pringlemeir.

--
Keep an open mind. But not so open your brains fall out. - Kallis' Law
vxWorks FAQ, "http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html";

.



Relevant Pages

  • Re: VxWorks - ATA and PCMCIA driver
    ... whether TFFS drivers can be used for the ATA ... is there anything similar in vxworks? ... then what type device driver is for ATA or IDE devices? ...
    (comp.os.vxworks)
  • Re: Serial ata and ide drives
    ... 1 IDE hard disk and a serial ata HD. ... >> ide included in the kernel, ... For the driver compiled as a module, ... driver for whatever handles your parallel ATA disks as a module. ...
    (comp.os.linux.hardware)
  • Re: True fsync() in Linux (on IDE)
    ... All these ATA fsync() vs. write cache issues have been open for much too ... May I ask that the information whether a particular driver (file system, ... If I recall correctly from earlier patches, the barrier stuff is 1. ...
    (Linux-Kernel)
  • Re: [PATCH 2.6.14-rc2] libata: Marvell SATA support (DMA mode)
    ... > This is my libata compatible low level driver for the Marvell SATA ... no device found (phy stat 00000000) ... ATA: abnormal status 0x80 on port 0xF8BB211C ...
    (Linux-Kernel)
  • Re: AoE & driver tips
    ... > I'm in the process of writing a AoE disk/protocol driver for freebsd. ... The ATA framework provides generic ATA command ... Writing a separate block driver isn't very hard, ...
    (freebsd-arch)