News:

Registered a URL and setup a forum as the IPCam stuff really needed its own site vs my irregular blog posts about IPCam hacking at http://www.computersolutions.cn/blog

Author Topic: saving/storing config to flash  (Read 3379 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 - http://wiki.openipcam.com/index.php/Memory_Layout_considerations_and_Hardware_Requirements

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.