On Wed, 5 Jul 2006, DervishD wrote:

>     I've finally managed to test the issue with a 2.6.17 kernel with
> usbmon enabled. The log is attached, together with an example of the
> file /var/log/messages when the device is attached. I haven't been
> able to decode the raw text log because I don't find where to
> download usbdump :?
> 
>     If udev is enabled in the machine, the device seems to be
> detected four times: the first two it is found to be write protected,
> the last two it is NOT write protected. Under Ubuntu, hald gets the
> information from the first time it is detected, finds that the device
> is write protected and mounts it as read-only. That's annoying
> because I have to remount it by hand.
> 
>     The device works correctly in other OSes, but I haven't tested
> under Solaris and NetBSD. I'll try to do it this weekend.
> 
>     I hope this logs put some light on what's happening, because if
> it is a fault in the device I want to know to be able to return it or
> try to update the firmware (if I find one newer than the current one,
> of course...).
> 
>     Thanks a lot for your help and interest and if you need more
> information just tell.

While I don't know what's going on with hald or udev, the log itself is 
pretty clear.

The device tells the computer that it has removable media, like a CDROM
drive or a card reader.  (Why an MP3 player would do this is beyond me.)  
During the first two polls it reports that the media is write-protected.  
But then after you go to mount it, it reports that the media has been
changed (like putting in a new CD or a new memory card) and the new media
is _not_ write protected.  Of course all this "media change" stuff is pure 
fiction, but that's what the device says and the kernel believes it.

Don't ask me why it does this.  Maybe it needs some time to "warm up" and 
during that time it doesn't want to accept WRITE commands.  If that's 
true, then all you need to do is delay mounting it for some five or six 
seconds.  Or maybe it doesn't change its mind until after getting a bunch 
of READ commands.  Who knows?

Alan Stern


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to