LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-03-2014, 05:25 PM   #1
usr345
Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 209
Blog Entries: 1

Rep: Reputation: Disabled
USB system works incorrectly after kernel upgrade


I have upgraded kernel to the latest one (3.18-rc2). And the USB system started to work incorrectly.

Speed of writing to the USB stick:

1. Old kernel: 9,4 Mb/s
2. New kernel: 540 Kb/s

On the old kernel my TP-Link TL-WN822N USB wifi adapter works. On the new - it doesn't. Here is the dmesg output, related to USB for both systems. On the old one you can see this line: "usb 1-2: ath9k_htc: USB layer initialized", missing on the new kernel.

Old kernel:
Quote:
# dmesg | grep USB
[ 1.684649] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.685147] ehci_hcd 0000:00:03.3: new USB bus registered, assigned bus number 1
[ 1.691014] ehci_hcd 0000:00:03.3: USB 2.0 started, EHCI 1.00
[ 1.691139] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.691210] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.691818] hub 1-0:1.0: USB hub found
[ 1.692492] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.692919] ohci_hcd 0000:00:03.0: new USB bus registered, assigned bus number 2
[ 1.746067] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[ 1.746139] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.746738] hub 2-0:1.0: USB hub found
[ 1.747326] ohci_hcd 0000:00:03.1: new USB bus registered, assigned bus number 3
[ 1.801052] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001
[ 1.801124] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.801721] hub 3-0:1.0: USB hub found
[ 1.802300] ohci_hcd 0000:00:03.2: new USB bus registered, assigned bus number 4
[ 1.855108] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001
[ 1.855185] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.855828] hub 4-0:1.0: USB hub found
[ 1.856188] uhci_hcd: USB Universal Host Controller Interface driver
[ 1.856941] Initializing USB Mass Storage driver...
[ 1.857220] USB Mass Storage support registered.
[ 2.044020] usb 1-2: new high-speed USB device number 3 using ehci_hcd
[ 2.162908] usb 1-2: New USB device found, idVendor=0cf3, idProduct=7015
[ 2.162987] usb 1-2: New USB device strings: Mfr=16, Product=32, SerialNumber=48
[ 2.163095] usb 1-2: Product: USB WLAN
[ 2.266046] usb 1-3: new high-speed USB device number 4 using ehci_hcd
[ 2.395055] usb 1-3: New USB device found, idVendor=1332, idProduct=f007
[ 2.395142] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2.657045] usb 2-1: new low-speed USB device number 2 using ohci_hcd
[ 2.846878] usb 2-1: New USB device found, idVendor=0458, idProduct=003a
[ 2.846964] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 5.630067] usb 1-2: ath9k_htc: USB layer initialized
New kernel:
Quote:
# dmesg | grep USB
[ 0.224296] ACPI: bus type USB registered
[ 0.604234] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.604941] ehci-pci 0000:00:03.3: new USB bus registered, assigned bus number 1
[ 0.611046] ehci-pci 0000:00:03.3: USB 2.0 started, EHCI 1.00
[ 0.611222] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 0.611293] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.611850] hub 1-0:1.0: USB hub found
[ 0.612456] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.613165] ohci-pci 0000:00:03.0: new USB bus registered, assigned bus number 2
[ 0.666117] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[ 0.666190] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.666762] hub 2-0:1.0: USB hub found
[ 0.667615] ohci-pci 0000:00:03.1: new USB bus registered, assigned bus number 3
[ 0.720101] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001
[ 0.720174] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.720740] hub 3-0:1.0: USB hub found
[ 0.721578] ohci-pci 0000:00:03.2: new USB bus registered, assigned bus number 4
[ 0.774350] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001
[ 0.774421] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.778177] hub 4-0:1.0: USB hub found
[ 0.778574] uhci_hcd: USB Universal Host Controller Interface driver
[ 0.965059] usb 1-2: new high-speed USB device number 3 using ehci-pci
[ 1.083981] usb 1-2: New USB device found, idVendor=0cf3, idProduct=7015
[ 1.084083] usb 1-2: New USB device strings: Mfr=16, Product=32, SerialNumber=48
[ 1.084184] usb 1-2: Product: USB WLAN
[ 1.125067] usb 2-1: new low-speed USB device number 2 using ohci-pci
[ 1.187061] usb 1-3: new high-speed USB device number 4 using ehci-pci
[ 1.314995] usb 2-1: New USB device found, idVendor=0458, idProduct=003a
[ 1.315094] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1.316354] usb 1-3: New USB device found, idVendor=1332, idProduct=f007
[ 1.316432] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1.317836] usb-storage 1-3:1.0: USB Mass Storage device detected
 
Old 11-03-2014, 05:58 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,257

Rep: Reputation: Disabled
Hi,

