From owner-freebsd-stable Sun Dec 30 20: 9:11 2001 Delivered-To: freebsd-stable@freebsd.org Received: from mail.rpi.edu (mail.rpi.edu [128.113.22.40]) by hub.freebsd.org (Postfix) with ESMTP id D8CBE37B422 for ; Sun, 30 Dec 2001 20:09:07 -0800 (PST) Received: from vcmr-19.rcs.rpi.edu (vcmr-19.rcs.rpi.edu [128.113.113.12]) by mail.rpi.edu (8.11.3/8.11.3) with ESMTP id fBV497324526 for ; Sun, 30 Dec 2001 23:09:07 -0500 Received: from localhost (lansil@localhost) by vcmr-19.rcs.rpi.edu (8.8.5/8.8.6) with SMTP id XAA31168 for ; Sun, 30 Dec 2001 23:09:06 -0500 X-Authentication-Warning: vcmr-19.rcs.rpi.edu: lansil owned process doing -bs Date: Sun, 30 Dec 2001 23:09:06 -0500 (EST) From: "Lawrence S. Lansing" X-Sender: lansil@vcmr-19.rcs.rpi.edu Reply-To: "Lawrence S. Lansing" To: stable@freebsd.org Subject: Problem with compact flash reader under -stable Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: MIMEDefang 2.1 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, all. I received a nice digital camera for "non-denominational give-people-presents day", along with a USB compact flash reader. I took some pictures, and now I'm having some trouble getting FreeBSD to read the (loaded and formatted) flash card. Windows has no problems using the reader to read this card. The camera is a Kodak DC5000. The flash card reader is a SimpleTech FlashLink UCF-100. The flash card is a 128MB SimpleTech card. My computer is an IBM Thinkpad T20, model 2647-RP2. The card reader is hooked directly to the laptop--no hubs in the middle. I am fairly certain that I have all the necessary scsi/umass/etc support in the kernel. I'm using a -stable build from December 27th. Here's my dmesg output (booting with card and reader already hooked up) trimmed for brevity: FreeBSD 4.5-PRERELEASE #0: Thu Dec 27 00:28:53 EST 2001 uhci0: port 0x1c20-0x1c3f irq 11 at device 7.2 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered umass0: DataFab Systems Inc. USB CF , rev 1.10/3.06, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-0 device da0: 650KB/s transfers da0: 122MB (250368 512 byte sectors: 64H 32S/T 122C) usbdevs yields: addr 1: UHCI root hub, Intel addr 2: USB CF , DataFab Systems Inc. camcontrol devlist -v yields: scbus0 on umass-sim0 bus 0: at scbus0 target 0 lun 0 (da0,pass0) scbus-1 on xpt0 bus 0: < > at scbus-1 target -1 lun -1 (xpt0) All of this output convinces me that FreeBSD can talk to the reader, and knows at least a little bit about it. I'm certain that da0 is the right device, since it's the only "scsi device" on my system. Doing any sort of mount ("mount -t msdos /dev/${DEV} /mnt", where DEV is in the set { da0, da0c, rda0, rda0c, da0s1, da0s1c, rda0s1, rda0s1c }) results in an error of: "msdos: /dev/${DEV}: Input/output error" along with a syslog message of: "/kernel: da0: reading primary partition table: error reading fsbn 0" Running "dd if=/dev/${DEV}" results in an error of: "dd: /dev/${DEV}: Input/output error" along with the same syslog message: "da0: reading primary partition table: error reading fsbn 0" Performing the mount or dd operations on da0 results in an *extremely* brief blink of the LED on on flash card reader. Something is obviously getting to the reader, though. I'm open to any suggestions, and I will happily file a PR, if necessary. -Larry Lansing RPI class of 2003 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message