Results 1 to 6 of 6
Hey anybody please help me I m doing work to build device driver for USB 2.0 pendrive in Linux (fedora kernel 2.6.31.5). I have knowledge of loadable kernel modules, how ...
- 02-19-2010 #1Just Joined!
- Join Date
- Feb 2010
- Posts
- 2
Need USB 2.0 Pendrive device driver source code
Hey anybody please help me I m doing work to build device driver for USB 2.0 pendrive in Linux (fedora kernel 2.6.31.5). I have knowledge of loadable kernel modules, how to add modules into the kernel, compiling the kernel,etc..
I have made one module for printing message in C language and successfully added modules into kernel and compiling the kernel but i don't have knowledge how to make program for device driver.
If you have any knowledge please help me to find out source code for that.
- 02-19-2010 #2forum.guy
- Join Date
- May 2004
- Location
- arch linux
- Posts
- 18,086
Welcome to the forums!
You can find a tutorial (pdf format) for creating device drivers under Linux here:
http://www.freesoftwaremagazine.com/node/1238/pdf
I've never used it so can't say how helpful it might be, but hope you find it useful.oz
→ new members/users: read this first | new member faq
→ no private messages requesting computer support - post them on the forums!
→ please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.
- 02-20-2010 #3Just Joined!
- Join Date
- Feb 2005
- Location
- Boulder, Colorado, USA
- Posts
- 7
Just wondering: What are you doing that requires your own device driver? On a Fedora system (and almost any other distribution) USB devices are detected and automatically mounted. The source code for all of that (including the drivers) is, of course, available from the Fedora repositories.
- 03-05-2010 #4Just Joined!
- Join Date
- Feb 2010
- Posts
- 2
- 06-22-2010 #5Just Joined!
- Join Date
- Nov 2006
- Posts
- 7
Please refer to USB 2.0 architecture specification before writing USB driver. Have good understanding on USB architecture
There are 2 drivers in USB architecture, one for USB device driver, another is USB Host controller drivers. Hope you are looking for USB device driver.
To learn and make it for academic project, below is my sugession
1. Creat a new Linux kernel image without USB device driver support.
(make manuconfig ---> USB support etc)
2. Once new kernel image is create, write USB device driver and load into kernel using insmod
Regarding materials,we will get lots of documents/articles/URLs for compiling module, inserting module et.
Regards
Soibam
- 03-14-2011 #6Just Joined!
- Join Date
- Mar 2011
- Posts
- 1
disabling usb driver
Hi!!sanket1512,I am doing the same project.So if u have done the project please help me with it..
my email id is
sunil.gandhi007@gmail.com
Anyways I m facing problem that I want my transcend jetflash pendrive to use my driver instead of inbuilt driver and I dont know how to disable it...
If anyone knows please tell me how to do it..
I m using kernel version 2.6.36.1
and m using ubuntu 10.04
Thanking in advance..