We miss a few information to help you, like the Linux distribution you use, the previous kernel version you used, the old and new config options...

PS at time of writing the mainline kernel is 3.18-rc3 and there have been changes in ath9k since 3.18-rc2.

Last edited by Didier Spaier; 11-03-2014 at 06:06 PM.
 
Old 11-03-2014, 06:26 PM   #3
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Did you change any options ?

For the USB speed double check this option:
Device Drivers -> USB support-> EHCI HCD (USB 2.0) support -> Improved Transaction Translator scheduling

For the wifi adapter, check the driver sub options if there are any.
 
Old 11-04-2014, 03:58 AM   #4
usr345
Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 209

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by metaschima View Post
For the USB speed double check this option:
Device Drivers -> USB support-> EHCI HCD (USB 2.0) support -> Improved Transaction Translator scheduling
Yes, this option is checked.

Quote:
Originally Posted by metaschima View Post
For the wifi adapter, check the driver sub options if there are any.
Wifi adapter driver is compiled, and can be loaded manually through modprobe. But the device doesn't start.
 
Old 11-04-2014, 10:12 AM   #5
usr345
Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 209

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by Didier Spaier View Post
Hi,

We miss a few information to help you, like the Linux distribution you use, the previous kernel version you used, the old and new config options...

PS at time of writing the mainline kernel is 3.18-rc3 and there have been changes in ath9k since 3.18-rc2.
1. Linux distribution I use: Slackware 14.1

2. previous kernel version: 3.2.29-smp (shipped with Slackware by default)

3. New kernel: 3.18.0-rc2-smp+ (I don't know, why it became smp - I configured it to be compiled without SMP support).

What portion of kernel configs do I need to post? I got both of them. But they are so big, that I can't post everything here.
 
Old 11-04-2014, 11:22 AM   #6
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
How did you configure the new kernel ? Did you use 'make oldconfig' ? With this big of a version jump you should probably be checking every option. Either attach the configs or post the diff of them.
 
Old 11-04-2014, 12:13 PM   #7
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,257

Rep: Reputation: Disabled
I'd add that Slackware 14.1 ships 3.10.17, not 3.2.29, that is included in Slackware 14, so I'm a bit puzzled.

To avoid the big jump that Metaschima rightly mentioned, you could take as a basis the kernel config shipped in /testing in Slackware-current, which is version 3.15.5 a time of writing and "make oldconfig" against that, copied in the kernel tree as /usr/src/linux-<version>/.config

The kernel became -smp because you didn't change the "local version" under General setup, as that is "-smp" in the Slackware kernel sources.

If I may add a bit of advice, and assuming that you just experiment compiling your custom kernel, that would be to begin with a -stable one, e.g. 3.17.2 at time of writing, unless you absolutely need something that is only shipped in mainline.

Last edited by Didier Spaier; 11-04-2014 at 12:15 PM.
 
Old 11-04-2014, 01:45 PM   #8
usr345
Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 209

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by metaschima View Post
Did you use 'make oldconfig' ?
I used "make menuconfig". Files attached.
Attached Files
File Type: txt 3.2.txt (123.5 KB, 13 views)
File Type: txt 3.18.txt (122.9 KB, 15 views)
 
Old 11-04-2014, 02:30 PM   #9
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Can you post the output of 'lspci -k' on the old and new system ?

Make sure to install the modules if you didn't.
 
Old 11-08-2014, 02:58 AM   #10
usr345
Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 209

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by Didier Spaier View Post
you could take as a basis the kernel config shipped in /testing in Slackware-current, which is version 3.15.5 a time of writing and "make oldconfig" against that, copied in the kernel tree as /usr/src/linux-<version>/.config
Unfortunately, it became worse after it. I took the file config-generic-3.15.5.

Quote:
mv ./config-generic-3.15.5 /usr/src/linux/.config
make oldconfig
make menuconfig
make bzImage modules
make install_modules
Then put the modules and kernel to the appropriate dirs and ran lilo. Now I get kernel panic:

Quote:
Kernel panic - not syncing: VFS: unable to mount root fs on uknown-block(8,2)
Despite the fact, that ext4 fs module is compiled.
 
Old 11-08-2014, 01:00 PM   #11
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
ext4 should be built-in, not as a module.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Youtube displays incorrectly after iceweasel upgrade bcwagne Linux - Software 3 08-22-2008 09:39 AM
Why upgrade kernel is current one works? acithium Linux - General 6 07-14-2008 12:06 PM
USB 2.0 - works only as USB 1.1 (after upgrade to Slack 10.2) Xdrummer Slackware 1 11-27-2005 02:52 PM
kernel upgrade now nothing works deftones Slackware 3 04-30-2005 07:35 PM
Debian: Upgrade to 2.6.4 Kernel, SMC Card No Longer Works pfizur Linux - Networking 0 04-08-2004 08:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration