[OpenWrt-Devel] [PATCH 4/6] bcm53xx: increase nvram allocation size to 64k
raven at themaw.net
Thu Apr 2 05:57:14 EDT 2015
On Thu, 2015-04-02 at 17:47 +0800, Ian Kent wrote:
> On Thu, 2015-04-02 at 09:45 +0200, Rafał Miłecki wrote:
> > On 10 March 2015 at 04:30, Ian Kent <raven at themaw.net> wrote:
> > > The R8000 nvram is larger than 32k, increase nvram allocation to
> > > 64k to accomadate.
> > I handled this by sending nvram.c patch for mainline:
> > http://patchwork.linux-mips.org/patch/9651/
> > And backporting all changes to bcm53xx:
> > https://dev.openwrt.org/changeset/45204/
> OK, help me out with this patch.
> I thought it was necessary to calculate a from starting offset based on
> mtd size and nvram size since the code assumes the nvram partition might
> not start at 0 whereas in the patch it looks like a 0 starting offset is
> When I was working on this area of code, IIRC, the from offset was
> actually not 0.
Mmm .. so that's probably wrong since ...
mtd = get_mtd_device_nm("nvram");
Should get us the start of the nvram partition at offset 0.
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
More information about the openwrt-devel