linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Auto-loading of usbserial in 2.6 kernel?
@ 2006-05-17 20:55 LEE, Yui-wah (Clement)
  2006-05-17 21:10 ` Scott James Remnant
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: LEE, Yui-wah (Clement) @ 2006-05-17 20:55 UTC (permalink / raw)
  To: linux-hotplug

Hi,

I have a usbserial device (Novatel V620 EVDO modem)
that worked when I manually loaded the kernel module by
the command:

  modprobe usbserial vendor=0x1410 product=0x1110

However, on a 2.6 kernel, I could not get the usbserial
to be automatically loaded when the card was detected
(coldplugging). Specifically, I added reasonably
entries into /etc/hotplug/usb.handmap and
/etc/modprobe.d/ to no avail.

In contrast, on a 2.4 kernel (2.4.18), I could get the
usbserial to be automatically loaded by adding the
following line to /etc/hotplug/usb.handmap

usbserial          0x0003 0x1410   0x1110    0x0000       0x09   0x00         0x00            0x09            0x00            0x00   0x00000000

and the following line to /etc/modules.conf

options usbserial vendor=0x1410 product=0x1110

Any suggestion?

I have read all the documentations on various places including
http://linux-hotplug.sourceforge.net/   I also googled
around quite a lot on the Internet but could not find
the answer.

Clement




-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x120709&bid&3057&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Auto-loading of usbserial in 2.6 kernel?
  2006-05-17 20:55 Auto-loading of usbserial in 2.6 kernel? LEE, Yui-wah (Clement)
@ 2006-05-17 21:10 ` Scott James Remnant
  2006-05-18 14:55 ` LEE, Yui-wah (Clement)
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Scott James Remnant @ 2006-05-17 21:10 UTC (permalink / raw)
  To: linux-hotplug

[-- Attachment #1: Type: text/plain, Size: 793 bytes --]

On Wed, 2006-05-17 at 16:55 -0400, LEE, Yui-wah (Clement) wrote:

> I have a usbserial device (Novatel V620 EVDO modem)
> that worked when I manually loaded the kernel module by
> the command:
> 
>   modprobe usbserial vendor=0x1410 product=0x1110
> 
Add an /etc/modprobe.d/* file that contains the following:

	options usbserial vendor=0x1410 product=0x1110

	alias usb:v1410p1110d*dc*dsc*dp*ic*isc*ip* usbserial


The first line provides the necessary options when the usbserial driver
is loaded, the second line actually associates the driver with the
device so that it is loaded.

Note that on 2.6.15 (at least, in Ubuntu) this device is associated with
the "airprime" driver already -- which depends on usbserial.

Scott
-- 
Scott James Remnant
scott@ubuntu.com

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 191 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Auto-loading of usbserial in 2.6 kernel?
  2006-05-17 20:55 Auto-loading of usbserial in 2.6 kernel? LEE, Yui-wah (Clement)
  2006-05-17 21:10 ` Scott James Remnant
@ 2006-05-18 14:55 ` LEE, Yui-wah (Clement)
  2006-05-18 15:32 ` Greg KH
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: LEE, Yui-wah (Clement) @ 2006-05-18 14:55 UTC (permalink / raw)
  To: linux-hotplug

Dear Scott,

Thanks for your prompt response!

I tried adding the two lines, but still the kernel
module was not automatically loaded.

On the other hand, when I manually loaded the kernel
module, at least now I could use simply the command
"modprobe usbserial" but not the more elobrate
"modprobe usbserial vendor=0x1410 product=0x1110".  I
think this may mean that the first line ("options ...")
is now having a good effect.

