monnier
29-08-2004, 19:54
I though the nvram binary was accessing /dev/mtd/4, basically like flashfs, but it turns out that it uses /dev/nvram. Looking at the nvram_linux.c code on both user and kernel side, I do not quite understand what's going on.
E.g. it seems the nvram size is 32KB, but the nvram partition is 64KB.
Where did the factor of 2 go?
Does anybody know if the nvram is used by something else than /usr/lib/libnvram.so? I'm thinking of merging the flashfs and nvram partitions into a 128KB jffs2 partition and reimplement libnvram.so to store its data in a plain old filesystem.
E.g. it seems the nvram size is 32KB, but the nvram partition is 64KB.
Where did the factor of 2 go?
Does anybody know if the nvram is used by something else than /usr/lib/libnvram.so? I'm thinking of merging the flashfs and nvram partitions into a 128KB jffs2 partition and reimplement libnvram.so to store its data in a plain old filesystem.