microSD card in FreeBSD 8-CURRENT and 9-CURRENT
Matthias Apitz
guru at unixarea.de
Sun Feb 6 09:12:32 UTC 2011
El día Tuesday, January 11, 2011 a las 09:54:51AM +0100, Matthias Apitz escribió:
>
> Hello,
>
> Inserting a microSD card (with an adapter) into my Dell M4400 laptop
> gives no messages in /var/log/messages, even after kldload'ing mmc.ko
> and mmcsd.ko... What I am missing? The card itself works fine in some
> other Linux laptop. I also checked the BIOS and the slot is enabled.
>
> Thanks
>
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
With more time I did some tests on my netbooks, the Acer D250 which runs
a 9-CURRENT and with the EeePC which still is on 8-CURRENT;
When I insert and remove the microSD card in 9-CURRENT the device
attaches fine and can be mounted:
Feb 6 09:57:33 tinyCurrent kernel: ugen4.3: <Generic> at usbus4 (disconnected)
Feb 6 09:57:33 tinyCurrent kernel: umass0: at uhub4, port 8, addr 3 (disconnected)
Feb 6 09:57:33 tinyCurrent kernel: (da0:umass-sim0:0:0:0): lost device
Feb 6 09:57:33 tinyCurrent kernel: (da0:umass-sim0:0:0:0): removing device entry
Feb 6 09:57:35 tinyCurrent kernel: ugen4.3: <Generic> at usbus4
Feb 6 09:57:35 tinyCurrent kernel: umass0: <Bulk-In, Bulk-Out, Interface> on usbus4
Feb 6 09:57:35 tinyCurrent kernel: umass0: SCSI over Bulk-Only; quirks = 0x0000
Feb 6 09:57:35 tinyCurrent guru: Unknown USB device: vendor 0x0bda product 0x0159 bus uhub4
Feb 6 09:57:36 tinyCurrent kernel: umass0:0:0:-1: Attached to scbus0
Feb 6 09:57:37 tinyCurrent kernel: (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
Feb 6 09:57:37 tinyCurrent kernel: (probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error
Feb 6 09:57:37 tinyCurrent kernel: (probe0:umass-sim0:0:0:0): SCSI status: Check Condition
Feb 6 09:57:37 tinyCurrent kernel: (probe0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:28,0 (Not ready to ready change, medium may have changed)
Feb 6 09:57:37 tinyCurrent kernel: da0 at umass-sim0 bus 0 scbus0 target 0 lun 0
Feb 6 09:57:37 tinyCurrent kernel: da0: <Generic- Multi-Card 1.00> Removable Direct Access SCSI-0 device
Feb 6 09:57:37 tinyCurrent kernel: da0: 40.000MB/s transfers
Feb 6 09:57:37 tinyCurrent kernel: da0: 486MB (996352 512 byte sectors: 64H 32S/T 486C)
Feb 6 09:57:38 tinyCurrent kernel: GEOM: da0: partition 1 does not start on a track boundary.
Feb 6 09:57:38 tinyCurrent kernel: GEOM: da0: partition 1 does not end on a track boundary.
Feb 6 09:57:41 tinyCurrent kernel: ugen4.3: <Generic> at usbus4 (disconnected)
Feb 6 09:57:41 tinyCurrent kernel: umass0: at uhub4, port 8, addr 3 (disconnected)
Feb 6 09:57:41 tinyCurrent kernel: (da0:umass-sim0:0:0:0): lost device
Feb 6 09:57:41 tinyCurrent kernel: (da0:umass-sim0:0:0:0): removing device entry
in 8-CURRENT it is only available when the card is inserted before
booting; then the device is seen and mountable:
Feb 6 09:37:31 tiny kernel: umass0: <ENE UB6225, class 0/0, rev 2.00/1.00, addr 2> on usbus4
Feb 6 09:37:31 tiny kernel: umass0: SCSI over Bulk-Only; quirks = 0x0000
Feb 6 09:37:31 tiny kernel: Root mount waiting for: usbus4
Feb 6 09:37:31 tiny kernel: umass0:0:0:-1: Attached to scbus0
Feb 6 09:37:31 tiny kernel: Trying to mount root from ufs:/dev/ad2s1a
Feb 6 09:37:31 tiny kernel: (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
Feb 6 09:37:31 tiny kernel: (probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
Feb 6 09:37:31 tiny kernel: (probe0:umass-sim0:0:0:0): SCSI Status: Check Condition
Feb 6 09:37:31 tiny kernel: (probe0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0
Feb 6 09:37:31 tiny kernel: (probe0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed
Feb 6 09:37:31 tiny kernel: (probe0:umass-sim0:0:0:0): Retrying Command (per Sense Data)
Feb 6 09:37:31 tiny kernel: da0 at umass-sim0 bus 0 target 0 lun 0
Feb 6 09:37:31 tiny kernel: da0: <USB2.0 CardReader SD0 0100> Removable Direct Access SCSI-0 device
Feb 6 09:37:31 tiny kernel: da0: 40.000MB/s transfers
Feb 6 09:37:31 tiny kernel: da0: 486MB (996352 512 byte sectors: 64H 32S/T 486C)
Feb 6 09:37:31 tiny kernel: GEOM: da0: partition 1 does not start on a track boundary.
Feb 6 09:37:31 tiny kernel: GEOM: da0: partition 1 does not end on a track boundary.
and one can even eject the card, re-insert it and re-mount it again;
when the card is not inserted at boot, it is not detected later on insert:
Feb 6 09:43:26 tiny kernel: umass0: <ENE UB6225, class 0/0, rev 2.00/1.00, addr 2> on usbus4
Feb 6 09:43:26 tiny kernel: umass0: SCSI over Bulk-Only; quirks = 0x0000
Feb 6 09:43:26 tiny kernel: Root mount waiting for: usbus4
Feb 6 09:43:26 tiny kernel: umass0:0:0:-1: Attached to scbus0
Feb 6 09:43:26 tiny kernel: (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
Feb 6 09:43:26 tiny kernel: (probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
Feb 6 09:43:26 tiny kernel: (probe0:umass-sim0:0:0:0): SCSI Status: Check Condition
Feb 6 09:43:26 tiny kernel: (probe0:umass-sim0:0:0:0): NOT READY asc:3a,0
Feb 6 09:43:26 tiny kernel: (probe0:umass-sim0:0:0:0): Medium not present
Feb 6 09:43:26 tiny kernel: (probe0:umass-sim0:0:0:0): Unretryable error
Feb 6 09:43:26 tiny kernel: da0 at umass-sim0 bus 0 target 0 lun 0
Feb 6 09:43:26 tiny kernel: da0: <USB2.0 CardReader SD0 0100> Removable Direct Access SCSI-0 device
Feb 6 09:43:26 tiny kernel: da0: 40.000MB/s transfers
Feb 6 09:43:26 tiny kernel: da0: Attempt to query device size failed: NOT READY, Medium not present
As well a camcontrol(8) does not help. Any ideas?
Thanks
matthias
--
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <guru at unixarea.de> - w http://www.unixarea.de/
More information about the freebsd-usb
mailing list