Date: Tue, 26 Jun 2007 22:00:17 +0400 From: Andrew Muhametshin <andrew@dobrohot.org> To: freebsd-usb@freebsd.org Subject: Re: umass0: Samsung VY-H350 Voice recorder Message-ID: <46815431.2010208@dobrohot.org> In-Reply-To: <465D00D1.2030705@dobrohot.org> References: <465D00D1.2030705@dobrohot.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Andrew Muhametshin пишет: > Hello > > It is not possible to connect the device "Samsung VY-H350 Voice recorder"... > I installed the SVN version new USB a stack. > > =======START=========== > May 30 07:53:16 inspirra kernel: umass0: <Samsung product 0x500b, class 0/0, rev 1.10/1.00, addr 125> > May 30 07:53:16 inspirra kernel: umass0: SCSI over Bulk-Only; quirks = 0x0000 > May 30 07:53:17 inspirra kernel: umass0:6:0:-1: Attached to scbus6 > May 30 07:53:22 inspirra kernel: xptioctl: pass driver is not in the kernel > May 30 07:53:22 inspirra kernel: xptioctl: put "device pass0" in your kernel config file > May 30 07:53:27 inspirra kernel: (da0:umass-sim0:0:0:0): got CAM status 0x4 > May 30 07:53:27 inspirra kernel: (da0:umass-sim0:0:0:0): fatal error, failed to attach to device > May 30 07:53:27 inspirra kernel: (da0:umass-sim0:0:0:0): lost device > May 30 07:53:27 inspirra kernel: (da0:umass-sim0:0:0:0): removing device entry > > $ ls /dev/pass0 > /dev/pass0 > > $ uname -a > FreeBSD inspirra.localdomain 6.2-STABLE FreeBSD 6.2-STABLE #0: Wed May 30 03:46:39 MSD 2007 root@inspirra.localdomain:/SHARED/obj.inspirra/usr/src/sys/INSPIRRA i386 > =======STOP============ > I have found the description (and solution) similar problems with not supported umass-devices, here: http://root.org/~nate/freebsd/scsi/quirks.html and here: http://www.freebsd.org/cgi/query-pr.cgi?pr=65436 By analogy, has tried to create patch... I have applied my patch, and have rebuild a kernel... But unfortunately, my patch has not given result. Where I have made a mistake? Here a patch which I applied: ============================START==================================== *** sys/dev/usb/usbdevs.orig Tue Jun 19 09:34:56 2007 --- sys/dev/usb/usbdevs Tue Jun 19 06:21:10 2007 *************** *** 1679,1684 **** --- 1679,1685 ---- /* Samsung products */ product SAMSUNG ML6060 0x3008 ML-6060 laser printer + product SAMSUNG VYH350 0x500b VY-H350 Voice recorder /* SanDisk products */ product SANDISK SDDR05A 0x0001 ImageMate SDDR-05a *** src/sys/cam/scsi/scsi_da.c.orig Tue Jun 19 05:14:52 2007 --- src/sys/cam/scsi/scsi_da.c Tue Jun 19 09:27:35 2007 *************** *** 475,480 **** --- 475,487 ---- {T_DIRECT, SIP_MEDIA_REMOVABLE, "EM732X", "MP3 Player*", "1.0"}, /*quirks*/ DA_Q_NO_SYNC_CACHE }, + { + /* + * SAMSUNG VY-H350 1.00 Voice Recorder + */ + {T_DIRECT, SIP_MEDIA_REMOVABLE, "*", "VY-H350*", "*"}, + /*quirks*/ DA_Q_NO_SYNC_CACHE + }, }; static disk_strategy_t dastrategy; *** sys/dev/usb/umass.c.orig Tue Jun 19 09:32:03 2007 --- sys/dev/usb/umass.c Tue Jun 19 09:32:25 2007 *************** *** 540,545 **** --- 540,549 ---- UMASS_PROTO_ATAPI | UMASS_PROTO_CBI_I, FORCE_SHORT_INQUIRY }, + { USB_VENDOR_SAMSUNG, USB_PRODUCT_SAMSUNG_VYH350, RID_WILDCARD, + UMASS_PROTO_SCSI | UMASS_PROTO_BBB, + IGNORE_RESIDUE + }, { VID_EOT, PID_EOT, RID_EOT, 0, 0 } }; ============================STOP===================================== before my patch: kernel: umass0: <Samsung product 0x500b, class 0/0, rev 1.10/1.00, addr 125> kernel: umass0: SCSI over Bulk-Only; quirks = 0x0000 kernel: umass0:6:0:-1: Attached to scbus6 kernel: (da0:umass-sim0:0:0:0): got CAM status 0x4 kernel: (da0:umass-sim0:0:0:0): fatal error, failed to attach to device kernel: (da0:umass-sim0:0:0:0): lost device kernel: (da0:umass-sim0:0:0:0): removing device entry after my patch: kernel: umass0: <Samsung VY-H350 Voice recorder, class 0/0, rev 1.10/1.00, addr 125> kernel: umass0: SCSI over Bulk-Only; quirks = 0x0080 kernel: umass0:6:0:-1: Attached to scbus6 kernel: (da0:umass-sim0:0:0:0): got CAM status 0x4 kernel: (da0:umass-sim0:0:0:0): fatal error, failed to attach to device kernel: (da0:umass-sim0:0:0:0): lost device kernel: (da0:umass-sim0:0:0:0): removing device entry
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46815431.2010208>