Joined: 17 Jun 2007 Posts: 100 Location: China, Suzhou
Posted: Thu Jul 12, 2007 9:06 Post subject: NVRAM Editor 0.92 Beta released
Hi people,
I had some spare time to build a little NVRAM editor for Windows 9x/XP/Vista to show the contents of the NVRAM backup that you can make via the DD-WRT GUI (Administration->Backup->Backup Button at the bottom). With this little program you can view the NVRAM variable names and their contents. You can also edit the contents and write the changes back, and then restore the NVRAM via the GUI again.
This is a beta version, so be careful. If you don't know what you are doing then you will probably brick your router.
In case you manage to brick your router then apply the 30 seconds reset trick.
For this you need to power down your router, then press the reset button(if it has one), and hold it for 30 seconds while you power on the router. This will reset the NVRAM contents to the default values.
The program was made with Borland Delphi 10. I will release the sources once the program has reached the "Final" status. I have some idea's to improve the program a little, like searching, sorting and change highlighting. I'm not sure if it is allowed to sort the items and then write them back. Is there anybody out there who knows this!?
Your suggestions are welcome. Please let me know if you find this program useful. If not then send you comments to "/dev/null"
Enjoy!
Update 0.91
A) Added XPManifest component like suggested. Does is work!? (I cannot test this)
B) Allowed a little more space around the buttons. I don't have the missing pixel problem. Perhaps it has to do with the font and windows settings. A screenshot would help me solve this efficiently.
Joined: 06 Jun 2006 Posts: 3763 Location: I'm the one on the plate.
Posted: Sun Jul 22, 2007 8:29 Post subject:
Let me see if I can get it working.... Oh, is that pretty girl somebody you know or is it you ? _________________ http://69.175.13.131:8015 Streaming Week-End Disco. Station Ripper V 1.1 will do.
Hi Iron,
I will try to attach a screen shot jpg file to this post. There appears to be gray horizontal lines that appear when I page down to another page...the lines seem to dissapear if the screen if refreshed (moving the window??)
Joined: 17 Jun 2007 Posts: 100 Location: China, Suzhou
Posted: Mon Jul 23, 2007 6:34 Post subject:
Thanks for giving it a spin. I'm aware of this, it is only a visual artifact. I just don't know how to solve it I use custom draws to color the rows. I know how to fix the lines, but I don't know which event I need to hook it up to. I will look into it... _________________ Buffalo WHR-G54S, Generic Broadcom V2.4 Beta 2007-08-15, SD/MMC mod(2 GByte).
Buffalo WHR-HP-G54, Generic Broadcom V2.4 2007-08-15 SD/MMC mod(1 GByte).
Joined: 07 Jun 2006 Posts: 1488 Location: the Netherlands
Posted: Mon Jul 23, 2007 11:54 Post subject:
I see you're using Delphi for your tool
You should use the OnCustomDraw events as far as i know. But I even failed trying to color the items in a TreeView. _________________ Firmware: DD-WRT v24-sp2 (latest available) mega
WRT320N
Joined: 17 Jun 2007 Posts: 100 Location: China, Suzhou
Posted: Tue Jul 24, 2007 12:24 Post subject:
If I use the "OnCustomDraw" then the thing goes quite crazy. It is refreshing too much...
I need an event that fires after the listview was scrolled up or down. Thanks for your input.
I can show you how I color the rows if you are interested... _________________ Buffalo WHR-G54S, Generic Broadcom V2.4 Beta 2007-08-15, SD/MMC mod(2 GByte).
Buffalo WHR-HP-G54, Generic Broadcom V2.4 2007-08-15 SD/MMC mod(1 GByte).
Joined: 07 Jun 2006 Posts: 1488 Location: the Netherlands
Posted: Tue Jul 24, 2007 14:48 Post subject:
Hmm, that would be nice
What if you use the onDraw or onAdvancedDraw events? Using just the onCustomDraw events should be enough to get it to work.
I once used the AdvancedCustomDrawItem to color just one column, the sorted column that is.
Here's the code I used:
Code:
////////////////////////////////////////////////////////////////////////////////
// lv_DVDsAdvancedCustomDrawItem
////////////////////////////////////////////////////////////////////////////////
procedure Tfrm_DoBs.lv_DVDsAdvancedCustomDrawItem(Sender: TCustomListView;
Item: TListItem; State: TCustomDrawState; Stage: TCustomDrawStage;
var DefaultDraw: Boolean);
begin
if ColumnOrder[0] = SortedColumn then
Sender.Canvas.Brush.Color:= $00F7F7F7
else
Sender.Canvas.Brush.Color:= clWhite;
end;
////////////////////////////////////////////////////////////////////////////////
// lv_DVDsAdvancedCustomDrawSubItem
////////////////////////////////////////////////////////////////////////////////
procedure Tfrm_DoBs.lv_DVDsAdvancedCustomDrawSubItem(Sender: TCustomListView;
Item: TListItem; SubItem: Integer; State: TCustomDrawState;
Stage: TCustomDrawStage; var DefaultDraw: Boolean);
begin
if ColumnOrder[SubItem] = SortedColumn then
Sender.Canvas.Brush.Color:= $00F7F7F7
else
Sender.Canvas.Brush.Color:= clWhite;
end;
_________________ Firmware: DD-WRT v24-sp2 (latest available) mega
WRT320N
Joined: 07 Jun 2006 Posts: 1488 Location: the Netherlands
Posted: Wed Aug 01, 2007 10:18 Post subject:
Iron wrote:
If I use the "OnCustomDraw" then the thing goes quite crazy. It is refreshing too much...
I need an event that fires after the listview was scrolled up or down. Thanks for your input.
I can show you how I color the rows if you are interested...
Another thing that just popped up, have you tried setting DoubleBuffered to True? _________________ Firmware: DD-WRT v24-sp2 (latest available) mega
WRT320N
Joined: 17 Jun 2007 Posts: 100 Location: China, Suzhou
Posted: Mon Aug 06, 2007 9:12 Post subject:
itsmorefun wrote:
can you add a delete button to delete blank or useless entry?
thk
I'm doing some tests with this. Implementation is easy, but I'm not sure how the firmware handles it when suddenly some variables that used to be empty are non-existing...
I guess it should be fine, but I just don't know. Deleting empty variables will release some nvram...
Thanks for the feedback on the drawing issues... I will try it soon. _________________ Buffalo WHR-G54S, Generic Broadcom V2.4 Beta 2007-08-15, SD/MMC mod(2 GByte).
Buffalo WHR-HP-G54, Generic Broadcom V2.4 2007-08-15 SD/MMC mod(1 GByte).
Here is a good discussion for this from openwrt. They discuss the nvram and the workings and exploration of the wndr3700 in pretty good detail. Some of it is a little above my current knowledge level, but I think it contains the information that you are looking for.
Here is a good discussion for this from openwrt. They discuss the nvram and the workings and exploration of the wndr3700 in pretty good detail. Some of it is a little above my current knowledge level, but I think it contains the information that you are looking for.
The wndr3700 has been my best router to this point and I am a total noob. Thanks for posting this link I am going to just start my mastering one router instead of just playing around with all of these scraps.