The R8000 nvram is larger than 32k, increase nvram allocation to 64k to accomadate.
Signed-off-by: Ian Kent <ra...@themaw.net> --- ...3xx-increase-nvram-allocation-size-to-64k.patch | 19 +++++++++++++++++++ ...3xx-increase-nvram-allocation-size-to-64k.patch | 20 ++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 target/linux/bcm53xx/patches-3.14/113-bcm53xx-increase-nvram-allocation-size-to-64k.patch create mode 100644 target/linux/bcm53xx/patches-3.18/113-bcm53xx-increase-nvram-allocation-size-to-64k.patch diff --git a/target/linux/bcm53xx/patches-3.14/113-bcm53xx-increase-nvram-allocation-size-to-64k.patch b/target/linux/bcm53xx/patches-3.14/113-bcm53xx-increase-nvram-allocation-size-to-64k.patch new file mode 100644 index 0000000..89763eb --- /dev/null +++ b/target/linux/bcm53xx/patches-3.14/113-bcm53xx-increase-nvram-allocation-size-to-64k.patch @@ -0,0 +1,19 @@ +bcm53xx: increase nvram allocation size to 64k + +The R8000 nvram is too large for the 32k allocation size in +bcm47xx_nvram.c. + +Increase the allocation size to 64k. + +Signed-off-by: Ian Kent <ra...@themaw.net> +--- a/drivers/firmware/broadcom/bcm47xx_nvram.c ++++ b/drivers/firmware/broadcom/bcm47xx_nvram.c +@@ -20,7 +20,7 @@ + #include <linux/bcm47xx_nvram.h> + + #define NVRAM_MAGIC 0x48534C46 /* 'FLSH' */ +-#define NVRAM_SPACE 0x8000 ++#define NVRAM_SPACE 0x10000 + #define NVRAM_MAX_GPIO_ENTRIES 32 + #define NVRAM_MAX_GPIO_VALUE_LEN 30 + diff --git a/target/linux/bcm53xx/patches-3.18/113-bcm53xx-increase-nvram-allocation-size-to-64k.patch b/target/linux/bcm53xx/patches-3.18/113-bcm53xx-increase-nvram-allocation-size-to-64k.patch new file mode 100644 index 0000000..3382549 --- /dev/null +++ b/target/linux/bcm53xx/patches-3.18/113-bcm53xx-increase-nvram-allocation-size-to-64k.patch @@ -0,0 +1,20 @@ +bcm53xx: increase nvram allocation size to 64k + +The R8000 nvram is too large for the 32k allocation size in +bcm47xx_nvram.c. + +Increase the allocation size to 64k. + +Signed-off-by: Ian Kent <ra...@themaw.net> + +--- a/drivers/firmware/broadcom/bcm47xx_nvram.c ++++ b/drivers/firmware/broadcom/bcm47xx_nvram.c +@@ -20,7 +20,7 @@ + #include <linux/bcm47xx_nvram.h> + + #define NVRAM_MAGIC 0x48534C46 /* 'FLSH' */ +-#define NVRAM_SPACE 0x8000 ++#define NVRAM_SPACE 0x10000 + #define NVRAM_MAX_GPIO_ENTRIES 32 + #define NVRAM_MAX_GPIO_VALUE_LEN 30 + _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel