Home
last modified time | relevance | path

Searched refs:partition (Results 1 – 7 of 7) sorted by relevance

/bootable/recovery/mtdutils/
Dmtdutils.c39 const MtdPartition *partition; member
46 const MtdPartition *partition; member
193 mtd_mount_partition(const MtdPartition *partition, const char *mount_point, in mtd_mount_partition() argument
200 sprintf(devname, "/dev/block/mtdblock%d", partition->device_index); in mtd_mount_partition()
238 mtd_partition_info(const MtdPartition *partition, in mtd_partition_info() argument
242 sprintf(mtddevname, "/dev/mtd/mtd%d", partition->device_index); in mtd_partition_info()
257 MtdReadContext *mtd_read_partition(const MtdPartition *partition) in mtd_read_partition() argument
262 ctx->buffer = malloc(partition->erase_size); in mtd_read_partition()
269 sprintf(mtddevname, "/dev/mtd/mtd%d", partition->device_index); in mtd_read_partition()
277 ctx->partition = partition; in mtd_read_partition()
[all …]
Dflash_image.c66 const MtdPartition *partition = mtd_find_partition_by_name(argv[1]); in main() local
67 if (partition == NULL) die("can't find %s partition", argv[1]); in main()
78 MtdReadContext *in = mtd_read_partition(partition); in main()
98 MtdWriteContext *out = mtd_write_partition(partition); in main()
117 out = mtd_write_partition(partition); in main()
125 if (mtd_partition_info(partition, NULL, &block_size, NULL)) in main()
Dmtdutils.h35 int mtd_mount_partition(const MtdPartition *partition, const char *mount_point,
40 int mtd_partition_info(const MtdPartition *partition,
/bootable/recovery/applypatch/
Dapplypatch.c139 const char* partition = strtok(NULL, ":"); in LoadPartitionContents() local
184 const MtdPartition* mtd = mtd_find_partition_by_name(partition); in LoadPartitionContents()
187 partition, filename); in LoadPartitionContents()
194 partition); in LoadPartitionContents()
200 dev = fopen(partition, "rb"); in LoadPartitionContents()
203 partition, strerror(errno)); in LoadPartitionContents()
235 read, next, partition); in LoadPartitionContents()
284 partition, filename); in LoadPartitionContents()
365 const char* partition = strtok(NULL, ":"); in WriteToPartition() local
367 if (partition == NULL) { in WriteToPartition()
[all …]
/bootable/recovery/
Droots.cpp105 const MtdPartition* partition; in ensure_path_mounted() local
106 partition = mtd_find_partition_by_name(v->blk_device); in ensure_path_mounted()
107 if (partition == NULL) { in ensure_path_mounted()
112 return mtd_mount_partition(partition, v->mount_point, v->fs_type, 0); in ensure_path_mounted()
193 const MtdPartition* partition = mtd_find_partition_by_name(v->blk_device); in format_volume() local
194 if (partition == NULL) { in format_volume()
199 MtdWriteContext *write = mtd_write_partition(partition); in format_volume()
DREADME.md10 # without flashing the recovery partition:
/bootable/recovery/updater/
Dinstall.c1050 char* partition = NULL; in WriteRawImageFn() local
1055 partition = partition_value->data; in WriteRawImageFn()
1056 if (strlen(partition) == 0) { in WriteRawImageFn()
1066 const MtdPartition* mtd = mtd_find_partition_by_name(partition); in WriteRawImageFn()
1068 printf("%s: no mtd partition named \"%s\"\n", name, partition); in WriteRawImageFn()
1076 name, partition); in WriteRawImageFn()
1110 partition, strerror(errno)); in WriteRawImageFn()
1114 printf("%s: error erasing blocks of %s\n", name, partition); in WriteRawImageFn()
1117 printf("%s: error closing write of %s\n", name, partition); in WriteRawImageFn()
1121 success ? "wrote" : "failed to write", partition); in WriteRawImageFn()
[all …]