From 7e3272f422526c7161c1bd8ae8755af1b12948bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= Date: Wed, 22 Apr 2015 19:07:24 +0000 Subject: nvram: increase NVRAM size to 64 KiB MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Rafał Miłecki SVN-Revision: 45566 --- package/utils/nvram/src/nvram.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'package/utils/nvram') 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 -- cgit v1.2.3