From owner-freebsd-hardware@FreeBSD.ORG Thu Feb 18 10:33:40 2010 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 534EF106566B for ; Thu, 18 Feb 2010 10:33:40 +0000 (UTC) (envelope-from borisbsd@googlemail.com) Received: from mail-fx0-f219.google.com (mail-fx0-f219.google.com [209.85.220.219]) by mx1.freebsd.org (Postfix) with ESMTP id E08A48FC12 for ; Thu, 18 Feb 2010 10:33:39 +0000 (UTC) Received: by fxm19 with SMTP id 19so1297359fxm.3 for ; Thu, 18 Feb 2010 02:33:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=2MTtoV4VSQOkhmKIGTyu5URzBkCFhACV1pT971GwhjA=; b=B6keVO1X6qG9RBQyqix3JrqPHoWp7nIRaiBRjUvRyY2QiTIJYJrc++b1Mcp7aRIyQi pWDFBlU9dGhrHqWUmIUN1NkcsqaT4Wv7t5w59+VhJKGwygn9EcyE64XB1OgUUg9oI8Un 3K4JD6c3GijbXVoJf8LlPeNjbFfopfQ9gxk4A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=TGL176UbRCaB1Zv2aHQaI7+kn4gGisfJm/5Q8a32keTOn1fsY4Qrro07k3aKlC6Xx2 wLpWsoResp6kH1JMzMbtUQvG46u//RKDmFKFSgZRmaJptIxSribe/LvyVq4gBADfvbnx Gl0AmPkWfrG2X9eM2JqQXMfKSLwNVOzGtsIrw= MIME-Version: 1.0 Received: by 10.204.48.198 with SMTP id s6mr1281497bkf.8.1266487733550; Thu, 18 Feb 2010 02:08:53 -0800 (PST) Date: Thu, 18 Feb 2010 10:08:53 +0000 Message-ID: From: Boris To: freebsd-hardware@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: BUFFALO Drivestation USB drive - how to add USB quirk X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2010 10:33:40 -0000 Hello all, I have got the following output while connecting an external USB drive - BUFFALO - on a freshly installed 8.0-RELEASE amd64. da0 at umass-sim0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-2 device da0: 40.000MB/s transfers da0: Attempt to query device size failed: ILLEGAL REQUEST, Invalid command operation (da0:umass-sim0:0:0:0): SERVICE ACTION IN(16). CDB: 9e 10 0 0 0 0 0 0 0 0 0 0 0 c 0 0 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da0:umass-sim0:0:0:0): SCSI Status: Check Condition (da0:umass-sim0:0:0:0): ILLEGAL REQUEST asc:20,0 (da0:umass-sim0:0:0:0): Invalid command operation code (da0:umass-sim0:0:0:0): Unretryable error (da0:umass-sim0:0:0:0): SERVICE ACTION IN(16). CDB: 9e 10 0 0 0 0 0 0 0 0 0 0 0 c 0 0 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da0:umass-sim0:0:0:0): SCSI Status: Check Condition (da0:umass-sim0:0:0:0): ILLEGAL REQUEST asc:20,0 (da0:umass-sim0:0:0:0): Invalid command operation code (da0:umass-sim0:0:0:0): Unretryable error So I checked and found the following wiki: http://wiki.freebsd.org/USB but I am not sure how to use the following output: ugen3.2: at usbus3, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x0411 idProduct = 0x0105 bcdDevice = 0x0300 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0005 <0000201C51FA> bNumConfigurations = 0x0001 Problem is I cannot find the quirktable stated in point 5 of the wiki page: # 5) Try adding an entry in the quirktable in /sys/dev/usb2/storage/umass2.c I can see sys/dev/usb/quirk/usr_quirk.c but then I am not sure how to define my new quirk especially how to choose the quirk string to add. I guess it should be something like this: USB_QUIRK(BUFFALO,DRIVESTATION, 0x0411, 0x0105, ????????) Could somebody advise what to use to replace the '????????'? Thank you, Boris