Changeset 15900


Ignore:
Timestamp:
2009-05-17T18:53:57+02:00 (8 years ago)
Author:
florian
Message:

[brcm63xx] add support for sysupgrade (#5117)

Location:
trunk/target/linux/brcm63xx
Files:
3 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c

    r14730 r15900  
    4646static int parse_cfe_partitions( struct mtd_info *master, struct mtd_partition **pparts) 
    4747{ 
    48         int nrparts = 2, curpart = 0; /* CFE and NVRAM are always present. */ 
     48        int nrparts = 3, curpart = 0; /* CFE,NVRAM and global LINUX are always present. */ 
    4949        struct bcm_tag *buf; 
    5050        struct mtd_partition *parts; 
     
    119119                curpart++; 
    120120        }; 
     121         
    121122        parts[curpart].name = "nvram"; 
    122123        parts[curpart].offset = master->size - master->erasesize; 
    123124        parts[curpart].size = master->erasesize; 
     125 
     126        /* Global partition "linux" to make easy firmware upgrade */ 
     127        curpart++; 
     128        parts[curpart].name = "linux"; 
     129        parts[curpart].offset = parts[0].size; 
     130        parts[curpart].size = master->size - parts[0].size - parts[3].size; 
    124131        
    125132        for (i = 0; i < nrparts; i++) 
Note: See TracChangeset for help on using the changeset viewer.