The 2.4.x branch mmc_lld driver does not calculate the card capacity (by reading the CSD on connect), and without this feature in the driver the disk IOCTL GET_SECTOR_COUNT can't be implemented and without it f_mkfs can't work.
I noticed the trunk has this feature implemented so I did a quick a minimal backport. See attached.
1- Patch for ChibiOS 2.4.x.
2- Patch for FatFS (to apply to the patched version that comes with ChibiOS).
Log in to post a comment.