Discussion:
microSDXC can't recognized
(too old to reply)
KIRIYAMA Kazuhiko
2018-01-26 07:31:08 UTC
Permalink
Hi,

Builtin microSDXC card device can't recognized in may
machine[1]. Inserted it but nothing happened. Inserted card
is SanDisk SDSQAR-128G-GNMA[2]. But in may another machine,
it recognized da0:

***@kazu:~ # uname -v
FreeBSD 9.2-STABLE #5 r259404M: Mon Dec 16 00:12:52 JST 2013 ***@kazu.pis:/usr/obj/usr/src/sys/GENERIC
***@kazu:~ # dmesg | tail -10
ugen4.3: <Generic> at usbus4
umass0: <Generic Mass Storage Device, class 0/0, rev 2.00/1.00, addr 3> on usbus4
umass0: SCSI over Bulk-Only; quirks = 0x4001
umass0:1:0:-1: Attached to scbus1
da0 at umass-sim0 bus 0 scbus1 target 0 lun 0
da0: <Multiple Card Reader 1.00> Removable Direct Access SCSI-0 device
da0: Serial Number 058F63666433
da0: 40.000MB/s transfers
da0: 121942MB (249737216 512 byte sectors: 255H 63S/T 15545C)
da0: quirks=0x2<NO_6_BYTE>
***@kazu:~ #

My machine in question is r328126 and it's dmesg is [3]. The
cause is either my SD card adaptor phisically collapsed or
r328126 does not work. BTW I've added pciconf:

***@t:~ # pciconf -lv
***@pci0:0:0:0: class=0x060000 card=0x72708086 chip=0x22808086 rev=0x36 hdr=0x00
vendor = 'Intel Corporation'
device = 'Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series SoC Transaction Register'
class = bridge
subclass = HOST-PCI
***@pci0:0:2:0: class=0x030000 card=0x72708086 chip=0x22b08086 rev=0x36 hdr=0x00
vendor = 'Intel Corporation'
device = 'Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCI Configuration Registers'
class = display
subclass = VGA
***@pci0:0:3:0: class=0x048000 card=0x72708086 chip=0x22b88086 rev=0x36 hdr=0x00
vendor = 'Intel Corporation'
device = 'Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Imaging Unit'
class = multimedia
***@pci0:0:11:0: class=0x118000 card=0x72708086 chip=0x22dc8086 rev=0x36 hdr=0x00
vendor = 'Intel Corporation'
device = 'Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Power Management Controller'
class = dasp
***@pci0:0:20:0: class=0x0c0330 card=0x72708086 chip=0x22b58086 rev=0x36 hdr=0x00
vendor = 'Intel Corporation'
device = 'Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series USB xHCI Controller'
class = serial bus
subclass = USB
***@pci0:0:26:0: class=0x108000 card=0x72708086 chip=0x22988086 rev=0x36 hdr=0x00
vendor = 'Intel Corporation'
device = 'Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Trusted Execution Engine'
class = encrypt/decrypt
***@pci0:0:31:0: class=0x060100 card=0x72708086 chip=0x229c8086 rev=0x36 hdr=0x00
vendor = 'Intel Corporation'
device = 'Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCU'
class = bridge
subclass = PCI-ISA
***@t:~ #

Best regards.

[1] https://www.biccamera.com/bc/item/3716011/
[2] http://kakaku.com/item/K0001002985/
[3] http://ds.truefc.org/~kiri/freebsd/sg116j/dmesg.boot

---
KIRIYAMA Kazuhiko
KIRIYAMA Kazuhiko
2018-01-26 14:09:43 UTC
Permalink
At Fri, 26 Jan 2018 16:31:08 +0900,
Post by KIRIYAMA Kazuhiko
Hi,
Builtin microSDXC card device can't recognized in may
machine[1]. Inserted it but nothing happened. Inserted card
is SanDisk SDSQAR-128G-GNMA[2]. But in may another machine,
ugen4.3: <Generic> at usbus4
umass0: <Generic Mass Storage Device, class 0/0, rev 2.00/1.00, addr 3> on usbus4
umass0: SCSI over Bulk-Only; quirks = 0x4001
umass0:1:0:-1: Attached to scbus1
da0 at umass-sim0 bus 0 scbus1 target 0 lun 0
da0: <Multiple Card Reader 1.00> Removable Direct Access SCSI-0 device
da0: Serial Number 058F63666433
da0: 40.000MB/s transfers
da0: 121942MB (249737216 512 byte sectors: 255H 63S/T 15545C)
da0: quirks=0x2<NO_6_BYTE>
My machine in question is r328126 and it's dmesg is [3]. The
cause is either my SD card adaptor phisically collapsed or
I've rebooted and then recognized by mmcsd1! dmesg shows:

