LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-02-2009, 02:56 AM   #1
bsat
Member
 
Registered: Feb 2009
Posts: 347

Rep: Reputation: 72
Disable the default USB driver and replace it with new one


Hi all

I am trying to develop a USB drivers using the jungo Driver development kit. I am using a Rehat 2.6 to test the driver.

Redhat Default uses a driver called usb_storage to recognize and run the usb Pen drives. I want to change this, and make it to use my driver how do i do it ?


Thanks for all the help

satish
 
Old 02-02-2009, 04:35 AM   #2
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,065

Rep: Reputation: 146Reputation: 146
Can you not lsmod, modprobe -r usb_storage, and modprobe your driver? Or do you have to take usb_storage out of the kernel? You could modprobe yours in the startup script (/etc/rc.rd/rc.local on some of the oldest GNU/Linux distros.) I have not made drivers, but if you do I do not see why you do not say a specific problem trying to take out usb_storage and add your driver. Assuming you have compiled a driver, you make a folder in /usr/src/linux/drivers/usb/, which has a 'storage' folder where it looks like you could put your files, and in 'storage' is a Makefile in which you can add the commands to make your driver. The Makefile has some advanced commands, but if you got this far it should be relatively easy to figure out make. You might have to check if you have to add anything to .config (also called defconfig, etc.) or System.map (also called System) in the linux src folders.
 
Old 02-02-2009, 10:06 AM   #3
bsat
Member
 
Registered: Feb 2009
Posts: 347

Original Poster
Rep: Reputation: 72
hi thanks for the suggestions. I did try modprobe -r. It does remove the driver, but as soon as i plug in the pen drive it automatically stats again.hos do is stop this from happening and make the USB use the other driver.

thanks

bsat
 
Old 02-02-2009, 04:07 PM   #4
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,065

Rep: Reputation: 146Reputation: 146
You might have to do something to the hardware autodetection driver, which is likely described as a 'hotplug' driver (even for stuff on the outside of a computer.) Other than that, I am not sure what configuration file might list the current/defualt driver setup that auto-modprobes usb_storage. You could also just temporarily rename your driver usb_storage, or maybe read man/info/xman modprobe's 'see also' in case any other commands might solve this.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Should I disable my default Fedora Firewall? baig Linux - Security 8 12-03-2008 01:12 PM
Disable xampp default page immortaltechnique Linux - Networking 1 11-19-2007 08:10 AM
How to disable default sounds from KDE riteshgoel Linux - Software 2 03-16-2005 04:30 AM
How to replace default Mandrake log-in screen with one in KDE? iliks Mandriva 2 06-30-2004 06:09 AM
how to replace default netscape with 6.1 version gogo Linux - General 9 11-24-2003 05:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration