Re: SCSI device not created upon a CF card plug in



GEOM should pick up the state change, but the bug may continue to exist
because the CF reader is tagged as a storage device with invalid media
when umass attaches to it on startup; there wasn't a really good way to
actually enumerate the slice table upon insertion because the device
does not send a disconnect/reconnect to the bus when you insert the
card. At the time, the workaround was to tickle the device by attempting
a mount against the whole disk, then the slice table will be enumerated.

Example, CF card reader on boot will be picked up as /dev/da4
You insert card, no state change can be detected because the device
doesn't get reset on the bus.
mount /dev/da0 /mnt <-- will fail for obvious reasons, but now slices
are enumerated
mount /dev/da0s1f /mnt/mycfcard <-- ok

On 2009-07-23 06:24:17PM +0300, Andriy Gapon wrote:
on 23/07/2009 17:14 Kevin Oberman said the following:
If Linux detects media insertion instantly or Windows detects media
insertion instantly (which I can confirm), there is some signal
available, so looking at the Linux driver should provide a clue as to
what to look for and that can be added to the FreeBSD umass driver. It
would be a very desirable addition, but I am not volunteering as I
currently don't use such devices. (And, no one would like the terrible
code I would write, anyway.)

Just a note of caution: human "instant" is different from "computer instant".
If OS driver polls, say, every 0.2 seconds, you won't be able to tell the difference.

--
Andriy Gapon
_______________________________________________
freebsd-stable@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@xxxxxxxxxxx"

--
===========================================================
Peter C. Lai | Bard College at Simon's Rock
Systems Administrator | 84 Alford Rd.
Information Technology Svcs. | Gt. Barrington, MA 01230 USA
peter AT simons-rock.edu | (413) 528-7428
===========================================================

_______________________________________________
freebsd-stable@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Installing card reader
    ... >> The card reader works fine on the other machine. ... Trick XP into using a generic Windows 98SE driver. ...
    (microsoft.public.windowsxp.hardware)
  • [PATCH 8/9] mtd: Add nand driver for ricoh xD/SmartMedia reader
    ... Subject: mtd: Add nand driver for ricoh xD/SmartMedia reader ... This adds a driver for Ricoh xD card reader that has ...
    (Linux-Kernel)
  • Re: Importing Pictures from Canon g9
    ... After trawling through a lot of other posts, I did go out and buy a card ... reader on new years eve, and it worked like a charm. ... driver for this camera as it's meant to "plug and play" in XP. ... The camera is not recognised by windows XP. ...
    (microsoft.public.windowsxp.photos)
  • HCT12 driver verifier test question of smartcard reader driver
    ... When I did WHQL HCT12.0 test under WindowsXP SP2 with my Serial Smart Card ... Reader driver, ... parts of card readers test log. ...
    (microsoft.public.development.device.drivers)
  • Re: SCardTransmit Fails
    ... ' Advanced Card Systems, Ltd for the Smart Card Development Kit sample code. ... ' this reader be ignored. ... ' This implies that the given ... End Sub ...
    (microsoft.public.platformsdk.security)