The officially official Devuan Forum!

You are not logged in.

#1 2020-08-04 20:14:48

Lomax
Member
From: United Kingdom
Registered: 2018-02-06
Posts: 30  

Curious MicroSD storage issues after Beowulf upgrade

I've got a Thinkpad X230 and MicroSD cards are not being detected in the SD Card slot or any of the USB ports. I have tested a handful of different MicroSD cards using different adapters, one MicroSD -> USB and three MicroSD -> SD Card, all with the same result: nothing. I've checked dmesg output as the card is inserted and nothing happens. lsblk shows nothing new when a card is inserted. lsusb (with card inserted via a USB adapter) also draws a blank: 

Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 004: ID 04f2:b2ea Chicony Electronics Co., Ltd Integrated Camera [ThinkPad]
Bus 003 Device 003: ID 0a5c:21e6 Broadcom Corp. BCM20702 Bluetooth 4.0 [ThinkPad]
Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 0bdb:1926 Ericsson Business Mobile Networks BV H5321 gw Mobile Broadband Driver
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

lspcpi shows:

00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation 7 Series/C216 Chipset Family MEI Controller #1 (rev 04)
00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 1 (rev c4)
00:1c.1 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 (rev c4)
00:1c.2 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 3 (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation QM77 Express Chipset LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 7 Series/C216 Chipset Family SMBus Controller (rev 04)
02:00.0 System peripheral: Ricoh Co Ltd MMC/SD Host Controller (rev 07)
03:00.0 Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 34)

Note that the SD Host controller (by Ricoh) is shown. I have read through the dmesg output from boot to inserting a card and found

[    2.394226] sdhci: Secure Digital Host Controller Interface driver
[    2.394227] sdhci: Copyright(c) Pierre Ossman
[    2.443096] sdhci-pci 0000:02:00.0: SDHCI controller found [1180:e822] (rev 7)

But no errors or warnings relating to the PCI bus, the USB ports or the SD Card controller. And no other errors for that matter. MicroSD cards inserted via a USB adapter get warm, as if they were being accessed. Curious and frustrating - I work a lot with Raspberry Pis and often want to image MicroSD cards for back-up purposes, which I am now unable to do. I have tested a couple of "regular" USB sticks and they work fine. I have apt-get dist-upgraded and rebooted. I have apt-get install --reinstall udisks2 based on a tip I found on the web. I have modprobed sdhci with debug_quirks2="0x2" based on another tip. Few hours spent digging and I've hit bedrock - any ideas?

Edit: I should perhaps clarify that this used to work under ASCII - on the same machine with the same MicroSD cards and the same adapters. I did have an issue where I sometimes had to reboot after a suspend to get the Ricoh SD Card port to function, but it always came back.

Last edited by Lomax (2020-08-07 16:26:00)

Offline

#2 2020-08-05 13:24:45

HevyDevy
Member
Registered: 2019-09-06
Posts: 358  

Re: Curious MicroSD storage issues after Beowulf upgrade

Does it show up with the command lsblk --all

and  can we see what is the output of that command?

Mine shows up in dmesg under mmc

sudo dmesg | grep mmc

[    2.535566] mmc0 bounce up to 128 segments into one, max segment size 65536 bytes
[    2.535707] mmc0: SDHCI controller on PCI [0000:16:00.0] using DMA
[    3.644042] sr 4:0:0:0: [sr0] scsi3-mmc drive: 24x/24x writer dvd-ram cd/rw xa/form2 cdda tray
[ 1769.541936] mmc0: card never left busy state
[ 1769.541946] mmc0: error -110 whilst initialising SD card
[ 1769.613882] mmc0: new SDHC card at address aaaa
[ 1769.644661] mmcblk0: mmc0:aaaa SE16G 14.8 GiB 

Last edited by HevyDevy (2020-08-05 13:36:04)

Offline

#3 2020-08-05 19:38:08

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 1,000  
Website

Re: Curious MicroSD storage issues after Beowulf upgrade

You can use dmesg -w to "watch" new messages being printed to the kernel ring buffer and see if anything is added when you insert an SD card.


Black Lives Matter

Offline

#4 2020-08-07 11:47:30

Lomax
Member
From: United Kingdom
Registered: 2018-02-06
Posts: 30  

Re: Curious MicroSD storage issues after Beowulf upgrade

With card inserted in SD Card slot:

$ lsblk --all
NAME           MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda              8:0    0 465.8G  0 disk  
├─sda1           8:1    0 457.9G  0 part  /
├─sda2           8:2    0     1K  0 part  
└─sda5           8:5    0   7.9G  0 part  
  └─cryptswap1 254:0    0   7.9G  0 crypt [SWAP]

and

# dmesg | grep mmc
[    2.443500] mmc0 bounce up to 128 segments into one, max segment size 65536 bytes
[    2.444147] mmc0: SDHCI controller on PCI [0000:02:00.0] using DMA

Offline

#5 2020-08-07 13:46:14

HevyDevy
Member
Registered: 2019-09-06
Posts: 358  

Re: Curious MicroSD storage issues after Beowulf upgrade

Yeah your device is definitely not reading the sd drives, could be buggy hardware or a driver issue maybe?

what about what Hoas mentioned using sudo dmesg -w ? run that command and then insert some micro sd cards and see if there is any output to terminal?

Last edited by HevyDevy (2020-08-07 14:11:49)

Offline

#6 2020-08-07 15:51:51

Lomax
Member
From: United Kingdom
Registered: 2018-02-06
Posts: 30  

Re: Curious MicroSD storage issues after Beowulf upgrade

HevyDevy wrote:

what about what Hoas mentioned using sudo dmesg -w ? run that command and then insert some micro sd cards and see if there is any output to terminal?

Yeah, that was one of the first things I tried - I inserted a card and waited a good while (in case of logging being delayed by caching) but absolutely nothing happens.

Offline

Board footer