Sylvain ZIMMER wrote:
hi !
I've had such great feedback from you kernel guys, it really motivates
me to do other bug reports !! thanks !
Glad to help, but please respond to the list, not just me. I'm including
the text of both your emails below for the folks on the list see
something I missed.
I have a guess as to why the data isn't showing up on your key, but if
you could recompile your kernel with usb-storage verbose debugging on,
try all this again and send me the output, I'd appreciate it.
The .10 kernel resolved my deadlock issue, but there are still problems
when copying files to the device, the fat16 filesystem ends completely
messed up quite often.
I added your patch, recompiled, rebooted, inserted the key :
Mar 6 10:41:17 sylvtop kernel: usb 2-1: new full speed USB device using
ohci_hcd and address 2
Mar 6 10:41:17 sylvtop kernel: usb 2-1: Product: Actions USB Disk Device
Mar 6 10:41:17 sylvtop kernel: usb 2-1: SerialNumber: Actions USB Disk
Device
Mar 6 10:41:17 sylvtop kernel: scsi1 : SCSI emulation for USB Mass
Storage devices
Mar 6 10:41:22 sylvtop kernel: Vendor:
Model: Rev: Mar 6 10:41:22 sylvtop kernel:
Type: Direct-Access ANSI SCSI revision: 02
Mar 6 10:41:22 sylvtop kernel: SCSI device sdb: 1026464 512-byte hdwr
sectors (526 MB)
Mar 6 10:41:22 sylvtop kernel: sdb: assuming Write Enabled
Mar 6 10:41:22 sylvtop kernel: SCSI device sdb: 1026464 512-byte hdwr
sectors (526 MB)
Mar 6 10:41:22 sylvtop kernel: sdb: assuming Write Enabled
Mar 6 10:41:22 sylvtop kernel:
/dev/scsi/host1/bus0/target0/lun0:<7>usb-storage: queuecommand called
Mar 6 10:41:22 sylvtop kernel: p1
Mar 6 10:41:22 sylvtop kernel: Attached scsi removable disk sdb at
scsi1, channel 0, id 0, lun 0
Mar 6 10:41:22 sylvtop kernel: Attached scsi generic sg1 at scsi1,
channel 0, id 0, lun 0, type 0
Mar 6 10:41:23 sylvtop scsi.agent[9794]: disk at
/devices/pci0000:00/0000:00:03.0/usb2/2-1/2-1:1.0/host1/target1:0:0/1:0:0:0
mount, unmount are ok.
sylvtop sylvinus # grep sdb1 /etc/fstab
/dev/sdb1 /mnt/stick auto rw,user 0 0
then :
sylvtop sylvinus # mkdosfs -v /dev/sdb1
mkdosfs 2.10 (22 Sep 2003)
/dev/sdb1 has 17 heads and 59 sectors per track,
logical sector size is 512,
using 0xf8 media descriptor, with 1026206 sectors;
file system has 2 16-bit FATs and 16 sectors per cluster.
FAT size is 251 sectors, and provides 64104 clusters.
Root directory contains 512 slots.
Volume ID is 422ad1dd, no volume label.
sylvtop sylvinus # mount /mnt/stick/
sylvtop sylvinus # cp /home/oldshare/Archive\ -\ Take\ My\ Head\ -\ You\
Make\ Me\ Feel.mp3 /mnt/stick/
cp: cannot create regular file `/mnt/stick/Archive - Take My Head - You
Make Me Feel.mp3': Invalid argument
(ok, we're in msdos, can't the file be renamed automatically ?)
sylvtop sylvinus # cp /home/oldshare/Archive\ -\ Take\ My\ Head\ -\ You\
Make\ Me\ Feel.mp3 /mnt/stick/feel.mp3
sylvtop sylvinus # umount /mnt/stick
(hangs for 20 seconds)
sylvtop sylvinus #
Then I disconnect the key
Mar 6 10:50:46 sylvtop kernel: usb 2-1: USB disconnect, address 2
I listen to the mp3, it's ok.
But if I reconnect it :
Mar 6 10:54:42 sylvtop kernel: usb 2-1: new full speed USB device using
ohci_hcd and address 3
Mar 6 10:54:42 sylvtop kernel: usb 2-1: Product: Actions USB Disk Device
Mar 6 10:54:42 sylvtop kernel: usb 2-1: SerialNumber: Actions USB Disk
Device
Mar 6 10:54:42 sylvtop kernel: scsi2 : SCSI emulation for USB Mass
Storage devices
Mar 6 10:54:47 sylvtop kernel: Vendor:
Model: Rev: Mar 6 10:54:47 sylvtop kernel:
Type: Direct-Access ANSI SCSI revision: 02
Mar 6 10:54:47 sylvtop kernel: SCSI device sdb: 1026464 512-byte hdwr
sectors (526 MB)
Mar 6 10:54:47 sylvtop kernel: sdb: assuming Write Enabled
Mar 6 10:54:47 sylvtop kernel: SCSI device sdb: 1026464 512-byte hdwr
sectors (526 MB)
Mar 6 10:54:47 sylvtop kernel: sdb: assuming Write Enabled
Mar 6 10:54:47 sylvtop kernel:
/dev/scsi/host2/bus0/target0/lun0:<7>usb-storage: queuecommand called
Mar 6 10:54:47 sylvtop kernel: p1
Mar 6 10:54:47 sylvtop kernel: Attached scsi removable disk sdb at
scsi2, channel 0, id 0, lun 0
Mar 6 10:54:47 sylvtop kernel: Attached scsi generic sg1 at scsi2,
channel 0, id 0, lun 0, type 0
Mar 6 10:54:48 sylvtop scsi.agent[10016]: disk at
/devices/pci0000:00/0000:00:03.0/usb2/2-1/2-1:1.0/host2/target2:0:0/2:0:0:0
Mar 6 10:55:51 sylvtop kernel: usb 2-1: USB disconnect, address 3
Sylvain ZIMMER wrote:
> sorry, I hit 'send' :(
>
> I was saying, it I reconnect the device :
>
> sylvtop sylvinus # mount /mnt/stick/
> sylvtop sylvinus # ls /mnt/stick/ sylvtop sylvinus #
> There's nothing !!! I unmount, disconnect, but the USB device has
> bugged, it still displays "file transfer..." I have to remove the
> battery, mkdosfs again, and copy again.
>
> sylvtop sylvinus # mkdosfs -f1 -v /dev/sdb1
> mkdosfs 2.10 (22 Sep 2003)
> /dev/sdb1 has 18 heads and 63 sectors per track,
> logical sector size is 512,
> using 0xf8 media descriptor, with 1026206 sectors;
> file system has 1 16-bit FAT and 16 sectors per cluster.
> FAT size is 251 sectors, and provides 64120 clusters.
> Root directory contains 512 slots.
> Volume ID is 422ad5b6, no volume label.
> sylvtop sylvinus # mount /mnt/stick/
> sylvtop sylvinus # cp /home/oldshare/Archive\ -\ Take\ My\ Head\ -\ You\
> Make\ Me\ Feel.mp3 /mnt/stick/feel.mp3
> sylvtop sylvinus # ls /mnt/stick/
> feel.mp3
> sylvtop sylvinus # umount /mnt/stick/
> (hangs 10 sec, I don't remove the key)
> sylvtop sylvinus # mount /mnt/stick/
> sylvtop sylvinus # ls /mnt/stick/
> feel.mp3
> sylvtop sylvinus # cp /home/oldshare/My\
> Music/Transatlantic/Transatlantic\ -\ SMPTe\ _\ The\ Roine\ Stolt\
> Mixes/01\ -\ Transatlantic\ -\ SMPTe\ _\ The\ Roine\ Stolt\ Mixes\ -\ \
> All\ of\ The\ Above.mp3 /mnt/stick/trans.mp3
> sylvtop sylvinus # ls /mnt/stick
> feel.mp3 trans.mp3
> sylvtop sylvinus # umount /mnt/stick
> (hangs 2 min, makes the key bug as before.)
>
> I reconnect the key, and get :
>
> sylvtop sylvinus # mkdosfs -f1 -v /dev/sdb1
> mkdosfs 2.10 (22 Sep 2003)
> mkdosfs: /dev/sdb1 contains a mounted file system.
>
> and so on....
>
>
> I hope this helps you debug the issue !
>
> Sylvain
>
>
>
Phil Dibowitz wrote:
Sylvain,
You recently reported to Alan Stern issues with a Actions USB Disk
Device, and he wrote a patch for unusual_devs.h. I've since taken over
the responsibilities for unusual_devs.h, and wanted to follow up on this.
Did you receive a patch that looks like:
@@ -862,6 +862,13 @@
US_SC_DEVICE, US_PR_DEVICE, NULL,
US_FL_MODE_XLATE ),
+/* Reported by Sylvain ZIMMER <[EMAIL PROTECTED]> */
+UNUSUAL_DEV( 0x10d6, 0x1000, 0x0100, 0x0100,
+ "Actions",
+ "USB Disk Device",
+ US_SC_DEVICE, US_PR_DEVICE, NULL,
+ US_FL_FIX_CAPACITY ),
+
/* Reported by Kotrla Vitezslav <[EMAIL PROTECTED]> */
UNUSUAL_DEV( 0x1370, 0x6828, 0x0110, 0x0110,
"SWISSBIT",
And if so, did it work? If you didn't receive such a patch and need me
to generate a patch from the latest kernel, let me know.
Thanks.
--
Phil Dibowitz [EMAIL PROTECTED]
Freeware and Technical Pages Insanity Palace of Metallica
http://www.phildev.net/ http://www.ipom.com/
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."
- Benjamin Franklin, 1759
--
Phil Dibowitz [EMAIL PROTECTED]
Freeware and Technical Pages Insanity Palace of Metallica
http://www.phildev.net/ http://www.ipom.com/
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."
- Benjamin Franklin, 1759
signature.asc
Description: OpenPGP digital signature