It seems that using gpiomon
or gpioget
to monitor the MaskRom button messes up a mounted emmc.
Just calling either of those functions causes the following errors to show in dmesg
:
[ 163.408574] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[ 163.408574] mmc0: tried to HW reset card, got error -110
[ 163.408632] mmcblk0: recovery failed!
[ 163.408654] I/O error, dev mmcblk0, sector 5009416 op 0x1:(WRITE) flags 0x0 phys_seg 1 prio class 2
[ 163.408683] EXT4-fs warning (device mmcblk0p1): ext4_end_bio:343: I/O error 10 writing to inode 783 starting block 626177)
[ 163.408936] Buffer I/O error on device mmcblk0p1, logical block 622081
Any suggestions on how to avoid this problem?