Cannot use USB device after compiling new kernel.
I am using 3.14.0 kernel version. I compiled using localmodconfig. I am using Ubuntu in my Lenovo U410 Ultrabook. I can use USB mouse, keyboard, pendrives with the distro kernel 3.11.0-18-generic. I can use USB mouse in distro kernel, but cannot use the same in compiled kernel. I can plug in new pendrive in distro kernel and are automatically mounted. But i cannot mount pendrive in new kernel. The same occurs for USB keyboard. But i can mount Nexus 7 in both kernel. Here is the output of dmesg and lsusb. habisravi@U410:~$ dmesg tail [ 866.156540] audit: type=1400 audit(1397006611.192:33): apparmor="DENIED" operation="capable" profile="/usr/sbin/cupsd" pid=1113 comm="cupsd" capability=36 capname="block_suspend" [ 869.326789] usb 3-2: new low-speed USB device number 13 using xhci_hcd [ 869.515935] usb 3-2: New USB device found, idVendor=1bcf, idProduct=0007 [ 869.515949] usb 3-2: New USB device strings: Mfr=0, Product=2, SerialNumber=0 [ 869.515951] usb 3-2: Product: USB Optical Mouse [ 869.516121] usb 3-2: ep 0x81 - rounding interval to 64 microframes, ep desc says 80 microframes habisravi@U410:~$ habisravi@U410:~$ lsusb Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 003 Device 013: ID 1bcf:0007 Sunplus Innovation Technology Inc. Optical Mouse Bus 003 Device 003: ID 04f2:b2e1 Chicony Electronics Co., Ltd Bus 003 Device 004: ID 0cf3:3004 Atheros Communications, Inc. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub habisravi@U410:~$
2014-04-09 14:48 GMT+04:00, HABI S RAVI <habisbc@gmail.com>:
I am using 3.14.0 kernel version.
I compiled using localmodconfig.
I am using Ubuntu in my Lenovo U410 Ultrabook. I can use USB mouse, keyboard, pendrives with the distro kernel 3.11.0-18-generic.
I can use USB mouse in distro kernel, but cannot use the same in compiled kernel. I can plug in new pendrive in distro kernel and are automatically mounted. But i cannot mount pendrive in new kernel. The same occurs for USB keyboard. But i can mount Nexus 7 in both kernel.
Here is the output of dmesg and lsusb.
habisravi@U410:~$ dmesg tail [ 866.156540] audit: type=1400 audit(1397006611.192:33): apparmor="DENIED" operation="capable" profile="/usr/sbin/cupsd" pid=1113 comm="cupsd" capability=36 capname="block_suspend" [ 869.326789] usb 3-2: new low-speed USB device number 13 using xhci_hcd [ 869.515935] usb 3-2: New USB device found, idVendor=1bcf, idProduct=0007 [ 869.515949] usb 3-2: New USB device strings: Mfr=0, Product=2, SerialNumber=0 [ 869.515951] usb 3-2: Product: USB Optical Mouse [ 869.516121] usb 3-2: ep 0x81 - rounding interval to 64 microframes, ep desc says 80 microframes habisravi@U410:~$
habisravi@U410:~$ lsusb Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 003 Device 013: ID 1bcf:0007 Sunplus Innovation Technology Inc. Optical Mouse Bus 003 Device 003: ID 04f2:b2e1 Chicony Electronics Co., Ltd Bus 003 Device 004: ID 0cf3:3004 Atheros Communications, Inc. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub habisravi@U410:~$
connect all your usb devices, reboot to the uduntu precompiled kernel, be sure that all modules are loaded and all devices are working properly, then again do "localmodconfig" and re-compile a new kernel.
On Wed, Apr 9, 2014 at 1:10 PM, Ivan Riabtsov <ivriabtsov@gmail.com> wrote:
2014-04-09 14:48 GMT+04:00, HABI S RAVI <habisbc@gmail.com>:
I am using 3.14.0 kernel version.
I compiled using localmodconfig.
I am using Ubuntu in my Lenovo U410 Ultrabook. I can use USB mouse, keyboard, pendrives with the distro kernel 3.11.0-18-generic.
I can use USB mouse in distro kernel, but cannot use the same in compiled kernel. I can plug in new pendrive in distro kernel and are automatically mounted. But i cannot mount pendrive in new kernel. The same occurs for USB keyboard. But i can mount Nexus 7 in both kernel.
Here is the output of dmesg and lsusb.
habisravi@U410:~$ dmesg tail [ 866.156540] audit: type=1400 audit(1397006611.192:33): apparmor="DENIED" operation="capable" profile="/usr/sbin/cupsd" pid=1113 comm="cupsd" capability=36 capname="block_suspend" [ 869.326789] usb 3-2: new low-speed USB device number 13 using xhci_hcd [ 869.515935] usb 3-2: New USB device found, idVendor=1bcf, idProduct=0007 [ 869.515949] usb 3-2: New USB device strings: Mfr=0, Product=2, SerialNumber=0 [ 869.515951] usb 3-2: Product: USB Optical Mouse [ 869.516121] usb 3-2: ep 0x81 - rounding interval to 64 microframes, ep desc says 80 microframes habisravi@U410:~$
habisravi@U410:~$ lsusb Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 003 Device 013: ID 1bcf:0007 Sunplus Innovation Technology Inc. Optical Mouse Bus 003 Device 003: ID 04f2:b2e1 Chicony Electronics Co., Ltd Bus 003 Device 004: ID 0cf3:3004 Atheros Communications, Inc. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub habisravi@U410:~$
connect all your usb devices, reboot to the uduntu precompiled kernel, be sure that all modules are loaded and all devices are working properly, then again do "localmodconfig" and re-compile a new kernel.
Or you can try to figure out which drivers you need by fallowing GKH's "Linux kernel in a Nutshell". http://www.kroah.com/lkn/ I guess this is the "old way" before localmodconfig, but more fun ;-) Regards, Bojan
participants (3)
-
bojan prtvar -
HABI S RAVI -
Ivan Riabtsov