You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Been getting the above error randomly for a few months but haven't been able to reliably reproduce until now. Rootfs always gets unmounted when it occurs.
Interestingly this only occurs with a 64gb Samsung EVO microSD card. The card passes read-write tests and I haven't had and issues with it in other devices so I don't believe that there is anything wrong with it. I cloned the contents to another cheap 64gb microSD card and that one works perfectly with no errors.
To reproduce
I can reproduce by doing a full system backup with rsync to the same card: rsync -aAXvH --delete --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} / /mnt/p3
After a few seconds the command fails due to MMC errors.
Expected behaviour
No MMC errors and rootfs stays mounted
Actual behaviour
MMC errors immediately followed by rootfs getting unmounted
System
Model: 3 B+
OS: Arch Linux ARM
Firmware: 1f3414729f43ef3b977a910a0d811a759562e1cf (clean) (release)
Kernel: Raspberry Pi Linux rpi 4.14.87-1-ARCH #1 SMP Wed Dec 12 00:59:49 UTC 2018 armv7l GNU/Linux Linux rpi 4.19.13-1-ARCH #1 SMP Wed Jan 9 18:02:38 DST 2019 armv7l GNU/Linux
Issue present with both of these versions
The SD controller was in the middle of writing 192 contiguous sectors close to the end of the card (around the 60GB mark) when it appears to have stalled. The driver waited 10 seconds for the operation to complete before timing out.
I'd be interested in seeing any other crash logs you have, to see if the position on the card is a common factor.
I'm sorry this issue has gone quiet, but I ran out of things to suggest. Your logs do indeed show failures writing to other parts of the card. I'm reluctant to blame a faulty card, but so far this is a one-off report.
I can't believe that any kind of internal maintenance operation by a card would make it unresponsive for 10 seconds - imagine if you were trying to record a video to it.
Are you running with an adequate power supply? Under heavy load, internal voltages can drop without a 2.5A supply on a Pi 3 or 3+, but with a recent image your kernel logs will show under-voltage warnings.
You could try underclocking the system to see if that improves stability. In config.txt add:
@pelwell
I'm using the official 2.5A power supply. Tried underclocking as suggested and it didn't improve the stability, was still getting the same error just as fast.
I have the same issue with a sandisk 16GB card.
Definitely not HW, I moved the card from a Pi 3 Model B to a Pi 2 Model B v1.1 and the issue moved with it.
Also underclocking it to 20MHz as suggested above and using modified command found here ( https://www.jeffgeerling.com/blog/2016/how-overclock-microsd-card-reader-on-raspberry-pi-3 ) does not resolve the issue: sudo bash -c 'printf "dtoverlay=sdhost,overclock_50=20\n" >> /boot/config.txt'
Activity
pelwell commentedon Jan 11, 2019
The SD controller was in the middle of writing 192 contiguous sectors close to the end of the card (around the 60GB mark) when it appears to have stalled. The driver waited 10 seconds for the operation to complete before timing out.
I'd be interested in seeing any other crash logs you have, to see if the position on the card is a common factor.
lategoodbye commentedon Jan 11, 2019
Is possible that in case the controller on the sd card does wear-leveling that the timeout isn't sufficient?
btory commentedon Jan 11, 2019
It's happened many times while writing closer to the start of the card too (e.g. during package upgrades)
btory commentedon Jan 12, 2019
Additional logs:
https://pastebin.com/raw/7nUxQjKX
https://pastebin.com/raw/Gb3uBiNw
https://pastebin.com/raw/CksAxTJJ
pelwell commentedon Jan 17, 2019
I'm sorry this issue has gone quiet, but I ran out of things to suggest. Your logs do indeed show failures writing to other parts of the card. I'm reluctant to blame a faulty card, but so far this is a one-off report.
I can't believe that any kind of internal maintenance operation by a card would make it unresponsive for 10 seconds - imagine if you were trying to record a video to it.
Are you running with an adequate power supply? Under heavy load, internal voltages can drop without a 2.5A supply on a Pi 3 or 3+, but with a recent image your kernel logs will show under-voltage warnings.
You could try underclocking the system to see if that improves stability. In config.txt add:
lategoodbye commentedon Jan 17, 2019
@btory Is it possible to simplify this scenario to something like this:
sudo dd if=/dev/mmcblk0 of=/dev/null bs=1Mbtory commentedon Jan 20, 2019
@pelwell
I'm using the official 2.5A power supply. Tried underclocking as suggested and it didn't improve the stability, was still getting the same error just as fast.
@lategoodbye
Unfortunately not. That command causes the following output though:
https://pastebin.com/raw/98yjmqT7
Similar output when using the cheap card which doesn't suffer from the timeout error:
https://pastebin.com/raw/wuxRy3qi
Similar output again when writing to the Samsung card with
dd if=/dev/zero of=~/test bs=1Mhttps://pastebin.com/raw/164q86YG
btory commentedon Jan 20, 2019
Tried increasing the timeout (10 -> 30 seconds) and it still times out.
lategoodbye commentedon Jan 20, 2019
Thanks for testing.
I don't think this is a power issue. According to the dump this seems to be related to #2810
Could you please try to pass "brcm,force-pio" to the sdhost overlay if this have any influence to the rsync or the dd scenario?
btory commentedon Jan 21, 2019
No difference with
dtoverlay=sdhost,brcm,force-pio:rsync - https://pastebin.com/raw/Dsm2gdKi
dd - https://pastebin.com/raw/VdidhMAY
pelwell commentedon Jan 21, 2019
Try with the
force_pioparameter:which will result in the
brcm,force-pioproperty being added.btory commentedon Jan 21, 2019
dtoverlay=sdhost,force_piofixed the warnings in the dd scenario but did nothing for rsynclategoodbye commentedon Jan 22, 2019
Yesterday i was able to produce a "Timeout waiting for hardware interrupt" with the dd scenario within a few seconds.
Test setup: Raspberry Pi 3 B+, linux-next, Aarch64 defconfig, Samsung EVO+ 32 GB
btory commentedon Jan 25, 2019
Tested rsync scenario with underclocked SD and at 20MHz and lower the timeouts do not occur at all. Tested a bunch of times to be sure.
JamesH65 commentedon Sep 19, 2019
@btory Does this workaround for an apparently similar issue help at all?
#2810 (comment)
Blindfreddy commentedon Oct 21, 2019
I have the same issue with a sandisk 16GB card.
Definitely not HW, I moved the card from a Pi 3 Model B to a Pi 2 Model B v1.1 and the issue moved with it.
Also underclocking it to 20MHz as suggested above and using modified command found here ( https://www.jeffgeerling.com/blog/2016/how-overclock-microsd-card-reader-on-raspberry-pi-3 ) does not resolve the issue: sudo bash -c 'printf "dtoverlay=sdhost,overclock_50=20\n" >> /boot/config.txt'