File content lost after IMX6UL is hard reset.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

File content lost after IMX6UL is hard reset.

1,413 次查看
tuyennguyen
Contributor I

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.

标签 (1)
标记 (3)
0 项奖励
回复
1 回复

1,329 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Carrie

it is necessary to use linux poweroff command so all

current opeartions were completed. Otherwise sudden power off the board

can corrupt data on flashes, if there is ongoing operation with flash.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复