Changeset 45618


Ignore:
Timestamp:
2015-05-06T07:54:19+02:00 (3 years ago)
Author:
rmilecki
Message:

brcm47xx: fix regression in NVRAM support for WGT634U

We were calculating wrong offset, NVRAM wasn't found and OpenWrt didn't
boot.

Fixes: 9019803 ("brcm47xx: backport BCM47XX arch patches (clean NVRAM code, later init)")
Signed-off-by: Rafał Miłecki <zajec5@…>

Location:
trunk/target/linux/brcm47xx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/brcm47xx/patches-3.18/820-wgt634u-nvram-fix.patch

    r45288 r45618  
    261261+       /* XXX: hack for supporting the CFE environment stuff on WGT634U */ 
    262262+       if (lim >= 8 * 1024 * 1024) { 
    263 +               src = (u32 *) iobase + 8 * 1024 * 1024 - 0x2000; 
    264 +               dst = (u32 *) nvram_buf; 
     263+               src = (u32 *)(iobase + 8 * 1024 * 1024 - 0x2000); 
     264+               dst = (u32 *)nvram_buf; 
    265265+ 
    266266+               if ((*src & 0xff00ff) == 0x000001) { 
  • trunk/target/linux/brcm47xx/patches-4.0/820-wgt634u-nvram-fix.patch

    r45570 r45618  
    261261+       /* XXX: hack for supporting the CFE environment stuff on WGT634U */ 
    262262+       if (lim >= 8 * 1024 * 1024) { 
    263 +               src = (u32 *) iobase + 8 * 1024 * 1024 - 0x2000; 
    264 +               dst = (u32 *) nvram_buf; 
     263+               src = (u32 *)(iobase + 8 * 1024 * 1024 - 0x2000); 
     264+               dst = (u32 *)nvram_buf; 
    265265+ 
    266266+               if ((*src & 0xff00ff) == 0x000001) { 
Note: See TracChangeset for help on using the changeset viewer.