|
|
@ -257,7 +257,6 @@ mtd_start(char *partition_names[], unsigned n_partitions) |
|
|
|
|
|
|
|
|
|
|
|
/* Now create MTD FLASH partitions */ |
|
|
|
/* Now create MTD FLASH partitions */ |
|
|
|
|
|
|
|
|
|
|
|
warnx("Creating partitions"); |
|
|
|
|
|
|
|
FAR struct mtd_dev_s *part[n_partitions]; |
|
|
|
FAR struct mtd_dev_s *part[n_partitions]; |
|
|
|
char blockname[32]; |
|
|
|
char blockname[32]; |
|
|
|
|
|
|
|
|
|
|
@ -266,9 +265,6 @@ mtd_start(char *partition_names[], unsigned n_partitions) |
|
|
|
|
|
|
|
|
|
|
|
for (offset = 0, i = 0; i < n_partitions; offset += nblocks, i++) { |
|
|
|
for (offset = 0, i = 0; i < n_partitions; offset += nblocks, i++) { |
|
|
|
|
|
|
|
|
|
|
|
warnx(" Partition %d. Block offset=%lu, size=%lu", |
|
|
|
|
|
|
|
i, (unsigned long)offset, (unsigned long)nblocks); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Create the partition */ |
|
|
|
/* Create the partition */ |
|
|
|
|
|
|
|
|
|
|
|
part[i] = mtd_partition(mtd_dev, offset, nblocks); |
|
|
|
part[i] = mtd_partition(mtd_dev, offset, nblocks); |
|
|
|