diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2015-04-22 19:07:24 +0000 |
---|---|---|
committer | Rafał Miłecki <zajec5@gmail.com> | 2015-04-22 19:07:24 +0000 |
commit | d025f9b0e30e4833cc10ab386f660c5319c8668a (patch) | |
tree | 1745dba5537185bc1ddf9b54f3475ad9bc722c47 /package/utils/nvram | |
parent | 41b471d235b87c7d3bd1e7e91063b3b8fc6dd52e (diff) | |
download | master-187ad058-d025f9b0e30e4833cc10ab386f660c5319c8668a.tar.gz master-187ad058-d025f9b0e30e4833cc10ab386f660c5319c8668a.tar.bz2 master-187ad058-d025f9b0e30e4833cc10ab386f660c5319c8668a.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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45566 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/utils/nvram')
-rw-r--r-- | package/utils/nvram/src/nvram.h | 2 |
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 |