Asus RT-AC66U -Howto BackUP CFE from Stock firmware?

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


Joined: 24 May 2013
Posts: 32

PostPosted: Sun Jun 09, 2013 12:14    Post subject: Asus RT-AC66U -Howto BackUP CFE from Stock firmware? Reply with quote
Hello, i wanna know how i can backup the CFE from the stock firmware?
Only telnet is activated and have no idea how to get the backup of the CFE binary file to my PC?
(did this strings /dev/mtd0ro | grep bl_version to check the bl version)

bl_version=1.0.1.4
Need to know this how to CFE backup for my Asus RT-N66U also!

Any ideas??? i would like to hear them Question


Last edited by gekko2013 on Sun Jun 09, 2013 12:19; edited 1 time in total
Sponsor
jtrosky
DD-WRT Guru


Joined: 17 Apr 2009
Posts: 627
Location: Philadelphia, PA

PostPosted: Sun Jun 09, 2013 12:17    Post subject: Reply with quote
Can you connect a USB hard drive and copy the backup to that via the telnet command-line?
_________________
1 x Linksys WRT160n v3
1 x Linksys WRT310n v1
1 x Linksys WRT600n v1.1
1 x Linksys WRT610n v1
1 x Linksys E2500
1 x Netgear WNDR3300
1 x Dlink DIR-825 v1
2 x Asus RT-AC66U
gekko2013
DD-WRT Novice


Joined: 24 May 2013
Posts: 32

PostPosted: Sun Jun 09, 2013 12:21    Post subject: Reply with quote
jtrosky wrote:
Can you connect a USB hard drive and copy the backup to that via the telnet command-line?
Hello, well maby i have usb hdd and usbstick if needed only i dont know the exact commandline to do so am not very good in linux commands Rolling Eyes but if u can explain and tell than i can try
jtrosky
DD-WRT Guru


Joined: 17 Apr 2009
Posts: 627
Location: Philadelphia, PA

PostPosted: Sun Jun 09, 2013 12:28    Post subject: Reply with quote
I don't have stock loaded on my RT-AC66U's, so I can't really test this myself...

If you connect a USB thumb drive (or hard drive) and then telnet into the stock router, can you see the drive via the "mount" command? If "mount" even works on stock... If it does, please post the output before and after connecting the drive.

EDIT: I just did this on DD-WRT as an example...

Before connecting thumb drive:
Code:
root@DD-WRT:~# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro,relatime)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
ramfs on /tmp type ramfs (rw,relatime)
none on /dev type tmpfs (rw,relatime,size=512k)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
root@DD-WRT:~#



After inserting a thumb drive:
Code:
root@DD-WRT:/# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro,relatime)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
ramfs on /tmp type ramfs (rw,relatime)
none on /dev type tmpfs (rw,relatime,size=512k)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
devpts on /proc/bus/usb type usbfs (rw,relatime)
/dev/sr0 on /tmp/mnt/discsr0 type iso9660 (ro,relatime)
/dev/sda1 on /tmp/mnt/sda_part1 type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=utf8,shortname=mixed,errors=remount-ro)
root@DD-WRT:/#


As you can see, after I put a thumb drive in, DD-WRT automouted it. At this point, you could copy the CFE backup to the thumb drive with the "cp" command:

Code:
cp [whateverfile] /tmp/mnt/sda_part1


that would copy it to the thumb drive...

Hope that helps...

_________________
1 x Linksys WRT160n v3
1 x Linksys WRT310n v1
1 x Linksys WRT600n v1.1
1 x Linksys WRT610n v1
1 x Linksys E2500
1 x Netgear WNDR3300
1 x Dlink DIR-825 v1
2 x Asus RT-AC66U
gekko2013
DD-WRT Novice


Joined: 24 May 2013
Posts: 32

PostPosted: Sun Jun 09, 2013 12:45    Post subject: Reply with quote
jtrosky wrote:
I don't have stock loaded on my RT-AC66U's, so I can't really test this myself...

If you connect a USB thumb drive (or hard drive) and then telnet into the stock router, can you see the drive via the "mount" command? If "mount" even works on stock... If it does, please post the output before and after connecting the drive.

EDIT: I just did this on DD-WRT as an example...

