From owner-freebsd-usb@FreeBSD.ORG Fri Mar 7 14:08:20 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 E8501DA6 for ; Fri, 7 Mar 2014 14:08:19 +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 766972EF for ; Fri, 7 Mar 2014 14:08:19 +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 s27E7Hpk020939 for ; Fri, 7 Mar 2014 14:07:17 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 s27E6blm010927 for ; Fri, 7 Mar 2014 15:06:58 +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 s2730VFj074641 for ; Fri, 7 Mar 2014 04:03:03 +0100 (CET) (envelope-from jhs@berklix.com) Message-Id: <201403070303.s2730VFj074641@fire.js.berklix.net> To: freebsd-usb@freebsd.org Subject: Is USB stick dead ? Would someone like it to investigate ? 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 04:00:31 +0100 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:20 -0000 I have a "Hama" USB stick, 16G that creates no /dev/da* any more, though it used to (tested on 2 PCs). Maybe it's dead ? The LED still flashes. Or just gone weird ? Something I could fix with some CAM magic ? Is it exhibit strangeness worthy of someone debugging ? (for the sake of FreeSBD, not the stick) in which case I could post it to whoever fancies improving FreeBSD ? (No valuable data on it). 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 similar 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) (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 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 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