Changeset 38197


Ignore:
Timestamp:
2013-09-25T22:13:12+02:00 (4 years ago)
Author:
juhosg
Message:

kernel: create firmware partition from MyLoader partition parser

This is in preparation for sysupgrade support for Compex devices.

Signed-off-by: Gabor Juhos <juhosg@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/generic/files/drivers/mtd/myloader.c

    r37880 r38197  
    9090        } 
    9191 
    92         /* The MyLoader and the Partition Table is always present */ 
    93         num_parts = 2; 
     92        /* 
     93         * The MyLoader and the Partition Table is always present. 
     94         * Additionally, an extra partition is generated to cover 
     95         * everything after the bootloader. 
     96         */ 
     97        num_parts = 3; 
    9498 
    9599        /* Detect number of used partitions */ 
     
    119123        mtd_part->size = offset; 
    120124        mtd_part->mask_flags = MTD_WRITEABLE; 
     125        mtd_part++; 
     126        names += PART_NAME_LEN; 
     127 
     128        strncpy(names, "firmware", PART_NAME_LEN); 
     129        mtd_part->name = names; 
     130        mtd_part->offset = offset; 
     131        mtd_part->size = master->size - offset; 
    121132        mtd_part++; 
    122133        names += PART_NAME_LEN; 
Note: See TracChangeset for help on using the changeset viewer.