Before connecting thumb drive:
Code:
root@DD-WRT:~# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro,relatime)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
ramfs on /tmp type ramfs (rw,relatime)
none on /dev type tmpfs (rw,relatime,size=512k)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
root@DD-WRT:~#



After inserting a thumb drive:
Code:
root@DD-WRT:/# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro,relatime)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
ramfs on /tmp type ramfs (rw,relatime)
none on /dev type tmpfs (rw,relatime,size=512k)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
devpts on /proc/bus/usb type usbfs (rw,relatime)
/dev/sr0 on /tmp/mnt/discsr0 type iso9660 (ro,relatime)
/dev/sda1 on /tmp/mnt/sda_part1 type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=utf8,shortname=mixed,errors=remount-ro)
root@DD-WRT:/#


As you can see, after I put a thumb drive in, DD-WRT automouted it. At this point, you could copy the CFE backup to the thumb drive with the "cp" command:

Code:
cp [whateverfile] /tmp/mnt/sda_part1


that would copy it to the thumb drive...


Hope that helps...


before mounting usb stick
admin@RT-AC66U:/tmp/home/root# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
proc on /proc type proc (rw)
tmpfs on /tmp type tmpfs (rw)
devfs on /dev type tmpfs (rw,noatime)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw)
usbfs on /proc/bus/usb type usbfs (rw)

after mounting usbstick
admin@RT-AC66U:/tmp/home/root# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
proc on /proc type proc (rw)
tmpfs on /tmp type tmpfs (rw)
devfs on /dev type tmpfs (rw,noatime)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/sda1 on /tmp/mnt/sda1 type ufsd (rw,nodev,noatime,nls=utf8,fmask=0,dmask=0, force)

What must i do now? what means whateverfilename? what name must i use their? cp [whateverfile????] /tmp/mnt/sda_part1

Idea
jtrosky
DD-WRT Guru


Joined: 17 Apr 2009
Posts: 627
Location: Philadelphia, PA

