PDA

View Full Version : Major USB 2.0 problems


tommyd3mdi
2005-07-08, 04:10 PM CDT
Hey there!

I recently bought a noname USB 2.0 PCI controller (VIA chipset VT6212L) with 5 ports to get
a faster connection to my USB 2.0 devices (a Digital Camera Olympus Camedia C-310 Zoom
and a mp3 Player TrekStor i.Beat Organix with 1GB storage).
My mainboard has already 2 USB 1.1 ports (unknown chipset) with which both devices work
in full speed mode (12MBits) without any flaws. But on the new controller, both devices screw
up:

1) The Camera:
===============

If I plug it in the USB 2.0 controller, the device is recognized as USB 1.1 in full speed mode.
As driver acts uhci_hcd, any other driver (ohci_hcd or ehci_hcd) doesn't feel responsible
for that device even if I unload all other drivers via modprobe -r <drivers> beside the
certain driver. /var/log/messages says:

26:48 tidikay kernel: usb 4-1: USB disconnect, address 2
Jul 8 23:27:07 tidikay kernel: usb 4-1: new full speed USB device using uhci_hcd and address 3
Jul 8 23:27:07 tidikay kernel: scsi5 : SCSI emulation for USB Mass Storage devices
Jul 8 23:27:12 tidikay kernel: Vendor: OLYMPUS Model: X100,D540Z,C310Z Rev: 1.00
Jul 8 23:27:12 tidikay kernel: Type: Direct-Access ANSI SCSI revision: 02
Jul 8 23:27:12 tidikay kernel: SCSI device sda: 256000 512-byte hdwr sectors (131 MB)
Jul 8 23:27:12 tidikay kernel: sda: Write Protect is off
Jul 8 23:27:12 tidikay kernel: sda: assuming drive cache: write through
Jul 8 23:27:12 tidikay kernel: SCSI device sda: 256000 512-byte hdwr sectors (131 MB)
Jul 8 23:27:12 tidikay kernel: sda: Write Protect is off
Jul 8 23:27:12 tidikay kernel: sda: assuming drive cache: write through
Jul 8 23:27:12 tidikay kernel: sda: sda1
Jul 8 23:27:12 tidikay kernel: Attached scsi removable disk sda at scsi5, channel 0, id 0, lun 0
Jul 8 23:27:12 tidikay scsi.agent[32717]: disk at /devices/pci0000:00/0000:00:0b.0/usb4/4-1/4-1:1.0/host5/target5:0:0/5:0:0:0
Jul 8 23:27:55 tidikay kernel: usb 4-1: USB disconnect, address 3


So actually the USB 2.0 camera works with USB 1.1 on and USB 2.0 controller =(

2) The player:
===============

The player behaves even worse. It "seems" to be recognized as USB 2.0 device
using the ehci_hcd driver (and nothing else than this driver works), but as soon
as the device should be mounted, any process (even the mount process itself or
fdisk on the device file) hangs, as long as the device is plugged in. Any kill on any
of these hung processes is executed AFTER the device is unplugged.
Here is what /var/log/messages tells me about the whole thing:

