Problem getting char driver to work

Ron Gage
  • Ron Gage

    Ron Gage - 2004-03-29

    I am trying to get a character device pcmcia driver to work and am not getting far.  The driver I am using is strongly based on dummy_cs.c

    The card is recognized, the CIS tuples are read correctly, the card is initialized correctly and I/O resources are allocated correctly.  I have the device registered as a character device with major number 240.  The device when inserted does indeed show up in /proc/devices at major number 240.

    I have created nodes to talk to the device with major minor numbers of 240-0, 240-1, and 240-2 and the nodes are all chmod 666.

    When I try to open the device (in C), I get error #6 - No such device or address.

    The source code for the pcmcia driver is available from my ftp server -

    Can anyone tell me what the heck I am doing wrong here?


    Ron Gage

    • David Hinds

      David Hinds - 2004-04-01

      This seems like more of a general kernel device driver issue and not a PCMCIA issue.

      You should add a printk() to your driver's open() function to see if it is getting called.

      -- Dave


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks