Mikrotik hex with built-in SD card slot, OWrt 22.03.0
I tried both:
kmod-sdhci-mt7620 - 5.10.138-1
kmod-sdhci (5.10.138-1)
Getting errors:
e2fsck /dev/mmcblk0p1
e2fsck 1.46.5 (30-Dec-2021)
ext2fs_open2: Bad magic number in super-block
e2fsck: Superblock invalid, trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open /dev/mmcblk0p1
The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem. If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
or
e2fsck -b 32768 <device>
Using the same SD-card via USB all works perfectly.
Ah ok, I thought that @portuquesa connected the USB SD card reader to the very same Mikrotik hex device (which got a USB port as well) and in contrast to using the built-in SD card reader, using the external USB SD card reader worked with the same card.
Of course I formatted (and partitioned) SD-card (to ext4). BTW, I did it natively, in the router's slot and under OWrt system.
I plugged USB card reader (actually it's a USB modem with SD-card slot) into router's USB port, formatted and partitioned using the same card(s), and all worked. Daniel is right and totally in picture.
If I then insert those formatted cards into the router's slot, errors occur again.
Actually the MMC controller of the MT7621 SoC has long been supported by the upstream Linux driver while in OpenWrt we kept using the downstream legacy driver from MediaTek. This is because the upstream driver doesn't work on older SoCs like MT7620. You could try to build and use the upstream driver on this MT7621 device, and that will most likely improve the microSD situation.
Daniel, you mean to compile from sources? For whole chipset? If so, highly likely it will break something else and may entail number of incompatibilities. OpenWRT provides endless chain of bugs and fixes without need to add some more ))
Although it would be nice experiment, sometimes you need to stop at some point, and start using device, not fixing it. You heard about musicians that are tuning guitar all time, but never play?..
Another thing is particular driver for the reader, but I'm not sure if it's possible at all...