Joined: 16 Nov 2015 Posts: 6447 Location: UK, London, just across the river..
Posted: Tue Aug 16, 2022 7:15 Post subject:
strange wrote:
Thank you @the-joker, good info. Just please don't test me on it in the future.
At the end the GUI flash(WEB flash) stops some running processes in order to flash, shut down and reboot nicely, where with CLI update you don't have this chance...so GUI flash is one idea safer/better...but must be done over RJ-45...(LAN port) to be 101% safe...
I do the CLI flash and sometimes suffer from, not enough memory to flash...as my 1043v2 is getting old and overwhelmed...same for 4MB flash devices with low ram of 32MB CLI flash is a challenge... _________________ 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: 31 Jul 2021 Posts: 2146 Location: All over YOUR webs
Posted: Tue Aug 16, 2022 9:41 Post subject:
@alozaros, if you enable console_debug=1 and flash via CLI you will see that some processes are terminated before the flash starts via CLI. This was improved to not show anything the system doesn't have, but it went something like this a dozen or more builds ago on all routers.
But it didn't matter if you had those running or not or even if they existed on your system, as stated this was improved to only show what system has, but the behavior is the same, processes are stopped running or not at flash time no matter CLI or not.
there is a small detail to write command.....& at the end
write dd-wrt-webupgrade.bin linux &
It is basic linux knowledge everyone can see a linux commands manual background jobs bg, and fg process management.
I do a understand concern but stopped counting after 200 flashes EA8500 wireless command-line flash method without &.
Router models with unstable wireless configs there is always LAN Ethernet. Maybe later, try to keep CLI Flash line simple.
bushant wrote:
Depending whether your hardware has curl you can make it even easier.
Code:
cd /tmp
curl -o firmware.bin https://ftp.dd-wrt.com/dd-wrtv2/downloads/betas/2022/08-13-2022-r49681/netgear-r8500/netgear-r8500-webflash.bin
Go fix a sandwich while your router upgrades.
Yes exactly this is the way to specify output file, lowercase o. I should have mentioned this. curl -o firmware.bin {file URL}
strange wrote:
I have done this a couple of times already on both of my routers and everything has worked fine. What is the importance of adding the & after 'write'? Also, what about the 5 minute wait? It is not part of the WIKI.
See Installation#Method_3:_Flashing_with_Command_Line or CLI Flash line, but it seems many overlook embedded links.
strange wrote:
And then there is the '-O '. Does it matter if it goes before or after the web address? I've seen it both ways.
I just did a upgrade with wget ftp to the /tmp folder and didnt use the -O and everything seems to be fine.
This is how wget works when not specifying an output file, also keep in mind wget is different than curl so see the manual.
wget uses -O (not -o lowercase outputs error log) to specify output filename but very important to download one file only!
fox95 wrote:
Note: the https:// download link will not work with wget
Yes I tried to warn you to use http without s, command line flash wiki covers this & build thread CLI Flash plus (httponly).
ftp instead of download1 for http is pointless and confusing thanks (BEST LINK TO USE) claim, a 4th link arbitrarily added.
Downloads:HTTPS, FTP as well as http variant are correct download links listed in every build thread also downloads wiki.
Thank you to all of the gurus helping out here and the links to the pages that you provided. I now know the difference between -o and -O and the proper syntax for there use. I am a cookbook linux user, sometimes I bake a cake without knowing why all of the ingredients are mixed together in a certain way. I just do the copy and paste thing. @blkt says, do this, this and this. I do this, this and this...vola! Cake! Without actually knowing what I did. _________________ Netgear XR500 - Gateway
R6700 v3 - Station Bridge
Surprised none of the experts suggested the nohup command. People could just use easyddup and these endless supply of threads about where, what, how to download and where, how to install would be moot.
Joined: 31 Jul 2021 Posts: 2146 Location: All over YOUR webs
Posted: Wed Aug 17, 2022 15:57 Post subject:
And no matter how many threads there are about a particular subject, there will be just one more and another and..., easyddup or no, so there are several ways to flash via CLI, even without CLI/Web Interface.
easyddup is a good alternative but not for the novice users, who already afraid of opening a terminal or have no clue what they are typing into it, so imagine how these people must feel when they download easyddup and extract half a dozen scripts.
There are many ways in any case to run a script/command after terminal closes, I mentioned screen, and in addition to nohup and the & there are several others.
I'm still going through the 15 pages of info before I ask any questions about easyddup. It does look intriguing though. _________________ Netgear XR500 - Gateway
R6700 v3 - Station Bridge
Surprised none of the experts suggested the nohup command. People could just use easyddup and these endless supply of threads about where, what, how to download and where, how to install would be moot.
In regards to your nohup comment, this or something similar must be what you're suggesting:
Code:
write -nohup netgear-r8500-webflash.bin linux
_________________ "The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep." - Robert Frost
"I am one of the noticeable ones - notice me" - Dale Frances McKenzie Bozzio