Change part type to 0x06, Big FAT12/16 CHS

This commit is contained in:
Bob Abeles 2023-11-10 12:07:02 -08:00
parent 3de6484471
commit c83e203d37
1 changed files with 2 additions and 1 deletions

View File

@ -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);