Changeset 39382


Ignore:
Timestamp:
2014-01-24T09:48:10+01:00 (4 years ago)
Author:
juhosg
Message:

Revert "kernel: create firmware partition from MyLoader partition parser"

This reverts r38197.

The automatically created firmware partition includes
the partition_table partition. Apart from the partition
table, this partition contains sensitive data on some
Compex devices which data can be destroyed when the
firmware partition gets modified. Revert the change to
prevent that.

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

File:
1 edited

Legend:

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

    r38197 r39382  
    9090        } 
    9191 
    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; 
     92        /* The MyLoader and the Partition Table is always present */ 
     93        num_parts = 2; 
    9894 
    9995        /* Detect number of used partitions */ 
     
    123119        mtd_part->size = offset; 
    124120        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; 
    132121        mtd_part++; 
    133122        names += PART_NAME_LEN; 
Note: See TracChangeset for help on using the changeset viewer.