Re: NEXX NF-315: unusual_devs.h entry submission

Matthew Dharm <[email protected]>
Newsgroups gmane.linux.usb.devel
Organization One Eyed Alien Networks
Message-ID <[email protected]>
Why do you think that the INQUIRY is the problematic command?

Rebuild with CONFIG_USB_STORAGE_DEBUG (and without your patch) for more log
data.  Also, you can try adjusting the delay_use parameter (default is 5 --
try increasing to 10).

Matt

On Mon, Oct 29, 2007 at 12:17:51AM +0300, Serge (gentoosiast) Koksharov wrote:
> 	Hello,
> 
> Recently I bought 2GB flash MP3 player Nexx NF-315, firmware version
> 02.10.41 <http://www.nexxdigital.com/product-detail.php?id=18> and
> discovered that it don't work under GNU/Linux (tried several different
> distribs and computers), but works under Win XP without installing any
> additional drivers. After plugging in to the USB bus, block device
> /dev/sd[a-z] never appears and there are bunch of read errors in logs
> (attached, see nexx_kernel_log.txt). After some experimentation I found
> out that initial inquiry message always fails and confuses device. I
> have written patch for drivers/usb/storage/unusual_devs.h which applies
> cleanly against latest GNU/Linux kernel 2.6.23 (attached, see
> nexx_nf-315.patch). After applying this patch and recompiling kernel,
> flash player works perfectly without any problems. Copy of
> /proc/bus/usb/devices with attached device running with this patch
> included, as required (see nexx_proc.txt). Can you please integrate my
> patch into mainline kernel tree? Feel free to contact me for any
> additional information you need.
> 
> Best wishes,
> -- 
> Serge Koksharov, Free Software user & supporter
> GPG public key ID: 0x3D330896 (pgp.mit.edu)
> Key fingerprint: 5BC4 0475 CB03 6A31 0076  82C2 C240 72F0 3D33 0896

> Oct 20 11:51:41 breeze kernel: usb 1-2: new high speed USB device using ehci_hcd and address 2
> Oct 20 11:51:41 breeze kernel: usb 1-2: configuration #1 chosen from 1 choice
> Oct 20 11:51:41 breeze kernel: Initializing USB Mass Storage driver...
> Oct 20 11:51:41 breeze kernel: scsi4 : SCSI emulation for USB Mass Storage devices
> Oct 20 11:51:41 breeze kernel: usb-storage: device found at 2
> Oct 20 11:51:41 breeze kernel: usb-storage: waiting for device to settle before scanning
> Oct 20 11:51:41 breeze kernel: usbcore: registered new interface driver usb-storage
> Oct 20 11:51:41 breeze kernel: USB Mass Storage support registered.
> Oct 20 11:51:46 breeze kernel: usb-storage: device scan complete
> Oct 20 11:51:52 breeze kernel: usb 1-2: reset high speed USB device using ehci_hcd and address 2
> Oct 20 11:52:07 breeze kernel: usb 1-2: device descriptor read/64, error -110
> Oct 20 11:52:22 breeze kernel: usb 1-2: device descriptor read/64, error -110
> Oct 20 11:52:22 breeze kernel: usb 1-2: reset high speed USB device using ehci_hcd and address 2
> Oct 20 11:52:38 breeze kernel: usb 1-2: device descriptor read/64, error -110
> Oct 20 11:52:53 breeze kernel: usb 1-2: device descriptor read/64, error -110
> Oct 20 11:52:53 breeze kernel: usb 1-2: reset high speed USB device using ehci_hcd and address 2
> Oct 20 11:52:58 breeze kernel: usb 1-2: device descriptor read/8, error -110
> Oct 20 11:53:03 breeze kernel: usb 1-2: device descriptor read/8, error -110
> Oct 20 11:53:03 breeze kernel: usb 1-2: reset high speed USB device using ehci_hcd and address 2
> Oct 20 11:53:08 breeze kernel: usb 1-2: device descriptor read/8, error -110
> Oct 20 11:53:13 breeze kernel: usb 1-2: device descriptor read/8, error -110
> Oct 20 11:53:14 breeze kernel: usb 1-2: USB disconnect, address 2
> Oct 20 11:53:14 breeze kernel: scsi 4:0:0:0: scsi: Device offlined - not ready after error recovery
> Oct 20 11:53:14 breeze kernel: usb 1-2: new high speed USB device using ehci_hcd and address 3
> Oct 20 11:53:29 breeze kernel: usb 1-2: device descriptor read/64, error -110
> Oct 20 11:53:44 breeze kernel: usb 1-2: device descriptor read/64, error -110
> Oct 20 11:53:44 breeze kernel: usb 1-2: new high speed USB device using ehci_hcd and address 4
> Oct 20 11:53:59 breeze kernel: usb 1-2: device descriptor read/64, error -110
> Oct 20 11:54:14 breeze kernel: usb 1-2: device descriptor read/64, error -110
> Oct 20 11:54:15 breeze kernel: usb 1-2: new high speed USB device using ehci_hcd and address 5
> Oct 20 11:54:20 breeze kernel: usb 1-2: device descriptor read/8, error -110
> Oct 20 11:54:23 breeze kernel: usb 1-2: device descriptor read/8, error -71

