[SOLVED] Reset WNDR4300 to default.

General discussion about Gargoyle, OpenWrt or anything else even remotely related to the project

Moderator: Moderators

Post Reply
User avatar
CBx86
Posts: 157
Joined: Sun Jan 05, 2014 5:43 pm
Location: Brazil

[SOLVED] Reset WNDR4300 to default.

Post by CBx86 »

I made a mistake on network config and firewall, now i cant access my router. :oops:

I try 3 seconds reset nothing happens.

How i reset to default gargoyle?

Many Thanks! :D
Last edited by CBx86 on Wed Jan 02, 2019 9:19 pm, edited 2 times in total.

Lantis
Moderator
Posts: 6753
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Reset WNDR4300 to default.

Post by Lantis »

Failsafe reset
https://www.youtube.com/watch?v=_NqHpRHl8gQ

If you’re on 1.10 or later, use SSH instead of telnet
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

User avatar
CBx86
Posts: 157
Joined: Sun Jan 05, 2014 5:43 pm
Location: Brazil

Re: Reset WNDR4300 to default.

Post by CBx86 »

Hi!

Does t work anymore.
I manage to get access to failsave using the backside reset button.

Anyway is unable to do firstboot:

Code: Select all

root@(none):~# mount_root
root@(none):~# firstboot
This will erase all settings and remove any installed packages. Are you sure? [N/y]
y
/dev/ubi0_1 is not mounted
/dev/ubi0_1 will be erased on next mount
writing /dev/ubi0_1 failed: Operation not permitted
/overlay is empty.

And nothing changes.

Also tried with jffs2reset.

Code: Select all

root@(none):~# ls /dev/
console             mtd10               mtd4                mtd8ro              mtdblock4           port                ubi0_1
cpu_dma_latency     mtd10ro             mtd4ro              mtd9                mtdblock5           ptmx                ubi_ctrl
full                mtd11               mtd5                mtd9ro              mtdblock6           pts                 ubiblock0_0
kmsg                mtd11ro             mtd5ro              mtdblock0           mtdblock7           random              urandom
mem                 mtd1ro              mtd6                mtdblock1           mtdblock8           shm                 watchdog
memory_bandwidth    mtd2                mtd6ro              mtdblock10          mtdblock9           tty                 zero
mtd0                mtd2ro              mtd7                mtdblock11          network_latency     ttyS0
mtd0ro              mtd3                mtd7ro              mtdblock2           network_throughput  ubi0
mtd1                mtd3ro              mtd8                mtdblock3           null                ubi0_0

Thanks!

User avatar
CBx86
Posts: 157
Joined: Sun Jan 05, 2014 5:43 pm
Location: Brazil

Re: Reset WNDR4300 to default.

Post by CBx86 »

Code: Select all

root@(none):~# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                    8.5M      8.5M         0 100% /
/dev/root                 8.5M      8.5M         0 100% /
tmpfs                   512.0K         0    512.0K   0% /dev
tmpfs                    61.4M     24.0K     61.4M   0% /tmp
root@(none):~# mount_root
root@(none):~# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                    8.5M      8.5M         0 100% /
/dev/root                 8.5M      8.5M         0 100% /
tmpfs                   512.0K         0    512.0K   0% /dev
tmpfs                    61.4M     24.0K     61.4M   0% /tmp

Lantis
Moderator
Posts: 6753
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Reset WNDR4300 to default.

Post by Lantis »

Try sysupgrading to a new image from within the failsafe environment.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

User avatar
CBx86
Posts: 157
Joined: Sun Jan 05, 2014 5:43 pm
Location: Brazil

Re: Reset WNDR4300 to default.

Post by CBx86 »

How i do? :oops:
First time i need use failsafe environment.

Many thanks!

Lantis
Moderator
Posts: 6753
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Reset WNDR4300 to default.

Post by Lantis »

You’ll need to use something like WinSCP to transfer the image into /tmp.
Then do something like
sysupgrade -n /tmp/name_of_image_file.img
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

User avatar
CBx86
Posts: 157
Joined: Sun Jan 05, 2014 5:43 pm
Location: Brazil

Re: Reset WNDR4300 to default.

Post by CBx86 »

Fixed!

For knowledge base:

What i do:
All using wire:
PC: 192.168.1.2;
Mask: 255.255.255.0;
Gate: 192.168.1.1;

Cable on router;
Power on;
Power led on;
Press reset on bottom of router and keep pressed;
Led flash orange, keep pressing;
Led green, keep;
Led flash green you release reset button;
Ok.

Get your image file FACTORY. (I use Gargoyle Factory);
Rename the file for something simple eg: factory.img;
Now send a image file factory.img in BINARY using tftp;
Finish;
Router will reset;
Router like a new.

IZI

:D

Many Thanks!
Last edited by CBx86 on Fri Mar 15, 2019 12:33 am, edited 1 time in total.

User avatar
CBx86
Posts: 157
Joined: Sun Jan 05, 2014 5:43 pm
Location: Brazil

Re: Reset WNDR4300 to default.

Post by CBx86 »

Lantis wrote:You’ll need to use something like WinSCP to transfer the image into /tmp.
Then do something like
sysupgrade -n /tmp/name_of_image_file.img
I try a reflash. And works, Many thanks! :D

Post Reply