Updating over WiFi

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Goto page 1, 2, 3, 4  Next
Author Message
Mr R Design
DD-WRT User


Joined: 04 Nov 2020
Posts: 56

PostPosted: Sat Nov 06, 2021 6:19    Post subject: Updating over WiFi Reply with quote
I have seen the warnings about updating over WiFi so have never done it but would like to ask a question.

Instead of downloading the build to my laptop can I download the build to a flash drive plugged in to the router and update safely that way or does something happen during the process which will cause things to throw a wobbly?

It is to do with an R7000 if it makes any difference to the answer and I am asking the question because its physical location is not the easiest in the World to get to.
Sponsor
IONK
DD-WRT Guru


Joined: 19 Aug 2011
Posts: 951

PostPosted: Sat Nov 06, 2021 8:01    Post subject: Re: Updating over WiFi Reply with quote
Mr R Design wrote:
I have seen the warnings about updating over WiFi so have never done it but would like to ask a question.

Instead of downloading the build to my laptop can I download the build to a flash drive plugged in to the router and update safely that way or does something happen during the process which will cause things to throw a wobbly?

It is to do with an R7000 if it makes any difference to the answer and I am asking the question because its physical location is not the easiest in the World to get to.

Have you heard about easyddup - A simple upgrade/downgrade utility by yoyoma2?

_________________
▫ RSS feed for DD-WRT releases (2024): https://rsseverything.com/feed/7d36ab68-7733-46c3-bd8a-9c54c5cef08c.xml
easyddup - A simple upgrade/downgrade utility by yoyoma2 --- as featured in 📌 Reference Links, stickies retired back to forum (Moderator's Pick 🌟)
bushant
DD-WRT Guru


Joined: 18 Nov 2015
Posts: 2029

PostPosted: Sat Nov 06, 2021 11:58    Post subject: Reply with quote
Wiki wrote:
Flashing with Command Line
This is only available on routers that already have DD-WRT installed and Telnet/SSH enabled. It is the *ONLY* recommended method to upgrade the router wirelessly because the file is transferred from the DD-WRT servers to the router and the checksum is verified to ensure that the file is not corrupt.

https://wiki.dd-wrt.com/wiki/index.php/Installation#Method_3:_Flashing_with_Command_Line

_________________
Forum Guide Lines (with helpful pointers about how to research your router, where and what firmware to download, where and how to post and many other helpful tips!)
How to get help the right way

Before asking for help - Read the forum guidelines AND Upgrade DD-WRT!
Adblock by eibgrad + Blocklist Collection
kernel-panic69
DD-WRT Guru


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

PostPosted: Sat Nov 06, 2021 13:39    Post subject: Reply with quote
Well, part of that in the wiki is outdated. There are no md5 or sha256 checksums created for current firmware images.
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
Alozaros
DD-WRT Guru


Joined: 16 Nov 2015
Posts: 6410
Location: UK, London, just across the river..

PostPosted: Sat Nov 06, 2021 15:08    Post subject: Reply with quote
if your wifi interrupts during the flash procedure its no good…
best and safest way to flash via wi fi is using command line
in your case log in via telnet or ssh and issue those commands

cd /tmp

curl -O https://download1.dd-wrt.com/dd-wrtv2/downloads/betas/2021/11-05-2021-r47618/netgear-r7000/netgear-r7000-webflash.bin

write netgear-r7000-webflash.bin linux

reboot

you can issue “nvram erase” (no quotes) before the reboot, if you want to erase all the settings…

_________________
Atheros
TP-Link WR740Nv1 ---DD-WRT 55179 WAP
TP-Link WR1043NDv2 -DD-WRT 55303 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55460 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55460 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55363 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
kernel-panic69
DD-WRT Guru


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

PostPosted: Sat Nov 06, 2021 16:49    Post subject: Reply with quote
Over wifi you would use 'write netgear-r7000-webflash.bin linux &' in the likely case that the wifi drops. That and remote flashing are the whole reason why using the ampersand was ever recommended.
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
Wildlion
DD-WRT Guru


Joined: 24 May 2016
Posts: 1407

PostPosted: Sat Nov 06, 2021 16:55    Post subject: Reply with quote
kernel-panic69 wrote:
Over wifi you would use 'write netgear-r7000-webflash.bin linux &' in the likely case that the wifi drops. That and remote flashing are the whole reason why using the ampersand was ever recommended.


+1

It is the connection/command and you want to ensure that the shell is not dropped/closed.
Alozaros
DD-WRT Guru


Joined: 16 Nov 2015
Posts: 6410
Location: UK, London, just across the river..

PostPosted: Sat Nov 06, 2021 18:21    Post subject: Reply with quote
correct & at the end makes it safer
back in the days there was a trick if you dl your firmware to /tmp
and your cron is turned on, it will flash it automatically after 15 min no
matter what ,so on the next boot it will boot up the new firmware…

in general via cli all happens on the router side…and the use of
& makes it as a separate process, kinds of…

_________________
Atheros
TP-Link WR740Nv1 ---DD-WRT 55179 WAP
TP-Link WR1043NDv2 -DD-WRT 55303 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55460 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55460 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55363 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12837
Location: Netherlands

PostPosted: Sat Nov 06, 2021 18:24    Post subject: Reply with quote
It might be even after 2 minutes but you have to rename the file to firmware.bin but I could be mistaken.
_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
kernel-panic69
DD-WRT Guru


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

PostPosted: Sat Nov 06, 2021 18:27    Post subject: Reply with quote
@Alozaros: No, to be specific it forks it into the background:
Quote:
A single ampersand & can often be found at the end of a command. This trailing ampersand directs the shell to run the command in the background, that is, it is forked and run in a separate sub-shell, as a job, asynchronously.

But toh-MAY-toh, toh-MAH-toh.

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
mrjcd
DD-WRT Guru


Joined: 31 Jan 2015
Posts: 6268
Location: Texas

PostPosted: Sun Nov 07, 2021 0:28    Post subject: Reply with quote
whatever y'all think Rolling Eyes ... I have updated using webif over WiFi hundreds of times connected to the device I am updating. Ain't never had a problem ...but then again I always have a good setup with NO WiFi drops.
Now on the other hand, if I have some flaky wireless build and to lazy to get outta my recliner I will usually connect the laptop to a WAP I have running to update the shitty device Twisted Evil
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Tue Nov 09, 2021 11:23    Post subject: Reply with quote
Hello, so just as a reminder and to refresh whats been said on this subject.

The alternative mode of flashing the firmware which would work over ANY connection type automatically after 60 seconds.

1) Connect via SSH/SCP/SFTP/TELNET/FTP to router
2) Rename the updated FW file to firmware.bin and upload to the /tmp folder.
3) Wait 30/60 seconds and the router will detect this file and flash itself without user interaction, then should reboot itself when done.

