Home | History | Annotate | Download | only in mtdutils

Lines Matching defs:partition

52 /* Read an image file and write it to a flash partition. */
61 fprintf(stderr, "usage: %s partition file.img\n", argv[0]);
66 const MtdPartition *partition = mtd_find_partition_by_name(argv[1]);
67 if (partition == NULL) die("can't find %s partition", argv[1]);
69 // If the first part of the file matches the partition, skip writing
78 MtdReadContext *in = mtd_read_partition(partition);
98 MtdWriteContext *out = mtd_write_partition(partition);
117 out = mtd_write_partition(partition);
125 if (mtd_partition_info(partition, NULL, &block_size, NULL))