File content lost after IMX6UL is hard reset.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

File content lost after IMX6UL is hard reset.

1,433件の閲覧回数
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,349件の閲覧回数
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 件の賞賛
返信