Disclaimer: People are solely responsible for using the correct upgrade file, so make double sure its right before doing it. I assume no responsibility for houses burning down, kittens drowning or babies being killed as a result.

caveat emptor, make sure you know how to recover your router in case something goes wrong.

If interested follow this link for the code responsible for this magic.

Be well.

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
yoyoma2
DD-WRT User


Joined: 24 Sep 2016
Posts: 371

PostPosted: Wed Nov 10, 2021 4:14    Post subject: Reply with quote
the-joker wrote:
If interested follow this link for the code responsible for this magic.

Interesting...never heard of this feature. I prefer to to do it manually and observe what's happening. Thanks for the link. Line 301 seems wrong:

Code:
unlink("rm /tmp/cron.d/check_ps");
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12837
Location: Netherlands

PostPosted: Wed Nov 10, 2021 7:30    Post subject: Reply with quote
It is there for automatic update Smile

Nice you spotted that bug he probably first wanted to do
Code:
eval("rm", "/tmp/cron.d/check_ps");

But
Code:
unlink("/tmp/cron.d/check_ps");

Is native and looks the better code Smile

Although seldom used it is good if it is patched to prevent double execution although I think the chances for that are slim

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
kernel-panic69
DD-WRT Guru


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

PostPosted: Wed Nov 10, 2021 15:22    Post subject: Reply with quote
Perhaps consider emailing BS about it and see.
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
Goto page 1, 2, 3, 4  Next Display posts from previous:    Page 1 of 4
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions 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