Skip to content

Commit fed12a1

Browse files
authored
Merge pull request #8580 from eightycc/part_type
Allow CIRCUITPY to mount on Android
2 parents 3de6484 + c83e203 commit fed12a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

supervisor/shared/flash.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ static mp_uint_t flash_read_blocks(uint8_t *dest, uint32_t block_num, uint32_t n
9595
dest[i] = 0;
9696
}
9797

98-
build_partition(dest + 446, 0, 0x01 /* FAT12 */, PART1_START_BLOCK, supervisor_flash_get_block_count());
98+
// Specifying "Big FAT12/16 CHS" allows mounting by Android
99+
build_partition(dest + 446, 0, 0x06 /* Big FAT12/16 CHS */, PART1_START_BLOCK, supervisor_flash_get_block_count());
99100
build_partition(dest + 462, 0, 0, 0, 0);
100101
build_partition(dest + 478, 0, 0, 0, 0);
101102
build_partition(dest + 494, 0, 0, 0, 0);

0 commit comments

Comments
 (0)