Joined: 05 Oct 2008 Posts: 666 Location: Helsinki, Finland / nr. Alkmaar, Netherlands
Posted: Mon May 15, 2023 16:00 Post subject: Netgear XR500 flash memory size?
I was lucky to find an XR500 router for just €20. It is in good condition and the previous owner had only used Netgear f/w on it. It was updated to the latest Netgear f/w.
Following the instructions for the R7800 and XR500, I had no problem installing DD-WRT f/w.
It is now on the latest build 52569.
When I glanced over the SYSINFO, I noticed the flash memory NVRAM is listed as 128 KiB (see attached screen dump). All sources that I have seen, give a flash memory size of 256 KiB.
This is not a practical problem as the current f/w is only 20 KiB.
I do wonder, however, what this could mean.
EDIT:
It is odd that the f/w is reported as 20 KiB, since my R7800 reports the size as 40 KiB. It is as if only half of the flash memory is reported by the XR500.
Joined: 05 Oct 2008 Posts: 666 Location: Helsinki, Finland / nr. Alkmaar, Netherlands
Posted: Mon May 15, 2023 18:24 Post subject:
So sorry I overlooked the obvious difference between KiB and MiB.
I assumed the amount of total and used flash memory must be what is shown in the info page, but apparently not.
The sticker on the case of the router gives no clue about memory of any sort. There might have been different versions of the XR500. That's what I was thinking of. I have no clue of its provenance other than it is designed in California and made in China. I replaced the original f/w with DD-WRT without studying it. It may have shown more hardware info.
RAM memory is shown clearly on the DD-WRT info page. (total is the same 512 MiB for both R7800 and XR500)
So as I now understand after receiving your comment the 20 KiB of NVRAM in use just accidentally happens to be half of what my R7800 uses. Indeed I have next to no settings other than default values on this new used router which is only a spare one for now. Just in case the flash memory of my oldest R7800 wears out one day because of relentless updating ...
Is there a (CLI) command that will show the total amount of flash memory and how much of it is used?
If you are talking about NVRAM, nvram show OR getall. Type nvram in CLI and you will get a help usage text wall.
If you do not want to see all your setttings "nvram show >/dev/null" will only show bytes used and bytes left free.
Joined: 05 Oct 2008 Posts: 666 Location: Helsinki, Finland / nr. Alkmaar, Netherlands
Posted: Thu May 18, 2023 11:26 Post subject:
That's an interesting command. Somehow only part of its output goes into the null file.
As I understand it, a router, like so many devices with a CPU, has volatile random access memory, RAM, and 'permanent' memory, ROM, read-only memory.
Historically ROM has come in many forms, like with a window to erase the contents with UV light.
These days ROM is known as flash memory, although light is not involved in erasing or writing to it.
Further it was said that the bootloader of the R7800 or XR500 router reserves some of the flash memory for keeping settings. In connection with DD-WRT this part is called non-volatile ram, NVRAM, which doesn't of itself reveal what it is used for.
The XR500 is said to have double the flash memory of the R7800.
I don't doubt this, but I couldn't find any mention of it on the case or on the Netgear pages.
That's why I wondered about a command to show how much flash memory the router has in total, and how it is used. Some of it is reserved for settings, the 'NVRAM', but the router's firmware and the bootloader got to reside somewhere non-volatile, too, which would be in flash memory as well.
When would the fact that an XR500 has more flash memory come into play?
All of DD-WRT fits in an R7800's flash memory half the size ...
you can calculate the firmware size for each...if so..
and you use this size to erase it, if you brick your router... and replace it with the factory image size
128k of NVRAM is more than enough to store lots of settings and so...imagine 1k is one full page of code...and DDWRT firmware replaces only those bits, that host the firmware size...and uses the others partitions, to read and use the data to build up, boot and run...as some of the vital data like, board number and MAC's and ect. are not stored in the nvram, but only parsed there..
So, as ho1Aetoo explained 512MB or working DRAM (your /tmp folder) and 256 of NAND (the one with all partitions and funny stuff, in order to flash, boot, store and run the firmware..) _________________ 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