PDA

View Full Version : Factory Defaulting Router Station


bvagnoni
03-01-2009, 06:19 PM
If you want to factory default your router the easiest way I've found so far is to:

Note: Connect via serial it makes things much easier to see what goes on.

Flash with the latest snapshot from:

http://downloads.openwrt.org/snapshots/ar71xx/openwrt-ar71xx-ubnt-rs-squashfs.bin

Note: takes about 3 - 5 minutes to clear jffs, wait for it to finish. When you see the following it's ok to reboot and re-flash. You will only see these messages most likely via serial unless you wait and refresh dmesg.

jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
jffs2_build_filesystem(): unlocking the mtd device... done.
jffs2_build_filesystem(): erasing all blocks after the end marker... done.
mini_fo: using base directory: /
mini_fo: using storage directory: /jffs


Then re-flash with factory firmware:

http://www.ubnt.com/downloads/RS/RSx.ar7100.OpenWRT.bin

and you will be at factory. You could also run /bin/./firstboot.

I'm sure there are better ways to do this but it works.

Brian Vagnoni

newvisionantenna
04-18-2009, 11:10 PM
Thanks for this. I had tried to update packages and could not gain access to the device. Just a quick question, what's wrong with staying at the snapshot version? I just went to X-WRT and flashed with the latest snapshot and this thing is working better then it did from the factory. I just flipped eth0 and eth1 in regards to lan and wan and I'm online now typing using the Routerstation. I know the file is only 2mb but I'm sure the factory version is bigger from more drivers, software, etc...

JulioCP
04-20-2009, 07:04 AM
In OpenWrt, when you flashed an image that has squashfs, you just need to erase the partition called "rootfs_data". This is the jffs2 partition.

This will make it to return to the state when it was last flashed and after reboot mini_fo runs again like the first time.

The command to use is mtd -r erase rootfs_data


Saludos, Julio

CzechEnglishFrenchGermanItalianPolishPortugueseRussianSpanish
Thanks to vBET 3.5.4 you can enjoy automatic translations