I've got a device based on iMX6 with Yocto OS (Dunfell release with kernel: 5.4-2.1 and u-boot: imx_v2018.03_4.14.78). The system normally is starting boot from NAND (SPL, U-Boot, kernel) and the eMMC memory (roofs). The problem I meet is that the device sometimes (totally not regularly) stops working. The touchscreen goes black, diodes on the ethernet port are turned off and debug tty doesn't work. Moreover, first part of mtdblock0 containing SPL is destroyed/changed (example difference_23.10.24.diff, difference_24.10.10.diff) and after the power supply restart, the system can't boot (No correct SPL). It looks like something with main processor.
I don't have any idea what can affect on it. It happens without direct user interaction with the device. I don't see any service on the system side which can modify nand data itself. We checked supply levels, ESD, and magnetic interference on our custom mainboard and we can't reproduce it. Based on the documentation of NAND memory isn't easy to overwrite/erase nand data without an exact command from system side.
Any ideas?