> --- unusual_devs.h.orig	2007-10-12 17:01:33.000000000 +0400
> +++ unusual_devs.h	2007-10-28 13:29:06.000000000 +0300
> @@ -1347,6 +1347,13 @@
>  		US_SC_DEVICE, US_PR_BULK, NULL,
>  		US_FL_NEED_OVERRIDE ),
>  
> +/* Submitted by Serge Koksharov <[email protected]> */
> +UNUSUAL_DEV( 0x0e56, 0x601a, 0x0002, 0x0002,
> +		"Nexx",
> +		"NF-315 MP3 Player",
> +		US_SC_DEVICE, US_PR_DEVICE, NULL,
> +		US_FL_FIX_INQUIRY ),
> +
>  /* Submitted by Antoine Mairesse <[email protected]> */
>  UNUSUAL_DEV( 0x0ed1, 0x6660, 0x0100, 0x0300,
>  		"USB",

> 
> T:  Bus=05 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
> B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
> D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
> P:  Vendor=0000 ProdID=0000 Rev= 2.06
> S:  Manufacturer=Linux 2.6.23 uhci_hcd
> S:  Product=UHCI Host Controller
> S:  SerialNumber=0000:00:10.3
> C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
> I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
> E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms
> 
> T:  Bus=04 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
> B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
> D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
> P:  Vendor=0000 ProdID=0000 Rev= 2.06
> S:  Manufacturer=Linux 2.6.23 uhci_hcd
> S:  Product=UHCI Host Controller
> S:  SerialNumber=0000:00:10.2
> C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
> I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
> E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms
> 
> T:  Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
> B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
> D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
> P:  Vendor=0000 ProdID=0000 Rev= 2.06
> S:  Manufacturer=Linux 2.6.23 uhci_hcd
> S:  Product=UHCI Host Controller
> S:  SerialNumber=0000:00:10.1
> C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
> I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
> E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms
> 
> T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
> B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
> D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
> P:  Vendor=0000 ProdID=0000 Rev= 2.06
> S:  Manufacturer=Linux 2.6.23 uhci_hcd
> S:  Product=UHCI Host Controller
> S:  SerialNumber=0000:00:10.0
> C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
> I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
> E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms
> 
> T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 8
> B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
> D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
> P:  Vendor=0000 ProdID=0000 Rev= 2.06
> S:  Manufacturer=Linux 2.6.23 ehci_hcd
> S:  Product=EHCI Host Controller
> S:  SerialNumber=0000:00:10.4
> C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
> I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
> E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms
> 
> T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480 MxCh= 0
> D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
> P:  Vendor=0e56 ProdID=601a Rev= 0.02
> S:  Manufacturer=MP3 player mate
> S:  Product=  Audio Player         
> C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
> I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
> E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
> E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

> -------------------------------------------------------------------------
> 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/
> _______________________________________________
> [email protected]
> To unsubscribe, use the last form field at:
> https://lists.sourceforge.net/lists/listinfo/linux-usb-devel


-- 
Matthew Dharm                              Home: [email protected] 
Maintainer, Linux USB Mass Storage Driver

What, are you one of those Microsoft-bashing Linux freaks?
					-- Customer to Greg
User Friendly, 2/10/1999

-------------------------------------------------------------------------
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/

_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFHJRvLHL9iwnUZqnkRAiUMAJ99ZoSqAhV08ujS+thUGiYu0ZPNaQCfRfWH
nNl3ER3KZ3mWKcY69hUeCSY=
=q8ws
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.