Data loss issue (and solution) for MTK uSD driver

Rosen Penev rosenp at gmail.com
Sat Apr 3 01:14:33 BST 2021


On Fri, Apr 2, 2021 at 5:12 PM Rosen Penev <rosenp at gmail.com> wrote:
>
> On Fri, Apr 2, 2021 at 4:22 PM Enrico Mioso <mrkiko.rs at gmail.com> wrote:
> >
> > Hello all!!
> >
> > I experienced an issue that could cause data loss on a uSD card when used in some ramips MT7621 devices, like the Zbtlink ZBT-WG3526 (32M).
> > I fixed it by following the nice solution pointed our here:
> > https://forum.openwrt.org/t/a-lot-of-errors-with-sd-card-reader-mikrotik-rbm33g/36760

https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/drivers/staging/mt7621-dts?h=next-20210401&id=cf8e49ae200baa05b8536e99fbee37faf9c2cebb
shows it at 48 not 50.

> >
> > I would like to say thanks to the author.
> >
> > Is there something we can do to fix this in a general way?
> The MMC driver used in OpenWrt is not the upstream one. I've been
> pushing to switch to the latter but some devices have pinctrl issues
> it seems.
> > The issue is important enough, given the fact that just mounting, creating a folder and umounting the device is enough to get e2fsck screaming at you! :)
> > The same card seems to work fine on a GB-PC1. I am experiencing this issue with OpenWRt snapshot (commit ec6293febc244d187e71a6e54f44920be679cde4), running 5.4 kernel.
> >
> > I seen the FS get corrupted several times. BTW, has this the potential to damage the card itself?
> No.
> >
> > Thanks!!
> >
> > Enrico
> >
> >
> > _______________________________________________
> > openwrt-devel mailing list
> > openwrt-devel at lists.openwrt.org
> > https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list