Possible eMMC firmware bug or hw issue - recent Seeed Studio BBBs with 6.1.x kernels

Yeap your eMMC is dead…

We probably have two bugs… the PM which we are fixing in mainline… and maybe a quirk: quirks.h « core « mmc « drivers - kernel/git/torvalds/linux.git - Linux kernel source tree

Prior Kingston devices had broken trim, i would not be surprised if MK2704 also had broken trim. Might be best to just disable it… really wish i knew what developers where looking for when they commit those.

As I have devices with: Q2J54A (BeagleBone Green) and M62704 (BeagleBone Green), both get the quirk…

Edit so based on: mmc: core: disable TRIM on Kingston EMMC04G-M627 - kernel/git/torvalds/linux.git - Linux kernel source tree

Trying to use fstrim seems to also throw errors like:
[93010.835112] I/O error, dev loop0, sector 16902 op 0x3:(DISCARD) flags 0x800 phys_seg 1 prio class 2

Disabling TRIM makes the error go away, so lets add a quirk for this eMMC
to disable TRIM.

so i guess we try 'fstrim` on it…

debian@44-am335x-bbb:~$ dmesg | grep MK27
[    5.366743] mmcblk1: mmc1:0001 MK2704 3.53 GiB 
[    5.387059] mmcblk1boot0: mmc1:0001 MK2704 2.00 MiB 
[    5.397639] mmcblk1boot1: mmc1:0001 MK2704 2.00 MiB 
[    5.410098] mmcblk1rpmb: mmc1:0001 MK2704 512 KiB, chardev (241:0)
debian@44-am335x-bbb:~$ sudo fstrim / -v
/: 0 B (0 bytes) trimmed

Regards,

A post was split to a new topic: btrfs_probe: failed to find default subvolume

Just to follow up again, as it’s been… March, April, May, June, and now July… (okay so i was really moving server gear today and noticed this was still running…)

dmesg | grep boot0
[    5.395143] mmcblk1boot0: mmc1:0001 MK2704 2.00 MiB 
*************************************************
eMMC Firmware Version: 
eMMC Life Time Estimation A [EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_A]: 0x01
eMMC Life Time Estimation B [EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_B]: 0x01
eMMC Pre EOL information [EXT_CSD_PRE_EOL_INFO]: 0x01
*************************************************
cat /tmp/eMMC.txt
eMMC name: MK2704
eMMC date: 04/2023
eMMC rev: 0x7
eMMC hwrev: 0x0
eMMC fwrev: 0x0100000000000000
eMMC oemid: 0x0100
eMMC manfid: 0x000070
eMMC life_time: 0x01 0x01
eMMC serial: 0x5992401d

The patch is pretty much in all mainline stable branches now…

and newer BBB’s don’t even have MK2704 anymore they are on the next model too…

Really wish these had a battery backup…

[44-am335x-bbb: 6.1.83-ti-r38.1 (up 6 days, 9 hours, 13 minutes)]

reboot   system boot  6.1.83-ti-r38.1  Wed Aug  7 12:35   still running
reboot   system boot  6.1.83-ti-r38.1  Wed Aug  7 12:35   still running
reboot   system boot  6.1.83-ti-r38.1  Wed Aug  7 12:35   still running
reboot   system boot  6.1.83-ti-r38.1  Sun Mar 16 15:49   still running

So 3 ‘lost’ power events at my house since March 16th…

Regards,

1 Like