Jul 8 23:09:10 tidikay kernel: usb 1-1: new high speed USB device using ehci_hcd and address 3
Jul 8 23:09:13 tidikay kernel: scsi2 : SCSI emulation for USB Mass Storage devices
Jul 8 23:09:18 tidikay kernel: Vendor: TrekStor Model: i.Beat organix Rev: 0100
Jul 8 23:09:18 tidikay kernel: Type: Direct-Access ANSI SCSI revision: 04
Jul 8 23:09:18 tidikay kernel: SCSI device sda: 2034688 512-byte hdwr sectors (1042 MB)
Jul 8 23:09:18 tidikay kernel: sda: Write Protect is off
Jul 8 23:09:18 tidikay kernel: sda: assuming drive cache: write through
Jul 8 23:09:18 tidikay kernel: SCSI device sda: 2034688 512-byte hdwr sectors (1042 MB)
Jul 8 23:09:18 tidikay kernel: sda: Write Protect is off
Jul 8 23:09:18 tidikay kernel: sda: assuming drive cache: write through
Jul 8 23:09:18 tidikay kernel: sda: sda1
Jul 8 23:09:18 tidikay kernel: Attached scsi removable disk sda at scsi2, channel 0, id 0, lun 0
Jul 8 23:09:18 tidikay scsi.agent[28896]: disk at /devices/pci0000:00/0000:00:0b.2/usb1/1-1/1-1:1.0/host2/target2:0:0/2:0:0:0
Jul 8 23:09:19 tidikay kernel: SCSI error : <2 0 0 0> return code = 0x70000
Jul 8 23:09:19 tidikay kernel: end_request: I/O error, dev sda, sector 0
Jul 8 23:09:19 tidikay kernel: printk: 12 messages suppressed.
Jul 8 23:09:19 tidikay kernel: Buffer I/O error on device sda, logical block 0
Jul 8 23:09:19 tidikay kernel: SCSI error : <2 0 0 0> return code = 0x70000
Jul 8 23:09:19 tidikay kernel: end_request: I/O error, dev sda, sector 8
Jul 8 23:09:19 tidikay kernel: Buffer I/O error on device sda, logical block 1
Jul 8 23:09:19 tidikay kernel: SCSI error : <2 0 0 0> return code = 0x70000
Jul 8 23:09:19 tidikay kernel: end_request: I/O error, dev sda, sector 16
Jul 8 23:09:19 tidikay kernel: Buffer I/O error on device sda, logical block 2
Jul 8 23:09:19 tidikay kernel: SCSI error : <2 0 0 0> return code = 0x70000
Jul 8 23:09:19 tidikay kernel: end_request: I/O error, dev sda, sector 24
Jul 8 23:09:19 tidikay kernel: Buffer I/O error on device sda, logical block 3
Jul 8 23:09:19 tidikay kernel: SCSI error : <2 0 0 0> return code = 0x70000
Jul 8 23:09:19 tidikay kernel: end_request: I/O error, dev sda, sector 32
Jul 8 23:09:19 tidikay kernel: Buffer I/O error on device sda, logical block 4
Jul 8 23:09:19 tidikay kernel: SCSI error : <2 0 0 0> return code = 0x70000
Jul 8 23:09:19 tidikay kernel: end_request: I/O error, dev sda, sector 40
Jul 8 23:09:19 tidikay kernel: Buffer I/O error on device sda, logical block 5
Jul 8 23:09:19 tidikay kernel: SCSI error : <2 0 0 0> return code = 0x70000
Jul 8 23:09:20 tidikay kernel: end_request: I/O error, dev sda, sector 48
Jul 8 23:09:20 tidikay kernel: Buffer I/O error on device sda, logical block 6
Jul 8 23:09:20 tidikay kernel: SCSI error : <2 0 0 0> return code = 0x70000
Jul 8 23:09:20 tidikay kernel: end_request: I/O error, dev sda, sector 56
Jul 8 23:09:20 tidikay kernel: Buffer I/O error on device sda, logical block 7
Jul 8 23:09:20 tidikay kernel: SCSI error : <2 0 0 0> return code = 0x70000
Jul 8 23:09:20 tidikay kernel: end_request: I/O error, dev sda, sector 0
Jul 8 23:09:20 tidikay kernel: Buffer I/O error on device sda, logical block 0
Jul 8 23:09:20 tidikay kernel: SCSI error : <2 0 0 0> return code = 0x70000
Jul 8 23:09:20 tidikay kernel: end_request: I/O error, dev sda, sector 512
Jul 8 23:09:20 tidikay kernel: Buffer I/O error on device sda, logical block 64
Jul 8 23:09:20 tidikay kernel: SCSI error : <2 0 0 0> return code = 0x70000
Jul 8 23:09:20 tidikay kernel: end_request: I/O error, dev sda, sector 512
Jul 8 23:09:20 tidikay kernel: sda : READ CAPACITY failed.
Jul 8 23:09:20 tidikay kernel: sda : status=0, message=00, host=7, driver=00
Jul 8 23:09:20 tidikay kernel: sda : sense not available.
Jul 8 23:09:20 tidikay kernel: sda: Write Protect is off
Jul 8 23:09:20 tidikay kernel: sda: assuming drive cache: write through
Jul 8 23:09:20 tidikay kernel: sda : READ CAPACITY failed.
Jul 8 23:09:20 tidikay kernel: sda : status=0, message=00, host=7, driver=00
Jul 8 23:09:20 tidikay kernel: sda : sense not available.
Jul 8 23:09:20 tidikay kernel: usb 1-1: USB disconnect, address 3
Jul 8 23:09:20 tidikay kernel: sda: Write Protect is off
Jul 8 23:09:20 tidikay kernel: sda: assuming drive cache: write through
Jul 8 23:09:20 tidikay kernel: sda: unable to read partition table
Jul 8 23:09:20 tidikay kernel: sda : READ CAPACITY failed.
Jul 8 23:09:20 tidikay kernel: sda : status=0, message=00, host=7, driver=00
Jul 8 23:09:20 tidikay kernel: sda : sense not available.
Jul 8 23:09:20 tidikay kernel: sda: Write Protect is off
Jul 8 23:09:20 tidikay kernel: sda: assuming drive cache: write through
Jul 8 23:09:20 tidikay kernel: sda : READ CAPACITY failed.
Jul 8 23:09:20 tidikay kernel: sda : status=0, message=00, host=7, driver=00
Jul 8 23:09:20 tidikay kernel: sda : sense not available.
Jul 8 23:09:20 tidikay kernel: sda: Write Protect is off
Jul 8 23:09:20 tidikay kernel: sda: assuming drive cache: write through
Jul 8 23:09:20 tidikay kernel: sda: unable to read partition table
Jul 8 23:09:20 tidikay kernel: usb 1-1: new high speed USB device using ehci_hcd and address 4
Jul 8 23:09:28 tidikay kernel: usb 1-1: device not accepting address 4, error -110
Jul 8 23:09:28 tidikay kernel: usb 1-1: new high speed USB device using ehci_hcd and address 5
Jul 8 23:09:28 tidikay kernel: scsi3 : SCSI emulation for USB Mass Storage devices
Jul 8 23:09:33 tidikay kernel: Vendor: TrekStor Model: i.Beat organix Rev: 0100
Jul 8 23:09:33 tidikay kernel: Type: Direct-Access ANSI SCSI revision: 04
Jul 8 23:09:33 tidikay kernel: SCSI device sda: 2034688 512-byte hdwr sectors (1042 MB)
Jul 8 23:09:33 tidikay kernel: sda: Write Protect is off
Jul 8 23:09:33 tidikay kernel: sda: assuming drive cache: write through
Jul 8 23:09:33 tidikay kernel: SCSI device sda: 2034688 512-byte hdwr sectors (1042 MB)
Jul 8 23:09:33 tidikay kernel: sda: Write Protect is off
Jul 8 23:09:33 tidikay kernel: sda: assuming drive cache: write through
Jul 8 23:09:33 tidikay kernel: sda: sda1
Jul 8 23:09:33 tidikay kernel: Attached scsi removable disk sda at scsi3, channel 0, id 0, lun 0
Jul 8 23:09:33 tidikay scsi.agent[29037]: disk at /devices/pci0000:00/0000:00:0b.2/usb1/1-1/1-1:1.0/host3/target3:0:0/3:0:0:0



