Merge pull request #8580 from eightycc/part_type
Allow CIRCUITPY to mount on Android
This commit is contained in:
commit
fed12a1b12
@ -95,7 +95,8 @@ static mp_uint_t flash_read_blocks(uint8_t *dest, uint32_t block_num, uint32_t n
|
||||
dest[i] = 0;
|
||||
}
|
||||
|
||||
build_partition(dest + 446, 0, 0x01 /* FAT12 */, PART1_START_BLOCK, supervisor_flash_get_block_count());
|
||||
// Specifying "Big FAT12/16 CHS" allows mounting by Android
|
||||
build_partition(dest + 446, 0, 0x06 /* Big FAT12/16 CHS */, PART1_START_BLOCK, supervisor_flash_get_block_count());
|
||||
build_partition(dest + 462, 0, 0, 0, 0);
|
||||
build_partition(dest + 478, 0, 0, 0, 0);
|
||||
build_partition(dest + 494, 0, 0, 0, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user