You are not logged in.

#1 2019-10-09 10:43:49

LiteracyFanatic
Member
Registered: 2019-10-09
Posts: 4

[SOLVED] Trouble mounting microSD card

I'm running Arch on a 15" HP Spectre X360 laptop. I'm trying to mount a Samsung EVO 32 GB microSD card (the slot is for regular SD cards so I'm using the included microSD to SD adapter). I've installed udisks2 and started the corresponding udisks2.service. The wiki indicates that the card should end up mounting under /run/media/user/, but this doesn't happen. It does not show up in the output of lsblk, so I can't manually mount it either. I've tried using udiskie and the bash script from the wiki, but those didn't do anything either. udev and dmesg both seem to notice the card when I insert it. Also, I know that the card itself is fine since it works with Windows and my Raspberry Pi. The output of relevant commands is listed below.

$ uname -r
5.3.5-arch1-1-ARCH

$ udevadm monitor
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

KERNEL\[108981.274310\] add      /devices/pci0000:00/0000:00:1c.4/0000:6d:00.0/rtsx\_pci\_sdmmc.0/mmc\_host/mmc0/mmc0:0001 (mmc)
UDEV  \[108981.277728\] add      /devices/pci0000:00/0000:00:1c.4/0000:6d:00.0/rtsx\_pci\_sdmmc.0/mmc\_host/mmc0/mmc0:0001 (mmc)

$ dmesg
[111655.664046] mmc0: cannot verify signal voltage switch
[111655.781748] mmc0: new ultra high speed SDR104 SDHC card at address 0001

$ lsmod | grep sd
rtsx_pci_sdmmc         32768  0
mmc_core              184320  1 rtsx_pci_sdmmc
rtsx_pci               81920  2 rtsx_pci_sdmmc,rtsx_pci_ms

Any suggestions on how to troubleshoot this would be greatly appreciated.

Last edited by LiteracyFanatic (2019-10-09 15:03:37)

Offline

#2 2019-10-09 12:47:48

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [SOLVED] Trouble mounting microSD card

Some possible causes :

- SD reader lacks a driver
lspci -k can help to determine this, please post it
Have you been able to access other things with this reader ?

- adapter can't handle this typo of Micro SD card
What adapter/reader did you use on windows & RPi ?
Can you try on archlinux with the same adapter ?





* there may be more


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2019-10-09 13:09:38

LiteracyFanatic
Member
Registered: 2019-10-09
Posts: 4

Re: [SOLVED] Trouble mounting microSD card

I haven't tried the reader on my laptop with any other SD cards, since this is the only one I have on had at the moment. I used the same adapter in all three cases. The adapter is the one which came with the microSD card. The card and adapter can be seen here.

$ lspci -k
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers (rev 05)
	Subsystem: Hewlett-Packard Company Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers
	Kernel driver in use: skl_uncore
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16) (rev 05)
	Kernel driver in use: pcieport
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 630 (rev 04)
	DeviceName:  Onboard IGD
	Subsystem: Hewlett-Packard Company HD Graphics 630
	Kernel driver in use: i915
	Kernel modules: i915
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 05)
	Subsystem: Hewlett-Packard Company Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem
	Kernel driver in use: proc_thermal
	Kernel modules: processor_thermal_device
00:13.0 Non-VGA unclassified device: Intel Corporation 100 Series/C230 Series Chipset Family Integrated Sensor Hub (rev 31)
	Subsystem: Hewlett-Packard Company 100 Series/C230 Series Chipset Family Integrated Sensor Hub
	Kernel driver in use: intel_ish_ipc
	Kernel modules: intel_ish_ipc
00:14.0 USB controller: Intel Corporation 100 Series/C230 Series Chipset Family USB 3.0 xHCI Controller (rev 31)
	Subsystem: Hewlett-Packard Company 100 Series/C230 Series Chipset Family USB 3.0 xHCI Controller
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci
00:14.2 Signal processing controller: Intel Corporation 100 Series/C230 Series Chipset Family Thermal Subsystem (rev 31)
	Subsystem: Hewlett-Packard Company 100 Series/C230 Series Chipset Family Thermal Subsystem
	Kernel driver in use: intel_pch_thermal
	Kernel modules: intel_pch_thermal
