summaryrefslogtreecommitdiff
path: root/target/linux
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2014-01-24 08:48:10 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2014-01-24 08:48:10 +0000
commit2bb834c2c6ff1f8766a6a42591a2f8b01470eda6 (patch)
treeda310ff0b5ea2eeaa11b036ff5c899045a252b06 /target/linux
parent4523fe9ddc265cf8d98ec7e6f8b39a23328d70eb (diff)
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@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39382 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/generic/files/drivers/mtd/myloader.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/target/linux/generic/files/drivers/mtd/myloader.c b/target/linux/generic/files/drivers/mtd/myloader.c
index 93b4a9b286..72956cdc1c 100644
--- a/target/linux/generic/files/drivers/mtd/myloader.c
+++ b/target/linux/generic/files/drivers/mtd/myloader.c
@@ -89,12 +89,8 @@ static int myloader_parse_partitions(struct mtd_info *master,
goto out_free_buf;
}
- /*
- * The MyLoader and the Partition Table is always present.
- * Additionally, an extra partition is generated to cover
- * everything after the bootloader.
- */
- num_parts = 3;
+ /* The MyLoader and the Partition Table is always present */
+ num_parts = 2;
/* Detect number of used partitions */
for (i = 0; i < MYLO_MAX_PARTITIONS; i++) {
@@ -125,13 +121,6 @@ static int myloader_parse_partitions(struct mtd_info *master,
mtd_part++;
names += PART_NAME_LEN;
- strncpy(names, "firmware", PART_NAME_LEN);
- mtd_part->name = names;
- mtd_part->offset = offset;
- mtd_part->size = master->size - offset;
- mtd_part++;
- names += PART_NAME_LEN;
-
strncpy(names, "partition_table", PART_NAME_LEN);
mtd_part->name = names;
mtd_part->offset = offset;