Vwaju wrote:Thank you for responding, mazilo.
What I meant was: What *hardware* is used for storage of the file system?
Vwaju
New York City
OpenWRT uses a read-only squashfs filesystem for the rootfs and then uses a program called mini_fo to overlay a read/write JFFS2 partition to store changes and modifications.
A standard embedded linux setup might have a partition called "nvram." OpenWRT has "rootfs" and "rootfs_data" the first being squashfs and the latter being JFFS2.
System configuration is done via a utility called UCI. NVRAM for instance has one "config" file that is setup:
key=value
key=value
key=value
and this is written to a partition.
UCI's config files are stored in /etc/config/ and have a different syntax. If any modifications are made to these files, or any file on the filesystem for that matter, the "dirty" copy is stored on JFFS2 partition.
I hope this explanation makes sense. It's a quite different approach than the standard nvram setup. Though the standard nvram setup is outdated and not very flexible.
Edit: I re-read your question. Everything is just stored on the flash chip, on different partitions. Typcially a router with an "nvram" setup just had a partition on the flash chip called "nvram" ... not some special piece of hardware made specifically for storing settings.
(Last edited by aport on 3 Nov 2009, 22:29)