[ltp] T40 and USB 2.0

Eben King linux-thinkpad@linux-thinkpad.org
Thu, 28 Apr 2005 01:44:05 -0400 (EDT)


On Wed, 27 Apr 2005, Jason LeBrun wrote:

> On Wed, Apr 27, 2005 at 06:02:46PM -0700, Jason LeBrun wrote:
> >> I'm having no luck getting a USB 2.0 drive to enumerate on my T40 (under 
> >> 2.6.11-ac1). Has anyone had any success with the ehci_hcd driver on a T40? 
> >> if so, I'd like to hear about it!
> 
> >A bit more details would be nice.
> >Is the drive working with USB 1?
> >which modules are loaded?
> >what happens in /var/log/kern.log when you plug the drive in?
> 
> >Sometimes it takes several minutes for the drive to initialize. So:
> >tail -f /var/log/kern.log
> >plug in
> >wait a few minutes.
> 
> >Michael
> 
> Thanks for the response,
> 
> I posted a message earlier with more details, and got no response, so in my 
> second attempt, I'm just trying to find someone in particular who's 
> successfully gotten USB 2.0 working on a T40.

Works for me (yes I have a T40):

Modules which I think are relevant:
usb_storage            30208  1
ehci_hcd               29316  0
sd_mod                 15120  2
usbcore               114660  4 usb_storage,ehci_hcd

linux:~ # hdparm -t /dev/sda

/dev/sda:
 Timing buffered disk reads:   10 MB in  3.03 seconds =   3.30 MB/sec
linux:~ #

3.3 MB/s is around 25 Mb/s which is above USB 1 rate, so it has to be USB 2.

I had been playing with the USB modules and hotplug just beforehand, so that
may be related.

/var/log/messages says:

Apr 28 01:31:13 linux kernel: hub 1-0:1.0: USB hub found
Apr 28 01:31:13 linux kernel: hub 1-0:1.0: 6 ports detected
Apr 28 01:31:14 linux kernel: usb 1-3: new high speed USB device using 
address 2Apr 28 01:31:14 linux /etc/hotplug/usb.agent[11921]: need a device 
for this command
Apr 28 01:31:17 linux kernel: Initializing USB Mass Storage driver...
Apr 28 01:31:17 linux kernel: scsi0 : SCSI emulation for USB Mass Storage 
devices
Apr 28 01:31:18 linux kernel:   Vendor: Generic   Model: STORAGE DEVICE    
Rev: 9138
Apr 28 01:31:18 linux kernel:   Type:   Direct-Access                      
ANSI SCSI revision: 02
Apr 28 01:31:20 linux kernel: SCSI device sda: 1052352 512-byte hdwr sectors 
(539 MB)
Apr 28 01:31:20 linux kernel: sda: Write Protect is off
Apr 28 01:31:20 linux kernel: sda: Mode Sense: 02 00 00 00
Apr 28 01:31:20 linux kernel: sda: assuming drive cache: write through
Apr 28 01:31:20 linux /etc/hotplug/block.agent[12037]: try 1 while waiting 
for /block/sda's bus_id
Apr 28 01:31:20 linux kernel:  sda: sda1
Apr 28 01:31:20 linux kernel: Attached scsi removable disk sda at scsi0, 
channel 0, id 0, lun 0
Apr 28 01:31:20 linux kernel: USB Mass Storage device found at 2
Apr 28 01:31:20 linux kernel: usbcore: registered new driver usb-storage
Apr 28 01:31:20 linux kernel: USB Mass Storage support registered.
Apr 28 01:31:20 linux /etc/hotplug/scsi_device.agent[12072]: FATAL: Module 
sg not found.
Apr 28 01:31:21 linux /etc/hotplug/block.agent[12037]: new block device 
/block/sda
Apr 28 01:31:21 linux /etc/hotplug/block.agent[12052]: new block device 
/block/sda/sda1
Apr 28 01:31:28 linux kernel: program hwscan is using a deprecated SCSI 
ioctl, please convert it to SG_IO
Apr 28 01:31:41 linux /etc/hotplug/block.agent[12052]: mount 
by-path/usb-storage-00113:0:0:0p1
Apr 28 01:31:41 linux /etc/hotplug/block.agent[12052]: mount: fs type subfs 
not supported by kernel


-- 
-eben    ebQenW1@EtaRmpTabYayU.rIr.OcoPm    home.tampabay.rr.com/hactar

             Hi!  I'm a .sig virus!  Copy me to your .sig!