aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2015-04-22 19:07:24 +0000
committerRafał Miłecki <zajec5@gmail.com>2015-04-22 19:07:24 +0000
commit7e3272f422526c7161c1bd8ae8755af1b12948bb (patch)
treef5e3b30ceeda67659f39cb526cc707743af5c0e2 /package
parent3931288caa4da33d45571d9101010e95d8739738 (diff)
downloadupstream-7e3272f422526c7161c1bd8ae8755af1b12948bb.tar.gz
upstream-7e3272f422526c7161c1bd8ae8755af1b12948bb.tar.bz2
upstream-7e3272f422526c7161c1bd8ae8755af1b12948bb.zip
nvram: increase NVRAM size to 64 KiB
For years Broadcom devices use 64 KiB NVRAM partition size and some of them indeed have it filled in more than 50%. This change allows handling whole NVRAM e.g. on Netgear WNDR4500 and Netgear R8000. The same fix was applied to kernel in upstream commit 6ab7c29. Reported-by: Hante Meuleman <meuleman@broadcom.com> Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 45566
Diffstat (limited to 'package')
-rw-r--r--package/utils/nvram/src/nvram.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/utils/nvram/src/nvram.h b/package/utils/nvram/src/nvram.h
index c72f67e9a8..cd37650860 100644
--- a/package/utils/nvram/src/nvram.h
+++ b/package/utils/nvram/src/nvram.h
@@ -113,7 +113,7 @@ char * nvram_find_staging(void);
#define NVRAM_ROUNDUP(x, y) ((((x)+((y)-1))/(y))*(y))
/* NVRAM constants */
-#define NVRAM_SPACE 0x8000
+#define NVRAM_SPACE 0x10000
#define NVRAM_MAGIC 0x48534C46 /* 'FLSH' */
#define NVRAM_VERSION 1