Updating over WiFi

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Goto page Previous  1, 2, 3, 4  Next
Author Message
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12837
Location: Netherlands

PostPosted: Tue Nov 30, 2021 18:01    Post subject: Reply with quote
I just did it on a R6400v1 running 47692 and it worked Question
_________________
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
Sponsor
kernel-panic69
DD-WRT Guru


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

PostPosted: Tue Nov 30, 2021 18:11    Post subject: Reply with quote
Could be only applicable to certain devices, however what is the output of 'nvram show | grep flash_active'? If flash_active=1, it should flash the file. If that nvram parameter doesn't exist or isn't 1, then it won't flash the file as best I understand the code.
_________________
"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
IONK
DD-WRT Guru


Joined: 19 Aug 2011
Posts: 951

PostPosted: Tue Nov 30, 2021 18:14    Post subject: Reply with quote
kernel-panic69 wrote:
Could be only applicable to certain devices, however what is the output of 'nvram show | grep flash_active'? If flash_active=1, it should flash the file. If that nvram parameter doesn't exist or isn't 1, then it won't flash the file as best I understand the code.
DLink DIR-868L Rev.A1 - r47695 std (11/29/21)
Code:
BusyBox v1.34.1 (2021-11-29 02:23:43 +07) built-in shell (ash)

root@RB:~# nvram show | grep flash_active
size: 44678 bytes (20858 left)
root@RB:~#

_________________
▫ 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: 2028

PostPosted: Tue Nov 30, 2021 18:16    Post subject: Reply with quote
Guess you're special Wink

Tried it again on R7800.
Renamed file first then scp'd it to /tmp then disconnected from router completely.

Crickets.

root@7802:~# nvram show | grep flash_active
size: 47619 bytes (83453 left)
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12837
Location: Netherlands

PostPosted: Tue Nov 30, 2021 18:26    Post subject: Reply with quote
code is in router/rc/check_ps
starting line 289

But it is possible it does not always run, the check_ps must run as a cron job (which it normally does) and there might be CONFIG options at work also

_________________
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
mrjcd
DD-WRT Guru


Joined: 31 Jan 2015
Posts: 6268
Location: Texas

PostPosted: Tue Nov 30, 2021 18:48    Post subject: Reply with quote
worky ok on the EA8500 Twisted Evil
AND it ain't gotty no 'flash_active' in nvram

https://mrjcd.com/junk/dd-wrt/EA8500/upgrade_firmware.txt

----
EDIT: just done it again for the hellofit Razz
AND
just leaving terminal connected to the EA8500 after moving 'firmware.bin' to
its /tmp directory --- it by golly disconnects after 'bout a minute and updates itself.

quite a weird thang I reckon --- worky real good --- but don't really have much use for such Twisted Evil


Last edited by mrjcd on Tue Nov 30, 2021 19:14; edited 1 time in total
kernel-panic69
DD-WRT Guru


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

PostPosted: Tue Nov 30, 2021 18:49    Post subject: Reply with quote
rc.c is supposed to include and call check_ps in static struct MAIN maincalls: https://github.com/mirror/dd-wrt/blob/master/src/router/rc/rc.c#L349 or rather, it calls the check_ps_main function in check_ps.c.
_________________
"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
bushant
DD-WRT Guru


Joined: 18 Nov 2015
Posts: 2028

PostPosted: Tue Nov 30, 2021 20:16    Post subject: Reply with quote
mrjcd wrote:
but don't really have much use for such

Nor I.

Tried it on my another Gateway R7800 with different config and no worky.

BUT Worked fine on WNDR3700v4 and WZR-HP-AG300H.

I'm done. Twisted Evil
mrjcd
DD-WRT Guru


Joined: 31 Jan 2015
Posts: 6268
Location: Texas

PostPosted: Tue Nov 30, 2021 20:31    Post subject: Reply with quote
bushant wrote:
Worked fine on WNDR3700v4

thanky -- I'll remember that when updating the WNDR3700v4 ... just used as a switch. The other 3700v4 I have as main backup router has an oldass build I been meaning to update and reconfig it but somepin always comes along.... gotta do that soon.

UPS delivered my graphic card a bit ago so I had to stick it in this machine --- seems ok for the oldass junk I like to run Twisted Evil

https://mrjcd.com/junk/dd-wrt/daDeb.html
kernel-panic69
DD-WRT Guru


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

PostPosted: Tue Nov 30, 2021 20:52    Post subject: Reply with quote
That machine is newer than some of the antiques I have, lol. I am thinking that this old ass PNY XLR8 9800GTX might find it's way into an old ass Athlon64 3400+ HP I got sitting here over by the old ass Gateway PIII box. Pretty much everything that don't make the cut for Win11 is going to see Linux at some point. Even if I have to run openbox or blackbox WM.
_________________
"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: Tue Nov 30, 2021 21:29    Post subject: Reply with quote
kernel-panic69 wrote:
...antiques ... that don't make the cut for Win11

These two are only thing I have with winders OS and they are strickly WIN10 machines.




Done away with all the 2 drive setup cause I have NO use for winders these days.
AND Both of those machines are NOT capable of running WIN11 ...and just as well Smile
They are both on my guest net (have been for several months) anyways.
Chrome in WIN10 is great for casting to chromecast whatever I want to TVs & such...
...really nice for the Sceptre monitor (w/HDMI) I keep in kitchen.

Chrome in Debian does almost as good but you loose sound when you cast full desktop.
For some silly reason sound comes back thru the laptop....but works well just casting a Chrome tab.
Then again when I connect my laptop to the guest net there is always somepin I
need to get or put on main net so that was a PITA

Twisted Evil
Alozaros
DD-WRT Guru


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

PostPosted: Wed Dec 01, 2021 10:40    Post subject: Reply with quote
cron must be enabled...to be able to auto flash...and yep on some lower grade routers /tmp firmware.bin autoflash is not present...i guess...

as far as W11 (shait) there is a way to skip the sprcs check and still install it on lower grade units...

But its a shit OS anyway...since Win 7 everything else sucks...move to Linux will be the only option for everyone... Razz so many Linux distros anyway... Win will get it in the bum...

_________________
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
bushant
DD-WRT Guru


Joined: 18 Nov 2015
Posts: 2028

PostPosted: Wed Dec 01, 2021 14:45    Post subject: Reply with quote
Alozaros wrote:
cron must be enabled...

Thanks Alozaros. Now we have the rest of the story.

I enabled cron on 7800 and in a few seconds the magic happened Surprised
the-joker
DD-WRT Developer/Maintainer


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

PostPosted: Wed Dec 01, 2021 15:41    Post subject: Reply with quote
Mr R Design wrote:
the-joker wrote:
And in the meanwhile @Mr R Design has not replied with any feedback.

Arrow Exclamation


Not replied because the original question I asked has still not been answered which was:

'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?'

I wouldn't do this, not by a long shot, best is to upload to /tmp as described.
but feel free to try it and have a recovery by serial/tftp ready just in case.

But thanks for staying silent and not telling us that the question hasnt been answered to your satisfaction.

If I were you, I would ask for your money back =)

Take care and have fun =)

_________________
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)
kernel-panic69
DD-WRT Guru


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

PostPosted: Wed Dec 01, 2021 17:20    Post subject: Reply with quote
bushant wrote:
Alozaros wrote:
cron must be enabled...

Thanks Alozaros. Now we have the rest of the story.

I enabled cron on 7800 and in a few seconds the magic happened Surprised

Disabling cron is a bad idea. Because several functions break with it disabled.

_________________
"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 Previous  1, 2, 3, 4  Next Display posts from previous:    Page 3 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