You are not logged in.
Pages: 1
Hi All,
I am having a problem since updating linux-6.13.2.arch1-1, My MicroSD Card stopped being loaded during boot, causing system to drop to recovery mode.
What I have tried:
Removing the module with modprobe and adding it back, this has a 30-40% chance to cause a kernel panic
Re-scanning using /sys/devices/pci0000\:00/0000\:00\:15.0/rescan(removing and re-scanning), this also stops usb keyboard from functioning
I tried using udevadm trigger during this time, which then also stops input on the device and I need to hard power down the device
I have tried scanning for scsi hosts, I have tried (echo "- - -" > /sys/class/scsi_host/host0/scan)
I also tried (echo 1 > /sys/class/mmc_host/mmc0/device/remove), (echo 1 > /sys/class/pci_bus/0000\:00/rescan)
So far the only error I can find retalting to mmcblk2 is:
/dev/mmcblk2: Operation not permitted
Feb 09 20:18:49 Arch fwupd[5752]: 18:18:49.799 FuEngine failed to add device /sys/devices/pci0000:00/0000:00:15.0/usb1/1-8/1-8:1.0/rtsx_usb_sdmmc.1.auto/mmc_host/mmc2/mmc2:aaaa/block/mmcblk2: failed to subclass open: failed to open /dev/mmcblk2: Operation not permitted
/dev/mmcblk2 is not mounted at all, the only way to get it back is to remove it physically wait 5 - 10 seconds then plug it back in
This is something that needs to get done during boot time as there is a data partition on it that gets mounted automatically with fstab
Using linux-6.13.1.arch1-1 doesn't have this issue, using the latest LTS kernel does have the described issue
is there anything else I can try to help get my MicroSD card loaded by command first, then getting that in boot time
I have found other articles discussing similar topics on the internet however so far none of them have helped
https://docs.redhat.com/en/documentatio … erconnects
https://unix.stackexchange.com/question … reinserted
Last edited by MrSplitsG (2025-02-10 20:30:15)
Offline
what hardware are you using?
Offline
Hi Cryptearth
The Device is a Mecer DP10S+ 2 in one tablet
Spec:
Intel Celeron N4120
4GB Ram
128GB eMMC internal storage
Offline
Does this happen everytime? Also could you give us a log of the kernel panic?
Online
Hi Gromit,
The SD Card not mounting happens every boot, the Kernel Panic doesn't happen as often.
I have restore my system to a earlier snapshot with BTRFS, but have created a testing snapshot for the new Kernel, when I have some time I will get that Kernel Panic log and provide it here.
I should have some time later today
Offline
I don't know if it's the same issue, but I have an issue with the Realtek RTS5129 Card Reader Controller with kernels 6.12.13 and 6.13.2, in which the sdcard is not recognized during boot. I have a nofail option in /etc/fstab for this sdcard, so the system boots normally, but the sdcard is not recognized. I need to unplug and plug the sdcard again after boot in order for it to be recognized. Everything works fine with kernels 6.12.12 and 6.13.1. I tried to find which commit caused it, and it was the commit 235b630eda072d7e7b102ab346d6b8a2c028a772. Reverting it fixes the issue. I've opened an issue upstream at https://bugzilla.kernel.org/show_bug.cgi?id=219781.
Offline
Hi qf, It sounds like the same problem, during boot sdcard isn't recognized and need to unplug and plug it back in.
reverting the kernel alone fixed the problem
Apologies for the delay but I was playing around with applications on the kdump wiki, I am planning on installing the new kernel release to see if the problem still exists.
I have collected the kdump files but also haven't had internet in the past few days
Will upload when I have a chance
Edit:
Shared Link with Gromit
Problem still exists in linux-6.13.3.arch1-1
Last edited by MrSplitsG (2025-02-21 07:25:17)
Offline
I do have the same problem. I didn't realize there was a post about this. My card reader is Super Top microSD card reader (SY-T18). The symptom is that inserted memory card does not show in lsblk after boot or reboot. The card needs to be re-inserted (physically taken out and re-insert into the card reader) in order for it to be shown in lsblk.
Last edited by redshoe (2025-02-22 16:20:46)
Offline
@qf thanks for doing the work here and finding out which commit broke it!
Could you please tests the mainline image vs the one with the mentioned commit reverted?
sudo pacman -U https://pkgbuild.com/\~gromit/linux-bisection-kernels/linux-mainline-6.14rc3-1-x86_64.pkg.tar.zst
This one has the problematic commit (235b630eda072d7e7b102ab346d6b8a2c028a772) reverted:
sudo pacman -U https://pkgbuild.com/\~gromit/linux-bisection-kernels/linux-mainline-6.14rc3-1.1-x86_64.pkg.tar.zst
I'm asking because this would mean that the bug is not already fixed in mainline and should be reported a bit louder upstream (which I can do )
(note that this installs the kernel as linux-mainline, so you need to configure your bootloader to boot it (for example via grub-mkconfig -o ... or by writing the systemd-boot loader entry))
Online
Hi gromit, I've just tested both kernels, and the first one (6.14.0-rc3-1-mainline) still has the issue. The second one (6.14.0-rc3-1.1-mainline-dirty), with the commit reverted, doesn't have the issue.
Offline
Nice, I will send a message to the lists and CC you ..
Edit: This is the link to the message (it might take a moment until it works) https://lore.kernel.org/all/1de87dfa-1e … heusel.eu/
Last edited by gromit (2025-02-22 21:23:59)
Online
I have now sent out a revert as asked by gkh: https://lore.kernel.org/all/20250224-re … @heusel.eu
Online
Thank you everyone for working on this.
I have manged to compile from the older commit and this is working as was said by qf.
In my case i just build with rtsx_usb.c and rtsx_usb.h from old commit, this module is not in tree but works for me.
files can be located here Was compiled on linux-6.13.4.arch1-1
edit:
problem still exists on linux 6.13.5.arch1-1
Last edited by MrSplitsG (2025-03-02 08:37:08)
Offline
Upstream has now accepted my revert: https://lore.kernel.org/all/2025022758- … 356@gregkh
Online
Pages: 1