Saving small amounts of data

Posted by: Wire

Saving small amounts of data - 20/09/2000 02:35

AFAIK the player registers its state in /proc/state, which the kernel saves to flash-memory upon powerdown/powerloss. This is to reduce the number of times the state is written to flash, I presume.

Are there any way to have this done for your own software?

Are there any areas of the flash that can be safely used by a software developer for

A journaling filesystem would be a nice alternative, though


Lars

Posted by: altman

Re: Saving small amounts of data - 20/09/2000 05:44

Currently, 0xa000-0xbfff is an unused page in flash. You can open /dev/empegflash0a000 (or something similar, I can't remember the exact filename at the moment) and write to this.

Open it with O_SYNC as one of the open() options, and do a sync() after closing it to ensure the data has been written back to flash.

Hugo