Posted: Sat Nov 06, 2021 6:19 Post subject: Updating over WiFi
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.
Posted: Sat Nov 06, 2021 8:01 Post subject: Re: Updating over WiFi
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.
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.
Joined: 16 Nov 2015 Posts: 6436 Location: UK, London, just across the river..
Posted: Sat Nov 06, 2021 15:08 Post subject:
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
you can issue “nvram erase” (no quotes) before the reboot, if you want to erase all the settings… _________________ Atheros
TP-Link WR740Nv1 ---DD-WRT 55630 WAP
TP-Link WR1043NDv2 -DD-WRT 55723 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 55779 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55819 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55779 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
Joined: 08 May 2018 Posts: 14217 Location: Texas, USA
Posted: Sat Nov 06, 2021 16:49 Post subject:
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
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.
Joined: 16 Nov 2015 Posts: 6436 Location: UK, London, just across the river..
Posted: Sat Nov 06, 2021 18:21 Post subject:
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 55630 WAP
TP-Link WR1043NDv2 -DD-WRT 55723 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 55779 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55819 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55779 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
Joined: 08 May 2018 Posts: 14217 Location: Texas, USA
Posted: Sat Nov 06, 2021 18:27 Post subject:
@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.
whatever y'all think ... 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
Joined: 31 Jul 2021 Posts: 2146 Location: All over YOUR webs
Posted: Tue Nov 09, 2021 11:23 Post subject:
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.