LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   USB drivers and versions (http://www.linuxquestions.org/questions/linux-hardware-18/usb-drivers-and-versions-691142/)

anroy 12-17-2008 02:26 AM

USB drivers and versions
 
Hi,

Does anyone know how to find out the version number(s) of the kernel's USB driver(s)?

Thanks.

cladisch 12-17-2008 03:38 AM

Quote:

Does anyone know how to find out the version number(s) of the kernel's USB driver(s)?
In the general case, drivers don't have version numbers; you can just take the kernel version number.

For the drivers that have a version number, you have to download the corresponding kernel source and look at the driver's source code.

farslayer 12-17-2008 07:59 AM

use modinfo to get information on modules,

It looks as though cladish is 100% correct. In the case of usb drivers there is no independent version numbers, just the kernel version.

Code:

userer@it-etch:~$ lsmod | grep usb
usb_storage            72000  0
usbserial              29128  1 pl2303
usbhid                37248  0
ide_core              110504  5 usb_storage,ide_generic,ide_cd,generic,atiixp
scsi_mod              124168  6 sg,sr_mod,usb_storage,sd_mod,ahci,libata
usbcore              112644  7 usb_storage,pl2303,usbserial,usbhid,ehci_hcd,ohci_hcd

userer@it-etch:~$ su -
Password:
it-etch:~# modinfo ehci_hcd
filename:      /lib/modules/2.6.18-6-686/kernel/drivers/usb/host/ehci-hcd.ko
description:    10 Dec 2004 USB 2.0 'Enhanced' Host Controller (EHCI) Driver
author:        David Brownell
license:        GPL
vermagic:      2.6.18-6-686 SMP mod_unload 686 REGPARM gcc-4.1
depends:        usbcore
alias:          pci:v*d*sv*sd*bc0Csc03i20*
parm:          park:park setting; 1-3 back-to-back async packets (uint)
parm:          log2_irq_thresh:log2 IRQ latency, 1-64 microframes (int)

it-etch:~# modinfo ohci_hcd
filename:      /lib/modules/2.6.18-6-686/kernel/drivers/usb/host/ohci-hcd.ko
author:        Roman Weissgaerber, David Brownell
description:    2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver
license:        GPL
vermagic:      2.6.18-6-686 SMP mod_unload 686 REGPARM gcc-4.1
depends:        usbcore
alias:          pci:v*d*sv*sd*bc0Csc03i10*
parm:          no_handshake:true (not default) disables BIOS handshake (bool)
parm:          distrust_firmware:true to distrust firmware power/overcurrent setup (bool)

it-etch:~# modinfo usbhid
filename:      /lib/modules/2.6.18-6-686/kernel/drivers/usb/input/usbhid.ko
author:        Andreas Gal, Vojtech Pavlik
description:    USB HID core driver
license:        GPL
vermagic:      2.6.18-6-686 SMP mod_unload 686 REGPARM gcc-4.1
depends:        usbcore
alias:          usb:v*p*d*dc*dsc*dp*ic03isc*ip*
parm:          pb_fnmode:Mode of fn key on PowerBooks (0 = disabled, 1 = fkeyslast, 2 = fkeysfirst) (int)
parm:          mousepoll:Polling interval of mice (uint)

it-etch:~# modinfo usb_storage
filename:      /lib/modules/2.6.18-6-686/kernel/drivers/usb/storage/usb-storage.ko
author:        Matthew Dharm <mdharm-usb@one-eyed-alien.net>
description:    USB Mass Storage driver for Linux
license:        GPL
vermagic:      2.6.18-6-686 SMP mod_unload 686 REGPARM gcc-4.1
depends:        ide-core,usbcore,scsi_mod

Other modules you compile and add in may have a version number as is the case with this Atheros driver..

Code:

filename:      /lib/modules/2.6.26-1-686/kernel/drivers/net/ath_hal.ko
license:        Proprietary
version:        i386-elf: 0.10.5.6
description:    Atheros Hardware Access Layer (HAL)
author:        Errno Consulting, Sam Leffler
srcversion:    0A1FE312A435FE01528EB3D
depends:       
vermagic:      2.6.26-1-686 SMP mod_unload modversions 686



All times are GMT -5. The time now is 09:19 PM.