From nobody@FreeBSD.org Mon Feb 2 05:20:39 2004 Return-Path: Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6AED416A4CE for ; Mon, 2 Feb 2004 05:20:39 -0800 (PST) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9991643D1F for ; Mon, 2 Feb 2004 05:20:38 -0800 (PST) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.10/8.12.10) with ESMTP id i12DKcdL044374 for ; Mon, 2 Feb 2004 05:20:38 -0800 (PST) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.10/8.12.10/Submit) id i12DKcI7044373; Mon, 2 Feb 2004 05:20:38 -0800 (PST) (envelope-from nobody) Message-Id: <200402021320.i12DKcI7044373@www.freebsd.org> Date: Mon, 2 Feb 2004 05:20:38 -0800 (PST) From: Arne Wörner To: freebsd-gnats-submit@FreeBSD.org Subject: card reader UCR-61S2B is only half-supported X-Send-Pr-Version: www-2.0 >Number: 62257 >Category: usb >Synopsis: [umass] [request] card reader UCR-61S2B is only half-supported >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: suspended >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Feb 02 05:30:18 PST 2004 >Closed-Date: >Last-Modified: Tue Jan 29 10:56:41 UTC 2008 >Originator: Arne Wörner >Release: 5.1 >Organization: >Environment: FreeBSD neo.riddick.homeunix.org 5.1-RELEASE FreeBSD 5.1-RELEASE #40: Mon Feb 2 12:54:52 GMT 2004 aw@neo.riddick.homeunix.org:/usr/src/sys/i386/compile/DAREDEVIL i386 >Description: I am trying to use a USB card reader (ECS UCR 61S2B). It is detected by the OS (/dev/da0.../dev/da1 available) but it cannot read from valid 32MB SmartMediaCards. I already asked the maintainers of umass and multimedia@freebsd.org and got no response... I looked for 61S2B in existing problem reports and found nothing... >usbdevs -v Controller /dev/usb2: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), VIA(0x0000), rev 1.00 port 1 addr 2: full speed, power 100 mA, config 1, USB Storage Device(0x0c55), Generic(0x1019), rev 1.00 port 2 powered >dd if=/dev/da1 of=/dev/null dd: /dev/da1: Device not configured >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: From: Arne "Wörner" To: freebsd-gnats-submit@FreeBSD.org Cc: freebsd-multimedia@freebsd.org Subject: Re: kern/62257: card reader UCR-61S2B is only half-supported Date: Sat, 17 Apr 2004 06:19:33 -0700 (PDT) in re: my PR kern/62257 I have found a web page about the linux kernel: http://kernel.linux.cz/pub/linux/kernel/people/gregkh/usb/2.6/2.6.0-test2/usb-storage-03-2.6.0-test2.patch It says, that I should try to send this string "\xec\x0a\x06\x00$PCCHIPS" to the card-reading-device. Could somebody explain me, how to send that string, please? Thank you. -Arne __________________________________ Do you Yahoo!? Yahoo! Tax Center - File online by April 15th http://taxes.yahoo.com/filing.html From: Arne "Wörner" To: freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: kern/62257: card reader UCR-61S2B is only half-supported Date: Tue, 13 Jul 2004 19:15:28 -0700 (PDT) I have got another informational page about this card reader: http://gelato.uiuc.edu/~cernekee/ucr61s2b/2.5.72.patch -Wörner __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail Adding to audit trail from misfiled PR 75306: Date: Mon, 20 Dec 2004 05:03:44 -0800 (PST) From: Arne "Wörner" I tried this (advice of "Hans Petter Selasky" ) and it did not work: ---------------------------- 1) add the following to umass.c before "Static int umass_match_proto": static void umass_dummy_callback(usbd_xfer_handle xfer, usbd_private_handle priv, usbd_status err) { return; } static void umass_init_ucr(struct umass_softc *sc) { usbd_xfer_handle xfer; xfer = usbd_alloc_xfer(sc->sc_udev); if(!xfer) return; usbd_setup_xfer(xfer, sc->bulkout_pipe, NULL, "\xec\x0a\x06\x00$PCCHIPS", sizeof("\xec\x0a\x06\x00$PCCHIPS")-1, 0, USBD_DEFAULT_TIMEOUT, umass_dummy_callback); usbd_sync_transfer(xfer); usbd_free_xfer(xfer); return; } 2) and where you find the function umass_init_shuttle called, add umass_init_ucr(sc): if (sc->quirks & SHUTTLE_INIT) umass_init_shuttle(sc); umass_init_ucr(sc); 3) I am not sure if the string is right. ------------------------ It's probably the trick beeing applied wrongly. You could try to change: usbd_setup_xfer(xfer, sc->bulkout_pipe, NULL, "\xec\x0a\x06\x00$PCCHIPS", sizeof("\xec\x0a\x06\x00$PCCHIPS")-1, 0, USBD_DEFAULT_TIMEOUT, umass_dummy_callback); into: usbd_setup_xfer(xfer, sc->bulkout_pipe, NULL, "\xec\x0a\x06\x00$PCCHIPS\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", UMASS_BBB_CBW_SIZE, 0, USBD_DEFAULT_TIMEOUT, umass_dummy_callback); though it doesn't work with my cardreader, it might work with yours. ---------------------- -Arne From: Arne "Wörner" To: freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: kern/62257: card reader UCR-61S2B is only half-supported Date: Mon, 20 Dec 2004 08:29:49 -0800 (PST) I tried this (advice of "Hans Petter Selasky" ) and it did not work: ---------------------------- 1) add the following to umass.c before "Static int umass_match_proto": static void umass_dummy_callback(usbd_xfer_handle xfer, usbd_private_handle priv, usbd_status err) { return; } static void umass_init_ucr(struct umass_softc *sc) { usbd_xfer_handle xfer; xfer = usbd_alloc_xfer(sc->sc_udev); if(!xfer) return; usbd_setup_xfer(xfer, sc->bulkout_pipe, NULL, "\xec\x0a\x06\x00$PCCHIPS", sizeof("\xec\x0a\x06\x00$PCCHIPS")-1, 0, USBD_DEFAULT_TIMEOUT, umass_dummy_callback); usbd_sync_transfer(xfer); usbd_free_xfer(xfer); return; } 2) and where you find the function umass_init_shuttle called, add umass_init_ucr(sc): if (sc->quirks & SHUTTLE_INIT) umass_init_shuttle(sc); umass_init_ucr(sc); 3) I am not sure if the string is right. ------------------------ It's probably the trick beeing applied wrongly. You could try to change: usbd_setup_xfer(xfer, sc->bulkout_pipe, NULL, "\xec\x0a\x06\x00$PCCHIPS", sizeof("\xec\x0a\x06\x00$PCCHIPS")-1, 0, USBD_DEFAULT_TIMEOUT, umass_dummy_callback); into: usbd_setup_xfer(xfer, sc->bulkout_pipe, NULL, "\xec\x0a\x06\x00$PCCHIPS\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", UMASS_BBB_CBW_SIZE, 0, USBD_DEFAULT_TIMEOUT, umass_dummy_callback); though it doesn't work with my cardreader, it might work with yours. ---------------------- -Arne __________________________________ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo Responsible-Changed-From-To: freebsd-bugs->freebsd-usb Responsible-Changed-By: linimon Responsible-Changed-When: Thu May 24 21:27:46 UTC 2007 Responsible-Changed-Why: Reclassify. http://www.freebsd.org/cgi/query-pr.cgi?pr=62257 State-Changed-From-To: open->suspended State-Changed-By: linimon State-Changed-When: Tue Jan 29 10:56:31 UTC 2008 State-Changed-Why: Mark suspended awaiting patches. http://www.freebsd.org/cgi/query-pr.cgi?pr=62257 >Unformatted: