From owner-freebsd-usb@FreeBSD.ORG Wed Mar 9 15:05:31 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 46D6516A4CE for ; Wed, 9 Mar 2005 15:05:31 +0000 (GMT) Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 26ACA43D54 for ; Wed, 9 Mar 2005 15:05:30 +0000 (GMT) (envelope-from cyberlab@gmx.de) Received: (qmail 32113 invoked by uid 0); 9 Mar 2005 15:05:28 -0000 Received: from 62.225.62.66 by www57.gmx.net with HTTP; Wed, 9 Mar 2005 16:05:28 +0100 (MET) Date: Wed, 9 Mar 2005 16:05:28 +0100 (MET) From: "Jost Menke" To: freebsd-usb@freebsd.org MIME-Version: 1.0 X-Priority: 3 (Normal) X-Authenticated: #1026516 Message-ID: <10493.1110380728@www57.gmx.net> X-Mailer: WWW-Mail 1.6 (Global Message Exchange) X-Flags: 0001 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Subject: quirks for C-Media Card Reader X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Mar 2005 15:05:31 -0000 Hi all, I´m having some trouble with a 7 in 1 USB card reader with a C-Media CM-120 chip. The device is recognized as mass storage under Windows. In my first attempt under 5.4-PRERELEASE #1, the device showed up as ugen0, so I modified /usr/src/dev/usb/umass.c and /usr/src/dev/usb/usbdevs. I tried a whole bunch of quirks and got the best results with the following modifications: usbdevs: vendor CMEDIA 0x0d8c C-Media Inc. product CMEDIA CM120 0x5000 CM120 Card Reader umass.c: { USB_VENDOR_CMEDIA, USB_PRODUCT_CMEDIA_CM120, RID_WILDCARD, UMASS_PROTO_ATAPI | UMASS_PROTO_CBI_I, NO_QUIRKS }, After that, the device showed up as: Mar 9 16:42:58 mymachine kernel: umass0: C-Media Inc. USB Card Reader, rev 1.10/1.00, addr 2 Mar 9 16:42:58 mymachine kernel: da0 at umass-sim0 bus 0 target 0 lun 0 Mar 9 16:42:58 mymachine kernel: da0: < > Fixed Direct Access SCSI-0 device Mar 9 16:42:58 mymachine kernel: da0: 1.000MB/s transfers Mar 9 16:42:58 mymachine kernel: da0: 0MB (1213420628 0 byte sectors: 0H 0S/T 0C) But as you can see, da0 is said to have 0MB and when trying to mount it, the system throws a kernel panic (integer divide fault). Is there any other way than try and error to find the right quirks for this device? Maybe someone can interpret the specifications supplied by the vendor. They are available under http://www.cmedia.com.tw/product/CM120.htm I saw that card readers with this chip are widely sold, so I think it would be interesting to have it working. regards, Jost Menke -- DSL Komplett von GMX +++ Supergünstig und stressfrei einsteigen! AKTION "Kein Einrichtungspreis" nutzen: http://www.gmx.net/de/go/dsl