Re: [Linux-usb-users] Possible bug is USB storage/sda module ? I/O errors with Nokia N80 Mass storage mode
On Sun, 2006-06-11 at 22:11 -0400, Alan Stern wrote: The best thing for you to do at this point is to turn on the usb-storage verbose debugging option in the kernel configuration (CONFIG_USB_STORAGE_DEBUG) and post the resulting kernel log. That should show where the remaining problems are. Alan Stern Well, activated the usb verbose debuging, Posted the logs on the web as i didn't want to overload the mailing list. http://castberg.org/log.txt.gz I wasn't sure how long to keep monitoring as it kept mentioning that the thread was sleeping. René signature.asc Description: This is a digitally signed message part ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] Possible bug is USB storage/sda module ? I/O errors with Nokia N80 Mass storage mode
On Mon, 12 Jun 2006, René C. Castberg wrote: Well, activated the usb verbose debuging, Posted the logs on the web as i didn't want to overload the mailing list. http://castberg.org/log.txt.gz I wasn't sure how long to keep monitoring as it kept mentioning that the thread was sleeping. This is okay. The error occurs when the computer tries to read the last few sectors, which suggests that the device claims to have more sectors than it really does. Try using this patch instead of the other one. Alan Stern Index: usb-2.6/drivers/usb/storage/unusual_devs.h === --- usb-2.6.orig/drivers/usb/storage/unusual_devs.h +++ usb-2.6/drivers/usb/storage/unusual_devs.h @@ -133,6 +133,13 @@ UNUSUAL_DEV( 0x0420, 0x0001, 0x0100, 0x US_SC_DEVICE, US_PR_DEVICE, NULL, US_FL_IGNORE_RESIDUE ), +/* Reported by Jiri Slaby [EMAIL PROTECTED] */ +UNUSUAL_DEV( 0x0421, 0x0446, 0x0100, 0x0100, + Nokia, + N80, + US_SC_DEVICE, US_PR_DEVICE, NULL, + US_FL_IGNORE_RESIDUE | US_FL_FIX_CAPACITY ), + /* Reported by Olaf Hering [EMAIL PROTECTED] from novell bug #105878 */ UNUSUAL_DEV( 0x0424, 0x0fdc, 0x0210, 0x0210, SMSC, ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] Possible bug is USB storage/sda module ? I/O errors with Nokia N80 Mass storage mode
On Mon, 2006-06-12 at 10:40 -0400, Alan Stern wrote: This is okay. The error occurs when the computer tries to read the last few sectors, which suggests that the device claims to have more sectors than it really does. Try using this patch instead of the other one. Alan Stern Index: usb-2.6/drivers/usb/storage/unusual_devs.h === --- usb-2.6.orig/drivers/usb/storage/unusual_devs.h +++ usb-2.6/drivers/usb/storage/unusual_devs.h @@ -133,6 +133,13 @@ UNUSUAL_DEV( 0x0420, 0x0001, 0x0100, 0x US_SC_DEVICE, US_PR_DEVICE, NULL, US_FL_IGNORE_RESIDUE ), +/* Reported by Jiri Slaby [EMAIL PROTECTED] */ +UNUSUAL_DEV( 0x0421, 0x0446, 0x0100, 0x0100, + Nokia, + N80, + US_SC_DEVICE, US_PR_DEVICE, NULL, + US_FL_IGNORE_RESIDUE | US_FL_FIX_CAPACITY ), + /* Reported by Olaf Hering [EMAIL PROTECTED] from novell bug #105878 */ UNUSUAL_DEV( 0x0424, 0x0fdc, 0x0210, 0x0210, SMSC, Thanks, That did the job. Managed to mount the disk and transfer file without problems. René signature.asc Description: This is a digitally signed message part ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] Possible bug is USB storage/sda module ? I/O errors with Nokia N80 Mass storage mode
On Mon, 2006-06-12 at 10:40 -0400, Alan Stern wrote: This is okay. The error occurs when the computer tries to read the last few sectors, which suggests that the device claims to have more sectors than it really does. Try using this patch instead of the other one. Alan Stern Index: usb-2.6/drivers/usb/storage/unusual_devs.h === --- usb-2.6.orig/drivers/usb/storage/unusual_devs.h +++ usb-2.6/drivers/usb/storage/unusual_devs.h @@ -133,6 +133,13 @@ UNUSUAL_DEV( 0x0420, 0x0001, 0x0100, 0x US_SC_DEVICE, US_PR_DEVICE, NULL, US_FL_IGNORE_RESIDUE ), +/* Reported by Jiri Slaby [EMAIL PROTECTED] */ +UNUSUAL_DEV( 0x0421, 0x0446, 0x0100, 0x0100, + Nokia, + N80, + US_SC_DEVICE, US_PR_DEVICE, NULL, + US_FL_IGNORE_RESIDUE | US_FL_FIX_CAPACITY ), + /* Reported by Olaf Hering [EMAIL PROTECTED] from novell bug #105878 */ UNUSUAL_DEV( 0x0424, 0x0fdc, 0x0210, 0x0210, SMSC, Thanks, That did the job. Managed to mount the disk and transfer file without problems. René ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] Possible bug is USB storage/sda module ? I/O errors with Nokia N80 Mass storage mode
The following On Wed, 2006-06-07 at 18:33 -0400, Alan Stern wrote: This is fine. Below is a patch for the kernel that should get things to work properly. Alan Stern Hi again, Tried the patch today on a 2.6.17-rc5 kernel without success. Is there any way that i can tell if the patch worked successfully? (I did try and compile the kernel twice, once reextracting the whole kernel from kernel.org) I get a similar problem, with both the 128mb and 2gb card. Attached is the information from the patched kernel. René Info: - uname -a Linux Tanahliat 2.6.17-rc5 #2 Sun Jun 11 12:01:31 CEST 2006 i686 Intel(R) Pentium(R) M processor 1600MHz GNU/Linux - grep N80 /lib/modules/2.6.17-rc5/kernel/drivers/usb/* -R Binary file /lib/modules/2.6.17-rc5/kernel/drivers/usb/storage/usb-storage.ko matches - dmesg with 2gb card usb 2-2: new full speed USB device using uhci_hcd and address 2 usb 2-2: configuration #1 chosen from 1 choice SCSI subsystem initialized Initializing USB Mass Storage driver... scsi0 : SCSI emulation for USB Mass Storage devices usb-storage: device found at 2 usb-storage: waiting for device to settle before scanning usbcore: registered new driver usb-storage USB Mass Storage support registered. Vendor: Model: Rev: Type: Direct-Access ANSI SCSI revision: 00 usb-storage: device scan complete SCSI device sda: 3967240 512-byte hdwr sectors (2031 MB) sda: Write Protect is off sda: Mode Sense: 03 00 00 00 sda: assuming drive cache: write through SCSI device sda: 3967240 512-byte hdwr sectors (2031 MB) sda: Write Protect is off sda: Mode Sense: 03 00 00 00 sda: assuming drive cache: write through sda: sd 0:0:0:0: Attached scsi removable disk sda end_request: I/O error, dev sda, sector 3967232 Buffer I/O error on device sda, logical block 495904 end_request: I/O error, dev sda, sector 3967232 Buffer I/O error on device sda, logical block 495904 end_request: I/O error, dev sda, sector 3967232 Buffer I/O error on device sda, logical block 495904 end_request: I/O error, dev sda, sector 3967232 Buffer I/O error on device sda, logical block 495904 end_request: I/O error, dev sda, sector 3967232 Buffer I/O error on device sda, logical block 495904 end_request: I/O error, dev sda, sector 3967232 Buffer I/O error on device sda, logical block 495904 end_request: I/O error, dev sda, sector 0 Buffer I/O error on device sda, logical block 0 end_request: I/O error, dev sda, sector 0 Buffer I/O error on device sda, logical block 0 end_request: I/O error, dev sda, sector 0 Buffer I/O error on device sda, logical block 0 end_request: I/O error, dev sda, sector 0 Buffer I/O error on device sda, logical block 0 end_request: I/O error, dev sda, sector 0 end_request: I/O error, dev sda, sector 0 end_request: I/O error, dev sda, sector 0 end_request: I/O error, dev sda, sector 0 end_request: I/O error, dev sda, sector 40 end_request: I/O error, dev sda, sector 0 end_request: I/O error, dev sda, sector 0 end_request: I/O error, dev sda, sector 0 end_request: I/O error, dev sda, sector 0 end_request: I/O error, dev sda, sector 0 end_request: I/O error, dev sda, sector 0 end_request: I/O error, dev sda, sector 0 end_request: I/O error, dev sda, sector 0 end_request: I/O error, dev sda, sector 0 end_request: I/O error, dev sda, sector 0 end_request: I/O error, dev sda, sector 0 end_request: I/O error, dev sda, sector 0 end_request: I/O error, dev sda, sector 0 end_request: I/O error, dev sda, sector 0 end_request: I/O error, dev sda, sector 0 end_request: I/O error, dev sda, sector 0 end_request: I/O error, dev sda, sector 0 - dmesg with 128mb card usb 2-2: new full speed USB device using uhci_hcd and address 4 usb 2-2: configuration #1 chosen from 1 choice scsi2 : SCSI emulation for USB Mass Storage devices usb-storage: device found at 4 usb-storage: waiting for device to settle before scanning Vendor: Model: Rev: Type: Direct-Access ANSI SCSI revision: 00 SCSI device sda: 245920 512-byte hdwr sectors (126 MB) sda: Write Protect is off sda: Mode Sense: 03 00 00 00 sda: assuming drive cache: write through SCSI device sda: 245920 512-byte hdwr sectors (126 MB) sda: Write Protect is off sda: Mode Sense: 03 00 00 00 sda: assuming drive cache: write through sda: unknown partition table sd 2:0:0:0: Attached scsi removable disk sda usb-storage: device scan complete end_request: I/O error, dev sda, sector 245912 printk: 57 messages suppressed. Buffer I/O error on device sda, logical block 30739 end_request: I/O error, dev sda, sector 245912 Buffer I/O error on device sda, logical block 30739 end_request: I/O error, dev sda, sector 245912 Buffer I/O error on device sda, logical block 30739 end_request: I/O error, dev sda, sector 245912 Buffer I/O error on device sda, logical block 30739 end_request: I/O error, dev sda, sector 245912
[Linux-usb-users] Possible bug is USB storage/sda module ? I/O errors with Nokia N80 Mass storage mode
Hi, I just got a new nokia N80 which has the possibility of working as a mass storage device. When ever i plug it in to my pc, i get a ton of error messages. Using windows xp, linux 2.4.x or the low performance ub driver (under knoppix) i can get it too mount. Using my current kernel 2.6.15 it doesn't (I also tried 2.6.17-rc5 without success). (Also tried on 2.6.13) I have the same problem if i have a 2gb or 128mb mini sd card in the phone. I have had somebody else confirm the same issue with Mandrake 10.1 and Ubuntu Live CD. Anybody that can give me a pointer on how to get this working with the usbstorage and sd modules. Attrached dmesg log: Thanks René Castberg Relevant (Hopefully) section from dmesg: usb 2-2: new full speed USB device using uhci_hcd and address 5 scsi4 : SCSI emulation for USB Mass Storage devices usb-storage: device found at 5 usb-storage: waiting for device to settle before scanning Vendor: Model: Rev: Type: Direct-Access ANSI SCSI revision: 00 SCSI device sda: 3967240 512-byte hdwr sectors (2031 MB) sda: Write Protect is off sda: Mode Sense: 03 00 00 00 sda: assuming drive cache: write through SCSI device sda: 3967240 512-byte hdwr sectors (2031 MB) sda: Write Protect is off sda: Mode Sense: 03 00 00 00 sda: assuming drive cache: write through sda: sd 4:0:0:0: Attached scsi removable disk sda usb-storage: device scan complete end_request: I/O error, dev sda, sector 3967232 Buffer I/O error on device sda, logical block 495904 end_request: I/O error, dev sda, sector 3967232 Buffer I/O error on device sda, logical block 495904 end_request: I/O error, dev sda, sector 3967232 Buffer I/O error on device sda, logical block 495904 end_request: I/O error, dev sda, sector 3967232 Buffer I/O error on device sda, logical block 495904 end_request: I/O error, dev sda, sector 3967232 Buffer I/O error on device sda, logical block 495904 end_request: I/O error, dev sda, sector 3967232 Buffer I/O error on device sda, logical block 495904 end_request: I/O error, dev sda, sector 0 Buffer I/O error on device sda, logical block 0 end_request: I/O error, dev sda, sector 0 Buffer I/O error on device sda, logical block 0 end_request: I/O error, dev sda, sector 0 Buffer I/O error on device sda, logical block 0 end_request: I/O error, dev sda, sector 0 Buffer I/O error on device sda, logical block 0 end_request: I/O error, dev sda, sector 0 end_request: I/O error, dev sda, sector 0 end_request: I/O error, dev sda, sector 0 end_request: I/O error, dev sda, sector 0 end_request: I/O error, dev sda, sector 72 end_request: I/O error, dev sda, sector 0 end_request: I/O error, dev sda, sector 0 end_request: I/O error, dev sda, sector 0 end_request: I/O error, dev sda, sector 0 end_request: I/O error, dev sda, sector 0 end_request: I/O error, dev sda, sector 0 end_request: I/O error, dev sda, sector 0 end_request: I/O error, dev sda, sector 0 end_request: I/O error, dev sda, sector 0 end_request: I/O error, dev sda, sector 0 end_request: I/O error, dev sda, sector 0 end_request: I/O error, dev sda, sector 0 end_request: I/O error, dev sda, sector 0 end_request: I/O error, dev sda, sector 0 end_request: I/O error, dev sda, sector 0 end_request: I/O error, dev sda, sector 0 end_request: I/O error, dev sda, sector 0 ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] Possible bug is USB storage/sda module ? I/O errors with Nokia N80 Mass storage mode
On Wed, 7 Jun 2006, René C. Castberg wrote: Hi, I just got a new nokia N80 which has the possibility of working as a mass storage device. When ever i plug it in to my pc, i get a ton of error messages. Using windows xp, linux 2.4.x or the low performance ub driver (under knoppix) i can get it too mount. Using my current kernel 2.6.15 it doesn't (I also tried 2.6.17-rc5 without success). (Also tried on 2.6.13) I have the same problem if i have a 2gb or 128mb mini sd card in the phone. I have had somebody else confirm the same issue with Mandrake 10.1 and Ubuntu Live CD. Anybody that can give me a pointer on how to get this working with the usbstorage and sd modules. Curiously enough, another user wrote in with exactly the same problem just a day or two earlier. Can you provide the entry in /proc/bus/usb/devices for the Nokia, or else the output from lsusb -v? Alan Stern ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] Possible bug is USB storage/sda module ? I/O errors with Nokia N80 Mass storage mode
On Thu, 8 Jun 2006, René C. Castberg wrote: Curiously enough, another user wrote in with exactly the same problem just a day or two earlier. Can you provide the entry in /proc/bus/usb/devices for the Nokia, or else the output from lsusb -v? Alan Stern Hi, Apologies but i was unable to find the other thread. If there is any other information you need, just ask. Thanks René /proc/bus/usb/devices (For the N80) T: Bus=02 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 4 Spd=12 MxCh= 0 D: Ver= 2.00 Cls=00(ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=0421 ProdID=0446 Rev= 1.00 S: Manufacturer=Nokia S: Product=Nokia N80 S: SerialNumber=358361000458541 C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=100mA I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=03(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms This is fine. Below is a patch for the kernel that should get things to work properly. Alan Stern Index: usb-2.6/drivers/usb/storage/unusual_devs.h === --- usb-2.6.orig/drivers/usb/storage/unusual_devs.h +++ usb-2.6/drivers/usb/storage/unusual_devs.h @@ -133,6 +133,13 @@ UNUSUAL_DEV( 0x0420, 0x0001, 0x0100, 0x US_SC_DEVICE, US_PR_DEVICE, NULL, US_FL_IGNORE_RESIDUE ), +/* Reported by Jiri Slaby [EMAIL PROTECTED] */ +UNUSUAL_DEV( 0x0421, 0x0446, 0x0100, 0x0100, + Nokia, + N80, + US_SC_DEVICE, US_PR_DEVICE, NULL, + US_FL_IGNORE_RESIDUE ), + /* Reported by Olaf Hering [EMAIL PROTECTED] from novell bug #105878 */ UNUSUAL_DEV( 0x0424, 0x0fdc, 0x0210, 0x0210, SMSC, ___ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
Re: [Linux-usb-users] Possible bug is USB storage/sda module ? I/O errors with Nokia N80 Mass storage mode
Curiously enough, another user wrote in with exactly the same problem just a day or two earlier. Can you provide the entry in /proc/bus/usb/devices for the Nokia, or else the output from lsusb -v? Alan Stern Hi, Apologies but i was unable to find the other thread. If there is any other information you need, just ask. Thanks René /proc/bus/usb/devices (For the N80) T: Bus=02 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 4 Spd=12 MxCh= 0 D: Ver= 2.00 Cls=00(ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=0421 ProdID=0446 Rev= 1.00 S: Manufacturer=Nokia S: Product=Nokia N80 S: SerialNumber=358361000458541 C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=100mA I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=03(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms --- lsusb -v --- Bus 004 Device 001: ID : Device Descriptor: bLength18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass9 Hub bDeviceSubClass 0 Unused bDeviceProtocol 1 Single TT bMaxPacketSize064 idVendor 0x idProduct 0x bcdDevice2.06 iManufacturer 3 Linux 2.6.15-suspend2 ehci_hcd iProduct2 EHCI Host Controller iSerial 1 :00:1d.7 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 25 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xc0 Self Powered MaxPower0mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber0 bAlternateSetting 0 bNumEndpoints 1 bInterfaceClass 9 Hub bInterfaceSubClass 0 Unused bInterfaceProtocol 0 iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes3 Transfer TypeInterrupt Synch Type None Usage Type Data wMaxPacketSize 0x0002 1x 2 bytes bInterval 12 Hub Descriptor: bLength 9 bDescriptorType 41 nNbrPorts 6 wHubCharacteristic 0x000a No power switching (usb 1.0) Per-port overcurrent protection TT think time 8 FS bits bPwrOn2PwrGood 10 * 2 milli seconds bHubContrCurrent 0 milli Ampere DeviceRemovable0x00 PortPwrCtrlMask0x00 Hub Port Status: Port 1: .0100 power Port 2: .0100 power Port 3: .0100 power Port 4: . Port 5: .0100 power Port 6: .0100 power Bus 003 Device 001: ID : Device Descriptor: bLength18 bDescriptorType 1 bcdUSB 1.10 bDeviceClass9 Hub bDeviceSubClass 0 Unused bDeviceProtocol 0 bMaxPacketSize064 idVendor 0x idProduct 0x bcdDevice2.06 iManufacturer 3 Linux 2.6.15-suspend2 uhci_hcd iProduct2 UHCI Host Controller iSerial 1 :00:1d.2 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 25 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xc0 Self Powered MaxPower0mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber0 bAlternateSetting 0 bNumEndpoints 1 bInterfaceClass 9 Hub bInterfaceSubClass 0 Unused bInterfaceProtocol 0 iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes3 Transfer TypeInterrupt Synch Type None Usage Type Data wMaxPacketSize 0x0002 1x 2 bytes bInterval 255 Hub Descriptor: bLength 9 bDescriptorType 41 nNbrPorts 2 wHubCharacteristic 0x000a No power switching (usb 1.0) Per-port overcurrent protection bPwrOn2PwrGood1 * 2 milli seconds bHubContrCurrent 0 milli Ampere DeviceRemovable0x00 PortPwrCtrlMask0x00 Hub Port Status: Port 1: .0100 power Port 2: .0100 power Bus 002 Device 004: ID 0421:0446 Nokia Mobile