File content lost after IMX6UL is hard reset.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

File content lost after IMX6UL is hard reset.

648 Views
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.

Labels (1)
Tags (3)
0 Kudos
Reply
1 Reply

564 Views
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 Kudos
Reply