From: David Brownell <david-b@pacbell.net>
To: linux-hotplug@vger.kernel.org
Subject: Re: Hotplug usb-storage device
Date: Sun, 04 Mar 2001 20:44:47 +0000 [thread overview]
Message-ID: <marc-linux-hotplug-98373900915845@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-98371107331076@msgid-missing>
> 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
next prev parent reply other threads:[~2001-03-04 20:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-04 13:02 Hotplug usb-storage device Kjell Claesson
2001-03-04 20:44 ` David Brownell [this message]
2001-03-05 15:57 ` Kjell Claesson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-linux-hotplug-98373900915845@msgid-missing \
--to=david-b@pacbell.net \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.