00:15.0 Signal processing controller: Intel Corporation 100 Series/C230 Series Chipset Family Serial IO I2C Controller #0 (rev 31)
	Subsystem: Hewlett-Packard Company 100 Series/C230 Series Chipset Family Serial IO I2C Controller
	Kernel driver in use: intel-lpss
	Kernel modules: intel_lpss_pci
00:16.0 Communication controller: Intel Corporation 100 Series/C230 Series Chipset Family MEI Controller #1 (rev 31)
	Subsystem: Hewlett-Packard Company 100 Series/C230 Series Chipset Family MEI Controller
	Kernel driver in use: mei_me
	Kernel modules: mei_me
00:17.0 SATA controller: Intel Corporation HM170/QM170 Chipset SATA Controller [AHCI Mode] (rev 31)
	Subsystem: Hewlett-Packard Company HM170/QM170 Chipset SATA Controller [AHCI Mode]
	Kernel driver in use: ahci
	Kernel modules: ahci
00:1c.0 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #1 (rev f1)
	Kernel driver in use: pcieport
00:1c.4 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #5 (rev f1)
	Kernel driver in use: pcieport
00:1c.5 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #6 (rev f1)
	Kernel driver in use: pcieport
00:1d.0 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #9 (rev f1)
	Kernel driver in use: pcieport
00:1e.0 Signal processing controller: Intel Corporation 100 Series/C230 Series Chipset Family Serial IO UART #0 (rev 31)
	Subsystem: Hewlett-Packard Company 100 Series/C230 Series Chipset Family Serial IO UART
	Kernel driver in use: intel-lpss
	Kernel modules: intel_lpss_pci
00:1e.2 Signal processing controller: Intel Corporation 100 Series/C230 Series Chipset Family Serial IO GSPI #0 (rev 31)
	Subsystem: Hewlett-Packard Company 100 Series/C230 Series Chipset Family Serial IO GSPI
	Kernel driver in use: intel-lpss
	Kernel modules: intel_lpss_pci
00:1f.0 ISA bridge: Intel Corporation HM175 Chipset LPC/eSPI Controller (rev 31)
	Subsystem: Hewlett-Packard Company HM175 Chipset LPC/eSPI Controller
00:1f.2 Memory controller: Intel Corporation 100 Series/C230 Series Chipset Family Power Management Controller (rev 31)
	Subsystem: Hewlett-Packard Company 100 Series/C230 Series Chipset Family Power Management Controller
00:1f.3 Audio device: Intel Corporation CM238 HD Audio Controller (rev 31)
	Subsystem: Hewlett-Packard Company CM238 HD Audio Controller
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
00:1f.4 SMBus: Intel Corporation 100 Series/C230 Series Chipset Family SMBus (rev 31)
	Subsystem: Hewlett-Packard Company 100 Series/C230 Series Chipset Family SMBus
	Kernel driver in use: i801_smbus
	Kernel modules: i2c_i801
01:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Polaris 22 XL [Radeon RX Vega M GL] (rev c0)
	Subsystem: Hewlett-Packard Company Polaris 22 XL [Radeon RX Vega M GL]
	Kernel driver in use: amdgpu
	Kernel modules: amdgpu
6d:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS525A PCI Express Card Reader (rev 01)
	DeviceName: Realtek PCIE CardReader
	Subsystem: Hewlett-Packard Company RTS525A PCI Express Card Reader
	Kernel driver in use: rtsx_pci
	Kernel modules: rtsx_pci
6e:00.0 Network controller: Intel Corporation Wireless 8265 / 8275 (rev 78)
	DeviceName: Intel WLAN 8265 WindstormPeak ac 2x2 + BT 4.1 LE PCIe+USB NGFF 2230
	Subsystem: Intel Corporation Wireless 8265 / 8275
	Kernel driver in use: iwlwifi
	Kernel modules: iwlwifi
6f:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983
	Subsystem: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983
	Kernel driver in use: nvme

Offline

#4 2019-10-09 13:53:23

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [SOLVED] Trouble mounting microSD card

Looks like it's not the MicroSD card or adapter, but the reader that's the problem.

