NVRAM wiped, constant crashes -- sort of?

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page 1, 2  Next
Author Message
Minions301
DD-WRT Novice


Joined: 06 May 2017
Posts: 16

PostPosted: Wed Jul 25, 2018 17:16    Post subject: NVRAM wiped, constant crashes -- sort of? Reply with quote
I have a Netgear WNDR3300. I was wanting to flash a different build on it so I did "erase nvram; reboot" from SSH. The old build was the 12548 eko mini build, and the new one is the 21286 standard generic. It wasn't till after that I read this on the Peacock thread:

Quote:
Finally, don't listen to users telling you to do "erase nvram" on a telnet cmd line.
This wipes out the complete nvram area (nvram variables and the nvram header) together with anything else residing in the mtd partition named nvram.


After flashing the new build (successfully), it works *pretty* well. There are just two issues I've found with it:

    1. The MAC addresses reset to 00:00:FF:00:00:00
    2. The router crashes when applying settings in the Web GUI, then reboots and hangs, requiring a manual power cycle.


#1 was annoying for a bit until I learned how to set the hardware/MAC addresses in NVRAM. It's kind of annoying though that I have to add these variable assignments to a startup script. I wonder, is there a way to set the MAC addresses to stay even when I do an NVRAM reset? I've done a 30/30/30 reset plenty of times in the past and the MACs have always stuck.

#2 is more than annoying, it actually interferes with things. I know it's possible that it's the build that's the problem, but before I rule that out, I wonder if running "erase nvram" screwed more stuff up than just the MAC addresses.

I'm sorry I didn't read the entire Peacock thread before flashing (though I have read it in the past).

I hope there's someone that can point me in the right direction.

Thanks.
Sponsor
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14222
Location: Texas, USA

PostPosted: Wed Jul 25, 2018 19:40    Post subject: Reply with quote
https://wiki.dd-wrt.com/wiki/index.php/Netgear_WNDR3300

I'm not sure if the wiki article is completely up to date, but if you have not read through that, then there's a start. Looks like the recommended build is 33679.

ftp://ftp.dd-wrt.com/betas/2017/11-04-2017-r33679/broadcom/dd-wrt.v24_mini_generic.bin

You may be able to get away with the std build, if it's small enough. Older routers like that, erasing nvram can be a bad thing. Hopefully, it didn't affect the bootloader. If you have a way to set up for serial recovery, watching the CFE boot log, etc. might help figure out what's going on. Telnet / ssh and 'cat /var/log/messages' after boot-up may not show what exactly is causing the issues. You *may* have to go back to stock and start over, or worse, but hopefully not. I was trying to search the threads on this device to see if there was known issues, but have not found anything yet.
jwh7
DD-WRT Guru


Joined: 25 Oct 2013
Posts: 2670
Location: Indy

PostPosted: Wed Jul 25, 2018 19:46    Post subject: Re: NVRAM wiped, constant crashes -- sort of? Reply with quote
Minions301 wrote:
I have a Netgear WNDR3300. I was wanting to flash a different build on it so I did "erase nvram; reboot" from SSH. The old build was the 12548 eko mini build, and the new one is the 21286 standard generic. [...]

After flashing the new build (successfully), it works *pretty* well. There are just two issues I've found with it:
    1. The MAC addresses reset to 00:00:FF:00:00:00
    2. The router crashes when applying settings in the Web GUI, then reboots and hangs, requiring a manual power cycle.
#1 was annoying for a bit until I learned how to set the hardware/MAC addresses in NVRAM. It's kind of annoying though that I have to add these variable assignments to a startup script. I wonder, is there a way to set the MAC addresses to stay even when I do an NVRAM reset? I've done a 30/30/30 reset plenty of times in the past and the MACs have always stuck.

#2 is more than annoying, it actually interferes with things. I know it's possible that it's the build that's the problem, but before I rule that out, I wonder if running "erase nvram" screwed more stuff up than just the MAC addresses.
Does the router status page still report properly as a WNDR3300? That would be the other issue that can arise from loss of non-recoverable nvram.

You shouldn't need a startup script to set the nvram. Just a `nvram set {parameter}={value}` for each, then a `nvram commit` to save it over reboots. Does the WNDR3300 thread talk about `erase nvram` usage? Nothing in the wiki. I use it on my WNDR4000 and 4500v2. I take it you never saved an nvram backup (manually w/ `nvram show` or via GUI backup)?

Regarding #2, try 36168 (or 36247 if you don't use a VAP):
https://download1.dd-wrt.com/dd-wrtv2/downloads/betas/2018/06-20-2018-r36168/broadcom/

