Author: rmilecki
Date: 2015-04-22 21:07:24 +0200 (Wed, 22 Apr 2015)
New Revision: 45566

Modified:
   trunk/package/utils/nvram/src/nvram.h
Log:
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 <[email protected]>
Signed-off-by: Rafa?\197?\130 Mi?\197?\130ecki <[email protected]>

Modified: trunk/package/utils/nvram/src/nvram.h
===================================================================
--- trunk/package/utils/nvram/src/nvram.h       2015-04-22 19:07:19 UTC (rev 
45565)
+++ trunk/package/utils/nvram/src/nvram.h       2015-04-22 19:07:24 UTC (rev 
45566)
@@ -113,7 +113,7 @@
 #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
 
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to