On 2 April 2015 at 11:57, Ian Kent <[email protected]> wrote: > 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 <[email protected]> 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 >> assumed? >> >> 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.
That's right, if something doesn't work for you, let me know. -- Rafał _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
