Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Jan 2018 23:09:43 +0900
From:      KIRIYAMA Kazuhiko <kiri@kx.openedu.org>
To:        freebsd-current <freebsd-current@freebsd.org>
Cc:        kiri@kx.openedu.org
Subject:   Re: microSDXC can't recognized
Message-ID:  <201801261409.w0QE9hR2085651@kx.openedu.org>
In-Reply-To: <201801260731.w0Q7V842079870@kx.openedu.org>
References:  <201801260731.w0Q7V842079870@kx.openedu.org>

next in thread | previous in thread | raw e-mail | index | archive | help
At Fri, 26 Jan 2018 16:31:08 +0900,
私 wrote:
> 
> 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:
> 
> root@kazu:~ # uname -v
> FreeBSD 9.2-STABLE #5 r259404M: Mon Dec 16 00:12:52 JST 2013     admin@kazu.pis:/usr/obj/usr/src/sys/GENERIC 
> root@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>
> root@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:

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:

root@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 :-)

root@t:~ # mount /dev/mmcsd1p1 /mnt
root@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
root@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.

> 
> root@t:~ # pciconf -lv
> hostb0@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
> vgapci0@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
> none0@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
> none1@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
> xhci0@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
> none2@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
> isab0@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
> root@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801261409.w0QE9hR2085651>