From owner-freebsd-usb@FreeBSD.ORG Wed Mar 5 22:20:57 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 991073A4 for ; Wed, 5 Mar 2014 22:20:57 +0000 (UTC) Received: from smtp24.services.sfr.fr (smtp24.services.sfr.fr [93.17.128.83]) by mx1.freebsd.org (Postfix) with ESMTP id 592146A1 for ; Wed, 5 Mar 2014 22:20:57 +0000 (UTC) Received: from filter.sfr.fr (localhost [127.0.0.1]) by msfrf2419.sfr.fr (SMTP Server) with ESMTP id 2E2F27000054 for ; Wed, 5 Mar 2014 23:15:30 +0100 (CET) Received: from sfr.fr (unknown [186.235.149.98]) by msfrf2419.sfr.fr (SMTP Server) with ESMTP id 6965A70000BF for ; Wed, 5 Mar 2014 23:15:23 +0100 (CET) X-SFR-UUID: 20140305221523431.6965A70000BF@msfrf2419.sfr.fr From: annehaase To: Freebsd Usb Subject: How Are You? Date: Wed, 5 Mar 2014 23:15:09 +0100 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.1.7601.17609 Message-Id: <20140305221523.6965A70000BF@msfrf2419.sfr.fr> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.17 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Mar 2014 22:20:57 -0000 http://lmc-partners.com/modules/mod_araticlhess/cnnnews.php?ckrbrhr1534gkwpc \-\-\-\-\-\-\-\-\-\-\-\-\-\-\- Philosophy of life: Eat every cookie as if it's the LAST cookie! From owner-freebsd-usb@FreeBSD.ORG Fri Mar 7 14:08:05 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B5BCDD72 for ; Fri, 7 Mar 2014 14:08:05 +0000 (UTC) Received: from land.berklix.org (land.berklix.org [144.76.10.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 44DC92EA for ; Fri, 7 Mar 2014 14:08:05 +0000 (UTC) Received: from mart.js.berklix.net (p5DCBC2C4.dip0.t-ipconnect.de [93.203.194.196]) (authenticated bits=128) by land.berklix.org (8.14.5/8.14.5) with ESMTP id s27E73P1020917; Fri, 7 Mar 2014 14:07:03 GMT (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by mart.js.berklix.net (8.14.3/8.14.3) with ESMTP id s27E6blW010927; Fri, 7 Mar 2014 15:06:44 +0100 (CET) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.14.5/8.14.5) with ESMTP id s27CvivL009813; Fri, 7 Mar 2014 14:00:16 +0100 (CET) (envelope-from jhs@berklix.com) Message-Id: <201403071300.s27CvivL009813@fire.js.berklix.net> To: freebsd-usb@freebsd.org Subject: USB flash memory stick works on 8.3-rel, fails on 9.2 & 10.0 From: "Julian H. Stacey" Organization: http://berklix.com BSD Linux Unix Consultants, Munich Germany User-agent: EXMH on FreeBSD http://www.berklix.com/free/ X-URL: http://www.berklix.com/~jhs/cv/ Date: Fri, 07 Mar 2014 13:57:44 +0100 Cc: "Julian H. Stacey" X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Mar 2014 14:08:05 -0000 A 16G USB flash memory stick here works with 8.3-RELEASE but fails (on same PC & port) to create /dev/da* on FreeBSD-9 & 10. (devd running on all3) What should I change for the stick ? What can we change on FreeBSD so similar devices dont fail ? On 8.3-RELEASE LED stays on, dev/da* appera, & can mount,. On 9.2 & 10.0- Releases, the LED flashes faster than a whirling dervish, but no /dev/da* 9.2-RELEASE shows: (da0:umass-sim0:0:0:0): READ(10). CDB: 28 00 01 d5 37 fe 00 00 01 00 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Retrying command ugen1.3: at usbus1 (disconnected) umass0: at uhub3, port 1, addr 3 (disconnected) (da0:umass-sim0:0:0:0): READ(10). CDB: 28 00 01 d5 37 fe 00 00 01 00 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Retrying command (da0:umass-sim0:0:0:0): READ(10). CDB: 28 00 01 d5 37 fe 00 00 01 00 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Retrying command (da0:umass-sim0:0:0:0): READ(10). CDB: 28 00 01 d5 37 fe 00 00 01 00 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Retrying command (da0:umass-sim0:0:0:0): READ(10). CDB: 28 00 01 d5 37 fe 00 00 01 00 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Error 5, Retries exhausted (da0:umass-sim0:0:0:0): SYNCHRONIZE CACHE(10). CDB: 35 00 00 00 00 00 00 00 00 00 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Retrying command (da0:umass-sim0:0:0:0): SYNCHRONIZE CACHE(10). CDB: 35 00 00 00 00 00 00 00 00 00 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Error 5, Retries exhausted (da0:umass-sim0:0:0:0): got CAM status 0x44 (da0:umass-sim0:0:0:0): fatal error, failed to attach to device (da0:umass-sim0:0:0:0): lost device - 0 outstanding, 5 refs (da0:umass-sim0:0:0:0): removing device entry ugen1.3: at usbus1 umass0: on usbus1 umass0: SCSI over Bulk-Only; quirks = 0x0100 umass0:2:0:-1: Attached to scbus2 da0 at umass-sim0 bus 0 scbus2 target 0 lun 0 da0: Removable Direct Access SCSI-4 device da0: 40.000MB/s transfers da0: 15015MB (30750720 512 byte sectors: 255H 63S/T 1914C) da0: quirks=0x2 10.0-RELEASE on same PC shows similar, as does another 9.2 PC 9.2 devd -d does start doing the right thing eg: Processing event '+umass0 at bus=2 hubaddr=1 port=1 devaddr=3 interface=0 vendor=0x048d product=0x1170 devclass=0x00 devsubclass=0x00 sernum="0000000004DA3CC3" release=0x0100 mode=host intclass=0x08 intsubclass=0x06 intprotocol=0x50 on uhub2' Executing 'sleep 4; rm -f /devusb/hama16g; ln -s /dev/`echo umass0|sed -e s/umass/da/`s1 /devusb/hama16g;mkdir /media/hama16g; chmod 777 /media/hama16g; chown jhs:staff /media/hama16g; `/site/usr/local/bin/fsck.sh` -y -t msdosfs /devusb/hama16g;mount -t msdosfs /devusb/hama16g /media/hama16g' Can't stat /devusb/hama16g ** /devusb/hama16g Can't open `/devusb/hama16g' mount_msdosfs: /devusb/hama16g: My /devusb/hama16g@ -> /dev/da0s1 (works for other sticks) is left dangling as no /dev/da* to point to. 2nd PC usbconfig shows: ugen5.2: at usbus5, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (480mA) ( BTW Seems a lot of power for a stick ? A same size 16G USB3 stick (on same USB 2 socket) reports ugen5.2: at usbus5, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA), & the USB3 stick mounts OK. ) usbconfig -u 5 -a 2 do_request 0x81 0x06 0x2200 0 0x100 # copied from man. REQUEST = usbconfig -u 5 -a 2 dump_curr_config_desc ugen5.2: at usbus5, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (480mA) Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0020 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0000 bmAttributes = 0x0080 bMaxPower = 0x00f0 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0002 bInterfaceClass = 0x0008 bInterfaceSubClass = 0x0006 bInterfaceProtocol = 0x0050 iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0001 bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0001 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 1 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0082 bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0001 bRefresh = 0x0000 bSynchAddress = 0x0000 usbconfig -u 5 -a 2 dump_device_desc ugen5.2: at usbus5, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (480mA) bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x048d idProduct = 0x1170 bcdDevice = 0x0100 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0003 bNumConfigurations = 0x0001 usbconfig -u 5 -a 2 power_on ls /dev/da* ls: No match. xs usbconfig -u 5 -a 2 power_off shell hangs Per man usb_quirk, I tried a reboot with usb_quirk_load="YES" in /boot/loader.conf , did not help. Rebooted with 8.3-RELEASE, stick works. BTW This "Hama" stick is a very lightly used device, not worn out, In case anyone else has one to try, it's: Product code 34 090894, 10 Euro from Mueller, Munich, Germany 2012_10_11 Cardboard marked USB2 6 MB/sec Bar Code 4 047443 144492. Cheers, Julian - -- Julian Stacey, BSD Unix Linux C Sys Eng Consultant, Munich http://berklix.com Reply below not above, like a play script. Indent old text with "> ". Send plain text. No quoted-printable, HTML, base64, multipart/alternative. Boycott Putin's Russia, invaders of Ukraine