Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Sep 2020 13:58:39 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Luciano Mannucci <luciano@vespaperitivo.it>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Laptop SD memory reader
Message-ID:  <20200903135839.3fa9712e.freebsd@edvax.de>
In-Reply-To: <4BhzMQ037Xz1ftWd@baobab.bilink.it>
References:  <4BhzMQ037Xz1ftWd@baobab.bilink.it>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 3 Sep 2020 13:37:35 +0200, Luciano Mannucci wrote:
> I have a Toshiba Satellite laptop happily running freeBSD 12.1 RELEASE
> with an SD memory slot. If I insert an SD memory chip in it, nothing
> seems to happen.

That is to be expected.



> Do I have any chance to make it work?

Probably yes. There is a procedure for that, even though it is
a little inconvenient. :-)



> I think that the relevant part of my pciconf -lv may be:
> 
> sdhci_pci0@pci0:0:20:7:	class=0x080501 card=0xf9251179 chip=0x78131022 rev=0x01 hdr=0x00
>     vendor     = 'Advanced Micro Devices, Inc. [AMD]'
>     device     = 'FCH SD Flash Controller'
>     class      = base peripheral
>     subclass   = SD host controller
> 
> Is there a device node associated with that?

Yes, it's usually a "da" device, like /dev/da0.

Check the output of "dmesg | grep ^da" as well as of
"camcontrol devlist".

For most card readers to work as intended, the medium needs
to be "re-tasted":

	# true > /dev/da0

Now it can be mounted, as the partitions it contains will
appear as device entries that can be mounted. Example:

	# ls /dev/da*
	/dev/da0

	# true > /dev/da0

	# ls /dev/da*
	/dev/da0
	/dev/da0s1

	# mount -t msdosfs -o ro /dev/da0s1 /mnt
	...
	# umount /mnt

This will also work with automounters, in case you're using
one of those. The "re-taste" command needs to be repeated
if the card is changed.






-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



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