vpn_generic now too large for 4 MB routers?

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
floppi
DD-WRT Novice


Joined: 03 Nov 2017
Posts: 19

PostPosted: Mon Nov 07, 2022 23:22    Post subject: vpn_generic now too large for 4 MB routers? Reply with quote
Hello, in r50814 and r50786 the vpn_generic image is larger than 3866624 bytes and the wiki warns not to exceed that size on my Linksys WRT160Nv1:
https://wiki.dd-wrt.com/wiki/index.php/Linksys_WRT150N_%26_WRT160N

Will future releases shrink again in size?
The latest version at the moment which would fit is 10-31-2022-r50755. Is it safe to use this or do the newer versions from last week contain security updates?
Sponsor
kernel-panic69
DD-WRT Guru


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

PostPosted: Tue Nov 08, 2022 0:12    Post subject: Reply with quote
There is really only one way to know if the wiki is correct, and really only one way to know what builds can flash to this router. Flash and report. I can't find any flash reports on this router dating back to your last inquiry about firmware in 2017 off the top of my head:

Linksys WRT160N v1 latest Firmware?

This is a huge problem for the community at large. Nobody flashing and reporting in the forum.

EDIT: Forgot about this thread -> Linksys WRT160N v1 update

_________________
"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
floppi
DD-WRT Novice


Joined: 03 Nov 2017
Posts: 19

PostPosted: Tue Nov 08, 2022 20:25    Post subject: Reply with quote
kernel-panic69 wrote:
There is really only one way to know if the wiki is correct, and really only one way to know what builds can flash to this router. Flash and report.

Do you mean I should just try to flash the larger firmware? What's the worst that could happen?

Quote:
I can't find any flash reports on this router dating back to your last inquiry about firmware in 2017

I'm currently running r49467 and I did post a flash report on that:
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=332503&start=4
kernel-panic69
DD-WRT Guru


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

PostPosted: Tue Nov 08, 2022 21:12    Post subject: Reply with quote
Suddenly, the forum search dropped your last two build thread posts (or I ignored them?). Either way, you're the only person whose reported on this device that I can seem to find between the in-forum search function and a web search.

The worst that could happen is you brick the router and have to recover it. The best method of testing to see if it will flash is via CLI (PuTTY) over telnet / ssh (substitute newer revision folder info, i.e. 11-06-2022-r50814, in place of the example):

Code:
cd /tmp
wget http://download1.dd-wrt.com/dd-wrtv2/downloads/betas/2022/10-31-2022-r50755/broadcom/dd-wrt.v24_vpn_generic.bin
write dd-wrt.v24_vpn_generic.bin linux

and if successful:

Code:
reboot

_________________
"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
floppi
DD-WRT Novice


Joined: 03 Nov 2017
Posts: 19

PostPosted: Tue Nov 08, 2022 22:49    Post subject: Reply with quote
So if I follow your instructions I might end up having to solder a JTAG-cable etc.? What are the chances?

As I'm not using the VPN-functions at the moment, I think I'd rather change to std_generic for now.
I read that many users don't do a reset anymore when flashing a new release - is there a specific risk to flashing from vpn_generic to std_generic without reset?
kernel-panic69
DD-WRT Guru


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

PostPosted: Tue Nov 08, 2022 22:54    Post subject: Reply with quote
If you follow those instructions, it will tell you if the firmware image is too big for partition linux and not flash it (or should).

No risk on not resetting, but if you run into issues, first thing to do is reset and start from scratch.

_________________
"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
floppi
DD-WRT Novice


Joined: 03 Nov 2017
Posts: 19

PostPosted: Thu Nov 10, 2022 1:01    Post subject: Reply with quote
I tried flashing vpn_generic from r50841 using telnet but it failed - it's too large.

Then I flashed std_generic successfully, but I have issues with the wifi, even after doing a 30/30/30 reset and reentering all my settings manually in the web interface. I can connect to my wifi network, but as soon as there's traffic like accessing a website, the router reboots and then there is a another network with the SSID 'dd-wrt' active, and it stays active even if I set wifi network mode to 'disabled'.
Internet access via ethernet works fine so far.

How would you solve this problem?
kernel-panic69
DD-WRT Guru


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

PostPosted: Thu Nov 10, 2022 3:24    Post subject: Reply with quote
Does this device have bootfail handling, is it enabled, and if enabled, how many bootfails before it resets the router? I don't know of any reason why your router would reset wifi settings or settings in general upon using wifi to access the internet without seeing your configurations....
_________________
"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
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1857
Location: Hung Hom, Hong Kong

PostPosted: Thu Nov 10, 2022 14:06    Post subject: Reply with quote
floppi wrote:
Then I flashed std_generic successfully, but I have issues with the wifi, even after doing a 30/30/30 reset and reentering all my settings manually in the web interface. I can connect to my wifi network, but as soon as there's traffic like accessing a website, the router reboots and then there is a another network with the SSID 'dd-wrt' active, and it stays active even if I set wifi network mode to 'disabled'.

I would use the command "free -h" to see whether RAM (size: 16 MB?) had been used up.

Also, the router might boot twice to test certain features (e.g. CTF). So don't start using it right after powering it on. Give it a few minutes to settle things down.

If it's really RAM issue, you should try to disable some services first (e.g. Telnet, Traff) before doing everything else.

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
floppi
DD-WRT Novice


Joined: 03 Nov 2017
Posts: 19

PostPosted: Thu Nov 10, 2022 15:23    Post subject: Reply with quote
Now it seems to me that the 'dd-wrt'-network only comes up for a short while during the reboot and then disappears as my own SSID becomes active.

The rebooting happens not always at the first sign of wifi-traffic, sometimes I was able to browse several websites and stream video for over a minute. It's just highly unstable, always leading to reboots, even when the router has been running for half an hour, while working well through ethernet.

