apache / apache/nuttx

[BUG] Flash file system creation process does not take configured parameters on Pi Pico

Open
#13,882 0 comments 0 reactions 0 assignees View on GitHub
Arch: arm Area: File System
Dominant language
C
Stars
4k
Forks
1.7k
Avg merge
1d 17h
Merged PRs (30d)
237

Description

### Description / Steps to reproduce the issue

Use existing base configuration, e.g., ./tools/configure.sh raspberrypi-pico-w:nsh-flash
or set the following in menuconfig to create a flash system on Pi Pico
Select RP2040_FLASH_FILE_SYSTEM (Configure a read/write filesystem on unused flash memory)
set MTD_SMART_SECTOR_SIZE to a non-1K value, e.g., 512

Notice that no matter what value is set to MTD_SMART_SECTOR_SIZE, after created file system, block size is always 1024, so some parameters used in file system creation are hard-coded.

Also note that selecting RP2040_FLASH_FILE_SYSTEM will automatically select SmartFS.

```
NuttShell (NSH) NuttX-12.7.0-RC0
nsh> cd /flash
nsh> ls
/flash:
test
nsh> df .
Block Number
Size Blocks Used Available Mounted on
1024 1468 11 1457 /flash
0 0 0 0 /proc
```

### On which OS does this issue occur?

[OS: Linux]

### What is the version of your OS?

Windows 11 WSL2 Ubuntu 22.04.2

### NuttX Version

NuttX 12.7.0-RC0 0976258-dirty Oct 4 2024 22:58:36 arm rasp

### Issue Architecture

[Arch: arm]

### Issue Area

[Area: File System]

### Verification

- [X] I have verified before submitting the report.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.