From c83e203d372dd22158993ba53d00619026b0ee3f Mon Sep 17 00:00:00 2001 From: Bob Abeles Date: Fri, 10 Nov 2023 12:07:02 -0800 Subject: [PATCH] Change part type to 0x06, Big FAT12/16 CHS --- supervisor/shared/flash.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/supervisor/shared/flash.c b/supervisor/shared/flash.c index 3baca1d0e6..c0b8cd7293 100644 --- a/supervisor/shared/flash.c +++ b/supervisor/shared/flash.c @@ -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);