Again, the device is working without a problem on an USB 1.1 port, the partition
table is perfectly readable and file transfers work as normal.

I've configured subfs for auto mount of all my removable devices, I also played around with
different settings (Y|N) in /sys/module/usbcore/parameters/old_scheme_first, but this
didn't helped either. I'm a bit clueless what else could be done...

The thing is until now I can't even get this stupid controller in Windows to work, similar
problems (hangs when accessing the device, "unhangs" when device is unplugged),
different drivers and more stuff didn't helped there either.

Any help is greatly appreciated!

Tommy.

Btw... could please somebody explain me the difference between ohci_hcd, uhci_hcd
and ehci_hcd? Thanks!

Brian1
2005-07-08, 07:23 PM CDT
ohci_hcd is for usb 1.0 - 1.1 controllers with certain chipsets.
uhci_hcd is for usb 1.0 - 1.1 controllers of other chipsets.
Either one should cover most of the 1.0 -1.1 controllers
ehci_hcd is for just about all 2.0 controllers.

With my experience with USB some kernels work and others don't. I have had my 2.0 usb controller made by SIIG work with 2.6.7-2.6.8 kernels and never fuction right with any of the 2.6.9 kernels. Then 2.6.10 seemd to work on and off. I finally trashed that card and bought an Adaptec 4 port card and never had a issue from 2.6.7 to current 2.6.12.2 kernels.

Not knowing what you have (distro, kernel version?) I recommend downloading a newer kernel source from http://www.kernel.org . Get maybe the 2.6.11.11 kernel and compile it. For help building your own kernel check out this post. http://www.linuxquestions.org/questions/showthread.php?postid=1401136#post1401136

Also check around here for more info on kernel building. And Google is helpful as well http://www.google.com/linux
Brian1

tommyd3mdi
2005-07-10, 03:36 AM CDT
I'm on FC4 with a patched Kernel 2.6.11_1.1369 (for Software Suspend), is there really no way
to get this thing working on Linux?

tommyd3mdi
2005-07-11, 06:56 AM CDT
Has anybody else a clue how to make the controller work under FC4?