Disable the default USB driver and replace it with new one
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 ?
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.