How to know what NVRAM is in router?

Discussion in 'Tomato Firmware' started by threehappypenguins, Mar 4, 2014.

  1. threehappypenguins

    threehappypenguins Networkin' Nut Member

    I flashed Shibby's Tomato onto a friend's Linksys E2500 and for the first week or so things were running great. Now it's running strangely. The computers will suddenly not be able to connect to it, nor can I start an SSH tunnel to it, or open the web GUI (or even remotely from my house). The only fix is to power cycle the router. This usually needs to be done at least once (sometimes twice or 3 times) a day. Some good days, some bad days.

    I read somewhere that it can cause problems if you flash a 60K NVRAM firmware onto a 30K NVRAM router. I flashed Shibby's tomato-E2500USB-NVRAM60K-1.28.RT-N5x-MIPSR2-093-Nocat-VPN.bin. Is there any way to tell what the router's NVRAM size is? I tried poking around in Tomato and searching on the internet, but I can't find anything.

    I'm using a Windows laptop, so unless I can use a command line in PuTTY through an SSH tunnel to Tomato, I need a way to find the NVRAM size without using a command line to look it up.
    Last edited: Mar 4, 2014
  2. lefty

    lefty Addicted to LI Member

    There are several ways of listing what nvram you have, in shibby's tomato mod its in the webgui on the status page, most times the first page that opens, and where it lists what system ram you have it'll also list what nvram you have as well, although an older build as what you are using may not have that feature. Also you can type 'nvram show' no quotes from a command line or the webgui command line in Tools.

    The particular unit you are using has 60k of nvram, this of course will be reduced as hardware variables will take some of it, very little, and also your custom settings, such as port forwards or static IP assignment etc. will take some as well.

    To my knowing, beyond this, there is no other way for nvram reporting, you must have some kind of access to the unit in order to see what nvram you have left.
  3. threehappypenguins

    threehappypenguins Networkin' Nut Member

    Okay, I tried 'nvram show' in the command line in the webgui (Tools > System) and it showed me:

    1093 entries, 32152 bytes used, 29288 bytes free. 
    So I guess I do have 60K. I'm not sure why there are so many network issues. Have you heard anything of my build being really buggy? Do you have another suggestion for the E2500? (one that is reliable... not one that could possibly brick the router).
  4. lefty

    lefty Addicted to LI Member

    I don't have a personal preference really, last time i flashed a unit for my friend on his E3000 i used shibby 112, he hasn't brought up any network issues to speak of so it appears 112 is good for him. But the other side of that coin would be for me to ask what network issues do you have?
  5. threehappypenguins

    threehappypenguins Networkin' Nut Member

  6. Marcel Tunks

    Marcel Tunks Networkin' Nut Member

    I've flashed a couple of Shibby's builds on E2500's. One of them is going on at least 6 months without a reboot. I think that one is running 110. Have you tried a more recent build?
  7. Malitiacurt

    Malitiacurt Networkin' Nut Member

    This happened to my E900. I have 2 of them and it happened to both on different versions of Shibby. Only way to minimize it was to schedule a daily reboot during the night. Even then it still happened sometimes. I replaced them with RT-N10P (also flashed with Shibby) and haven't had these random freeze-ups.

    In my case I suspect it's the cheap power supply.
  8. threehappypenguins

    threehappypenguins Networkin' Nut Member

    All was running well beforehand. I actually DD-WRT on there running great. But I got tired of trying to figure out a way to track web usage (looked into Squid... too complicated for a Windows person like me), and I found Tomato's web usage feature GREAT. The downside is when it needs to be power cycled, it wipes out the web usage history.

    Tomato seemed to be running fine and it wasn't until I implemented an iptable firewall rule (to block Facebook) that these things started happening:

    I completely removed the rules, and it's still happening. I can't decide whether I need to just do a hard reset and put back in all the settings manually, or flash another Tomato firmware on there. Or maybe it wasn't me putting in the rules and by chance the router acted up at the same time.
  9. koitsu

    koitsu Network Guru Member

    You can offload the IP Traffic and Web Usage statistics onto a USB stick or CIFS share if you set that up, then they aren't lost when the router is rebooted. There are other threads about that on this forum.
  10. threehappypenguins

    threehappypenguins Networkin' Nut Member

    Thanks koitsu. The router doesn't have a USB port, and I had looked up CIFS for web usage but could only find stuff on syslog. I'll have to just sit down and search some more. I was totally lost, anyway. Just trying to wrap my head around what on earth I'm doing to try and get web usage information downloaded onto one of the computers.
  11. koitsu

    koitsu Network Guru Member

    The latter is exactly what the CIFS stuff is for.

    CIFS, a.k.a. SMB (sometimes also mistakengly called Samba) is the "directory/file/volume sharing" capability on Windows. You're technical enough that I'm sure you've seen it used somewhere; people on COMPUTER01 accessing \\COMPUTER02\mp3 to get to some mp3 files, and so on. It's the same thing here. On Windows you pretty much click a folder and choose Sharing/Properties (I forget, it varies depending on what version of Windows you're using) and in this case set all the permissions up so that everyone has full access to the folder (since TomatoUSB will need read/write). On TomatoUSB, you "mount" the CIFS share by giving it the IP address of a computer and the share name (ex. \\\someshare) along with some other details (you might have to fiddle with the Netbios Name or Domain, and the Username/Password is the username/password *on the Windows machine* which has access to the share), and it will end up mounted as /cifs1 or /cifs2 on TomatoUSB just like any other filesystem/directory. The setup on TomatoUSB is through the GUI under Administration / CIFS Client.

    The one downside is that you need to make sure the Windows machine with the CIFS share is always on (24x7x365). I mention this because I've seen your other posts and "know what you're up to". :p

    At that point, you can configure certain things on TomatoUSB to store data in paths like /cifs1/logs or /cifs1/bandwidth or whatever else, rather than the data stored in NVRAM or RAM.
  12. jerrm

    jerrm Network Guru Member

    And the PC should be on a UPS and really on and running 24x7 for reliability, not sleeping/hibernating/etc. If you don't already have a PC that fits the description, you could probably save enough on electricity in a year to justify a new router with USB support.

    You can't really rely on a CIFS share for any true security functions, make sure your rules and restrictions will function at an acceptable level if the share is not available.
  13. liquidzyklon

    liquidzyklon LI Guru Member

    To the OP, from reading this thread I haven't seen anyone suggest clearing the NVRAM prior to flashing and clearing the NVRAM again after flashing? Maybe this will help fix your issue.

    I had something similar over the weekend on my ASUS RT-N16 so I switched from Shibby to Toastman build. My little problem went away for about 2 days now. Monitoring with fingers crossed.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice