I put my rootfs on the SD card and it's mounted as read only.
However sometimes I found the system misbehaves and when I tried to look at some read only system files like standard c lib, it's totally wrong. Usually after a reset, if I try to read the file again, it will start to look normal.
So I perform a hash test every time system starts up:
tar -cpf /tmp/usr.tar /usr/bin /usr/lib; openssl md5 /tmp/usr.tar
and unfortunately almost every time the result is different. If I try the same "problematic" SD card on PC, it works perfectly fine. Some circuits are less likely to have this issue than others.
This is bothering me a lot, and I don't know what I should look into. DDR test appears normal, and the circuit looks so simple.
Has anybody experience this or know where to look at? THANKS!