why usb hotplug not work in 2.5.73
Hi,
I've installed hotplug-2003_5_1, on Redhat7.3, it works fine.
I use a flash memory usb disk, on Rehdat7.3, hotplug will find and insmod the module usb_storage.o when I plug in the disk.
But on kernel2.5.73, it seems hotplug can not insert module usb_storage.o automatically, I must insert the usb_storage.o manually. I also tried to copy "modules.usbmap" from /lib/modules/2.4.18-3 to /lib/modules/2.5.73, same result.
I can see the /sbin/hotplug is already been called and the evironment variable like ACTION is set by kernel correctly. Is there anything more should I do for hotplug?
============
Best Regard
Ling XiaoFeng(Daniel Ling)
*This email message solely contains my own personal views, and not necessarily those of my employer*
-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book. www.parasoft.com/bulletproofapps1
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 10 lines · Xiaofeng
Hi,
I've installed hotplug-2003_5_1, on Redhat7.3, it works fine.
I use a flash memory usb disk, on Rehdat7.3, hotplug will find and insmod the module usb_storage.o when I plug in the disk. But on kernel2.5.73, it seems hotplug can not insert module usb_storage.o automatically, I must insert the usb_storage.o manually. I also tried to copy "modules.usbmap" from/lib/modules/2.4.18-3to/lib/modules/2.5.73, same result. I can see the/sbin/hotplugis already been called and the evironment variable like ACTION is set by kernel correctly. Is there anything more should I do for hotplug?
Can you enable the debug messages for hotplug to see what it spits out when you plug in your device?
And don't copy modules.usbmap from one kernel to another, they are tied to that specific kernel version.
thanks,
greg k-h
-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book. www.parasoft.com/bulletproofapps1
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Ok, I have found the reason from the DEBUG message.
I have installed the new kernel 2.5 modutiles, by default, it is installed in /usr/local/sbin. The old one for kernel 2.4 is at /sbin/, at command line, when I type "modprobe", the new one will be found first, but in hotplug scripts, the old one will be found first. So the usb-storage module can not be inserted.
Thanks a lot.
Quoted 24 lines
-----Original Message-----
From: Greg KH [mailto:[email protected]]
Sent: Saturday, July 12, 2003 6:21 AM
To: Ling, Xiaofeng
Cc: [email protected]
Subject: Re: why usb hotplug not work in 2.5.73Quoted 9 lines · Xiaofeng
Hi,
I've installed hotplug-2003_5_1, on Redhat7.3, it works fine.
I use a flash memory usb disk, on Rehdat7.3, hotplug will find and insmod the module usb_storage.o when I plug in the disk. But on kernel2.5.73, it seems hotplug can not insert module usb_storage.o automatically, I must insert the usb_storage.o manually. I also tried to copy "modules.usbmap" from/lib/modules/2.4.18-3to/lib/modules/2.5.73, same result. I can see the/sbin/hotplugis already been called and the evironment variable like ACTIONis set by
Quoted 1 line
kernel correctly. Is there anything more should I do for hotplug?
Can you enable the debug messages for hotplug to see what it spits out when you plug in your device?
Quoted 8 lines
And don't copy modules.usbmap from one kernel to another, they are tied
to that specific kernel version.thanks,
greg k-h
-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book. www.parasoft.com/bulletproofapps1
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel