Alan Stern wrote:
> On Wed, 25 Jul 2007, Jean-Claude Repetto wrote:
> 
>> Hi,
>>
>> I have a device (a TomTom GPS) that is seen as a memory device when 
>> connected via USB.
>> s
>> If I plug the device before booting the PC, it is detected and 
>> accessible via /dev/sdb .
>> But, if I plug the device after the PC has booted, the device is not 
>> accessible (the /dev/sdb device is not created). Idem if I disconnect 
>> and reconnect the device.
>>
>> I am using a x86 Gentoo system with kernel 2.6.22 (but I have also 
>> tested kernels 2.6.20 and 2.6.21).
>>
>> I have already asked for help on the Gentoo forums, but I got no useful 
>> answer. I hope I'll be more lucky here !
>>
>> BTW, I have tested the same device on the same computer with Ubuntu 
>> 7.04,
> 
> What version of the kernel does that use?  Do you have a usb-storage 
> log showing what happens when you plug the device in after booting?
> 

The kernel is ubuntu-2.6.20-16 . Here is the log (but not in debug mode) :

Jul 25 22:06:56 ubuntu kernel: [  229.509634] usb 1-2: new full speed
USB device using uhci_hcd and address 2
Jul 25 22:06:56 ubuntu kernel: [  229.688469] usb 1-2: configuration #1
chosen from 1 choice
Jul 25 22:06:57 ubuntu kernel: [  229.801681] usbcore: registered new
interface driver libusual
Jul 25 22:06:57 ubuntu kernel: [  229.824119] Initializing USB Mass
Storage driver...
Jul 25 22:06:57 ubuntu kernel: [  229.824212] scsi2 : SCSI emulation for
USB Mass Storage devices
Jul 25 22:06:57 ubuntu kernel: [  229.824274] usbcore: registered new
interface driver usb-storage
Jul 25 22:06:57 ubuntu kernel: [  229.824278] USB Mass Storage support
registered.
Jul 25 22:07:02 ubuntu kernel: [  234.824612] scsi 2:0:0:0:
Direct-Access     TomTom   ONE                   PQ: 0 ANSI: 2
Jul 25 22:07:02 ubuntu kernel: [  234.829627] sd 2:0:0:0: Attached scsi
removable disk sdb
Jul 25 22:07:02 ubuntu kernel: [  234.829682] sd 2:0:0:0: Attached scsi
generic sg1 type 0
Jul 25 22:07:02 ubuntu kernel: [  235.003342] SCSI device sdb: 4019200
512-byte hdwr sectors (2058 MB)
Jul 25 22:07:02 ubuntu kernel: [  235.006335] sdb: Write Protect is off
Jul 25 22:07:02 ubuntu kernel: [  235.013324] SCSI device sdb: 4019200
512-byte hdwr sectors (2058 MB)
Jul 25 22:07:02 ubuntu kernel: [  235.016321] sdb: Write Protect is off
Jul 25 22:07:02 ubuntu kernel: [  235.016769]  sdb:



>>  and it is working, so it is not a problem with the hardware or the 
>> device firmware.
> 
> It may be a question of the initial delay.  If you plug the device in 
> before booting then it has a long period during which it can 
> initialize, but if you plug it in later then there's only a 5-second 
> delay.
> 
> You can try increasing the length of that delay.  In /etc/modprobe.conf 
> put a line saying:
> 
>       options usb-storage delay_use=30
> 
> and then rmmod usb-storage.  That will increase the delay to 30
> seconds.  Try various numbers and see if you can find something that
> works.

I have tried several delays, longer or shorter than the default (5 
seconds), but no success !

Jean-Claude


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Linux-usb-users@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to