Searched defs:partition (Results 1 - 5 of 5) sorted by relevance
/bootable/recovery/mtdutils/ |
H A D | flash_image.c | 49 /* Read an image file and write it to a flash partition. */ 58 fprintf(stderr, "usage: %s partition file.img\n", argv[0]); 63 const MtdPartition *partition = mtd_find_partition_by_name(argv[1]); local 64 if (partition == NULL) die("can't find %s partition", argv[1]); 66 // If the first part of the file matches the partition, skip writing 75 MtdReadContext *in = mtd_read_partition(partition); 95 MtdWriteContext *out = mtd_write_partition(partition); 114 out = mtd_write_partition(partition); 122 if (mtd_partition_info(partition, NUL [all...] |
H A D | mtdutils.c | 39 const MtdPartition *partition; member in struct:MtdReadContext 46 const MtdPartition *partition; member in struct:MtdWriteContext 193 mtd_mount_partition(const MtdPartition *partition, const char *mount_point, argument 200 sprintf(devname, "/dev/block/mtdblock%d", partition->device_index); 238 mtd_partition_info(const MtdPartition *partition, argument 242 sprintf(mtddevname, "/dev/mtd/mtd%d", partition->device_index); 257 MtdReadContext *mtd_read_partition(const MtdPartition *partition) argument 262 ctx->buffer = malloc(partition->erase_size); 269 sprintf(mtddevname, "/dev/mtd/mtd%d", partition->device_index); 277 ctx->partition 288 read_block(const MtdPartition *partition, int fd, char *data) argument 369 mtd_write_partition(const MtdPartition *partition) argument 409 const MtdPartition *partition = ctx->partition; local [all...] |
/bootable/recovery/ |
H A D | roots.cpp | 169 // mount an MTD partition as a YAFFS2 filesystem. 171 const MtdPartition* partition; local 172 partition = mtd_find_partition_by_name(v->device); 173 if (partition == NULL) { 174 LOGE("failed to find \"%s\" partition to mount at \"%s\"\n", 178 return mtd_mount_partition(partition, v->mount_point, v->fs_type, 0); 252 const MtdPartition* partition = mtd_find_partition_by_name(v->device); local 253 if (partition == NULL) { 254 LOGE("format_volume: no MTD partition \"%s\"\n", v->device); 258 MtdWriteContext *write = mtd_write_partition(partition); [all...] |
/bootable/recovery/applypatch/ |
H A D | applypatch.c | 57 // load the contents of a partition. 122 // Load the contents of an MTD or EMMC partition into the provided 126 // which that prefix of the partition contents has the corresponding 131 // interrupted, the partition might contain either the source or the 133 // the length in order to read from a partition (there is no 154 const char* partition = strtok(NULL, ":"); local 199 const MtdPartition* mtd = mtd_find_partition_by_name(partition); 201 printf("mtd partition \"%s\" not found (loading %s)\n", 202 partition, filename); 208 printf("failed to initialize read of mtd partition \" 374 const char* partition = strtok(NULL, ":"); local [all...] |
/bootable/recovery/updater/ |
H A D | install.c | 47 // fs_type="yaffs2" partition_type="MTD" location=partition 104 fprintf(stderr, "%s: no mtd partition named \"%s\"", 197 // fs_type="yaffs2" partition_type="MTD" location=partition fs_size=<bytes> mount_point=<location> 199 // if fs_size == 0, then make_ext4fs uses the entire partition. 201 // if fs_size < 0, then reserve that many bytes at the end of the partition 240 fprintf(stderr, "%s: no mtd partition named \"%s\"", 705 // write_raw_image(filename_or_blob, partition) 715 char* partition = NULL; local 717 ErrorAbort(state, "partition argument to %s must be string", name); 720 partition [all...] |
Completed in 52 milliseconds