ASUS WL-500GP v1 routers with 128MB of RAM loose sdram_init value from NVRAM on reboot.
I performed a 128MB RAM upgrade on a Asus router described here: http://wl500g.info/showthread.php?t=12962 The router boots up and reports 64MB of RAM but not the whole 128MB with DD-WRT.
Issuing the NVRAM command sdram_init=0x0011 to enable 128MB of RAM does _not_ lead to brick. And router can utilize whole 128Mb, but until next reboot.
This problem described here:
http://www.dd-wrt.com/phpBB2/viewtopic.php?p=363699
I found the problem location:
Please check the following lines in /dd-wrt/browser/src/router/services/sysinit/sysinit-broadcom.c:
984 case ROUTER_ASUS_WL500G_PRE:
985 nvram_set("sdram_init", "0x0009");
Thus WL-500GP routers forces to use only 64Mb on boot.
I suggest to remove line 985 to leave "sdram_init" intact, so user can adjust it manually.
I have tried to unpack most recent WL-500GP build, then i've patched it and packed it back successfully, so my WL-500GP can utilize 128Mb even after reboot.