Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#18168 - 20/09/2000 02:35 Saving small amounts of data
Wire
member

Registered: 11/09/2000
Posts: 143
Loc: Jylland, Denmark
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

_________________________
Lars MkII 40gig 090000598

Top
#18169 - 20/09/2000 05:44 Re: Saving small amounts of data [Re: Wire]
altman
carpal tunnel

Registered: 19/05/1999
Posts: 3457
Loc: Palo Alto, CA
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



Top