32k nvram help

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2
Author Message
JAMESMTL
DD-WRT Guru


Joined: 13 Mar 2014
Posts: 856
Location: Montreal, QC

PostPosted: Fri Feb 13, 2015 5:23    Post subject: Reply with quote
Screen shot of services -> usb
Sponsor
Biller007
DD-WRT Novice


Joined: 06 Feb 2015
Posts: 22

PostPosted: Fri Feb 13, 2015 6:18    Post subject: Reply with quote
screen shot Do I need to enable jffs2 support?


router.png
 Description:
 Filesize:  106.15 KB
 Viewed:  4013 Time(s)

router.png


Biller007
DD-WRT Novice


Joined: 06 Feb 2015
Posts: 22

PostPosted: Fri Feb 13, 2015 6:37    Post subject: Reply with quote
Also once I get this working do I need to do the rest of the settings that torguard wants me to do IE vpn/deamon on ect. Im assuming I do everything but paste the script in the command line. (that goes on the jump drive) ? Im also wondering if I made the partition to small and that's my issue?

Thanks for all the help
JAMESMTL
DD-WRT Guru


Joined: 13 Mar 2014
Posts: 856
Location: Montreal, QC

PostPosted: Fri Feb 13, 2015 6:55    Post subject: Reply with quote
From CLI what happens if you run these commands

mkdir /jffs/etc
mkdir /jffs/etc/config

In winscp if you select jffs and select properties what Rebthe permissions?
JAMESMTL
DD-WRT Guru


Joined: 13 Mar 2014
Posts: 856
Location: Montreal, QC

PostPosted: Fri Feb 13, 2015 6:57    Post subject: Reply with quote
Biller007 wrote:
Also once I get this working do I need to do the rest of the settings that torguard wants me to do IE vpn/deamon on ect. Im assuming I do everything but paste the script in the command line. (that goes on the jump drive) ? Im also wondering if I made the partition to small and that's my issue?

Thanks for all the help

I would assume so as well. Your just moving the scripts location so it doesn't take up nvram
Biller007
DD-WRT Novice


Joined: 06 Feb 2015
Posts: 22

PostPosted: Tue Feb 17, 2015 18:37    Post subject: Reply with quote
Okay so I fixed the error msg there was not enough room on the flash drive. I re formatted with a 4Gig I can now add files and directories. The VPN script they want me to use in the commands start up I put on the directory you said. Jffs/etc/config called it vpn.startup. I still can not get it to work. It will work as a script in commands start up but puts me at 35k and blows out the radio. Any ideas?
mr.l
DD-WRT Novice


Joined: 08 Feb 2012
Posts: 32

PostPosted: Tue Feb 17, 2015 20:00    Post subject: Reply with quote
Biller007 you have already got all necessary info from this thread, you just didn't bother to read it carefully.

Quote:

if u have problem with nvram space u can always move vpn CERTS and settings from nvram to jffs


So once again you need to save all your certificates on jffs and change default path for certs on your config script for new one in jffs....

P.s maybe it's not so bad idea for you to read my semi-tutorial for setting up vpn server on jffs on units with 32k nvram ?
warmphase
DD-WRT Novice


Joined: 19 Jan 2018
Posts: 1
Location: Atlanta, GA

PostPosted: Fri Feb 16, 2018 21:04    Post subject: NVRAM 32K bug script gives errors? Reply with quote
I'm resurrecting this thread because I bought an old EA6500 V2
and am encountering the 32K RAM limit bug.

I get the error:
Quote:
/tmp/.wxjWGUxQ: line 5: syntax error: bad substitution

...when trying to execute the good old init/shutdwn script:
Code:
for line in 'nvram show | grep = $'
do
var=${line%*=}
nvram unset $var
done
nvram commit


I'm almost certain that the error is referring to the "var =..." line. (As far as I could tell: I put a blank line above each line, in turn, until the line number in the error changed on execution)
(I omitted the semicolons, since the script would halt wherever it encountered the first one...)

Any idea if there's a clear problem and how I might rectify that? Thanks heaps in advance!
jwh7
DD-WRT Guru


Joined: 25 Oct 2013
Posts: 2670
Location: Indy

PostPosted: Sat Feb 17, 2018 20:55    Post subject: Re: NVRAM 32K bug script gives errors? Reply with quote
warmphase wrote:
I'm resurrecting this thread because I bought an old EA6500 V2
and am encountering the 32K RAM limit bug.

I get the error: [...]
...when trying to execute the good old init/shutdwn script:
Code:
for line in 'nvram show | grep = $'
do
var=${line%*=}
nvram unset $var
done
nvram commit


I'm almost certain that the error is referring to the "var =..." line.
What build are you on? The GUI shows only 32KB? The 6500v2 thread talks about 64KB:
https://www.dd-wrt.com/phpBB2/viewtopic.php?t=283136&start=75

This should be all one line:
    do var=${line%*=}
https://www.dd-wrt.com/wiki/index.php/Linksys_EA6500_V1#Decrease_NVRAM_size

_________________
# NAT/SFE/CTF: limited speed w/ DD # Repeater issues # DD-WRT info: FAQ, Builds, Types, Modes, Changes, Demo #
OPNsense x64 5050e ITX|DD: DIR-810L, 2*EA6900@1GHz, R6300v1, RT-N66U@663, WNDR4000@533, E1500@353,
WRT54G{Lv1.1,Sv6}@250
|FreshTomato: F7D8302@532|OpenWRT: F9K1119v1, RT-ACRH13, R6220, WNDR3700v4
Goto page Previous  1, 2 Display posts from previous:    Page 2 of 2
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