PostPosted: Sun Jun 09, 2013 13:07    Post subject: Reply with quote
The [whateverfilename] would the filename that you backed up your CFE to... Again, not sure where or what name the stock firmware would give it (unless it let's you specify it?)...
_________________
1 x Linksys WRT160n v3
1 x Linksys WRT310n v1
1 x Linksys WRT600n v1.1
1 x Linksys WRT610n v1
1 x Linksys E2500
1 x Netgear WNDR3300
1 x Dlink DIR-825 v1
2 x Asus RT-AC66U
gekko2013
DD-WRT Novice


Joined: 24 May 2013
Posts: 32

PostPosted: Sun Jun 09, 2013 14:28    Post subject: Reply with quote
jtrosky wrote:
The [whateverfilename] would the filename that you backed up your CFE to... Again, not sure where or what name the stock firmware would give it (unless it let's you specify it?)...
Erm i was wondering, sinds the stock firmware only have telnet enabled on port 23, is their a way to login with WIN-SCP or SFTP? or some other way to see what is in the directories ,like file or names maby even true telnet?
gekko2013
DD-WRT Novice


Joined: 24 May 2013
Posts: 32

PostPosted: Sun Jun 09, 2013 14:31    Post subject: Reply with quote
gekko2013 wrote:
jtrosky wrote:
The [whateverfilename] would the filename that you backed up your CFE to... Again, not sure where or what name the stock firmware would give it (unless it let's you specify it?)...
Erm i was wondering, sinds the stock firmware only have telnet enabled on port 23, is their a way to login with WIN-SCP or SFTP? or some other way to see what is in the directories ,like file or names maby even true telnet?
I could ask that (about the CFE filename) to Asus-WRT developers or whatever those people are named?though am not sure they know it themselfs? Shocked
jtrosky
DD-WRT Guru


Joined: 17 Apr 2009
Posts: 627
Location: Philadelphia, PA

PostPosted: Sun Jun 09, 2013 14:36    Post subject: Reply with quote
gekko2013 wrote:
jtrosky wrote:
The [whateverfilename] would the filename that you backed up your CFE to... Again, not sure where or what name the stock firmware would give it (unless it let's you specify it?)...
Erm i was wondering, sinds the stock firmware only have telnet enabled on port 23, is their a way to login with WIN-SCP or SFTP? or some other way to see what is in the directories ,like file or names maby even true telnet?


Can't use WinSCP or SFTP without SSH being enabled on the router..

To see the files and directories via telnet:

Code:

ls -l


That will list all files and directories. If you want to go into a directory:

Code:

cd [dirname]


To move back a directory:
Code:

cd ..



Also, if you know the name of the file (or part of the name), you can search like this:

Code:

find / -name "*.cfe" -print


That will search the entire router for any file ending in .cfe...

Hope that helps! I think you're almost there! Smile

_________________
1 x Linksys WRT160n v3
1 x Linksys WRT310n v1
1 x Linksys WRT600n v1.1
1 x Linksys WRT610n v1
1 x Linksys E2500
1 x Netgear WNDR3300
1 x Dlink DIR-825 v1
2 x Asus RT-AC66U
gekko2013
DD-WRT Novice


Joined: 24 May 2013
Posts: 32

PostPosted: Sun Jun 09, 2013 14:41    Post subject: Reply with quote
The reason i ask all this and go so deep in the stock firmware is because ive tried DD-Wrt on my netgear WNDR3700V3 and that turned out in a disaster, it was not bricked but many features didnt worked like SSH, and i had some other problems, it also seems that the Asus RT-AC66U isnt fully ready either and thats why i want to have good CFE backups, i also think that DD-Wrt comes a little short in trying to keep the most importantoriginal dd-wrt functions in tact ,they should really consider good before they bring a firmware out and or bringing people into problems flashing, it is easily said USE ON OWN RISK but i think theirs is some responsability at the makers to before bringing something out.
Its maby an good idea to just concentrate on ten known good fast routers to make DD-Wrt for, maby the negative thing is that people are forces to buy that known good one but the positive thing is that the problems will be solved faster and better, but am not trying to bitch but i am just suggesting it, i do DD-Wrt for quit some years now and i consider myself above novice so i really need to say it liek the way i see it Exclamation
gekko2013
DD-WRT Novice


Joined: 24 May 2013
Posts: 32

PostPosted: Sun Jun 09, 2013 14:43    Post subject: Reply with quote
Hello Jtrosky, yes i was aware about the SSH thing ,the rest u gave seems usefull i will try it out soon after finishing eating Smile
gekko2013
DD-WRT Novice


Joined: 24 May 2013
Posts: 32

PostPosted: Sun Jun 09, 2013 14:59    Post subject: Reply with quote
This is what i found so far from CD-ing into the DIRs:

admin@RT-AC66U:/# ls -l
drwxr-xr-x 2 admin root 524 Dec 20 09:33 bin
drwxr-xr-x 2 admin root 3 Dec 20 09:33 cifs1
drwxr-xr-x 2 admin root 3 Dec 20 09:33 cifs2
drwxrwxrwt 4 admin root 1860 Jun 9 14:41 dev
lrwxrwxrwx 1 admin root 7 Dec 20 09:33 etc -> tmp/etc
lrwxrwxrwx 1 admin root 8 Dec 20 09:33 home -> tmp/home
drwxr-xr-x 2 admin root 3 Dec 20 09:33 jffs
drwxr-xr-x 3 admin root 173 Dec 20 09:33 lib
drwxr-xr-x 2 admin root 3 Dec 20 09:33 mmc
lrwxrwxrwx 1 admin root 7 Dec 20 09:33 mnt -> tmp/mnt
lrwxrwxrwx 1 admin root 7 Dec 20 09:33 opt -> tmp/opt
dr-xr-xr-x 56 admin root 0 Jan 1 2000 proc
drwxr-xr-x 3 admin root 484 Dec 20 09:33 rom
lrwxrwxrwx 1 admin root 13 Dec 20 09:33 root -> tmp/home/root
drwxr-xr-x 2 admin root 1622 Dec 20 09:33 sbin
drwxr-xr-x 10 admin root 0 Jan 1 2000 sys
drwxrwxrwx 8 admin root 540 Jun 9 15:26 tmp
drwxr-xr-x 8 admin root 98 Dec 20 09:33 usr
lrwxrwxrwx 1 admin root 7 Dec 20 09:33 var -> tmp/var
drwxr-xr-x 9 admin root 3974 Dec 20 09:33 www

admin@RT-AC66U:/tmp/home# ls -l
drwx------ 2 admin root 160 Jun 9 13:40 root


admin@RT-AC66U:/tmp/home/root# ls -l
-rw-rw-rw- 1 admin root 262144 Jun 9 13:40 cfe.original
-rw-rw-rw- 1 admin root 160211 Jun 9 13:36 cfe_n66u-1.0.1.3-4.tgz
-rw-rw-rw- 1 1000 1000 133428 Oct 2 2012 cfe_n66u-1.0.1.3.empty.bin
-rwxrwxr-x 1 1000 1000 1828 Dec 4 2012 cfe_update.sh
-rwxrwxr-x 1 1000 1000 92708 Dec 4 2012 diff
-rwxrwxr-x 1 1000 1000 9056 Dec 4 2012 nvsimple-mipsel

cd to /tmp
admin@RT-AC66U:/tmp# ls -l
prw-r--r-- 1 admin root 0 Jan 1 1970 Semaphore0
prw-r--r-- 1 admin root 0 Jan 1 1970 Semaphore1
prw-r--r-- 1 admin root 0 Jan 1 1970 Semaphore2
prw-r--r-- 1 admin root 0 Jan 1 1970 Semaphore3
-rw-rw-rw- 1 admin root 262144 Jun 9 13:38 cfe.original
-rw-rw-rw- 1 admin root 262144 Jun 9 14:02 cfebackup.bin
drwxr-xr-x 2 admin root 640 Jun 9 14:37 etc
-rw-rw-rw- 1 admin root 785 Jun 5 17:50 filter.default
-rw-rw-rw- 1 admin root 1563 Jun 9 14:41 filter_rules
drwxr-xr-x 3 admin root 60 Jan 1 1970 home
drwxrwxrwx 3 admin root 60 Jun 9 14:41 mnt
-rw-rw-rw- 1 admin root 312 Jun 9 14:41 nat_rules
drwxrwxrwx 3 admin root 140 Jan 1 2011 ppp
-rw-rw-rw- 1 admin root 499 Jun 9 14:41 redirect_rules
-rw-rw-rw- 1 admin root 52 Jun 9 13:36 resolv.conf
-rw-r--r-- 1 admin root 0 Jan 1 1970 settings
drwxr-xr-x 2 admin root 40 Jan 1 1970 share
-rw-rw-rw- 1 admin root 142268 Jun 9 16:50 syslog.log
-rw-rw-rw- 1 admin root 262270 Jun 9 15:25 syslog.log.0
lrwxrwxrwx 1 admin root 8 Jan 1 2011 udhcpc -> /sbin/rc
-rw-rw-rw- 1 admin root 10 Jun 9 13:36 udhcpc0.expires
-rw-rw-rw- 1 admin root 1908 Jun 9 14:41 usb.log
drwxr-xr-x 11 admin root 240 Jan 1 2011 var
lrwxrwxrwx 1 admin root 8 Jan 1 2011 wpa_cli -> /sbin/rc
lrwxrwxrwx 1 admin root 8 Jan 1 2011 zcip -> /sbin/rc

----------------------------------------->

Looks like i found 2 usefull CFE names? cfe.original & cfebackup.bin
Exclamation Question Idea

I also found out that both files i found are in the /tmp dir:

admin@RT-AC66U:/tmp/home/root# find / -name cfe.original -print
/tmp/cfe.original
/tmp/home/root/cfe.original

admin@RT-AC66U:/tmp/home/root# find / -name cfebackup.bin -print
/tmp/cfebackup.bin


Last edited by gekko2013 on Sun Jun 09, 2013 15:10; edited 1 time in total
jtrosky
DD-WRT Guru


Joined: 17 Apr 2009
Posts: 627
Location: Philadelphia, PA

PostPosted: Sun Jun 09, 2013 15:08    Post subject: Reply with quote
Cool! Just backup both to your USB-attached device and you should be all set (rather have too much backed up than not enough!).

Just use the cp command to copy them to your USB drive.

To be honest though, DD-WRT is running really well on the AC66U now - I think the version you tried had known SSH issues...

I'm using 21676 and it's running really well..

EDIT - then again (and this is probably the reason you are doing all of this to begin with), I think there are multiple "revisions" of the RT66U now, so maybe that will be a problem (can't say for sure).

EDIT2: Another way to find all cfe-related files:

Code:

find / -name "*cfe*" -print


that will fine anything with cfe in the filename...

_________________
1 x Linksys WRT160n v3
1 x Linksys WRT310n v1
1 x Linksys WRT600n v1.1
1 x Linksys WRT610n v1
1 x Linksys E2500
1 x Netgear WNDR3300
1 x Dlink DIR-825 v1
2 x Asus RT-AC66U
gekko2013
DD-WRT Novice


Joined: 24 May 2013
Posts: 32

PostPosted: Sun Jun 09, 2013 15:24    Post subject: Reply with quote
Its really weird, ive tried to CP the files but it didnt worked i tried it 8 times with these commandlines;
cp cfe.original /tmp/mnt/sda_part1
cp cfe.original.bin /tmp/mnt/sda_part1
cp cfebackup /tmp/mnt/sda_part1
cp cfebackup.bin /tmp/mnt/sda_part1
cp cfe.original /tmp/mnt/sda1
cp cfe.original.bin /tmp/mnt/sda1
cp cfebackup /tmp/mnt/sda1
cp cfebackup.bin /tmp/mnt/sda1
Confused what am i doing wrong this time?

I looked on the usbstick and i saw some txt and linux files and this file in the file extention "ORIGINAL" this here cfe.original is the files name that has 256kb and sounds like a CFE file to me but the file extention ORIGINAL? weird i though it would be a BIN file orso Question

I got the cfebackup.bin file now to on usb, both files came from the /tmp DIR..? do u think i could go flash dd-wrt now Question

Btw on a older topic i saw an CFE file that has BL version 1.0.1.2 that is probertly an outdated version the second reason i am doing all this Crying or Very sad
referring to this http://www.nautsch.net/2012/11/22/asus-rt-n66u-64k-nvram/ the nvram issue.
jtrosky
DD-WRT Guru


Joined: 17 Apr 2009
Posts: 627
Location: Philadelphia, PA

PostPosted: Sun Jun 09, 2013 15:58    Post subject: Reply with quote
gekko2013 wrote:
Its really weird, ive tried to CP the files but it didnt worked i tried it 8 times with these commandlines;
cp cfe.original /tmp/mnt/sda_part1
cp cfe.original.bin /tmp/mnt/sda_part1
cp cfebackup /tmp/mnt/sda_part1
cp cfebackup.bin /tmp/mnt/sda_part1
cp cfe.original /tmp/mnt/sda1
cp cfe.original.bin /tmp/mnt/sda1
cp cfebackup /tmp/mnt/sda1
cp cfebackup.bin /tmp/mnt/sda1
Confused what am i doing wrong this time?

I looked on the usbstick and i saw some txt and linux files and this file in the file extention "ORIGINAL" this here cfe.original is the files name that has 256kb and sounds like a CFE file to me but the file extention ORIGINAL? weird i though it would be a BIN file orso Question

I got the cfebackup.bin file now to on usb, both files came from the /tmp DIR..? do u think i could go flash dd-wrt now Question

Btw on a older topic i saw an CFE file that has BL version 1.0.1.2 that is probertly an outdated version the second reason i am doing all this Crying or Very sad
referring to this http://www.nautsch.net/2012/11/22/asus-rt-n66u-64k-nvram/ the nvram issue.


Since the file was named "cfe.original" on the router, windows is just showing it as a ".original" file... It's completely normal.

You should also have a cfe.bin as well though (windows might be hiding the file extensions)...

You should be all set - sounds like you now have backups of both of those files...

Also, the AC66U is pretty brick-proof - it has a built-in recovery mode where you can almost always get back to where you started...

I don't think I've heard of any permanent bricks with the AC66U.

Then again, it's at your own risk of course!!

By the way, that article you linked to is for the RT-N66U, not the RT-AC66U - different routers...

EDIT: Also, I jsut checked and my bootloader is the same version as yours, if that makes you feel any better... Smile

_________________
1 x Linksys WRT160n v3
1 x Linksys WRT310n v1
1 x Linksys WRT600n v1.1
1 x Linksys WRT610n v1
1 x Linksys E2500
1 x Netgear WNDR3300
1 x Dlink DIR-825 v1
2 x Asus RT-AC66U
Goto page 1, 2, 3  Next Display posts from previous:    Page 1 of 3
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