_________________
# NAT/SFE/CTF: limited speed w/ DD # Repeater issues # DD-WRT info: FAQ, Builds, Types, Modes, Changes, Demo #
OPNsense x64 5050e ITX|DD: DIR-810L, 2*EA6900@1GHz, R6300v1, RT-N66U@663, WNDR4000@533, E1500@353,
WRT54G{Lv1.1,Sv6}@250
|FreshTomato: F7D8302@532|OpenWRT: F9K1119v1, RT-ACRH13, R6220, WNDR3700v4
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14222
Location: Texas, USA

PostPosted: Wed Jul 25, 2018 20:05    Post subject: Reply with quote
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=27684 < - original support request thread, I think. There's a lot of posts to sort through on this device. I didn't find anything regarding nvram wiping, BUT I just noticed the closest partition on OEM firmware is board data....
Minions301
DD-WRT Novice


Joined: 06 May 2017
Posts: 16

PostPosted: Wed Jul 25, 2018 20:15    Post subject: Reply with quote
kernel-panic69 wrote:
I'm not sure if the wiki article is completely up to date, but if you have not read through that, then there's a start. Looks like the recommended build is 33679.


Sweet, I'll try it.

kernel-panic69 wrote:
If you have a way to set up for serial recovery, watching the CFE boot log, etc. might help figure out what's going on. Telnet / ssh and 'cat /var/log/messages' after boot-up may not show what exactly is causing the issues.


I may need some guidance on this. I'll wait and see if the other stuff works first.

kernel-panic69 wrote:
You *may* have to go back to stock and start over, or worse, but hopefully not. I was trying to search the threads on this device to see if there was known issues, but have not found anything yet.


Worst-case scenario, I may need to do this.

jwh7 wrote:
Does the router status page still report properly as a WNDR3300?


Yes, thankfully.

jwh7 wrote:
You shouldn't need a startup script to set the nvram. Just a `nvram set {parameter}={value}` for each, then a `nvram commit` to save it over reboots.


Yeah, I had tried that previously but after a reboot, it never stayed. Kept reverting to the 00:00:FF:00:00:00 address. And yes, I made sure to run `nvram commit`.

jwh7 wrote:
I take it you never saved an nvram backup (manually w/ `nvram show` or via GUI backup)?


I did on the older build (12548). Maybe I could flash that build and then restore the backup, if I can still find it... Yikes.

jwh7 wrote:
Regarding #2, try 36168 (or 36247 if you don't use a VAP):
https://download1.dd-wrt.com/dd-wrtv2/downloads/betas/2018/06-20-2018-r36168/broadcom/


Thanks, I'll try it if 33679 doesn't work.

kernel-panic69 wrote:
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=27684 < - original support request thread, I think. There's a lot of posts to sort through on this device.


Wow, that thread is huge.

kernel-panic69 wrote:
I didn't find anything regarding nvram wiping, BUT I just noticed the closest partition on OEM firmware is board data....


Right. What does that imply? Sorry, bit of a noob here.


By the way, thanks guys for replying and not making me feel like an idiot.
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14222
Location: Texas, USA

PostPosted: Wed Jul 25, 2018 20:27    Post subject: Reply with quote
I'm going to guess that board_data could include things like mac addresses and other hardware-related information like that. That is at least my logic and best semi-educated guess and would seem to be a possibility for the issue. I would re-read thoroughly the peacock and that other thread I linked to see if there is any mention of this kind of issue and whether or not erasing nvram is a bad idea on this device. There are plenty of threads if you search for "WNDR3300" with "Broadcom...." and "DD-WRT" limitations selected in the search function. Lots of reading. Because people don't use the search function, perhaps, or maybe not.
Minions301
DD-WRT Novice


Joined: 06 May 2017
Posts: 16

PostPosted: Thu Jul 26, 2018 4:46    Post subject: Reply with quote
Alright, I flashed back to stock using these instructions and the bin file here:
https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=386471#386471

It worked but didn't fix the MAC address. Now I can't get the chk file to work to get DD-WRT back on. I'm using the file listed on the wiki page.

I followed all the instructions on the Wiki page and I just get "Upgrade failed."
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14222
Location: Texas, USA

PostPosted: Thu Jul 26, 2018 5:30    Post subject: Reply with quote
https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=545351

That thread may help resolve returning to DD-WRT, but the file from the wiki *should* work. The mac address issue seems to lead me to believe there is a larger issue at hand, and worst case scenario is serial recovery or JTAG, but it's not completely bricked.... and I would think the board_data partition would've been restored. Did you do a full reset when you flashed back to stock?
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14222
Location: Texas, USA

