Ignore:
Timestamp:
2010-05-24T00:54:46+02:00 (7 years ago)
Author:
hauke
Message:

[backfire] backport r21497 and r21517

brcm47xx: fix destroying of 128MB modded ASUS WL-500GP

This should fix the last problem in #3177
Thank you b.sander for the patch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/backfire/package/nvram/files/nvram.init

    r19262 r21557  
    5353                ;; 
    5454                "1071") #0x042f 
    55                         nvram_set sdram_init "$(printf 0x%04x $(( $(/usr/sbin/nvram get sdram_init) | 0x0009 )))" 
     55                        # do sanity check first! max 0x0011 = 128mb 
     56                        SDRAM_INIT=$(printf %d $(/usr/sbin/nvram get sdram_init)) 
     57                        [ "$SDRAM_INIT" -lt "9" -o "$SDRAM_INIT" -gt "17" ] && { 
     58                                # set this to default: 0x09 only if value is invaild like 16MB on Asus WL-500GP 
     59                                echo "sdram_init is invaild: $(printf 0x%04x $SDRAM_INIT), force to default!" 
     60                                nvram_set sdram_init 0x0009 
     61                        } 
    5662                        [ "$COMMIT" = 1 ] && { 
    5763                                nvram_set sdram_ncdl 0x0 
Note: See TracChangeset for help on using the changeset viewer.