You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by je...@apache.org on 2025/07/11 09:59:31 UTC
(mynewt-core) 03/03: mmc: Add support for ExFat
This is an automated email from the ASF dual-hosted git repository.
jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit f9766de208b17d611d67f66a75794b3b46a097b2
Author: Jerzy Kasenberg <je...@codecoup.pl>
AuthorDate: Thu Jul 10 23:05:31 2025 +0200
mmc: Add support for ExFat
ExFAT partitions have different separate type byte
in boot secotr (0x07)
Now this additional type is supported since it
can be enabled in FAT driver
---
hw/drivers/mmc/src/mmc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/drivers/mmc/src/mmc.c b/hw/drivers/mmc/src/mmc.c
index bb14520a4..8b93623ef 100644
--- a/hw/drivers/mmc/src/mmc.c
+++ b/hw/drivers/mmc/src/mmc.c
@@ -856,7 +856,7 @@ mmc_pkg_init(void)
/* For now only FAT partition are mounted */
if (mmc_read(0, 0, sector, 512) == 0) {
/* Check if first partition is FAT */
- if (sector[450] == 0x0C) {
+ if (sector[450] == 0x0C || sector[450] == 0x07) {
disk_register(MYNEWT_VAL(MMC_DEV_NAME), "fatfs", &mmc_ops);
}
}