Joined: 04 Aug 2018 Posts: 1444 Location: Appalachian mountains, USA
Posted: Sat Jun 12, 2021 2:05 Post subject:
kernel-panic69 wrote:
I guess I should have clarified, "with output of nvram show | sort", not just the webUI info. But anyway, it looks as somehow the WRT1900AC* devices have something screwed up.
The looong output of nvram show goes to stdout, but the brief report on storage goes to stderr, so nvram show >/dev/null gives you what you want. The two numbers are memory used and memory free, so add them. _________________ 2x Netgear XR500 and 3x Linksys WRT1900ACSv2 on 53544: VLANs, VAPs, NAS, station mode, OpenVPN client (AirVPN), wireguard server (AirVPN port forward) and clients (AzireVPN, AirVPN, private), 3 DNSCrypt providers via VPN.
Ok, so the folks that are reporting that their devices have only 64k nvram, there has to be a common denominator to this. Either what partition you're on, what factory-to-ddwrt file you initially flashed, *something*.
Ok, so the folks that are reporting that their devices have only 64k nvram, there has to be a common denominator to this. Either what partition you're on, what factory-to-ddwrt file you initially flashed, *something*.
Might be time to wipe the slate clean and start new.
And folks,
PLEASE say what build you are on! We need input regarding all recent builds, not just this one.
KP: I have been looking at that 64K number on five WRT1900ACSv2 routers for some 3.5 years and across many builds and toggling the installs between the two partitions. Twice I have wiped all and re-entered all. I believe I once saw a detailed memory map for this model that also showed 64K. Have to find it again to be certain though. _________________ 2x Netgear XR500 and 3x Linksys WRT1900ACSv2 on 53544: VLANs, VAPs, NAS, station mode, OpenVPN client (AirVPN), wireguard server (AirVPN port forward) and clients (AzireVPN, AirVPN, private), 3 DNSCrypt providers via VPN.
Joined: 04 Aug 2018 Posts: 1444 Location: Appalachian mountains, USA
Posted: Sun Jun 13, 2021 19:46 Post subject:
On that question of nvram size...
Deep in my files I found something I saved some 2.5 years ago when I set up a new WRT1900ACSv2. In the original Linksys firmware, on a router just out of the box, I visted 192.168.1.1/sysinfo.cgi and saw this:
Quote:
UpTime:
19:43:42 up 2 min, load average: 0.67, 0.38, 0.14
Firmware Version: 2.0.2.188405
Firmware Builddate: 2018-05-01 18:10
Product.type: production
Linux: Linux version 3.10.39 (root@build-vm) (gcc version 4.6.4 (Linaro GCC branch-4.6.4. Marvell GCC Dev 201310-2126.3d181f66 64K MAXPAGESIZE ALIGN) ) #1 SMP Tue May 1 10:37:17 PDT 2018
Board:
I don't know enough to interpret this. Does anyone? I see some memory numbers for some things, but not for anything I'm sure is nvram. The number 64K only appears in one place, on what looks like a record of how gcc was configured/called to build the firmware. The number 128K does not appear. _________________ 2x Netgear XR500 and 3x Linksys WRT1900ACSv2 on 53544: VLANs, VAPs, NAS, station mode, OpenVPN client (AirVPN), wireguard server (AirVPN port forward) and clients (AzireVPN, AirVPN, private), 3 DNSCrypt providers via VPN.
Joined: 04 Aug 2018 Posts: 1444 Location: Appalachian mountains, USA
Posted: Mon Jun 14, 2021 18:48 Post subject:
OK, that last post of mine was pretty clueless. More interesting is that this is in the dmesg output (in 46816, but I believe we are talking all the new builds here):
[ 1.150479] nvram size = 262144
This is 256K exactly (256 x 1024). I assume half is what the GUI and nvram set... commands edit and the other half is what nvram commit copies the first half into. Also in the dmesg output is what looks like a detailed report of how the large flash area is partitioned into linux, linux2, nvram, etc. That also shows 262144 as the size of nvram.
So it looks like indeed, as far as dd-wrt is concerned, nvram really is 128K.
However, checking dmesg in 44048 yields the same numbers, even though nvram show >/dev/null shows numbers totaling 64K (64 x 1024). It's almost as if the memory partitioning always allowed for 128K but dd-wrt somehow had 64K set somewhere else internally, and we used that number for years.
I'm thinking that the only way to test this is going to be experimentally. Someone needs to create and attempt to set an nvram variable large enough to approach the suppose 128K maximum. Then we'll see if it nvram commit will save it, whether it'll still be there undamaged after a reboot, and of course whether it seems to break anything. The current builds seem so fragile though that I'm hesitant to volunteer the production routers I have new builds on. It will be awhile, probably weeks, before I can try it on a test router. _________________ 2x Netgear XR500 and 3x Linksys WRT1900ACSv2 on 53544: VLANs, VAPs, NAS, station mode, OpenVPN client (AirVPN), wireguard server (AirVPN port forward) and clients (AzireVPN, AirVPN, private), 3 DNSCrypt providers via VPN.
KP its always your fault this stuff doesnt work right anyway dont act like you dont know this by now. _________________ Downloads:
ftp site: ftp://ftp.dd-wrt.com/betas/2021 SVN Timeline:
https://svn.dd-wrt.com/timeline Commands: Misc: sleep 10;stopservice nas;stopservice wlconf;startservice wlconf;startservice nas
samba: { sleep 30; stopservice samba3; startservice samba3; } &
WRT1900ACv1: WIFI: 2.4ghz: NG-mixed, 20mhz channel width, channel follows AP, WPA2-CCMP-128.
WIFI: 5ghz: AC/N mixed, 40mhz channel width, channel 100+upper, WPA2-CCMP-128.
Misc Info: WPA2 Personal: "CCMP-128 (AES)" Static IP's VIA Mac+Host, SFE Enabled, No Rebind, Strict, no-resolv. NOTE: this is now just a wireless access point so to speak but all settings still apply to what ever wireless person connects.
Joined: 04 Aug 2018 Posts: 1444 Location: Appalachian mountains, USA
Posted: Tue Jun 15, 2021 21:50 Post subject:
I'm afraid I've created confusion here about the size of nvram.
We DO NOT have an issue of sizes being different for different people on 46069, as far as I know.
We DO have an issue of older builds (certainly for 44048 and earlier) showing as having 64K nvram while this one has (apparently... needs testing) 128K (at least for the WRT1900ACSv2, per me and one other).
What we DON'T KNOW and asked people to contribute information on is whether all builds newer than 46069 also show as having 128K.
New info from me: 46816 shows as having 128K.
I'd have no reason to doubt the current number except that the past number was clearly different, and there has been no explanation. Was an earlier error corrected? Has the flash been reconfigured to give more space to nvram? (I'm suspecting the latter.) _________________ 2x Netgear XR500 and 3x Linksys WRT1900ACSv2 on 53544: VLANs, VAPs, NAS, station mode, OpenVPN client (AirVPN), wireguard server (AirVPN port forward) and clients (AzireVPN, AirVPN, private), 3 DNSCrypt providers via VPN.