AnsweredAssumed Answered

File content lost after IMX6UL is hard reset.

Question asked by Carrie Nguyen on Mar 30, 2018
Latest reply on Apr 2, 2018 by igorpadykov

Hello  NXP experts,

I develop a custom board booted from NAND using IMX6UL. After kernel are booted. I create a file in rootfs


mkdir /usr/data

echo todayispresent > abc.txt


After that I power off the board. When I power it on again, the file is still there in /usr/data/abc.txt. However the content "todayispresent" is not there. If after the echo command, I use cat to view the file content and then power off the board. When it is powered on again, the content is still there.


I don't know what is the reason and how to resolve it. It seems like the content is not automatically flushed to NAND. Would you mind giving me some explanation and solution?


Thank you very much.