This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Factory reset with nand in AM335x

 We are using AM335x in our design, and we use nand as rom, our system can perform well. But when we want to realize the factory reset function, we found that there is little information.We just want to wipe data and cache in the factory reset, just use nand erase and nand write to reset the /data and /cache in U-boot.

We know that when we touch the factory reset button in Android,there will have command in /cache/recovery/command, but we can not access the file in U-boot, because we make ubifs in kernel,and there is no filesystem in U-boot.

And then we want to use a flag in nand to determine whether it is a normal start or factory reset,but we can not find any function in kernel to write a Byte in a specified address.

Can anyone give some advice, thx in advance.