Hi Alan :)

 * Alan Stern <[EMAIL PROTECTED]> dixit:
> >     I'm having a problem with an usb-storage device (namely a Inovix
> > IMP65 MP3 player): when I plug it and I try to mount it, the sd_mod
> > driver sees it write protected, so I cannot mount it read-write.
> > 
> >     If I remount it as read-write (as root, of course), I have
> > success and I can use the device normally, being able to write to it
> > without problems. If, instead, I manually unload sd_mod and load it
> > again, then this time the device is NOT seen as write protected (the
> > sd_mod driver says that "write protect is off").
> > 
> >     All this happens using kernel 2.4.32. If using Ubuntu kernel
> > 2.6.15, the same problem happens, but Ubuntu probes the device twice
> > and the second time the "write protect is off" message appears. It
> > mounts the device "ro", anyway. I've tested with two different USB
> > ports, an ALi 2.0 (driver EHCI+OHCI) and a builtin VIA686 (driver
> > UHCI) with the same results.
> > 
> >     If I plug the device with the write protect switch on (that is,
> > the device IS *really* write protected), the sd_mod driver sees it as
> > "write protect is off" and I can mount it "rw"... but I cannot write
> > anything!
> > 
> >     The same device works OK in WinXP without any driver (well, with
> > the default USB disk driver), so I'm not sure if the problem is on
> > the device (in fact, it works OK after remounting "rw" by hand or
> > manually reloading sd_mod) or in the kernel drivers (which I find
> > very unlikely, since similar Inovix players work as-is).
> > 
> >     If you need more information, feel free to ask, and if this is a
> > known issue I will very happy if you could point me to the
> > appropriate place. I've googled a bit with no success...
> 
> This does not sound like a problem with the USB stack.
> 
> You can find out for certain what's really happening by using the usbmon 
> facility in 2.6.17.  Instructions are in the kernel source file 
> Documentation/usb/usbmon.txt.

    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.

    Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736 | http://www.dervishd.net
http://www.pleyades.net & http://www.gotesdelluna.net
It's my PC and I'll cry if I want to... RAmen!

Attachment: messages.mp3.gz
Description: GNU Zip compressed data

Attachment: mp3.log.gz
Description: GNU Zip compressed data

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