From owner-freebsd-usb@FreeBSD.ORG Tue Jun 26 18:01:33 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EB43D16A473 for ; Tue, 26 Jun 2007 18:01:33 +0000 (UTC) (envelope-from andrew@dobrohot.org) Received: from smtp-4.masterhost.ru (smtp-4.masterhost.ru [83.222.24.104]) by mx1.freebsd.org (Postfix) with SMTP id 51FF613C45E for ; Tue, 26 Jun 2007 18:01:32 +0000 (UTC) (envelope-from andrew@dobrohot.org) Received: (qmail 72446 invoked from network); 26 Jun 2007 18:01:15 -0000 Received: from one.globax.biz (HELO inspirra.localdomain) (izdat%dobrohot.org@81.177.8.165) by smtp1.masterhost.ru with SMTP; 26 Jun 2007 18:01:15 -0000 Received: from inspirra.localdomain (inspirra.localdomain [192.168.2.1]) by inspirra.localdomain (8.14.1/8.13.8) with ESMTP id l5QI0HSi022821 for ; Tue, 26 Jun 2007 22:00:17 +0400 (MSD) (envelope-from andrew@dobrohot.org) Message-ID: <46815431.2010208@dobrohot.org> Date: Tue, 26 Jun 2007 22:00:17 +0400 From: Andrew Muhametshin Organization: =?windows-1251?Q?=C0=CD=CE_=22=C4=EE=E1=F0=EE=F5=EE=F2=22?= User-Agent: Thunderbird 2.0.0.4 (X11/20070616) MIME-Version: 1.0 To: freebsd-usb@freebsd.org References: <465D00D1.2030705@dobrohot.org> In-Reply-To: <465D00D1.2030705@dobrohot.org> Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: umass0: Samsung VY-H350 Voice recorder X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jun 2007 18:01:34 -0000 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: > 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: 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: 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