Is the syntax for the second line (alias usb:v1410...")
documented somewhere?  How did you come up with the
string?

I have another related question.  After I add something
into /etc/modprobe.d, do I need to run some command to
get the effect of the new entries?  E.g. In the old
/etc/modules.conf (for kernel 2.4), and in Debian
(which I am using), I know there was a command called
update-modules.  But now on my Debian (in kernel 2.6)
the manpage of update-modules said the command is
obsolete.  I read "man 5 modprobe.conf" and could not
find any specific instruction.

Thanks a lot!

Clement

On Wed, 17 May 2006, Scott James Remnant wrote:

> On Wed, 2006-05-17 at 16:55 -0400, LEE, Yui-wah (Clement) wrote:
>
> > I have a usbserial device (Novatel V620 EVDO modem)
> > that worked when I manually loaded the kernel module by
> > the command:
> >
> >   modprobe usbserial vendor=0x1410 product=0x1110
> >
> Add an /etc/modprobe.d/* file that contains the following:
>
> 	options usbserial vendor=0x1410 product=0x1110
>
> 	alias usb:v1410p1110d*dc*dsc*dp*ic*isc*ip* usbserial
>
>
> The first line provides the necessary options when the usbserial driver
> is loaded, the second line actually associates the driver with the
> device so that it is loaded.
>
> Note that on 2.6.15 (at least, in Ubuntu) this device is associated with
> the "airprime" driver already -- which depends on usbserial.
>
> Scott
>



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x120709&bid&3057&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Auto-loading of usbserial in 2.6 kernel?
  2006-05-17 20:55 Auto-loading of usbserial in 2.6 kernel? LEE, Yui-wah (Clement)
  2006-05-17 21:10 ` Scott James Remnant
  2006-05-18 14:55 ` LEE, Yui-wah (Clement)
@ 2006-05-18 15:32 ` Greg KH
  2006-05-18 15:51 ` LEE, Yui-wah (Clement)
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Greg KH @ 2006-05-18 15:32 UTC (permalink / raw)
  To: linux-hotplug

On Thu, May 18, 2006 at 10:55:26AM -0400, LEE, Yui-wah (Clement) wrote:
> Dear Scott,
> 
> Thanks for your prompt response!
> 
> I tried adding the two lines, but still the kernel
> module was not automatically loaded.
> 
> On the other hand, when I manually loaded the kernel
> module, at least now I could use simply the command
> "modprobe usbserial" but not the more elobrate
> "modprobe usbserial vendor=0x1410 product=0x1110".  I
> think this may mean that the first line ("options ...")
> is now having a good effect.

Please upgrade your kernel so you use the correct driver (not the
usb-serial generic one.)

> Is the syntax for the second line (alias usb:v1410...")
> documented somewhere?  How did you come up with the
> string?

It's documented in the kernel source.  You can look in the sysfs file
called 'modalias' in the usb device's directory and see this value.

thanks,

greg k-h


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x120709&bid&3057&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Auto-loading of usbserial in 2.6 kernel?
  2006-05-17 20:55 Auto-loading of usbserial in 2.6 kernel? LEE, Yui-wah (Clement)
                   ` (2 preceding siblings ...)
  2006-05-18 15:32 ` Greg KH
@ 2006-05-18 15:51 ` LEE, Yui-wah (Clement)
  2006-05-18 16:51 ` Greg KH
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: LEE, Yui-wah (Clement) @ 2006-05-18 15:51 UTC (permalink / raw)
  To: linux-hotplug

Dear Greg,

Thanks!  Would kernel 2.6.15 be recent enough? (I was using 2.6.8).

Clement

On Thu, 18 May 2006, Greg KH wrote:

> On Thu, May 18, 2006 at 10:55:26AM -0400, LEE, Yui-wah (Clement) wrote:
> > Dear Scott,
> >
> > Thanks for your prompt response!
> >
> > I tried adding the two lines, but still the kernel
> > module was not automatically loaded.
> >
> > On the other hand, when I manually loaded the kernel
> > module, at least now I could use simply the command
> > "modprobe usbserial" but not the more elobrate
> > "modprobe usbserial vendor=0x1410 product=0x1110".  I
> > think this may mean that the first line ("options ...")
> > is now having a good effect.
>
> Please upgrade your kernel so you use the correct driver (not the
> usb-serial generic one.)
>
> > Is the syntax for the second line (alias usb:v1410...")
> > documented somewhere?  How did you come up with the
> > string?
>
> It's documented in the kernel source.  You can look in the sysfs file
> called 'modalias' in the usb device's directory and see this value.
>
> thanks,
>
> greg k-h
>



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x120709&bid&3057&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Auto-loading of usbserial in 2.6 kernel?
  2006-05-17 20:55 Auto-loading of usbserial in 2.6 kernel? LEE, Yui-wah (Clement)
                   ` (3 preceding siblings ...)
  2006-05-18 15:51 ` LEE, Yui-wah (Clement)
@ 2006-05-18 16:51 ` Greg KH
  2006-05-19  5:33 ` Alexander E. Patrakov
  2006-05-19 20:37 ` LEE, Yui-wah (Clement)
  6 siblings, 0 replies; 8+ messages in thread
From: Greg KH @ 2006-05-18 16:51 UTC (permalink / raw)
  To: linux-hotplug

On Thu, May 18, 2006 at 11:51:29AM -0400, LEE, Yui-wah (Clement) wrote:
> Dear Greg,
> 
> Thanks!  Would kernel 2.6.15 be recent enough? (I was using 2.6.8).

I think so, but why not use 2.6.16 just to be sure :)

thanks,

greg k-h


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x120709&bid&3057&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Auto-loading of usbserial in 2.6 kernel?
  2006-05-17 20:55 Auto-loading of usbserial in 2.6 kernel? LEE, Yui-wah (Clement)
                   ` (4 preceding siblings ...)
  2006-05-18 16:51 ` Greg KH
@ 2006-05-19  5:33 ` Alexander E. Patrakov
  2006-05-19 20:37 ` LEE, Yui-wah (Clement)
  6 siblings, 0 replies; 8+ messages in thread
From: Alexander E. Patrakov @ 2006-05-19  5:33 UTC (permalink / raw)
  To: linux-hotplug

LEE, Yui-wah (Clement) wrote:

> Thanks!  Would kernel 2.6.15 be recent enough? (I was using 2.6.8).

Yes, but you need to upgrade udev to the latest version. There is no version of
udev compatible with both 2.6.8 and 2.6.15 kernels.

If you just upgrade to Debian Testing, both packages will be updated properly.

-- 
Alexander E. Patrakov



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x120709&bid&3057&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Auto-loading of usbserial in 2.6 kernel?
  2006-05-17 20:55 Auto-loading of usbserial in 2.6 kernel? LEE, Yui-wah (Clement)
                   ` (5 preceding siblings ...)
  2006-05-19  5:33 ` Alexander E. Patrakov
@ 2006-05-19 20:37 ` LEE, Yui-wah (Clement)
  6 siblings, 0 replies; 8+ messages in thread
From: LEE, Yui-wah (Clement) @ 2006-05-19 20:37 UTC (permalink / raw)
  To: linux-hotplug

Hi,

I just want to thank everyone who gave me the important
hints.

I upgraded the kernel to 2.6.15 and now the usbserial
kernel module would be automatically loaded.  (The
device was an Airprime PC5220 EVDO modem or a Novatel
V620 EVDO modem.)

One thing I notice is that I actually do not need any
entries in /etc/modprobe.d/

I also notice that on my platform udev is not
installed, yet the auto-loading still works.  The
usbserial device is attached to /dev/ttyUSB0.

Thanks!

Clement

On Fri, 19 May 2006, Alexander E. Patrakov wrote:

> LEE, Yui-wah (Clement) wrote:
>
> > Thanks!  Would kernel 2.6.15 be recent enough? (I was using 2.6.8).
>
> Yes, but you need to upgrade udev to the latest version. There is no version of
> udev compatible with both 2.6.8 and 2.6.15 kernels.
>
> If you just upgrade to Debian Testing, both packages will be updated properly.
>
>




-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x120709&bid&3057&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-05-19 20:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-17 20:55 Auto-loading of usbserial in 2.6 kernel? LEE, Yui-wah (Clement)
2006-05-17 21:10 ` Scott James Remnant
2006-05-18 14:55 ` LEE, Yui-wah (Clement)
2006-05-18 15:32 ` Greg KH
2006-05-18 15:51 ` LEE, Yui-wah (Clement)
2006-05-18 16:51 ` Greg KH
2006-05-19  5:33 ` Alexander E. Patrakov
2006-05-19 20:37 ` LEE, Yui-wah (Clement)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).