Part Number: AM3352
Tool/software: Linux
I have an embedded system with a battery backup for the RAM chip. The battery also allows time for the Linux to gracefully shutdown. After Linux shuts down, the /RESET signal is activated for the MCU and other ICs on the board.
The data I am writing to RAM goes in the /tmp folder. When Linux shuts down and then eventually boots up again, I lose access to the RAM.
In the graceful shutdown process, is it possible to save the mounting location (memory location) of the /tmp directory to non-volatile memory, so that when Linux boots up again it can remount at the same location in memory and allow me to access the preserved RAM accurately? If so, how can this be done?
Also, when the Linux kernal shutdown, does it clear the RAM or does it just unmount /tmp?
Thanks!