#342 f_mkfs does not work


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).


  • Giovanni Di Sirio

    Too an old version for this kind of fixes, FatFS itself should be upgraded too.

    Not fixing, 2.6.0 will contain all the latest code.

  • Giovanni Di Sirio

    • status: open --> closed-rejected
    • Priority: 5 --> 2

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks