New Build - 03/17/2021 - r46069

Post new topic   Reply to topic    DD-WRT Forum Index -> Marvell MVEBU based Hardware (WRT1900AC etc.)
Goto page Previous  1, 2, 3, 4
Author Message
SurprisedItWorks
DD-WRT Guru


Joined: 04 Aug 2018
Posts: 1444
Location: Appalachian mountains, USA

PostPosted: Sat Jun 12, 2021 2:05    Post subject: Reply with quote
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.
Sponsor
PavelVD
DD-WRT User


Joined: 26 Jul 2019
Posts: 109

PostPosted: Sat Jun 12, 2021 15:00    Post subject: Reply with quote
Router Model: Linksys WRT1900ACSv2
Firmware Version: DD-WRT v3.0-r46069 std (03/17/21)
Kernel Version: Linux 4.9.261 #2491 SMP Wed Mar 17 02:19:46 +07 2021 armv7l
Code:
nvram show >/dev/null
size: 44203 bytes (86869 left)

_________________
Linksys WRT1900ACSv2
Automatically adjustable temperature, always within the range of 59-68°С.
kernel-panic69
DD-WRT Guru


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

PostPosted: Sat Jun 12, 2021 19:40    Post subject: Reply with quote
BrainSlayer wrote:
WRT1900ACS

root@dsi:~# nvram show|grep blahblahblah
size: 38423 bytes (92649 left)


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.

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


Joined: 04 Aug 2018
Posts: 1444
Location: Appalachian mountains, USA

PostPosted: Sun Jun 13, 2021 14:13    Post subject: Reply with quote
kernel-panic69 wrote:
BrainSlayer wrote:
WRT1900ACS

root@dsi:~# nvram show|grep blahblahblah
size: 38423 bytes (92649 left)


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.
SurprisedItWorks
DD-WRT Guru


Joined: 04 Aug 2018
Posts: 1444
Location: Appalachian mountains, USA

PostPosted: Sun Jun 13, 2021 19:46    Post subject: Reply with quote
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:

-----U-Boot Data-----
fw_printenv bootdelay: bootdelay=3

fw_printenv mtdparts: mtdparts=mtdparts=armada-nand:2048K(uboot)ro,256K(u_env),256K(s_env),1m@9m(devinfo),40m@10m(kernel),34m@16m(rootfs),40m@50m(alt_kernel),
34m@56m(alt_rootfs),80m@10m(ubifs),-@90m(syscfg)

fw_printenv bootcmd: bootcmd=run nandboot

fw_printenv boot_part: boot_part=1

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.
SurprisedItWorks
DD-WRT Guru


Joined: 04 Aug 2018
Posts: 1444
Location: Appalachian mountains, USA

PostPosted: Mon Jun 14, 2021 18:48    Post subject: Reply with quote
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.
PIZZEDMEOFF
DD-WRT User


Joined: 12 Dec 2017
Posts: 244
Location: FL

PostPosted: Tue Jun 15, 2021 3:02    Post subject: Reply with quote
KP its always your fault this stuff doesnt work right anyway dont act like you dont know this by now. Razz
_________________
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.
SurprisedItWorks
DD-WRT Guru


Joined: 04 Aug 2018
Posts: 1444
Location: Appalachian mountains, USA

PostPosted: Tue Jun 15, 2021 21:50    Post subject: Reply with quote
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.
o2bad455
DD-WRT User


Joined: 08 Oct 2015
Posts: 252

PostPosted: Mon Jun 21, 2021 2:42    Post subject: Reply with quote
r46069 on WRT1900ACSv1 has NVRAM of "128 KiB" per Status/Router/SpaceUsage.
root@WRT1900ACSv1:~# nvram show >/dev/null
size: 40988 bytes (90084 left)

r46974 on WRT1900ACSv2 has NVRAM of "128 KiB" per Status/Router/SpaceUsage.
root@WRT1900ACSv2:~# nvram show >/dev/null
size: 42116 bytes (88956 left)

_________________
My DD-WRT Routers:
Linksys WRT3200ACM - Marvell
Linksys WRT1900ACS - Marvell
Netgear R9000 - Atheros
Netgear R7000 - Broadcom
PC x86-64 VM - Atheros
Goto page Previous  1, 2, 3, 4 Display posts from previous:    Page 4 of 4
Post new topic   Reply to topic    DD-WRT Forum Index -> Marvell MVEBU based Hardware (WRT1900AC etc.) 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 cannot attach files in this forum
You cannot download files in this forum