Re-organized the forum to more cleanly delineate the development section, as the end user support side appears to have taken a life of its own!

Author Topic: saving/storing config to flash  (Read 6274 times)

February 20, 2012, 07:14:23 pm
Ive got my custom kernel working, but now I need a way to persist camera settings across reboots.
can anyone recommend a good way to store a cam's config to flash & also how to retrieve/load the saved settings from flash? what toolset would need to be compiled into the kernel to achieve this (flash tools or 'mtd-utils'?)

please help, thanks

  • No avatar
  • *****
February 25, 2012, 11:20:38 am
You basically need to setup a 64KB area  (size 0x10000) for flashing.
Check the wiki for my particular setup, and where the default stuff lies.

eg -

Then use the MTD Tools to write to it.

You might want to look at the way that Openwrt does it - they use an nvram tool.
Would be an idea to use theirs for compatibility, they name their area nvram, but otherwise its the same.

Source is available in openwrt site for their bits, and should compile fairly easily.