6d:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS525A PCI Express Card Reader (rev 01)
	DeviceName: Realtek PCIE CardReader
	Subsystem: Hewlett-Packard Company RTS525A PCI Express Card Reader
	Kernel driver in use: rtsx_pci
	Kernel modules: rtsx_pci

https://forum.manjaro.org/t/laptop-not- … ader/54800
https://forums.linuxmint.com/viewtopic.php?t=221583

It seems some realtek card readers don't work very well with the rtsx_pci driver.
AUR rts_bpp-dkms-git might help, though it appears to be outdated.

Last edited by Lone_Wolf (2019-10-09 13:53:38)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#5 2019-10-09 14:27:37

LiteracyFanatic
Member
Registered: 2019-10-09
Posts: 4

Re: [SOLVED] Trouble mounting microSD card

After installing the AUR package you linked to I can now succesfully mount the SD card. Thank you very much! Although it seems to be working alright, there were some error messages during the install.  It looks like package has an optional dependency on linux-headers. I'd assume installing that alongside the package would fix the errors. The reason for the optional dependency is listed as linux-headers: build modules against the Arch kernel. I am unclear as to what that means. What difference does it make to my system wheter I have the headers installed or not?

Creating symlink /var/lib/dkms/rts_bpp/10/source ->
                 /usr/src/rts_bpp-10

DKMS: add completed.
Error! echo
Your kernel headers for kernel 5.3.5-arch1-1-ARCH cannot be found at
/usr/lib/modules/5.3.5-arch1-1-ARCH/build or /usr/lib/modules/5.3.5-arch1-1-ARCH/source.
Error! echo
Your kernel headers for kernel 5.3.5-arch1-1-ARCH cannot be found at
/usr/lib/modules/5.3.5-arch1-1-ARCH/build or /usr/lib/modules/5.3.5-arch1-1-ARCH/source.
:: Running post-transaction hooks...
(1/3) Reloading device manager configuration...
(2/3) Arming ConditionNeedsUpdate...
(3/3) Install DKMS modules
==> Unable to install module rts_bpp/10 for kernel *: Missing kernel headers.

Offline

#6 2019-10-10 07:30:57

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [SOLVED] Trouble mounting microSD card

https://wiki.archlinux.org/index.php/Dy … le_Support

Dkms needs the headers for installed kernels to be able to build succesfully for that kernel.
If you have linux-lts , you need linux-lts-headers
for linux-zen it's linux-zen-headers

Since you're using a dkms package with stock linux kernel , you should install linux-headers .
Without them, atleast one of the rts_bpp modules isn't build.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#7 2019-10-10 08:57:54

LiteracyFanatic
Member
Registered: 2019-10-09
Posts: 4

Re: [SOLVED] Trouble mounting microSD card

That makes sense. I was a bit confused about it being an optional dependency. I guess that's an attempt to express OR logic for dependencies. Thanks again!

Offline

#8 2019-12-23 09:52:31

thePanz
Member
Registered: 2017-05-08
Posts: 9

Re: [SOLVED] Trouble mounting microSD card

I am trying to use same AUR, but I get the following error:


$ cat  /var/lib/dkms/rts_bpp/10/build/make.log
DKMS make.log for rts_bpp-10 for kernel 5.4.6-arch1-1 (x86_64)
Mon Dec 23 10:23:26 CET 2019
cp -f ./define.release ./define.h
make -C /lib/modules/5.4.6-arch1-1/build/ SUBDIRS=/var/lib/dkms/rts_bpp/10/build modules
make[1]: Entering directory '/usr/lib/modules/5.4.6-arch1-1/build'
scripts/Makefile.build:42: arch/x86/entry/syscalls/Makefile: No such file or directory
make[2]: *** No rule to make target 'arch/x86/entry/syscalls/Makefile'.  Stop.
make[1]: *** [arch/x86/Makefile:238: archheaders] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/usr/lib/modules/5.4.6-arch1-1/build'
make: *** [Makefile:38: default] Error 2

Offline

#9 2019-12-24 11:33:01

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [SOLVED] Trouble mounting microSD card

You do have linux-headers installed ?

Did you try with the newer code mentioned in  https://aur.archlinux.org/packages/rts_ … ent-703132 ?

You probably should start a new thread and ask moderators to split these posts off to the new thread.

Last edited by Lone_Wolf (2019-12-24 11:33:50)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB