Unable to set new values in NVRAM of WRT160NL

1 post / 0 new
Raghu
Raghu's picture
Unable to set new values in NVRAM of WRT160NL

Hi,

I am using openwrt backfire version on the Atheros based linksys WRT160NL.
For accessing NVRAM on the board, i am using the "nvram" utility configured during "make menuconfig".
The "nvram" utility does allow to view all the variables on NVRAM.
But it doesn't seem to set  new values/variables to NVRAM
since "nvram commit" command fails with the below error:

mtdblock: erase of region [0x0, 0x10000] on "nvram" failed.

I would be grateful if anyone could suggest a means to set new name/values in the NVRAM.

[email protected]:/tmp# nvram set UNITID=7
[email protected]:/tmp# nvram get UNITID
7
[email protected]:/tmp# nvram commit
[email protected]:/tmp# nvram get UNITID
No output