Laczen opened a new issue, #16245:
URL: https://github.com/apache/nuttx/issues/16245

   ### Description / Steps to reproduce the issue
   
   Esp32 allows the creation of a `/dev/mtdblock0` on spiflash. The 
`/dev/mtdblock0` however cannot be used for a fat filesystem.
   
   To reproduce:
   ```console
   ./tools/configure.sh -l esp32-devkitc:nsh
   ```
   use menuconfig to enable fatfs and spiflash, enable debug logging for file:
   ```console
   nsh> mkfatfs -F 32 /dev/mtdblock0
   bchdev_register: blkdev="/dev/mtdblock0" chardev="/dev/tmpc000001" readonly=F
   find_blockdriver: pathname="/dev/mtdblock0"
   ftl_geometry: Entry
   ftl_geometry: available: true mediachanged: false writeenabled: true
   ftl_geometry: nsectors: 4096 sectorsize: 256
   ftl_geometry: Entry
   ftl_geometry: available: true mediachanged: false writeenabled: true
   ftl_geometry: nsectors: 4096 sectorsize: 256
   mkfatfs_getgeometry: ERROR: Unsupported sector size: 256
   nsh: mkfatfs: mkfatfs failed: 1
   ```
   
   I think it is caused by a incompatibility between the definition of the 
`/dev/mtdblock0` (the sectorsize) and the sectorsize required by fatfs. However 
I have not found a way to configure the sectorsize of `/dev/mtdblock0`.
   
   ### On which OS does this issue occur?
   
   [OS: Linux]
   
   ### What is the version of your OS?
   
   Ubuntu 24.04
   
   ### NuttX Version
   
   master
   
   ### Issue Architecture
   
   [Arch: xtensa]
   
   ### Issue Area
   
   [Area: Drivers]
   
   ### Host information
   
   _No response_
   
   ### Verification
   
   - [x] I have verified before submitting the report.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to