From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Brownell Date: Sun, 04 Mar 2001 20:44:47 +0000 Subject: Re: Hotplug usb-storage device Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org > Is it possible get hotpluging to work on a datafab smartmedia reader. > Ther is no problem to load the usb-storage and the sd_mod by hand and > use it. So the problem is only to find out why the usb.agent script doesn't handle it. I have my guess below ... but you can debug such things yourself pretty easily. You can snapshot the environment variables given to the hotplug script, or an agent, by adding a line line "env > /tmp/variables" to the script. Then turn those into a script that just assigns and exports (!) the variables listed up at the front ... use it to call "sh -x usb.agent" (or "pci.agent" or whatever) to see exactly what it's doing. With that kind of debug output, it's easy to find and fix problems. > Checked that the script use modules.usbmap in $KERNEL > and it has the line for the reader. > > usb-storage 0x000f 0x07c4 0xa006 0x0000 0xffff 0x00 > 0x00 0x00 0x00 0x00 0x00 > 0x00000000 > > /var/log/messages (when plugged) > > hub.c: USB new device connected on bus1/1, assigned device number 3 > usb.c: Usb device 3 (vend/prod 0x7c4/0xa006) is not clamed by any active > driver. > /etc/hotplug/usb.agent: ... no driver for USB product 7c4/a006/15 Likely you're hitting a problem in the range handling. Why don't you just add an entry for product 07c4/a006 to /etc/hotplug/usb.handmap that only lists product and version? (And if the current version of the script, in CVS, needs a patch ... please submit it!) - Dave _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel