Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Dec 2001 23:09:06 -0500 (EST)
From:      "Lawrence S. Lansing" <lansil@rpi.edu>
To:        stable@freebsd.org
Subject:   Problem with compact flash reader under -stable
Message-ID:  <Pine.A41.3.96.1011230223442.14950A-100000@vcmr-19.rcs.rpi.edu>

next in thread | raw e-mail | index | archive | help
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: <Intel 82371AB/EB (PIIX4) USB controller> port 0x1c20-0x1c3f irq 11
at device 7.2 on pci0
usb0: <Intel 82371AB/EB (PIIX4) USB controller> 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: <OEI-Link Media Reader 3.06> 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:
<OEI-Link Media Reader 3.06>       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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.A41.3.96.1011230223442.14950A-100000>