Find the answer to your Linux question:
Results 1 to 4 of 4

Thread: USB Host driver

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    USB Host driver

    Hi ,
    I want to write a USB host side driver.
    To start with I want to know the flow of what an USB Host will do when
    it detects a device?

    Also I want to know whether I can use the usb_skeleton.c as my base code to develop usb host driver!!!

    Looking for all your help


  2. #2

    Yes it would be a good start, if you start writing USB driver with usb skeleton.c.

    It also depends for which USB device you are writing a driver.

    please go through the below link it may help you,

    How to Write a Linux USB Device Driver | Linux Journal

    Writing a Simple USB Driver | Linux Journal

    Usb Device Drivers

    Programming Guide for Linux USB Device Drivers

    And go through the book Linux device drivers by Corbet and Rubini.

  3. #3

    USB Host driver

    Thanks for ur reply.

    Well I compiled usb-skeleton.c and usb-skeleton.ko got created.

    But when i give insmod and rmrmod it gives the below error

    insmod usb-skeleton.ko
    insmod: error inserting 'usb-skeleton.ko': -1 File exists
    rmmod usb-skeleton
    ERROR: Removing 'usb_skeleton': Device or resource busy

    Looking for help to remove this error.

  4. $spacer_open
  5. #4
    Hi Senthil,

    Can you pelase paste your code here, so that it will be very easy for me to fix it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts