Joined: 18 Oct 2016 Posts: 96 Location: Copenhagen, Denmark
Posted: Wed Mar 01, 2023 10:07 Post subject: Is my NVRAM dead?
Hello!
It's been a while since I was last in the forum because everything has just worked.
That is, until yesterday.
I upgraded my computers mobo which changed the mac adress of that device. Since I distribute IP adresses based on mac adresses I wanted to update this in the router.
Worked fine but when I tried doing the same in the QoS section (QoS based on mac adress) the firmware responded by deleting all entries in that section.
Well, I'll just restore my settings but in doing so the router reset to default after an apparent successful restore.
Well, I'll just upgrade the firmware and restore my settings.
Firmware did the same thing and I realized I couldn't even update or downgrade to other versions.
I did some testing - ssh'ing with some file transfers and DD-WRT appear to refuse all transfers to/from the device above 32 kb - which means I cannot restore my settings by CLI (and only one setting at a time in GUI).
So, long story short:
Is there a way to "format" the device/NVRAM by other means?
Is the NVRAM on the router dead?
Other ways to test?
Other ways to get my internet back?
All ideas welcome before I RMA the device/buy a replacement...
By the way, my DD-WRT version stated in the signature is not correct - it's more likely in the 47xxx-std. Will update as soon as I get access...
Joined: 16 Nov 2015 Posts: 6445 Location: UK, London, just across the river..
Posted: Wed Mar 01, 2023 11:14 Post subject:
in general to clear the nvram you use via ssh
nvram erase
reboot
router will reboot and start with basic/default settings, if you have a not corrupted back up, you can load it via GUI...just do not restore back up from different builds, rebuild router settings manually, from scratch instead..
if you update to a new build..its highly recommended to erase nvram and rebuild manually
i export my settings page by page to pdf or print to pdf, than its easy to copy paste..
or via txt file than copy paste...i know it could take hours
as i know you, you are running a complex set up and some things could need a new approach..
give us a call if something looks not working or there is a new option that you'd need to know more about it..
the last build contains lot of updated binaries and security fixes...
the last build is 51887 and its still WIP for few things but it's stable for me and my set up, check the SVN tack for the new changes...since your old build, those are a lot... _________________ Atheros
TP-Link WR740Nv1 ---DD-WRT 55630 WAP
TP-Link WR1043NDv2 -DD-WRT 55723 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55779 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55819 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55779 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
Joined: 18 Oct 2016 Posts: 96 Location: Copenhagen, Denmark
Posted: Wed Mar 01, 2023 11:21 Post subject:
Alozaros wrote:
in general to clear the nvram you use via ssh
nvram erase
reboot
router will reboot and start with basic settings if you have a not corrupted back up, you can load it via GUI...just do not restore back up from different builds, rebuild router settings manually from scratch instead..
if you update to a new build..its highly recommended to erase nvram and rebuild manually
i export my settings page by page to pdf or print to pdf than its easy to copy paste..
to via txt file than copy paste...i know it could take an hours
I did the "nvram erase && reboot" and I get the concept of reentering by hand. And like you said it'll take hours and could go wrong by every save.
And what'll happen when I click apply?
At some point point I'd really like to export the settings and be able to restore later on.
I'm just not sure of the state of the NVRAM - that's why I'd like to clean it completely - like going back to stock firmware and start over. Clean sheet.
when you add your settings manually..i mainly click save, as if you click apply it will restart some services..so you decide when to click apply..
when i manual rebuild i do save only and at some point reboot, than continue..than save after i finish with any page, than continue unless reboot is not needed..i prefer not to apply settings on certain pages...but reboot...
for example on the newer builds commands section when you click save to firewall script, it will restart some services related to firewall and it gets sluggish..and you have to wait..those to restart for some time..
there is a new save to usb option, which you use to put some commands and scripts that are executed on/from usb, so those will be triggered once usb is mounted..at the correct time.. _________________ Atheros
TP-Link WR740Nv1 ---DD-WRT 55630 WAP
TP-Link WR1043NDv2 -DD-WRT 55723 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55779 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55819 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55779 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913