Here is the free -h result while wifi was working for a moment with traffic:
Code:
root@DD-WRT:~# free -h
              total        used        free      shared  buff/cache   available
Mem:          13276        6424        1824           0        5028           0
-/+ buffers/cache:         6424        6852
Swap:             0           0           0


This after I changed wifi settings in the web interface:
Code:
root@DD-WRT:~# free -h
              total        used        free      shared  buff/cache   available
Mem:          13276        6552         832           0        5892           0
-/+ buffers/cache:         6552        6724
Swap:             0           0           0


Right now I had another problem that internet access via ethernet suddenly failed after 15 min up-time, while the web interface of the router was working. I just clicked 'apply settings" on the setup page and then the internet access worked again, without rebooting the router.
kernel-panic69
DD-WRT Guru


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

PostPosted: Thu Nov 10, 2022 16:45    Post subject: Reply with quote
The default "dd-wrt" SSID should not be coming up that I know of if you have set a different SSID. Even though you have done a 30-30-30, you may wish to also do an 'nvram erase && reboot' at least once to clear any nvram corruption gremlins. Another issue could be a failing power supply adapter and the typical capacitor failures on the SoC PCB. As old as this router is, it wouldn't surprise me if both are culprits. We still have not seen your configurations or syslogs to possibly help determine if something is askew, but I digress.

mwchang wrote:
I would use the command "free -h" to see whether RAM (size: 16 MB?) had been used up.
----------
If it's really RAM issue, you should try to disable some services first (e.g. Telnet, Traff) before doing everything else.

RAM-related wiki references to read (and discuss):

https://wiki.dd-wrt.com/wiki/index.php/Router_Slowdown

https://wiki.dd-wrt.com/wiki/index.php/Insufficient_ram

mwchang wrote:
Also, the router might boot twice to test certain features (e.g. CTF). So don't start using it right after powering it on. Give it a few minutes to settle things down.

There is no CTF kernel module for the Linux 2.4 kernel in use on these devices that I am aware of as it was introduced for 802.11n / Linux 2.6 kernel via Broadcom in stock firmware.

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


Joined: 26 Mar 2013
Posts: 1857
Location: Hung Hom, Hong Kong

PostPosted: Fri Nov 11, 2022 2:56    Post subject: Reply with quote
kernel-panic69 wrote:
EDIT: Forgot about this thread -> Linksys WRT160N v1 update

According to your thread:
Quote:
After unbricking, I've notice that the r47581_v24_std_generic size it's over the recommended 3.6875KB for this model (I seem to have read this somewhere).

Further checking indicated that the last "good size" v24_std_generic file is at r45130.

The following thread looks interesting, but a bit ancient. At least, the guy said "Everything is working so far". Maybe an old build for old routers worked better. But floppi was using a recent build? Or is he/she a newbie?

DD-WRT :: View topic - WRT160N V1 What Download?
* Jan 12, 2009
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=45422

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw


Last edited by mwchang on Fri Nov 11, 2022 3:22; edited 5 times in total
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1857
Location: Hung Hom, Hong Kong

PostPosted: Fri Nov 11, 2022 3:06    Post subject: Reply with quote
floppi wrote:
Hello, in r50814 and r50786 the vpn_generic image is larger than 3866624 bytes and the wiki warns not to exceed that size on my Linksys WRT160Nv1:
https://wiki.dd-wrt.com/wiki/index.php/Linksys_WRT150N_%26_WRT160N

floppi wrote:
Now it seems to me that the 'dd-wrt'-network only comes up for a short while during the reboot and then disappears as my own SSID becomes active.

The rebooting happens not always at the first sign of wifi-traffic, sometimes I was able to browse several websites and stream video for over a minute. It's just highly unstable, always leading to reboots, even when the router has been running for half an hour, while working well through ethernet.

....

Right now I had another problem that internet access via ethernet suddenly failed after 15 min up-time, while the web interface of the router was working. I just clicked 'apply settings" on the setup page and then the internet access worked again, without rebooting the router.

RAM seemingly went down to dangerous level, but mostly caches. My router does NOT have that cache thing.

What's the last DD-WRT build number that worked flawlessly in your WRT150N? WRT160N??

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
floppi
DD-WRT Novice


Joined: 03 Nov 2017
Posts: 19

PostPosted: Fri Nov 11, 2022 13:55    Post subject: Reply with quote
r49467 vpn_generic worked well since July.

Is the 'nvram erase' command safe on the WRT160Nv1?
The wiki links to this post from BrainSlayer:

Quote:
a few devices. lets call them linksys (not all, but some) should not be treated with "erase nvram", since they wont recover the default data sometimes. i have seen lost mac addresses etc. this is why dd-wrt is also not erasing the flash anymore, but just restoring the default data if selected and keeping factory values untouched

https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1002036#1002036
floppi
DD-WRT Novice


Joined: 03 Nov 2017
Posts: 19

PostPosted: Sat Nov 12, 2022 1:45    Post subject: Reply with quote
I did the nvram erase && reboot without issues and reconfigured manually, but the wifi-problem persists as before.

Which logs and config do you need and how can I obtain them?
Moreover, do I need to trigger the reboot for the logs?
Here some logs after a manual, normal reboot:



iptables.txt
 Description:

Download
 Filename:  iptables.txt
 Filesize:  2.59 KB
 Downloaded:  36 Time(s)


log.txt
 Description:

Download
 Filename:  log.txt
 Filesize:  17.32 KB
 Downloaded:  34 Time(s)


dmesg.txt
 Description:

Download
 Filename:  dmesg.txt
 Filesize:  4.77 KB
 Downloaded:  32 Time(s)

Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware 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