Ebedded Linux: Recoverable, battery backed-up RAM (/tmp)

I hope this is an appropriate place for this question as it involves the use of the kernel.

I have an embedded system with a battery backup for the RAM chip. The battery also allows for the MCU to gracefully shutdown.

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 /tmp to a file in non-volatile memory so that when Linux boots up again it can line up the memory and allow me to access the preserved RAM accurately?

If so, how can this be done?


Leave a Reply

Your email address will not be published. Required fields are marked *