PostPosted: Thu Jul 26, 2018 7:16    Post subject: Reply with quote
Also, I'm wondering if what you actually need to do is to grab the stock 1.0.14 file from here and use it to downgrade to it before trying to install initial flash:

https://www.netgear.com/support/product/WNDR3300v1.aspx#download

I seem to recall some routers are finicky on what stock firmware version will work with the initial flash, but I'm drawing at straws since others aren't chiming in....
Minions301
DD-WRT Novice


Joined: 06 May 2017
Posts: 16

PostPosted: Thu Jul 26, 2018 14:07    Post subject: Reply with quote
kernel-panic69 wrote:
https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=545351

That thread may help resolve returning to DD-WRT, but the file from the wiki *should* work. The mac address issue seems to lead me to believe there is a larger issue at hand, and worst case scenario is serial recovery or JTAG, but it's not completely bricked.... and I would think the board_data partition would've been restored. Did you do a full reset when you flashed back to stock?


It looks like the solution on that thread was to flash a different build bin file. My understanding is that I have to use a chk file when I'm on stock firmware; is that correct?

By full reset do you mean 30/30/30? If so, then yes.

kernel-panic69 wrote:
Also, I'm wondering if what you actually need to do is to grab the stock 1.0.14 file from here and use it to downgrade to it before trying to install initial flash


Worth a try for sure. I tried a different stock chk file from Netgear and tried uploading it from the stock web GUI but it still said "upgrade failed". But I will try this one.

kernel-panic69 wrote:
I seem to recall some routers are finicky on what stock firmware version will work with the initial flash, but I'm drawing at straws since others aren't chiming in....


I really appreciate your help. I'll keep making my way through the WNDR3300 thread.
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14222
Location: Texas, USA

PostPosted: Thu Jul 26, 2018 15:25    Post subject: Reply with quote
Yes, I meant to include "using a .chk file and not a .bin file" referencing that other thread. I would still think that the initial flash file from the wiki should work just fine, but here we are. Another option is doing a TFTP flash ( https://wiki.dd-wrt.com/wiki/index.php/Tftp_flash ) or Netgear Recovery Utility ( https://wiki.dd-wrt.com/wiki/index.php/Netgear_WNDR3300#Netgear_Firmware_Recovery_Utility ), but the device isn't bricked completely.... but you may have to treat it as such to get any progress.
Minions301
DD-WRT Novice


Joined: 06 May 2017
Posts: 16

PostPosted: Thu Jul 26, 2018 15:46    Post subject: Reply with quote
kernel-panic69 wrote:
Another option is doing a TFTP flash ( https://wiki.dd-wrt.com/wiki/index.php/Tftp_flash ) or Netgear Recovery Utility ( https://wiki.dd-wrt.com/wiki/index.php/Netgear_WNDR3300#Netgear_Firmware_Recovery_Utility ), but the device isn't bricked completely.... but you may have to treat it as such to get any progress.


Yeah, that's a good point. I think I'll try that if the 1.0.14 firmware doesn't work.
Minions301
DD-WRT Novice


Joined: 06 May 2017
Posts: 16

PostPosted: Fri Jul 27, 2018 2:20    Post subject: Reply with quote
This is frustrating. I'm not sure what do to. The 1.0.14 firmware didn't work. TFTP didn't work either, though I had to kind of guess at how to do it since the only instructions I could find were for if you already have DD-WRT on it. So yeah... Not sure what to do. Also, looks like the Netgear Recovery Utility doesn't exist anymore, couldn't find it anywhere.
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14222
Location: Texas, USA

PostPosted: Fri Jul 27, 2018 14:05    Post subject: Reply with quote
https://kb.netgear.com/19841/Reinstall-the-firmware-on-a-router-without-the-setup-CD-recovery-tool

That's straight off the Netgear site. I tried to find the recovery tool software, too, no luck. You may have to work your way up to the latest Netgear firmware and try each to see if it will take, or, just do the TFTP method. Worst case is you set up to do a serial recovery and recover it as if it were bricked completely and go from there. Kinda wished I had the thing here in front of me to see if I could get it to act right.
Minions301
DD-WRT Novice


Joined: 06 May 2017
Posts: 16

PostPosted: Sun Aug 12, 2018 21:50    Post subject: Reply with quote
I haven't posted in a while so I suppose I should give an update:

I kept trying different things and I think I eventually bricked. I figured I'd cut my losses and just get a new (-ish) router. So I suppose we can consider this incident closed. Thanks for all your help!

Oh, and I guess if anyone wants a basically bricked Netgear WNDR3300v1 let me know.
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum