NETGEAR KWGR614 Network Router User Manual


 
11. Add the parameter to the NVRAM commit function.
user/boa/src/dni/board.c
12. Clean and rebuild userspace after any changes to board.h.
At the shell prompt, type:
Web Page Integration
The boa web server is used. Custom web pages are integrated at:
user/boa/src/www_WW/
1. Create the main page in the above directory. Use <% nvram_get(“variable
name
”); %> to insert the value of an NVRAM variable.
work> cd user; make clean; cd ..; make
int example_cfg_save(void)
{
cfgmgr_write(CFGMGR_TABID_EXAMPLE, \
(void*)&(pRomeCfgParam->exampleParam),\
sizeof(exampleParam_t));
cfgmgr_task();
return 1;
}
int nvram_commit(void)
{
. . .
cfgmgr_write(CFGMGR_TABID_EXAMPLE, \
(void*)&(pRomeCfgParam->exampleParam), \
sizeof(exampleParam_t));
cfgmgr_task();
return 1;
}