mmcsd1: 128GB <SDHC SC128 8.0 SN 13C1CB3A MFG 12/2017 by 3 SD> at mmc1 50.0MHz/4bit/65535-block
WARNING: WITNESS option enabled, expect reduced performance.

and gpart shows:

***@t:~ # gpart show /dev/mmcsd1
=> 34 249737149 mmcsd1 GPT (119G)
34 249737149 1 freebsd-ufs (119G)

I can mount with /dev/mmcsd1p1 and could be accessed with
UFS :-)

***@t:~ # mount /dev/mmcsd1p1 /mnt
***@t:~ # df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/mmcsd0p2 53G 11G 38G 23% /
devfs 1.0K 1.0K 0B 100% /dev
linprocfs 4.0K 4.0K 0B 100% /compat/linux/proc
tmpfs 6.5G 4.0K 6.5G 0% /compat/linux/dev/shm
/dev/mmcsd1p1 115G 8.0K 106G 0% /mnt
***@t:~ #

I supposed SD card to be a pnp device but this embedded
micro sd port seems to be eMMC device. Actually it is teated
same as internal eMMC device as HDD. That is micro SD card
must not be pull out by umount on running isn't it?

Regards.
Post by KIRIYAMA Kazuhiko
vendor = 'Intel Corporation'
device = 'Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series SoC Transaction Register'
class = bridge
subclass = HOST-PCI
vendor = 'Intel Corporation'
device = 'Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCI Configuration Registers'
class = display
subclass = VGA
vendor = 'Intel Corporation'
device = 'Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Imaging Unit'
class = multimedia
vendor = 'Intel Corporation'
device = 'Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Power Management Controller'
class = dasp
vendor = 'Intel Corporation'
device = 'Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series USB xHCI Controller'
class = serial bus
subclass = USB
vendor = 'Intel Corporation'
device = 'Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Trusted Execution Engine'
class = encrypt/decrypt
vendor = 'Intel Corporation'
device = 'Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCU'
class = bridge
subclass = PCI-ISA
Best regards.
[1] https://www.biccamera.com/bc/item/3716011/
[2] http://kakaku.com/item/K0001002985/
[3] http://ds.truefc.org/~kiri/freebsd/sg116j/dmesg.boot
---
KIRIYAMA Kazuhiko
---
KIRIYAMA Kazuhiko
Ian Lepore
2018-01-26 16:42:07 UTC
Permalink
Post by KIRIYAMA Kazuhiko
At Fri, 26 Jan 2018 16:31:08 +0900,
Post by KIRIYAMA Kazuhiko
Hi,
Builtin microSDXC card device can't recognized in may
machine[1]. Inserted it but nothing happened. Inserted card
is SanDisk SDSQAR-128G-GNMA[2]. But in may another machine,
[...]
mmcsd1: 128GB <SDHC SC128 8.0 SN 13C1CB3A MFG 12/2017 by 3 SD> at
mmc1 50.0MHz/4bit/65535-block
WARNING: WITNESS option enabled, expect reduced performance.
[...]
I supposed SD card to be a pnp device but this embedded
micro sd port seems to be eMMC device. Actually it is teated
same as internal eMMC device as HDD. That is micro SD card
must not be pull out by umount on running isn't it?
You should be able to insert and remove the sdcard whenever you want,
as long as it has no mounted filesystems. Every time you insert or
remove it, you should see a notification on the console and in dmesg.
If that doesn't happen, then somehow the card-detect logic isn't
working right on your hardware.

-- Ian

Continue reading on narkive:
Loading...