[HELP] Backup Bootloader and NVRAM Linksys EA6900

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
DarrellKitchen
DD-WRT Novice


Joined: 23 May 2015
Posts: 6

PostPosted: Tue Jun 30, 2015 2:28    Post subject: [HELP] Backup Bootloader and NVRAM Linksys EA6900 Reply with quote
I'm in my router over the JTAG port on the router's motherboard with Putty-via-COM3. Logged into the Admin account, su root, and I want to know how I can backup the bootloader and NVRAM in case something goes horribly wrong.

I found, via google search for "backing up router firmware" this command: dd if=/dev/mtd5 of=backup.bin, which I executed and TFTP'd to my local computer.

How can I do this to just the bootloader and NVRAM?

tjtag wont run on my computer so that is not an option.
Sponsor
DarrellKitchen
DD-WRT Novice


Joined: 23 May 2015
Posts: 6

PostPosted: Tue Jun 30, 2015 3:54    Post subject: NVRAM Reply with quote
Okay, I just did a "nvram show > /tmp/nvram.dat" and tftp'd the nvram.dat file to my local computer.

Will this file suffice as a nvram backup? Can it be used to replace the nvram? Is replacing the nvram even an option in the case of a catastrophic event?
Lonix
DD-WRT Novice


Joined: 20 Sep 2015
Posts: 5

PostPosted: Wed Sep 23, 2015 7:32    Post subject: Reply with quote
in Tomato you can type

nvram backup <filename>

and to restore

nvram restore <filename>

is this funtionality available in dd-wrt?

http://repo.or.cz/w/tomato.git/blob/4d3bf5bd0cf87d6f5702cb187514af63e240df70:/release/src/router/nvram/nvram.c
Ah-Pin-Kor
DD-WRT User


Joined: 19 Sep 2015
Posts: 267

PostPosted: Wed Sep 23, 2015 8:22    Post subject: Reply with quote
cat /proc/mtd

usually boot/cfe is mtd0

cat /dev/mtd0 > /tmp/boot.bin

check the output of "cat /proc/mtd" above for the nvram partition

cat /dev/mtdX > /tmp/nvram.bin (where X is a digit)

_________________

Netgear R7800 kongpro 19.07 20190919 || Netgear R7000 36070M kongac (Client Bridge=5GHz, AP=2.4GHz with bridged VAP)
Linksys WRT32X davidc502 OpenWrt || Linksys WRT1200ACv1 Gargoyle 1.11.x
Linksys WRT1900ACSv2 dd-wrt 39956
Display posts from previous:    Page 1 of 1
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